:root {
  --ink: #071113;
  --ink-soft: #101c1f;
  --paper: #ffffff;
  --paper-soft: #f2f6f6;
  --muted: #667478;
  --line: #ced8da;
  --teal: #0b9b9b;
  --teal-bright: #38d0c9;
  --coral: #ff684d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: Consolas, "Courier New", monospace;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); letter-spacing: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -80px; padding: 12px 16px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 16px; }
.progress-rail { position: fixed; z-index: 120; top: 0; left: 0; width: 100%; height: 3px; background: transparent; }
.progress-rail span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), var(--coral)); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.site-header.is-scrolled { color: var(--ink); background: rgba(255,255,255,.96); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-size: 13px; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.brand-mark { color: var(--teal-bright); font-family: var(--mono); font-size: 17px; }
.site-header.is-scrolled .brand-mark { color: var(--teal); }
.desktop-nav { display: flex; align-items: center; gap: 36px; }
.desktop-nav a, .header-command { position: relative; font-size: 13px; font-weight: 700; text-decoration: none; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 100%; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { transform: scaleX(1); }
.header-command { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.header-command span { color: var(--coral); font-size: 18px; }
.menu-button, .mobile-nav { display: none; }

.hero { position: relative; min-height: min(840px, calc(100svh - 42px)); overflow: hidden; color: #fff; background: var(--ink); }
.hero-media, .hero-scrim, .hero-grid { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.035); animation: hero-settle 1.3s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-scrim { background: linear-gradient(90deg, rgba(7,17,19,.98) 0%, rgba(7,17,19,.92) 37%, rgba(7,17,19,.18) 69%, rgba(7,17,19,.1) 100%); }
.hero-grid { opacity: .18; background-image: linear-gradient(rgba(56,208,201,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(56,208,201,.16) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg,#000,transparent 72%); }
.hero-content { position: relative; z-index: 2; width: min(760px, 60vw); min-height: min(840px, calc(100svh - 42px)); display: flex; flex-direction: column; justify-content: center; padding: 112px var(--gutter) 96px; }
.terminal-line { margin: 0 0 24px; color: #b6c5c7; font: 13px/1.4 var(--mono); }
.terminal-line span:first-child { color: var(--teal-bright); }
.terminal-cursor { display: inline-block; width: 8px; height: 1em; margin-left: 5px; vertical-align: -2px; background: var(--coral); animation: blink 1s steps(1) infinite; }
.hero h1 { margin: 0; max-width: 750px; font: 700 clamp(58px, 7.2vw, 112px)/.92 var(--serif); letter-spacing: 0; }
.hero-role { margin: 22px 0 0; color: var(--teal-bright); font-size: clamp(18px, 2vw, 27px); font-weight: 700; }
.hero-headline { margin: 28px 0 0; max-width: 670px; font: 700 clamp(22px, 2.35vw, 36px)/1.18 var(--serif); }
.hero-summary { max-width: 650px; margin: 16px 0 0; color: #c8d2d4; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.command { min-height: 54px; display: inline-flex; justify-content: space-between; align-items: center; gap: 26px; padding: 0 22px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.command span { font-size: 20px; }
.command:hover { transform: translateY(-3px); }
.command-primary { border-color: var(--coral); background: var(--coral); color: #101010; }
.command-primary:hover { background: #ff7c64; }
.command-ghost { color: #fff; }
.command-ghost:hover { border-color: var(--teal-bright); }
.hero-links { display: flex; flex-wrap: wrap; gap: 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-links li { display: flex; gap: 8px; font-size: 13px; }
.hero-links span { color: var(--coral); font-family: var(--mono); }
.hero-links a { text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color .2s ease; }
.hero-links a:hover { text-decoration-color: var(--teal-bright); }
.hero-location { position: absolute; z-index: 3; right: var(--gutter); bottom: 82px; padding-left: 16px; border-left: 2px solid var(--teal-bright); color: #dbe4e5; font: 12px/1.7 var(--mono); }
.hero-location span { color: var(--coral); }
.hero-next { position: absolute; z-index: 3; right: var(--gutter); bottom: 22px; display: flex; gap: 16px; align-items: center; color: #fff; font-size: 12px; text-decoration: none; }
.hero-next b { color: var(--coral); font-size: 18px; animation: bob 1.6s ease-in-out infinite; }

.proof { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; padding: 96px var(--gutter); border-bottom: 1px solid var(--line); }
.proof-statement h2 { max-width: 780px; margin: 24px 0 0; font: 700 clamp(36px, 4vw, 64px)/1.03 var(--serif); }
.section-index { color: var(--teal); font: 12px/1 var(--mono); }
.proof-list { display: grid; align-content: end; }
.proof-item { display: grid; grid-template-columns: 40px 150px 1fr; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.proof-item > span { color: var(--coral); font: 12px var(--mono); }
.proof-item strong { font: 700 24px var(--serif); }
.proof-item p { margin: 0; color: var(--muted); font-size: 14px; }

.section { padding: 120px var(--gutter); }
.section-header { display: grid; grid-template-columns: 170px minmax(0, 1fr) 360px; gap: 40px; align-items: end; max-width: var(--max); margin: 0 auto 72px; }
.section-header h2 { margin: 0; font: 700 clamp(48px, 5vw, 78px)/.98 var(--serif); }
.section-header p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.project-list { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.project { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); border-bottom: 1px solid var(--line); }
.project, .project-media, .project-copy { min-width: 0; }
.project:nth-child(even) { grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr); }
.project:nth-child(even) .project-media { order: 2; }
.project-media { position: relative; min-height: 520px; overflow: hidden; background: var(--ink-soft); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.01); transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.project-media:hover img { transform: scale(1.055) translateY(-1.5%); filter: saturate(1.08); }
.project-open { position: absolute; right: 18px; bottom: 18px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #fff; border-radius: 50%; color: #fff; background: rgba(7,17,19,.75); font-size: 21px; }
.project-copy { padding: clamp(34px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.project-number { margin-bottom: 18px; color: var(--coral); font: 13px var(--mono); }
.project-meta { display: flex; gap: 12px; color: var(--teal); font: 12px var(--mono); text-transform: uppercase; }
.project-meta span + span::before { content: "/"; margin-right: 12px; color: var(--line); }
.project h3 { margin: 16px 0; font: 700 clamp(30px, 3vw, 48px)/1.04 var(--serif); }
.project-copy > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.project dl { margin: 30px 0 0; }
.project dl div { display: grid; grid-template-columns: 76px 1fr; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.project dt { color: var(--teal); font: 11px var(--mono); }
.project dd { margin: 0; font-size: 13px; line-height: 1.5; }
.project-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.project-links a { position: relative; padding-bottom: 6px; font-size: 13px; font-weight: 700; text-decoration: none; }
.project-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--coral); transform: scaleX(.25); transform-origin: left; transition: transform .25s ease; }
.project-links a:hover::after { transform: scaleX(1); }

.experience { background: var(--paper-soft); }
.timeline { position: relative; max-width: var(--max); margin: 0 auto; }
.timeline::before, .timeline-progress { content: ""; position: absolute; left: 53px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-progress { z-index: 1; bottom: auto; height: 0; background: var(--teal); transition: height .15s linear; }
.timeline-item { position: relative; z-index: 2; display: grid; grid-template-columns: 105px 1.1fr .8fr 1.4fr; gap: 34px; min-height: 155px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline-index { width: 44px; height: 44px; display: grid; place-items: center; margin-left: 32px; border: 2px solid var(--paper-soft); outline: 1px solid var(--teal); border-radius: 50%; background: var(--paper-soft); color: var(--coral); font: 12px var(--mono); }
.timeline-title h3 { margin: 0 0 7px; font: 700 25px/1.1 var(--serif); }
.timeline-title p, .timeline-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.timeline-date strong, .timeline-date span { display: block; font-size: 13px; line-height: 1.5; }
.timeline-date span { margin-top: 8px; color: var(--coral); font-family: var(--mono); }

.capabilities { padding: 120px var(--gutter); color: #fff; background: var(--ink); }
.capabilities-inner { max-width: var(--max); margin: 0 auto; }
.section-header-dark { grid-template-columns: 170px 1fr; margin-left: 0; }
.section-header-dark .section-index { color: var(--teal-bright); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #2b3c40; border-bottom: 1px solid #2b3c40; }
.capability { min-width: 0; padding: 32px; border-right: 1px solid #2b3c40; }
.capability:last-child { border-right: 0; }
.capability-command { color: var(--teal-bright); font: 11px var(--mono); }
.capability h3 { margin: 20px 0 24px; font: 700 30px var(--serif); }
.capability ul { margin: 0; padding: 0; list-style: none; }
.capability li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #2b3c40; color: #cad5d7; font-size: 13px; transition: padding-left .2s ease, color .2s ease; }
.capability li:hover { padding-left: 8px; color: #fff; }
.capability li b { color: var(--coral); }

.about { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.about-lead { display: grid; grid-template-columns: 170px 1.5fr .8fr; gap: 40px; align-items: start; }
.about-lead h2 { margin: 0; font: 700 clamp(48px, 5.4vw, 82px)/.98 var(--serif); }
.about-lead > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.principles { margin: 80px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.principles li { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; min-height: 112px; border-bottom: 1px solid var(--line); transition: padding-left .2s ease, background-color .2s ease; }
.principles li:hover { padding-left: 14px; background: var(--paper-soft); }
.principles span { color: var(--coral); font: 13px var(--mono); }
.principles strong { font: 700 clamp(24px, 3vw, 38px) var(--serif); }
.principles b { color: var(--teal); font-size: 22px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 80px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { min-width: 0; padding: 28px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { margin-bottom: 12px; color: var(--teal); font: 11px var(--mono); }
.facts dd { margin: 0; font-size: 14px; line-height: 1.55; }

.contact { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 120px var(--gutter) 76px; color: #fff; background: var(--ink); }
.contact::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(56,208,201,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(56,208,201,.2) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg,transparent,#000); }
.contact-code { position: relative; z-index: 1; align-self: end; display: flex; flex-direction: column; color: #74878b; font: 14px/2 var(--mono); }
.contact-code span:first-child { color: var(--teal-bright); }
.contact-code span:last-child { color: var(--coral); }
.contact-content { position: relative; z-index: 1; max-width: 720px; }
.contact .section-index { color: var(--teal-bright); }
.contact h2 { margin: 28px 0 20px; font: 700 clamp(52px, 6vw, 88px)/.96 var(--serif); }
.contact-content > p { max-width: 650px; margin: 0; color: #c3d0d2; font-size: 16px; line-height: 1.7; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-links { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid #304246; border-bottom: 1px solid #304246; }
.contact-links a { display: flex; justify-content: space-between; padding: 24px 0; margin-right: 32px; border-right: 1px solid #304246; font-size: 14px; text-decoration: none; }
.contact-links a:last-child { border-right: 0; }
.contact-links span { color: var(--coral); }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px var(--gutter); color: #aab9bb; background: #020606; font-size: 12px; }
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 16px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes hero-settle { to { transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(5px); } }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-command { display: none; }
  .menu-button { justify-self: end; width: 42px; height: 42px; display: grid; place-content: center; gap: 7px; border: 0; background: transparent; color: inherit; }
  .menu-button span { width: 24px; height: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-nav { position: fixed; inset: 72px 0 auto; display: grid; padding: 22px var(--gutter); color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; text-decoration: none; }
  .hero-content { width: 72vw; }
  .section-header { grid-template-columns: 130px 1fr; }
  .section-header p { grid-column: 2; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability:nth-child(2) { border-right: 0; }
  .capability:nth-child(-n+2) { border-bottom: 1px solid #2b3c40; }
  .timeline-item { grid-template-columns: 90px 1fr 1fr; }
  .timeline-description { grid-column: 2 / -1; }
  .about-lead { grid-template-columns: 130px 1fr; }
  .about-lead > p { grid-column: 2; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header { height: 64px; }
  .brand { max-width: calc(100vw - 100px); }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav { top: 64px; }
  .hero { min-height: max(760px, calc(100svh - 34px)); }
  .hero-media { inset: 0 0 38% 15%; }
  .hero-media img { object-position: 66% center; }
  .hero-scrim { background: linear-gradient(180deg,rgba(7,17,19,.05) 0%,rgba(7,17,19,.5) 34%,rgba(7,17,19,.98) 61%,#071113 100%); }
  .hero-grid { mask-image: linear-gradient(180deg,#000,transparent 62%); }
  .hero-content { width: 100%; min-height: max(760px, calc(100svh - 34px)); justify-content: flex-end; padding-top: 290px; padding-bottom: 70px; }
  .terminal-line { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-role { margin-top: 14px; font-size: 18px; }
  .hero-headline { margin-top: 20px; font-size: 24px; }
  .hero-summary { font-size: 14px; line-height: 1.6; }
  .hero-summary, .hero-links { display: none; }
  .hero-actions { display: grid; }
  .hero-actions .command { width: 100%; }
  .hero-links { gap: 16px; }
  .hero-location { display: none; }
  .hero-next { right: 20px; bottom: 18px; }
  .proof { grid-template-columns: 1fr; gap: 44px; padding-top: 76px; padding-bottom: 76px; }
  .proof-statement h2 { font-size: 38px; }
  .proof-item { grid-template-columns: 34px 120px 1fr; }
  .proof-item strong { font-size: 20px; }
  .proof-item p { font-size: 12px; }
  .section, .capabilities { padding-top: 86px; padding-bottom: 86px; }
  .section-header, .section-header-dark { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .section-header p { grid-column: auto; }
  .section-header h2 { font-size: 48px; }
  .project, .project:nth-child(even) { width: 100%; grid-template-columns: minmax(0,1fr); min-height: 0; }
  .project:nth-child(even) .project-media { order: 0; }
  .project-media { width: 100%; min-height: 280px; aspect-ratio: 16/10; }
  .project-copy { padding: 34px 0 54px; }
  .project dl div { grid-template-columns: 64px 1fr; }
  .timeline::before, .timeline-progress { left: 21px; }
  .timeline-item { grid-template-columns: 54px 1fr; gap: 18px; align-items: start; padding: 32px 0; }
  .timeline-index { width: 38px; height: 38px; margin-left: 2px; }
  .timeline-date, .timeline-description { grid-column: 2; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability, .capability:nth-child(2) { padding: 28px 0; border-right: 0; border-bottom: 1px solid #2b3c40; }
  .about-lead { grid-template-columns: 1fr; gap: 24px; }
  .about-lead > p { grid-column: auto; }
  .about-lead h2 { font-size: 48px; }
  .principles { margin-top: 56px; }
  .principles li { grid-template-columns: 54px 1fr 24px; min-height: 92px; }
  .principles strong { font-size: 22px; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; padding-top: 86px; }
  .contact-code { order: 2; margin-top: 34px; font-size: 12px; }
  .contact h2 { font-size: 54px; }
  .contact-links { grid-template-columns: 1fr; margin-top: 44px; }
  .contact-links a { margin: 0; border-right: 0; border-bottom: 1px solid #304246; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
