:root {
  --ink: #13232e;
  --ink-muted: #52636d;
  --paper: #f5f1e8;
  --paper-deep: #e9e2d5;
  --navy: #0b1822;
  --navy-soft: #142733;
  --teal: #205e5a;
  --teal-light: #79d5c8;
  --gold: #b48b43;
  --line: rgba(19, 35, 46, 0.18);
  --white: #fffdf8;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shadow: 0 22px 60px rgba(7, 20, 28, 0.12);
  --radius: 1rem;
  --shell: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 0.13em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p, li { text-wrap: pretty; orphans: 3; widows: 3; }
.skip-link {
  position: fixed; left: 1rem; top: -6rem; z-index: 100;
  padding: .65rem 1rem; color: var(--navy); background: var(--white);
  border: 2px solid var(--teal); border-radius: .4rem;
}
.skip-link:focus { top: 1rem; }
.shell { width: min(calc(100% - 2rem), var(--shell)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 .65rem; color: var(--teal); font-size: .76rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.lede { max-width: 46rem; margin-block: 1.15rem 0; color: var(--ink-muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.muted { color: var(--ink-muted); }
.measure { max-width: 46rem; }

.site-header {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(11, 24, 34, .96); color: var(--white); backdrop-filter: blur(12px);
}
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 2.5rem; aspect-ratio: 1; border: 1px solid rgba(121,213,200,.62);
  color: var(--teal-light); font-family: var(--serif); font-size: 1.05rem; letter-spacing: -.08em;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .92rem; letter-spacing: .02em; }
.brand-copy span { color: #bed0d6; font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
.site-nav__toggle {
  display: none; min-width: 2.75rem; min-height: 2.75rem; color: var(--white); background: transparent;
  border: 1px solid rgba(255,255,255,.3); border-radius: .45rem; cursor: pointer;
}
.site-nav__drawer { display: flex; align-items: center; gap: .25rem; }
.site-nav__drawer a { padding: .65rem .75rem; color: #dce7ea; font-size: .88rem; font-weight: 650; text-decoration: none; }
.site-nav__drawer a:hover, .site-nav__drawer a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); }
.nav-contact { border: 1px solid rgba(121,213,200,.55); border-radius: .35rem; }
.site-nav__overlay { display: none; }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(121,213,200,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(121,213,200,.25) 1px, transparent 1px);
  background-size: 4rem 4rem; mask-image: linear-gradient(to left, black, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; min-height: 40rem; padding-block: clamp(5rem, 11vw, 9rem); display: grid; align-content: center; }
.hero h1, .page-hero h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.hero h1 { max-width: 15ch; margin: 0; font-size: clamp(3.2rem, 8vw, 6.8rem); }
.hero .lede { color: #cad9dd; }
.hero-role { margin: 1.5rem 0 0; color: var(--teal-light); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1rem; border: 1px solid var(--ink); border-radius: .35rem; font-weight: 750; text-decoration: none; }
.button-primary { color: var(--navy); background: var(--teal-light); border-color: var(--teal-light); }
.button-secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.45); }
.button-dark { color: var(--white); background: var(--navy); border-color: var(--navy); }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.14); }

.section { padding-block: clamp(3.75rem, 7vw, 6.5rem); }
.section-alt { background: var(--paper-deep); }
.section-dark { color: var(--white); background: var(--navy-soft); }
.section-dark .eyebrow { color: var(--teal-light); }
.section-dark .muted, .section-dark .lede { color: #c7d6da; }
.section-heading { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: start; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-heading > * { min-width: 0; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.section-heading p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.card { min-width: 0; min-height: 100%; padding: clamp(1.35rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .7rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(7,20,28,.05); }
.card > * { margin-block: 0; }
.card h3 { margin: 0; font-family: var(--serif); font-size: 1.55rem; line-height: 1.18; }
.card p { margin: 0; }
.card-link { text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tag { display: inline-block; color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.image-card { padding: 0; overflow: hidden; }
.card-media { width: 100%; aspect-ratio: 1; margin: 0; overflow: hidden; background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; image-rendering: auto; }
.card-body { padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; align-content: start; gap: .65rem; }
.card-body > * { margin-block: 0; }
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.method-item { min-height: 14rem; padding: 1.5rem; background: var(--navy-soft); }
.method-number { color: var(--teal-light); font-family: var(--serif); font-size: 2.2rem; }
.method-item h3 { margin: 2rem 0 .5rem; }
.method-item p { margin: 0; color: #c7d6da; font-size: .94rem; }
.callout { padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.callout h2 { max-width: 17ch; margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); }

.page-hero { padding-block: clamp(4rem, 8vw, 7rem); color: var(--white); background: var(--navy); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--teal-light); }
.page-hero h1 { max-width: 16ch; margin: 0; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.page-hero .lede { color: #c7d6da; }
.prose { max-width: 48rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 2.7rem 0 .8rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose li + li { margin-top: .55rem; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 10rem 1fr; gap: 2rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.timeline-item h2, .timeline-item h3 { margin: 0 0 .4rem; }
.timeline-item p { margin: 0; }
.project-list { display: grid; gap: 1rem; }
.project { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 1.75rem); align-items: start; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.project:last-child { border-bottom: 1px solid var(--line); }
.project h2 { margin: 0; font-size: 1.55rem; }
.project p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.contact-card { min-width: 0; padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--line); background: var(--white); }
.contact-card > :first-child { margin-top: 0; }
.contact-card > :last-child { margin-bottom: 0; }
.email-link { overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2.1rem); }
.notice { margin-block: 1.5rem; padding: 1rem 1.2rem; background: #e3eee9; border-left: 4px solid var(--teal); }

.site-footer { padding-block: 3.5rem 2rem; color: #d7e2e5; background: #071219; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: var(--white); }
.site-footer h2 { font-family: var(--serif); font-weight: 500; }
.site-footer a { color: #d7e2e5; }
.site-footer .muted { color: #b8c8cd; }
.footer-links { display: grid; gap: .45rem; align-content: start; }
.footer-meta { margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; color: #9db0b7; border-top: 1px solid rgba(255,255,255,.13); font-size: .8rem; }

@media (max-width: 800px) {
  .site-nav__toggle { display: inline-grid; place-items: center; }
  .site-nav__drawer {
    display: none; position: absolute; inset: calc(100% + 1px) 0 auto; padding: 1rem; background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow);
  }
  .site-nav__drawer.open { display: grid; z-index: 100; }
  .site-nav__drawer a { min-height: 3rem; display: flex; align-items: center; }
  .site-nav__overlay.open { display: block; position: fixed; inset: 4.75rem 0 0; background: rgba(0,0,0,.42); z-index: 99; }
  body.nav-open { overflow: hidden; }
  .section-heading, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards--releases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--releases > :last-child:nth-child(odd) { width: calc((100% - 1rem) / 2); grid-column: 1 / -1; justify-self: center; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 1fr; gap: .4rem; }
}
@media (max-width: 520px) {
  .brand-copy span { display: none; }
  .hero-inner { min-height: 35rem; }
  .method-grid { grid-template-columns: 1fr; }
  .cards--releases { grid-template-columns: 1fr; }
  .cards--releases .image-card,
  .cards--releases > :last-child:nth-child(odd) { width: 100%; max-width: 27.5rem; grid-column: auto; margin-inline: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: .5rem; }
  .footer-meta { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .actions { display: none; }
  body { color: #000; background: #fff; }
  .page-hero { padding-block: 0 1.2rem; color: #000; background: #fff; }
  .page-hero .eyebrow, .page-hero .lede { color: #26343d; }
  .page-hero h1 { max-width: none; font-size: 2.25rem; }
  .section { padding-block: 0; }
  .timeline-item { grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: .55rem; break-inside: avoid; }
  .timeline-item h2 { font-size: 1.1rem; }
  .timeline-item p, .prose li, .notice { font-size: .82rem; line-height: 1.4; }
  .prose h2 { margin-top: 1rem; font-size: 1.35rem; }
  .notice { margin-block: .8rem; padding: .6rem .8rem; }
}
