@font-face {
  font-family: "Heca Sans";
  src: url("/assets/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Heca Sans";
  src: url("/assets/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: rgba(15, 29, 48, 0.78);
  --surface-solid: #101f34;
  --surface-2: #14263e;
  --text: #f4f7fb;
  --muted: #a4b2c4;
  --muted-strong: #c7d1dd;
  --line: rgba(185, 209, 237, 0.14);
  --line-strong: rgba(185, 209, 237, 0.28);
  --accent: #54b9f5;
  --accent-2: #596ecf;
  --accent-soft: rgba(84, 185, 245, 0.15);
  --header-bg: rgba(7, 17, 31, 0.7);
  --logo-filter: brightness(0) invert(1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shell: 1240px;
  --header-h: 94px;
}

html[data-theme="light"] {
  --bg: #f2f7fb;
  --bg-soft: #e9f1f7;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --surface-2: #e8f1f8;
  --text: #102033;
  --muted: #5d6b7d;
  --muted-strong: #3f5064;
  --line: rgba(36, 72, 107, 0.12);
  --line-strong: rgba(36, 72, 107, 0.24);
  --accent: #168ed0;
  --accent-2: #465fc7;
  --accent-soft: rgba(22, 142, 208, 0.1);
  --header-bg: rgba(242, 247, 251, 0.74);
  --logo-filter: none;
  --shadow: 0 30px 80px rgba(36, 72, 107, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Heca Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 85% 7%, rgba(68, 117, 207, .2), transparent 32%),
    radial-gradient(circle at 8% 42%, rgba(54, 166, 225, .12), transparent 28%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .1));
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 85% 7%, rgba(68, 117, 207, .13), transparent 32%),
    radial-gradient(circle at 8% 42%, rgba(54, 166, 225, .1), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.35), transparent);
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: rgba(84, 185, 245, .3); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 1000;
  padding: 11px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 18px; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.section-pad { padding: 120px 0; position: relative; }

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(61, 165, 225, .13), transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .25s ease;
}
@media (hover: hover) and (pointer: fine) { body:hover .cursor-glow { opacity: 1; } }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, height .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  height: 76px;
  background: var(--header-bg);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: 164px; height: auto; filter: var(--logo-filter); transition: filter .3s ease, width .3s ease; }
html[data-theme="light"] .brand img { mix-blend-mode: multiply; }
.site-header.is-scrolled .brand img { width: 145px; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  position: relative;
  padding: 11px 15px;
  color: var(--muted-strong);
  font-size: 14px;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: var(--accent-soft); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.theme-toggle, .menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.theme-toggle:hover { transform: rotate(8deg); border-color: var(--line-strong); }
.theme-toggle svg {
  position: absolute;
  inset: 11px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .2s ease, transform .35s ease;
}
html[data-theme="dark"] .sun-icon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .moon-icon { opacity: 0; transform: rotate(-60deg) scale(.5); }
html[data-theme="light"] .sun-icon { opacity: 0; transform: rotate(60deg) scale(.5); }
html[data-theme="light"] .moon-icon { opacity: 1; transform: rotate(0) scale(1); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; padding: 12px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 1.5px; background: currentColor; margin: 4px 0; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-5.5px) rotate(-45deg); }

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 80px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(380px, .87fr); gap: 84px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.hero h1, .contact-hero h1 {
  max-width: 880px;
  margin-bottom: 30px;
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
}
.hero h1 em, .contact-hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead {
  max-width: 680px;
  margin-bottom: 38px;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .015em;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { background: linear-gradient(135deg, var(--accent), #3985d4); color: #07111f; box-shadow: 0 18px 42px rgba(37, 145, 211, .24); }
.button-primary:hover { box-shadow: 0 22px 50px rgba(37, 145, 211, .32); }
.button-ghost { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button-ghost:hover { border-color: var(--accent); }
.button-light { background: #fff; color: #0c1d32; }

.hero-visual { position: relative; z-index: 2; }
.hero-panel {
  position: relative;
  min-height: 470px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, transparent 10%, rgba(3, 12, 24, .78) 90%),
    url("/assets/back.c01247b4.png") 68% center / cover no-repeat,
    var(--surface-solid);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
html[data-theme="light"] .hero-panel { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(234,244,252,.9)), url("/assets/back.c01247b4.png") 68% center / cover no-repeat, var(--surface-solid); }
.hero-panel::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -90px;
  right: -70px;
  border: 1px solid rgba(106, 192, 244, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(106, 192, 244, .04), 0 0 0 88px rgba(106, 192, 244, .025);
}
.hero-logo { width: 240px; margin-bottom: auto; filter: brightness(0) invert(1); opacity: .92; }
html[data-theme="light"] .hero-logo { filter: none; mix-blend-mode: multiply; }
.hero-panel-line { width: 100%; height: 1px; margin: 24px 0; background: linear-gradient(90deg, var(--accent), transparent); }
.hero-panel > p { max-width: 340px; margin-bottom: 28px; font-size: 22px; line-height: 1.35; }
.metric-row { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-row span { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted-strong); font-size: 11px; }

.hero-art { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); animation: float 9s ease-in-out infinite; }
.orb-one { width: 470px; height: 470px; right: 4%; top: 13%; border: 1px solid rgba(86, 178, 234, .18); box-shadow: inset 0 0 90px rgba(74, 142, 211, .08); }
.orb-two { width: 170px; height: 170px; left: 4%; bottom: 7%; background: radial-gradient(circle at 30% 30%, rgba(89, 181, 238, .15), transparent 68%); animation-delay: -3s; }
.molecule-grid { position: absolute; right: -7%; bottom: -9%; width: 760px; height: 380px; opacity: .18; background: url("/assets/back.c01247b4.png") center / contain no-repeat; animation: drift 14s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(-18px,-10px,0) rotate(1deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 32px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue i { width: 34px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0 auto 0 -100%; width: 100%; background: var(--accent); animation: scrollLine 2s ease infinite; }
@keyframes scrollLine { 50%,100% { left: 100%; } }

.about { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.section-heading { max-width: 940px; margin-bottom: 72px; }
.section-heading h2, .contact-banner h2, .contact-card h2, .office-card h2, .people-statement h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 500;
}
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 110px; padding: 56px 0 80px; border-top: 1px solid var(--line); }
.large-copy { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.38; letter-spacing: -.025em; }
.about-detail { display: grid; align-content: start; gap: 26px; color: var(--muted-strong); font-size: 17px; }
.about-detail p { margin: 0; }
.discipline-track { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.track-inner { width: max-content; display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; letter-spacing: .11em; text-transform: uppercase; animation: marquee 28s linear infinite; }
.track-inner i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-12%); } }

.portfolio { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 80px; }
.split-heading > p { max-width: 420px; margin: 0 0 8px auto; color: var(--muted-strong); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.portfolio-card {
  min-height: 510px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 50px rgba(0,0,0,.08);
  transform-style: preserve-3d;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.portfolio-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; color: var(--muted); font-size: 12px; }
.card-topline a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.card-topline a:hover { color: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.logo-stage { min-height: 175px; display: grid; place-items: center; margin-bottom: 28px; padding: 26px; border-radius: 18px; background: #fff; overflow: hidden; }
.logo-stage img { width: auto; max-width: 74%; max-height: 92px; object-fit: contain; }
.portfolio-card:first-child .logo-stage img { max-width: 90%; }
.portfolio-card h3 { margin-bottom: 14px; font-size: 24px; letter-spacing: -.02em; }
.portfolio-card p { margin: 0; color: var(--muted); font-size: 15px; }
.portfolio-rail {
  margin-top: 22px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.rail-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.rail-logo { min-height: 70px; display: grid; place-items: center; padding: 12px 18px; border-left: 1px solid var(--line); }
.rail-logo img { max-width: 150px; max-height: 46px; object-fit: contain; filter: grayscale(1); opacity: .68; transition: filter .25s ease, opacity .25s ease, transform .25s ease; }
.rail-logo:hover img { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }

.contact-banner { padding-top: 90px; }
.banner-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
  padding: 70px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(120deg, #172a66, #1687c8 56%, #63c7ef);
  box-shadow: var(--shadow);
}
.banner-card::after { content: ""; position: absolute; width: 540px; height: 540px; right: -150px; top: -240px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.04), 0 0 0 110px rgba(255,255,255,.025); }
.banner-card > * { position: relative; z-index: 1; }
.banner-card .eyebrow { color: #fff; opacity: .82; }
.banner-card h2 { max-width: 790px; }

.site-footer { padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: .75fr 1fr .65fr; gap: 48px; align-items: center; padding-bottom: 40px; }
.footer-brand img { width: 164px; filter: var(--logo-filter); }
html[data-theme="light"] .footer-brand img { filter: none; mix-blend-mode: multiply; }
.footer-grid > p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; color: var(--muted-strong); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Contact page */
.contact-hero { min-height: 760px; padding-top: calc(var(--header-h) + 110px); overflow: hidden; display: flex; align-items: center; }
.contact-backdrop { position: absolute; inset: 0; opacity: .2; background: url("/assets/back.c01247b4.png") 75% 56% / min(1200px, 80vw) auto no-repeat; }
.contact-hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -180px; top: 20px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 70px rgba(68,117,207,.03), 0 0 0 140px rgba(68,117,207,.02); }
.contact-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.contact-intro > p:last-child { max-width: 610px; color: var(--muted-strong); font-size: 19px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 70px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--accent); }
.contact-orbit { position: relative; aspect-ratio: 1; max-width: 500px; margin-left: auto; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit-ring::before { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 28px var(--accent); }
.ring-one { inset: 8%; }
.ring-one::before { left: 14%; top: 7%; }
.ring-two { inset: 23%; animation-direction: reverse; animation-duration: 12s; }
.ring-two::before { right: 6%; bottom: 20%; width: 9px; height: 9px; }
.orbit-core { width: 46%; aspect-ratio: 1; display: grid; place-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.orbit-core img { filter: var(--logo-filter); }
html[data-theme="light"] .orbit-core img { filter: none; mix-blend-mode: multiply; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-details { padding-top: 40px; }
.contact-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.contact-card { min-height: 430px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); display: flex; flex-direction: column; }
.contact-icon { width: 52px; height: 52px; margin-bottom: auto; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); }
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-label { margin-bottom: 10px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-card h2 { margin-bottom: 26px; font-size: clamp(30px, 3vw, 45px); }
.contact-links { display: grid; gap: 2px; }
.contact-links a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted-strong); font-size: 16px; transition: color .2s ease, padding-left .2s ease; }
.contact-links a:hover { color: var(--accent); padding-left: 7px; }
.office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.office-card { min-height: 310px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-soft); display: grid; grid-template-columns: auto 1fr; gap: 38px; }
.office-number { color: var(--accent); font-size: 12px; }
.office-card h2 { margin-bottom: 28px; font-size: 42px; }
.office-card address { color: var(--muted-strong); font-style: normal; font-size: 17px; line-height: 1.8; }
.people-statement { margin-top: 22px; padding: 64px; display: flex; align-items: flex-start; gap: 34px; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(125deg, var(--accent-soft), transparent); }
.quote-mark { color: var(--accent); font-size: 88px; line-height: .7; }
.people-statement h2 { margin-bottom: 12px; font-size: clamp(34px, 4vw, 56px); }
.people-statement p { margin: 0; color: var(--muted-strong); font-size: 18px; }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .22s; }
.js .reveal[data-delay="3"] { transition-delay: .32s; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.tilt-card { will-change: transform; transition: transform .16s ease-out, border-color .3s ease, box-shadow .3s ease; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: 4px; }

@media (max-width: 1024px) {
  :root { --header-h: 82px; }
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .section-pad { padding: 96px 0; }
  .hero { min-height: auto; padding-top: 150px; padding-bottom: 110px; }
  .hero-grid, .contact-hero-grid { grid-template-columns: 1fr; gap: 58px; }
  .hero h1, .contact-hero h1 { max-width: 820px; }
  .hero-visual { max-width: 700px; }
  .hero-panel { min-height: 420px; }
  .scroll-cue { display: none; }
  .about-grid { gap: 55px; }
  .split-heading { grid-template-columns: 1fr; gap: 30px; }
  .split-heading > p { margin-left: 0; }
  .banner-card { padding: 54px; }
  .contact-hero { min-height: auto; padding-top: 160px; }
  .contact-orbit { display: none; }
  .contact-intro { max-width: 850px; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section-pad { padding: 76px 0; }
  .site-header, .site-header.is-scrolled { height: 72px; }
  .brand img, .site-header.is-scrolled .brand img { width: 132px; }
  .menu-toggle { display: block; order: 2; }
  .theme-toggle { order: 3; }
  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 80px;
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.98);
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .site-nav a { padding: 14px 16px; }
  .header-inner { gap: 10px; }
  .hero { padding-top: 128px; padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero h1, .contact-hero h1 { font-size: clamp(45px, 14vw, 68px); }
  .hero-lead { font-size: 16px; }
  .hero-panel { min-height: 380px; padding: 28px; }
  .hero-logo { width: 190px; }
  .hero-panel > p { font-size: 20px; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .contact-banner h2 { font-size: clamp(36px, 10vw, 50px); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 60px; }
  .large-copy { font-size: 27px; }
  .portfolio-grid, .contact-card-grid, .office-grid { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 490px; }
  .portfolio-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; }
  .rail-label { grid-column: 1 / -1; }
  .rail-logo { border-left: 0; border-top: 1px solid var(--line); }
  .banner-card { padding: 38px 28px; align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .contact-hero { padding-top: 128px; padding-bottom: 70px; }
  .back-link { margin-bottom: 48px; }
  .contact-card { min-height: 390px; padding: 30px; }
  .office-card { min-height: 270px; padding: 30px; gap: 22px; }
  .people-statement { padding: 38px 26px; gap: 18px; }
  .quote-mark { font-size: 68px; }
}

@media (max-width: 460px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-panel { min-height: 350px; }
  .metric-row span:nth-child(3) { display: none; }
  .portfolio-card { padding: 22px; min-height: 455px; }
  .logo-stage { min-height: 150px; }
  .contact-links a { font-size: 14px; }
  .office-card { grid-template-columns: 1fr; }
}

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