:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #0d111b;
  --panel: #121722;
  --ink: #f2f0e9;
  --muted: #9ca2ad;
  --line: rgba(242, 240, 233, 0.14);
  --accent: #7dd3fc;
  --accent-dark: #38bdf8;
  --warm: #ff7657;
  --max: 1320px;
  --side: clamp(22px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}
body::before {
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; margin: 0; }
em { color: var(--accent); font-style: normal; }
.wrap { margin-inline: auto; max-width: var(--max); padding-inline: var(--side); }
.section { padding-block: clamp(96px, 12vw, 180px); }
.kicker, .eyebrow {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker { margin-bottom: 28px; }

.site-header {
  align-items: center;
  background: rgba(8, 11, 18, .72);
  border-bottom: 1px solid transparent;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 76px;
  left: 0;
  padding-inline: var(--side);
  position: fixed;
  right: 0;
  top: 0;
  transition: background .25s, border-color .25s;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { background: rgba(8, 11, 18, .94); border-color: var(--line); }
.brand { align-items: center; display: flex; font-size: .74rem; font-weight: 600; gap: 12px; letter-spacing: .07em; text-transform: uppercase; }
.brand-mark { align-items: center; background: var(--accent); color: var(--bg); display: inline-flex; font-size: .67rem; height: 31px; justify-content: center; letter-spacing: -.03em; width: 31px; }
.nav { display: flex; gap: clamp(24px, 3vw, 48px); }
.nav a, .header-cta { color: var(--muted); font-size: .71rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: color .2s; }
.nav a:hover, .header-cta:hover { color: var(--accent); }
.header-cta { justify-self: end; }
.header-cta span { color: var(--accent); margin-left: 6px; }

.hero { align-items: center; display: grid; gap: clamp(48px, 7vw, 110px); grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); min-height: 100svh; padding-bottom: 80px; padding-top: 140px; }
.eyebrow { align-items: center; display: flex; gap: 12px; margin-bottom: 34px; }
.eyebrow span { background: var(--accent); height: 7px; width: 7px; }
h1 { font-size: clamp(4rem, 7.5vw, 7.8rem); font-weight: 500; letter-spacing: -.065em; line-height: .86; }
.hero-lead { color: #c7cbd2; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; margin-top: 38px; max-width: 55ch; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 30px; margin-top: 42px; }
.button { align-items: center; display: inline-flex; font-size: .75rem; font-weight: 600; gap: 22px; justify-content: center; letter-spacing: .1em; min-height: 56px; padding: 0 24px; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--accent); color: var(--bg); }
.button-primary:hover { background: #fff; }
.text-link { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .76rem; letter-spacing: .08em; padding-bottom: 8px; text-transform: uppercase; transition: color .2s, border-color .2s; }
.text-link:hover { border-color: var(--accent); color: var(--ink); }
.text-link span { color: var(--accent); margin-left: 8px; }
.hero-visual { justify-self: end; max-width: 470px; padding: 22px 22px 0 0; position: relative; width: 100%; }
.portrait {
  animation: portrait-float 7s ease-in-out infinite;
  aspect-ratio: .82;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .42), 0 0 0 7px rgba(125, 211, 252, .035);
  margin: 0;
  overflow: hidden;
  position: relative;
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.portrait:hover {
  border-color: rgba(125, 211, 252, .42);
  box-shadow: 0 42px 90px rgba(0, 0, 0, .5), 0 0 0 7px rgba(125, 211, 252, .07);
}
.portrait::after { background: linear-gradient(180deg, transparent 55%, rgba(8,11,18,.35)); content: ""; inset: 0; position: absolute; }
.portrait img { height: 100%; object-fit: cover; object-position: 24% 50%; width: 100%; }
@keyframes portrait-float {
  0%, 100% { transform: perspective(1000px) translateY(0) rotateY(-2deg) rotateX(1deg); }
  50% { transform: perspective(1000px) translateY(-10px) rotateY(1deg) rotateX(-.5deg); }
}

.proof-bar { background: var(--accent); color: var(--bg); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 30px; }
.proof-grid div { align-items: center; border-right: 1px solid rgba(8,11,18,.24); display: flex; gap: 15px; min-width: 0; padding-inline: clamp(12px, 2.5vw, 38px); }
.proof-grid div:first-child { padding-left: 0; }
.proof-grid div:last-child { border: 0; padding-right: 0; }
.proof-grid strong { font-family: "Manrope", sans-serif; font-size: clamp(1.55rem, 2.2vw, 2.2rem); letter-spacing: -.05em; white-space: nowrap; }
.proof-grid span { font-size: .69rem; font-weight: 600; line-height: 1.35; text-transform: uppercase; }

.section-intro { display: grid; grid-template-columns: .65fr 1.8fr; }
.section-intro .kicker { padding-top: 10px; }
h2 { font-size: clamp(2.7rem, 5vw, 5.3rem); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.role { border-bottom: 1px solid var(--line); }
.role-definition { margin-left: 32.5%; margin-top: clamp(60px, 9vw, 130px); }
.role-lead { color: #c7cbd2; font-size: clamp(1.15rem, 1.8vw, 1.55rem); line-height: 1.58; max-width: 800px; }
.role-spectrum { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.role-spectrum article { border: 1px solid var(--line); margin-left: -1px; min-height: 260px; padding: 26px; }
.role-spectrum article > span, .method-number, .capability-list article > span, .project-top { color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.role-spectrum h3 { font-size: 1.15rem; font-weight: 600; margin-top: 60px; }
.role-spectrum p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: 13px; }
.role-spectrum .is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: translateY(-12px); }
.role-spectrum .is-active > span, .role-spectrum .is-active p { color: rgba(8,11,18,.7); }

.method { background: var(--bg-soft); }
.method-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin-top: 90px; }
.method-grid article { border-left: 1px solid var(--line); min-height: 330px; padding: 0 clamp(24px, 3vw, 45px); }
.method-grid article:last-child { border-right: 1px solid var(--line); }
.method-number { color: var(--accent); }
.method-grid h3 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 500; letter-spacing: -.04em; margin-top: 100px; }
.method-grid p { color: var(--muted); font-size: .96rem; line-height: 1.7; margin-top: 20px; max-width: 34ch; }

.impact { display: grid; gap: clamp(60px, 9vw, 150px); grid-template-columns: .85fr 1.15fr; }
.impact-heading { position: sticky; top: 130px; align-self: start; }
.impact-heading > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-top: 36px; max-width: 50ch; }
.capability-list { border-top: 1px solid var(--line); }
.capability-list article { border-bottom: 1px solid var(--line); display: grid; gap: 30px; grid-template-columns: 42px 1fr; padding: 34px 0; }
.capability-list h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; }
.capability-list p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin-top: 10px; }

.projects { background: #eceae3; color: #11151c; }
.projects em { color: #e34e31; }
.projects .kicker { color: #e34e31; }
.projects-head { align-items: end; display: grid; gap: 80px; grid-template-columns: 1.4fr .6fr; }
.projects-summary { display: grid; gap: 24px; }
.projects-summary > p { color: #5f646b; font-size: 1rem; line-height: 1.7; }
.projects-summary .project-impact { border-left: 3px solid #e34e31; color: #30343a; font-size: .88rem; padding-left: 18px; }
.project-impact strong { color: #11151c; font-weight: 600; }
.project-grid { display: grid; gap: 18px; grid-template-columns: 1.25fr .75fr; margin-top: 80px; }
.project-card { background: #f8f7f2; display: flex; flex-direction: column; min-height: 390px; padding: clamp(26px, 3vw, 42px); transition: transform .25s; }
.project-card:hover { transform: translateY(-6px); }
.project-card:nth-child(3) { grid-column: 2; }
.project-featured { background: #171c25; color: var(--ink); grid-row: span 2; min-height: 798px; }
.project-top { display: flex; justify-content: space-between; }
.project-featured .project-top { color: #9096a0; }
.project-body { margin-block: auto; }
.project-body h3 { font-size: clamp(2rem, 3.5vw, 3.7rem); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.project-body p { color: #5f646b; font-size: .98rem; line-height: 1.7; margin-top: 24px; max-width: 52ch; }
.project-featured .project-body p { color: #aeb3bc; font-size: 1.08rem; }
.project-footer { align-items: end; border-top: 1px solid rgba(17,21,28,.15); display: flex; gap: 20px; justify-content: space-between; padding-top: 22px; }
.project-featured .project-footer { border-color: var(--line); }
.project-footer p { color: #777c83; font-size: .7rem; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase; }
.project-footer a { color: var(--accent); font-size: .72rem; font-weight: 600; letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; }

.discipline { align-items: center; display: grid; gap: clamp(60px, 10vw, 150px); grid-template-columns: .8fr 1.2fr; }
.discipline-photo { margin: 0; position: relative; }
.discipline-photo img { aspect-ratio: .82; filter: saturate(.7) contrast(1.04); height: 100%; object-fit: cover; width: 100%; }
.discipline-photo figcaption { background: var(--accent); bottom: -18px; color: var(--bg); font-size: .65rem; font-weight: 600; letter-spacing: .16em; padding: 14px 18px; position: absolute; right: -18px; text-transform: uppercase; }
.discipline-copy > p:not(.kicker) { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-top: 26px; max-width: 58ch; }

.contact { background: var(--accent); color: var(--bg); text-align: center; }
.contact .kicker { color: rgba(8,11,18,.65); }
.contact em { color: #e34e31; }
.contact h2 { font-size: clamp(2.7rem, 6vw, 6.5rem); margin-inline: auto; }
.button-light { background: var(--bg); color: var(--ink); margin-top: 54px; }
.button-light:hover { background: #e34e31; color: #fff; }
.footer { align-items: center; display: flex; justify-content: space-between; min-height: 110px; }
.footer p, .footer a { color: var(--muted); font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
.footer a:hover { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .portrait { animation: none; transform: none; } }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr 320px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid div { border-bottom: 1px solid rgba(8,11,18,.24); padding: 22px; }
  .proof-grid div:nth-child(2) { border-right: 0; }
  .proof-grid div:nth-child(3), .proof-grid div:nth-child(4) { border-bottom: 0; }
  .section-intro { grid-template-columns: 1fr; }
  .role-definition { margin-left: 0; }
  .impact { grid-template-columns: 1fr; }
  .impact-heading { position: static; }
  .projects-head { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { height: 64px; }
  .brand > span:last-child { display: none; }
  .header-cta { font-size: .66rem; }
  .hero { display: flex; flex-direction: column; min-height: auto; padding-bottom: 100px; padding-top: 115px; }
  h1 { font-size: clamp(3.65rem, 18vw, 5.3rem); }
  .hero-lead { font-size: 1.05rem; margin-top: 28px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 22px; }
  .button { width: 100%; }
  .text-link { align-self: flex-start; }
  .hero-visual { margin-top: 18px; max-width: none; padding: 0; }
  .portrait { aspect-ratio: 1; border-radius: 24px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div, .proof-grid div:first-child, .proof-grid div:last-child { border-bottom: 1px solid rgba(8,11,18,.24); border-right: 0; padding: 18px 0; }
  .proof-grid div:last-child { border-bottom: 0; }
  h2 { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .role-spectrum, .method-grid { grid-template-columns: 1fr; }
  .role-spectrum article { margin: -1px 0 0; min-height: auto; padding: 24px; }
  .role-spectrum h3 { margin-top: 34px; }
  .role-spectrum .is-active { transform: none; }
  .method-grid { margin-top: 60px; }
  .method-grid article, .method-grid article:last-child { border: 0; border-top: 1px solid var(--line); min-height: auto; padding: 32px 0 48px; }
  .method-grid h3 { margin-top: 40px; }
  .project-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .project-card, .project-featured { grid-column: auto !important; grid-row: auto; min-height: 480px; }
  .project-featured { min-height: 620px; }
  .project-footer { align-items: flex-start; flex-direction: column; }
  .discipline { display: flex; flex-direction: column-reverse; }
  .discipline-photo figcaption { right: 12px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 13px; }
}
