:root {
  --paper: #f4f4f1;
  --paper-2: #ecece7;
  --ink: #202426;
  --muted: #687074;
  --line: rgba(32, 36, 38, 0.14);
  --accent: #4b6978;
  --accent-dark: #344c58;
  --dark: #202629;
  --header-h: 78px;
  --footer-h: 78px;
  --measured-header-h: var(--header-h);
  --measured-footer-h: var(--footer-h);
  --panel-height: calc(100dvh - var(--measured-header-h) - var(--measured-footer-h));
  --page: min(1760px, calc(100vw - clamp(40px, 5vw, 96px)));
  --sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html {
  background: var(--paper-2);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 300px;
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom));
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.page-width { width: var(--page); margin-inline: auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 12px; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Fixed animated identity background */
.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 24%, rgba(75, 105, 120, .16), transparent 35%),
    radial-gradient(circle at 14% 82%, rgba(255, 255, 255, .78), transparent 38%),
    linear-gradient(135deg, #f7f7f3 0%, #ecece7 52%, #f5f5f1 100%);
}
.site-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .42) 43%, transparent 65%);
  transform: translateX(-70%);
  animation: backdropLight 18s ease-in-out infinite;
}
.site-backdrop-glow {
  position: absolute;
  right: -12vw;
  top: 12vh;
  width: min(58vw, 980px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(75, 105, 120, .13);
  filter: blur(90px);
  animation: backdropGlow 14s ease-in-out infinite alternate;
}
.backdrop-identity {
  position: absolute;
  left: 68%;
  top: 50%;
  width: min(64vw, 1040px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transform-origin: center;
  animation: identityFloat 16s ease-in-out infinite;
  will-change: transform;
}
.site-backdrop-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58%;
  opacity: .10;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
}
.site-orbits {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .88;
}
.site-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(75, 105, 120, .17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.site-orbit::before,
.site-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(75, 105, 120, .72);
  box-shadow: 0 0 16px rgba(75, 105, 120, .32);
}
.site-orbit-a { width: 100%; animation: orbitSpin 38s linear infinite; }
.site-orbit-b { width: 73%; animation: orbitSpinReverse 30s linear infinite; }
.site-orbit-c { width: 47%; animation: orbitSpin 24s linear infinite; }
.site-orbit-a::before { width: 7px; height: 7px; left: 17%; top: 10%; }
.site-orbit-a::after { width: 3px; height: 3px; right: 9%; bottom: 19%; }
.site-orbit-b::before { width: 5px; height: 5px; right: 3%; top: 44%; }
.site-orbit-b::after { width: 3px; height: 3px; left: 15%; bottom: 17%; }
.site-orbit-c::before { width: 4px; height: 4px; left: 27%; bottom: 3%; }
.site-orbit-c::after { width: 2px; height: 2px; right: 20%; top: 11%; }

@keyframes backdropLight {
  0%, 24% { transform: translateX(-70%); opacity: 0; }
  38% { opacity: .55; }
  62% { opacity: .18; }
  76%, 100% { transform: translateX(80%); opacity: 0; }
}
@keyframes backdropGlow {
  from { transform: translate3d(0, 0, 0) scale(.94); opacity: .65; }
  to { transform: translate3d(-4vw, 3vh, 0) scale(1.08); opacity: 1; }
}
@keyframes identityFloat {
  0%, 100% { transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1); }
  50% { transform: translate(-50%, -50%) translate3d(-14px, -10px, 0) scale(1.018); }
}
@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbitSpinReverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Logo introduction */
.intro {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: var(--paper);
  cursor: pointer;
  transition: opacity .7s ease, visibility .7s ease;
}
.intro::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(32, 36, 38, .08);
  pointer-events: none;
}
.intro img {
  width: min(620px, 70vw);
  opacity: 0;
  transform: translateY(10px) scale(.985);
  animation: introLogo 1s .15s ease forwards;
}
.skip-intro-once .intro { display: none; }
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes introLogo { to { opacity: 1; transform: none; } }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(244, 244, 241, .82);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 244, 241, .94);
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; cursor: pointer; }
.brand img { width: 196px; height: auto; transition: opacity .2s ease, transform .2s ease; }
.brand:hover img,
.brand:focus-visible img { opacity: .72; transform: translateY(-1px); }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a {
  position: relative;
  color: #303537;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-button {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-word { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.menu-lines { position: relative; display: block; width: 25px; height: 16px; }
.menu-lines i {
  position: absolute;
  left: 0;
  width: 25px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.menu-lines i:first-child { top: 4px; }
.menu-lines i:last-child { top: 11px; }
.menu-button.is-active .menu-lines i:first-child { top: 8px; transform: rotate(45deg); }
.menu-button.is-active .menu-lines i:last-child { top: 8px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  opacity: 0;
  background: var(--paper);
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu-inner {
  width: var(--page);
  height: 100%;
  margin: auto;
  padding: calc(var(--header-h) + 38px) 0 calc(var(--footer-h) + 28px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu-home { display: inline-flex; align-self: flex-start; margin-bottom: 34px; }
.mobile-menu-logo { width: min(280px, 68vw); }
.mobile-links { border-top: 1px solid var(--line); }
.mobile-links a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-links small { color: var(--accent-dark); font: 400 10px var(--mono); }
.mobile-links span { font-size: clamp(21px, 6vw, 30px); font-weight: 400; letter-spacing: -.02em; }
.mobile-site-link {
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-dark);
  font: 500 12px var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Shared typography and layout */
main { position: relative; z-index: 1; }
.section { position: relative; border-top: 1px solid var(--line); }
.section-index,
.section-kicker,
.micro-label {
  margin: 0;
  color: var(--accent-dark);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.section-index.light { color: rgba(255, 255, 255, .65); }
h1,
h2,
h3,
p { text-wrap: pretty; }
h1,
h2,
h3 { margin-top: 0; color: var(--ink); }
h1 {
  margin-bottom: 28px;
  font-size: clamp(48px, 6.6vw, 98px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 4.5vw, 70px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.04em;
}
h3 { font-size: 25px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  align-items: end;
  gap: clamp(60px, 9vw, 170px);
  margin-bottom: 72px;
}
.section-summary { max-width: 640px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Landing section */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: calc(var(--header-h) + 72px) 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 244, 241, .20);
  backdrop-filter: blur(1px) saturate(106%);
  -webkit-backdrop-filter: blur(1px) saturate(106%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.1fr);
  align-items: center;
  gap: clamp(54px, 7vw, 132px);
}
.hero-identity {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(52px, 4.2vw, 66px) 0 10px;
}
.hero-logo { width: min(560px, 100%); }
.hero-copy { max-width: 780px; }
.hero-copy .section-kicker { margin-bottom: 24px; }
.hero-lead {
  max-width: 660px;
  margin: 0;
  color: #596064;
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 300;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.button {
  min-height: 50px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button.secondary { border-color: transparent; color: var(--ink); }
.button.secondary:hover { border-color: var(--line); background: rgba(255, 255, 255, .45); }
.hero-foot {
  position: relative;
  z-index: 1;
  margin-top: 74px;
  display: flex;
  justify-content: flex-start;
  color: #747b7e;
  font: 400 11px var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Full-screen content panels */
main > .section[id] {
  width: 100%;
  height: var(--panel-height);
  min-height: var(--panel-height);
  max-height: var(--panel-height);
  padding: 0;
  display: block;
  overflow: hidden;
  scroll-margin-top: 0;
}
.panel-scroll {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 105, 120, .42) transparent;
  -webkit-overflow-scrolling: touch;
}
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(75, 105, 120, .34);
  background-clip: padding-box;
}
.panel-content {
  width: 100%;
  min-height: 100%;
  padding-block: clamp(48px, 6.2vh, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-content > .split-heading,
.panel-content > .approach-grid,
.panel-content > .atelier-grid,
.panel-content > .contact-grid { flex: 0 0 auto; }
main > .section[id].is-scrollable::after {
  content: "Scroll within section";
  position: absolute;
  right: max(18px, calc((100vw - var(--page)) / 2));
  bottom: 14px;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(32, 36, 38, .10);
  background: rgba(244, 244, 241, .70);
  color: rgba(52, 76, 88, .72);
  font: 500 8px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.atelier.is-scrollable::after {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(28, 34, 37, .66);
  color: rgba(255, 255, 255, .68);
}

/* Capabilities */
.intro-copy {
  background: linear-gradient(110deg, rgba(248, 248, 245, .55), rgba(248, 248, 245, .34));
  backdrop-filter: blur(3px) saturate(106%);
  -webkit-backdrop-filter: blur(3px) saturate(106%);
}
.capability-list { border-top: 1px solid var(--line); }
.capability {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 76px minmax(220px, .65fr) minmax(320px, 1.2fr) minmax(190px, .55fr);
  align-items: start;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.capability-number { color: var(--accent-dark); font: 500 11px var(--mono); }
.capability h3 { margin: -3px 0 0; }
.capability p { margin: 0; color: var(--muted); }
.capability > span {
  color: var(--accent-dark);
  font: 400 11px/1.7 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Selected work */
.work {
  background: linear-gradient(110deg, rgba(232, 232, 226, .35), rgba(239, 239, 234, .55));
  backdrop-filter: blur(3px) saturate(108%);
  -webkit-backdrop-filter: blur(3px) saturate(108%);
}
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.4vw, 26px); }
.project-card {
  min-height: 470px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(32, 36, 38, .11);
  background: rgba(247, 247, 244, .72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-5px); background: #fff; box-shadow: 0 20px 50px rgba(32, 36, 38, .08); }
.project-card-dark { background: var(--dark); color: #fff; }
.project-card-dark:hover { background: #283033; }
.project-top {
  display: flex;
  justify-content: space-between;
  color: var(--accent-dark);
  font: 500 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-card-dark .project-top { color: rgba(255, 255, 255, .58); }
.project-body { margin: auto 0; padding: 55px 0; }
.project-body h3 { margin-bottom: 18px; font-size: clamp(28px, 2.5vw, 38px); }
.project-card-dark h3 { color: #fff; }
.project-body p { margin: 0; color: var(--muted); font-size: 17px; }
.project-card-dark p { color: rgba(255, 255, 255, .66); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font: 400 10px var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.project-card-dark .project-tags span { border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .68); }

/* Approach */
.approach {
  background: linear-gradient(110deg, rgba(248, 248, 245, .50), rgba(248, 248, 245, .30));
  backdrop-filter: blur(3px) saturate(106%);
  -webkit-backdrop-filter: blur(3px) saturate(106%);
}
.approach-grid {
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(520px, 1.1fr);
  align-items: start;
  gap: clamp(70px, 10vw, 190px);
}
.approach-heading > p:last-child { max-width: 560px; margin: 30px 0 0; color: var(--muted); font-size: 18px; }
.steps { border-top: 1px solid var(--line); }
.step {
  padding: 29px 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
.step small { padding-top: 3px; color: var(--accent-dark); font: 500 10px var(--mono); }
.step h3 { margin: 0 0 7px; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }

/* Matthew Pillay Atelier */
.atelier {
  position: relative;
  overflow: hidden;
  border-top: 0;
  background: var(--dark);
  color: #fff;
}
.atelier-mark { position: absolute; left: -4vw; bottom: -13vw; width: min(46vw, 700px); opacity: .045; }
.atelier-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(440px, .95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: clamp(70px, 9vw, 170px);
}
.atelier-logo-wrap img { width: min(650px, 100%); }
.atelier h2 { color: #fff; }
.atelier-copy > p:not(.section-index) { max-width: 660px; color: rgba(255, 255, 255, .67); font-size: 18px; }
.atelier-copy a {
  margin-top: 20px;
  padding-bottom: 7px;
  display: inline-flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.atelier-copy a:hover { border-color: #fff; }

/* Contact */
.contact {
  background: linear-gradient(110deg, rgba(244, 244, 241, .46), rgba(244, 244, 241, .28));
  backdrop-filter: blur(3px) saturate(106%);
  -webkit-backdrop-filter: blur(3px) saturate(106%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(500px, 1.12fr) minmax(420px, .88fr);
  align-items: end;
  gap: clamp(70px, 10vw, 190px);
}
.contact-copy > p { margin: 0 0 35px; color: var(--muted); font-size: 18px; }
.contact-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-links a {
  padding: 19px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
}
.contact-links a:hover { color: var(--accent-dark); }

/* Non-intrusive website update notice */
.update-notice {
  position: fixed;
  right: clamp(18px, 3vw, 44px);
  bottom: calc(var(--measured-footer-h) + 18px + env(safe-area-inset-bottom));
  z-index: 1400;
  width: min(430px, calc(100vw - 36px));
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(32, 36, 38, .18);
  background: rgba(244, 244, 241, .97);
  box-shadow: 0 16px 40px rgba(32, 36, 38, .16);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.update-notice[hidden] { display: none; }
.update-notice-copy { display: grid; gap: 2px; }
.update-notice-copy strong { font-size: 14px; font-weight: 600; }
.update-notice-copy span { color: var(--muted); font-size: 12px; }
.update-notice-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.update-notice button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.update-notice .update-refresh { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.update-notice button:hover { transform: translateY(-1px); }

/* Fixed two-paragraph footer */
.fixed-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  min-height: var(--footer-h);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(32, 36, 38, .22);
  background: rgba(244, 244, 241, .91);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}
.footer-inner {
  min-height: var(--footer-h);
  padding: 9px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.footer-inner p {
  margin: 0;
  color: #353c3f;
  font: 600 11.5px/1.38 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-inner p:last-child { color: #596164; font-size: 10.5px; }
.footer-inner a { color: inherit; }
.footer-inner a:hover { color: var(--accent-dark); }

@media (min-width: 1500px) {
  .hero { padding-top: calc(var(--header-h) + 84px); }
  .capability {
    grid-template-columns: 92px minmax(260px, .68fr) minmax(420px, 1.18fr) minmax(230px, .52fr);
    gap: 36px;
  }
  .project-card { min-height: 500px; padding: 34px; }
}

@media (max-width: 1040px) {
  :root { --page: min(100% - 44px, 940px); }
  .desktop-nav { display: none; }
  .menu-button { display: flex; }
  .hero-grid { grid-template-columns: .82fr 1.18fr; gap: 6vw; }
  .capability { grid-template-columns: 48px minmax(180px, .72fr) minmax(280px, 1.28fr); }
  .capability > span { grid-column: 2 / -1; }
  .project-card { min-height: 440px; }
  .backdrop-identity { left: 65%; width: min(84vw, 860px); }
  .site-backdrop-mark { width: 60%; opacity: .095; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; --footer-h: 94px; --page: calc(100% - 34px); }
  html { scroll-padding-top: 84px; }
  .intro::after { inset: 16px; }
  .intro img { width: min(520px, 82vw); }
  .brand img { width: 150px; }
  h1 { font-size: clamp(47px, 15vw, 72px); }
  h2 { font-size: clamp(38px, 11vw, 54px); }
  .hero { min-height: auto; padding: calc(var(--header-h) + 58px) 0 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-identity { min-height: 180px; padding: 18px 0 0; }
  .hero-logo { width: min(430px, 94%); }
  .hero-copy .section-kicker { margin-bottom: 18px; }
  .hero-lead { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-foot { display: none; }
  .split-heading { grid-template-columns: 1fr; gap: 34px; margin-bottom: 52px; }
  .section-summary { font-size: 17px; }
  .capability { grid-template-columns: 38px 1fr; gap: 14px; padding: 28px 0; }
  .capability h3 { font-size: 22px; }
  .capability p,
  .capability > span { grid-column: 2; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 410px; }
  .approach-grid,
  .atelier-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 58px; }
  .atelier-logo-wrap img { width: min(400px, 90%); }
  .panel-content { padding-block: 52px; }
  main > .section[id].is-scrollable::after { right: 12px; bottom: 10px; }
  .intro-copy,
  .work,
  .approach,
  .contact {
    backdrop-filter: blur(2px) saturate(104%);
    -webkit-backdrop-filter: blur(2px) saturate(104%);
  }
  .backdrop-identity { left: 50%; top: 50%; width: 112vw; }
  .site-backdrop-mark { width: 64%; opacity: .095; }
  .site-orbits { opacity: .82; }
  .site-orbit { border-color: rgba(75, 105, 120, .14); }
  .footer-inner { padding-inline: 8px; }
  .footer-inner p { font-size: 10.4px; line-height: 1.42; letter-spacing: .03em; }
  .footer-inner p:last-child { font-size: 9.8px; }
}

@media (max-width: 560px) {
  .update-notice {
    right: 14px;
    bottom: calc(var(--measured-footer-h) + 12px + env(safe-area-inset-bottom));
    width: calc(100vw - 28px);
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .update-notice-actions { width: 100%; }
  .update-notice button { flex: 1; }
}

@media (max-width: 430px) {
  :root { --page: calc(100% - 28px); --footer-h: 108px; }
  .menu-word { display: none; }
  .mobile-menu-home { margin-bottom: 26px; }
  .mobile-menu-inner { padding-top: calc(var(--header-h) + 24px); }
  .mobile-links a { padding: 14px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-identity { min-height: 150px; }
  .project-card { min-height: 380px; padding: 24px; }
  .panel-content { padding-block: 44px; }
  .footer-inner p { font-size: 10px; line-height: 1.42; }
  .footer-inner p:last-child { font-size: 9.5px; }
}

@supports not (height: 100dvh) {
  :root { --panel-height: calc(100vh - var(--measured-header-h) - var(--measured-footer-h)); }
}

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