/* Ironhive — landing page
   Layout: editorial scroll. Cream ground, full-bleed heavy grotesk section titles,
   serif statements, rounded media, hairline-bordered panels, one dark accent panel per group. */

:root {
  /* color */
  --cream: #F7F7F0;      /* page ground */
  --ink: #1E1E1C;        /* titles, dark panels, borders */
  --text: #333331;       /* running text */
  --muted: #5A5A54;      /* secondary text */
  --sage: #C1C9C0;       /* intro ground, text on ink */
  --sage-soft: #D6DBD5;  /* delivery ground */
  --coolant: #7D9CA4;    /* card, water and cooling */
  --concrete: #8C8C85;   /* card, structure */
  --line: rgba(30, 30, 28, 0.16);
  --dim: rgba(51, 51, 49, 0.36);
  --on-ink-dim: rgba(247, 247, 240, 0.56);

  /* type */
  --sans: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --fs-small: 0.8125rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 0.95rem + 0.32vw, 1.25rem);
  --fs-statement: clamp(1.625rem, 1.1rem + 1.45vw, 2.6rem);
  --fs-hero: clamp(2.55rem, 1.35rem + 4.15vw, 5.6rem);

  /* layout */
  --gutter: 16px;
  --gutter-wide: clamp(16px, 3.33vw, 48px);
  --nav-h: 48px;
  --radius-media: 6px;
  --radius-panel: 8px;
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.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 {
  position: fixed; left: var(--gutter); top: -80px; z-index: 300;
  background: var(--ink); color: var(--cream); padding: 9px 14px; border-radius: 999px; font-size: var(--fs-small);
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* ---------- Intro loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: var(--sage);
  animation: loader-out .95s var(--ease-inout) 1.85s forwards;
}
.loader__line {
  max-width: 12.7em; text-align: center; text-wrap: balance;
  font-family: var(--serif); font-weight: 340; font-size: var(--fs-hero);
  line-height: 1; letter-spacing: -0.03em; color: var(--ink);
}
.loader__line span { opacity: .14; animation: loader-word .55s ease-out forwards; animation-delay: calc(.25s + var(--i) * .085s); }
.loader__line em { font-weight: 320; }
@keyframes loader-word { to { opacity: 1; } }
@keyframes loader-out { to { transform: translateY(-100%); visibility: hidden; } }
.no-loader .loader { display: none; }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); }
.nav__blur { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 36px); pointer-events: none; }
.nav__blur::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(247, 247, 240, .62) 0%, rgba(247, 247, 240, .38) 52%, rgba(247, 247, 240, 0) 100%);
}
.nav__blur i { position: absolute; inset: 0; }
.nav__blur i:nth-child(1) { -webkit-backdrop-filter: blur(1px);  backdrop-filter: blur(1px);  -webkit-mask-image: linear-gradient(#000 60%, transparent 100%); mask-image: linear-gradient(#000 60%, transparent 100%); }
.nav__blur i:nth-child(2) { -webkit-backdrop-filter: blur(2px);  backdrop-filter: blur(2px);  -webkit-mask-image: linear-gradient(#000 46%, transparent 82%); mask-image: linear-gradient(#000 46%, transparent 82%); }
.nav__blur i:nth-child(3) { -webkit-backdrop-filter: blur(4px);  backdrop-filter: blur(4px);  -webkit-mask-image: linear-gradient(#000 34%, transparent 66%); mask-image: linear-gradient(#000 34%, transparent 66%); }
.nav__blur i:nth-child(4) { -webkit-backdrop-filter: blur(8px);  backdrop-filter: blur(8px);  -webkit-mask-image: linear-gradient(#000 22%, transparent 50%); mask-image: linear-gradient(#000 22%, transparent 50%); }
.nav__blur i:nth-child(5) { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(#000 10%, transparent 36%); mask-image: linear-gradient(#000 10%, transparent 36%); }

.nav__inner {
  position: relative; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter); color: var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 7px; }
.brand__mark { width: 37px; height: 20px; }
.brand__glyph { fill: var(--cream); }
.brand__word { font-size: 19px; font-weight: 560; letter-spacing: -0.035em; line-height: 1; }
.nav__link { position: relative; font-size: 15px; padding-block: 6px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 40px; height: 32px; margin-right: -8px; place-content: center; gap: 6px; }
.nav__burger i { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease-out); }
.nav__burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
  transform: translateY(-101%); transition: transform .7s var(--ease-inout);
}
.menu.is-open { transform: none; }
.menu__links { display: grid; gap: 6px; }
.menu__links a { font-family: var(--serif); font-weight: 360; font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.menu__foot { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Media (generated imagery or photography) ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius-media); background: var(--sage); }
.media--dark { background: #171b1c; }
.media--plan { background: var(--sage-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.js .media img[data-scene] { opacity: 0; transition: opacity .9s ease; }
.js .media img[data-scene].is-loaded { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: max(620px, 100svh);
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}
.hero__copy {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  padding: 48px var(--gutter) 56px; text-align: center;
}
.hero__eyebrow { font-size: 15px; font-weight: 400; color: var(--ink); }
.hero__title {
  max-width: 12.7em; text-wrap: balance;
  font-family: var(--serif); font-weight: 340; font-size: var(--fs-hero);
  line-height: 1; letter-spacing: -0.03em; color: var(--ink);
}
.hero__title em, .statement em { font-weight: 320; }
.hero__meta {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px;
  padding: 0 var(--gutter) 9px; font-size: 12px; color: var(--ink);
}
.hero__meta p:last-child { text-align: right; }
.hero__meta b { font-weight: 600; margin-right: 5px; }

.marquee { overflow: hidden; padding-bottom: 6px; }
.marquee__track { display: flex; width: max-content; }
.marquee.is-ready .marquee__track { animation: marquee 80s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; gap: 6px; padding-right: 6px; }
.marquee__set li { flex: none; width: clamp(150px, 18.75vw, 380px); aspect-ratio: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.hero__meta, .marquee { animation: rise 1.1s var(--ease-out) backwards; }
.hero__meta { animation-delay: 2.15s; }
.marquee { animation-delay: 2.05s; }
.no-loader .hero__meta, .no-loader .marquee { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Section titles ---------- */
.mega {
  padding-inline: var(--gutter);
  font-family: var(--sans); font-weight: 800; font-stretch: 100%;
  font-size: 12.4vw; line-height: .9; letter-spacing: -0.03em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink);
}
.mega__fit { display: inline-block; }
.mega__line { display: inline; }
.mega sup { font-size: .14em; font-weight: 600; letter-spacing: 0; vertical-align: top; position: relative; top: .5em; margin-left: .2em; }
.mega .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.mega .w > span { display: inline-block; }
.js .mega.is-armed .w > span { transform: translateY(108%); }
.mega.is-in .w > span { transform: none; transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--wi, 0) * 75ms); }

.intro { padding-top: clamp(56px, 8vw, 128px); }
.intro--first { padding-top: clamp(36px, 4vw, 56px); }
.statement {
  max-width: 20em; margin: clamp(44px, 6vw, 88px) auto 0; padding-inline: var(--gutter);
  font-family: var(--serif); font-weight: 360; font-size: var(--fs-statement);
  line-height: 1.2; letter-spacing: -0.03em; color: var(--text); text-align: center; text-wrap: balance;
}

/* ---------- Reveal helpers ---------- */
.js [data-reveal="up"].is-armed { opacity: 0; transform: translateY(28px); }
[data-reveal="up"].is-in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.1s var(--ease-out); }
.js [data-reveal="stagger"].is-armed > * { opacity: 0; transform: translateY(22px); }
[data-reveal="stagger"].is-in > * { opacity: 1; transform: none; transition: opacity .9s ease, transform 1s var(--ease-out); }
[data-reveal="stagger"].is-in > :nth-child(2) { transition-delay: .08s; }
[data-reveal="stagger"].is-in > :nth-child(3) { transition-delay: .16s; }
[data-reveal="stagger"].is-in > :nth-child(4) { transition-delay: .24s; }

/* ---------- Hall film ---------- */
.film { padding-block: clamp(64px, 10.5vw, 156px) clamp(64px, 9vw, 132px); }
.film__frame {
  position: relative; width: min(80%, 1360px); margin-inline: auto; aspect-ratio: 1152 / 585;
  border-radius: 4px; overflow: hidden; background: #121516;
  transform: scale(var(--grow, 1)); transform-origin: 50% 40%; will-change: transform;
}
.film__canvas { width: 100%; height: 100%; }
.film__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 40px 16px 12px; font-size: 12px; color: rgba(247, 247, 240, .86);
  background: linear-gradient(to top, rgba(10, 12, 12, .55), rgba(10, 12, 12, 0));
}
.film__toggle {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream);
  border: 1px solid rgba(247, 247, 240, .55); background: rgba(20, 22, 22, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .3s, border-color .3s;
}
.film__toggle:hover { background: rgba(20, 22, 22, .5); border-color: var(--cream); }
.film__toggle svg { width: 12px; height: 12px; fill: currentColor; }
.film__toggle .i-play { display: none; }
.film__toggle[aria-pressed="true"] .i-play { display: block; }
.film__toggle[aria-pressed="true"] .i-pause { display: none; }

.stats {
  width: min(80%, 1360px); margin: clamp(56px, 7vw, 104px) auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: 14px 20px 4px 0; min-width: 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat__value {
  font-family: var(--serif); font-weight: 340; font-size: clamp(2.6rem, 1.7rem + 2.4vw, 4.4rem);
  line-height: .95; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: lining-nums;
}
.stat__unit { margin-left: .14em; font-family: var(--sans); font-size: .3em; font-weight: 500; letter-spacing: 0; vertical-align: .14em; }
.stat__label { font-size: 14px; color: var(--muted); max-width: 22ch; }
.stats__note { width: min(80%, 1360px); margin: 28px auto 0; font-size: 12px; color: var(--muted); }

/* ---------- Principles ---------- */
.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px;
  padding: 32px var(--gutter-wide) clamp(56px, 7vw, 96px);
}
.principles__col { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.principles__col:nth-child(1) { padding-top: 0; }
.principles__col:nth-child(2) { padding-top: 0; gap: 72px; }
.principle { max-width: 25em; min-width: 0; }
.principle h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.principle p { color: var(--muted); }
.principle__img { aspect-ratio: 1; width: 100%; }
.p-6 { margin-top: -8px; }
.img-b { margin-top: 8px; }

/* ---------- Commitments (cards) ---------- */
.differ { padding-top: clamp(40px, 4.5vw, 64px); }
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 0 var(--gutter) clamp(56px, 6vw, 88px);
}
.card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: clamp(500px, 43vw, 660px); padding: 20px 28px 24px; border-radius: 4px;
  color: var(--ink); transform: translateY(var(--lift, 0px));
}
.card--coolant { background: var(--coolant); }
.card--ink { background: var(--ink); color: var(--cream); }
.card--concrete { background: var(--concrete); }
.card__title { font-size: var(--fs-statement); font-weight: 600; line-height: 1.1; letter-spacing: -0.012em; margin-bottom: 6px; }
.card__text p { max-width: 23em; font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.4; }
.card--ink .card__text p { color: var(--sage); }
.card__figure { position: relative; z-index: 1; font-family: var(--serif); font-weight: 340; font-size: var(--fs-statement); line-height: 1; letter-spacing: -0.03em; }
.card__figure small { display: block; max-width: 24ch; margin-top: 8px; font-family: var(--sans); font-size: 13px; line-height: 1.35; letter-spacing: 0; opacity: .82; }
.card__art { position: absolute; inset: 26% 0 24% 0; z-index: -1; pointer-events: none; }
.card__art svg { position: absolute; top: 0; left: 9%; width: 82%; height: 100%; overflow: visible; fill: none; stroke: rgba(247, 247, 240, .9); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.card__art .duct { transform-box: fill-box; transform-origin: center; transform: scale(calc(.55 + var(--p, 0) * .45)); }
.card__art .bar-h { transform-box: fill-box; transform-origin: center; transform: scaleX(calc(.25 + var(--p, 0) * .75)); }
.card__art .bar-v { transform-box: fill-box; transform-origin: center; transform: scaleY(calc(.25 + var(--p, 0) * .75)); }
.card__art .tie { fill: rgba(247, 247, 240, .9); stroke: none; opacity: var(--p, 0); }
.card__art .stem { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(calc(.3 + var(--p, 0) * .7)); }

.notes { max-width: 31em; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 6vw, 72px); display: grid; gap: 22px; text-align: center; color: var(--text); }
.notes a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Project panels and facts ---------- */
.project { padding-inline: var(--gutter); }
.project--after-wire { padding-top: clamp(24px, 3vw, 48px); }
.project__panel {
  position: relative; display: block; isolation: isolate; overflow: hidden;
  height: clamp(380px, 41vw, 700px); border: 1px solid var(--ink); border-radius: var(--radius-panel);
  background: var(--sage);
}
.project__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 5px 8px 6px 12px;
  background: var(--cream); border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 15px;
}
.project__meta { margin-left: auto; font-size: 13px; color: var(--muted); }
.project__tag { flex: none; padding: 1px 8px 2px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--muted); }
.project__img { position: absolute; inset: 0; border-radius: 0; }

.facts {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 72px);
  padding: clamp(28px, 3vw, 44px) clamp(0px, 2vw, 32px) clamp(8px, 2vw, 24px);
}
.facts__title { font-family: var(--serif); font-weight: 340; font-size: var(--fs-statement); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.facts__summary { max-width: 30em; margin-top: 14px; font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.45; color: var(--text); }
.facts__sources { max-width: 34em; margin-top: 20px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.facts__sources a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.facts__list { border-top: 1px solid var(--ink); }
.facts__list > div { display: grid; grid-template-columns: minmax(118px, 28%) minmax(0, 1fr); gap: 16px; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.facts__list dt { font-size: 13px; color: var(--muted); }
.facts__list dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.facts__list .is-key dd { font-family: var(--serif); font-size: clamp(1.05rem, .95rem + .3vw, 1.2rem); line-height: 1.35; }

.arrow-dot {
  flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px;
  border: 1.5px solid currentColor; border-radius: 50%; overflow: hidden;
  transition: background-color .35s ease, color .35s ease;
}
.arrow-dot svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease-out); }
.panel:hover .arrow-dot { background: var(--ink); color: var(--cream); }
.panel--dark:hover .arrow-dot { background: transparent; color: var(--cream); }
.panel--dark .panel__bar:hover .arrow-dot, .panel--dark .panel__bar:focus-visible .arrow-dot { background: var(--cream); color: var(--ink); }
.panel:hover .arrow-dot svg { animation: nudge .55s var(--ease-out); }
@keyframes nudge { 0% { transform: translateX(0); } 45% { transform: translateX(140%); } 46% { transform: translateX(-140%); } 100% { transform: translateX(0); } }

/* ---------- Ground to roof ---------- */
.intro--wire .statement { margin-bottom: 0; }
.wire {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; align-content: center; gap: clamp(40px, 5vw, 64px);
  min-height: clamp(560px, 52vw, 760px); padding: clamp(80px, 9vw, 130px) var(--gutter);
}
.wire__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wire__path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wire__spark { fill: var(--ink); }
.wire__text { position: relative; max-width: 30em; font-size: 15px; text-align: center; color: var(--text); }
.wire__hub {
  position: relative; z-index: 1; width: clamp(116px, 11vw, 164px); aspect-ratio: 1;
  display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--cream);
}
.wire__hub svg { width: 84%; transform: rotate(var(--turn, 0deg)); }
.hive__cell { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.hive__cell--fill { fill: var(--ink); }

/* ---------- Delivery ---------- */
.delivery { background: var(--sage-soft); padding-block: clamp(52px, 6.5vw, 96px) clamp(64px, 8vw, 120px); margin-top: clamp(64px, 7vw, 104px); }
.delivery .mega { margin-bottom: clamp(28px, 3.5vw, 52px); }
.phases { border-top: 1px solid var(--line); }
.phase { position: relative; border-bottom: 1px solid var(--line); }
.phase__row {
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(150px, 20%) minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px var(--gutter) 13px 12px; text-align: left;
}
.phase__row::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.phase.is-active .phase__row::before, .phase.is-open .phase__row::before { transform: scaleX(1); }
.phase__when, .phase__title {
  font-family: var(--serif); font-weight: 340; font-size: var(--fs-statement);
  line-height: 1.2; letter-spacing: -0.03em; color: var(--text); transition: color .35s ease;
}
.phase__when { font-variant-numeric: lining-nums; }
.phases.has-active .phase:not(.is-active):not(.is-open) .phase__when,
.phases.has-active .phase:not(.is-active):not(.is-open) .phase__title { color: var(--dim); }
.phase__dots { display: flex; gap: 4px; padding: 8px 2px; }
.phase__dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); transition: transform .4s var(--ease-out), border-radius .4s; }
.phase.is-active .phase__dots i:nth-child(odd), .phase.is-open .phase__dots i:nth-child(odd) { transform: scale(0); }
.phase.is-active .phase__dots i:nth-child(2), .phase.is-open .phase__dots i:nth-child(2) { transform: scale(1.75); border-radius: 0; }

.phase__panel {
  position: absolute; z-index: 5; left: calc(20% + 12px); top: calc(100% - 4px);
  width: min(620px, 50%);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px;
  padding: 14px; border-radius: 6px; background: var(--ink); color: var(--cream);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: 0 0;
  transition: opacity .35s ease, transform .5s var(--ease-out), visibility 0s linear .5s;
}
.phase.is-active .phase__panel, .phase.is-open .phase__panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .35s ease, transform .5s var(--ease-out), visibility 0s;
}
.phase__text { display: grid; align-content: start; gap: 10px; }
.phase__panel p { font-size: 14px; line-height: 1.45; }
.phase__panel .phase__src { font-size: 11px; color: var(--on-ink-dim); }
.phase__panel figure { display: grid; gap: 6px; background: none; border-radius: 0; overflow: visible; }
.phase__panel figure img { aspect-ratio: 16 / 10; height: auto; border-radius: 4px; background: #2a2e2d; }
.phase:nth-last-child(-n+2) .phase__panel { top: auto; bottom: calc(100% - 4px); transform-origin: 0 100%; }
.phase__panel figcaption { font-size: 11px; color: var(--on-ink-dim); }

/* ---------- Explore further ---------- */
.cta { padding: clamp(80px, 9vw, 112px) var(--gutter) clamp(64px, 7vw, 96px); }
.cta__head { max-width: 33rem; margin: 0 auto; display: grid; gap: 10px; text-align: center; }
.cta__eyebrow { font-size: 15px; color: var(--ink); }
.cta__title { font-family: var(--serif); font-weight: 340; font-size: var(--fs-statement); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.cta__sub { font-size: 15px; color: var(--muted); max-width: 28em; margin: 6px auto 0; text-wrap: balance; }
.cta__panels {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.3vw, 34px);
  max-width: 1200px; margin: clamp(40px, 4.5vw, 64px) auto 0;
}
.panel {
  display: flex; flex-direction: column; min-width: 0; min-height: clamp(420px, 34vw, 500px);
  border: 1px solid var(--ink); border-radius: var(--radius-panel); overflow: hidden; color: var(--ink);
}
.panel--dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 8px 6px 12px; border-bottom: 1px solid currentColor; font-size: 13px; }
.panel--dark .panel__bar { border-bottom-color: rgba(247, 247, 240, .3); }
.panel__list { display: grid; gap: 4px; padding: clamp(28px, 3vw, 44px) 20px; font-size: clamp(1.15rem, .95rem + .55vw, 1.4rem); line-height: 1.25; color: var(--ink); }
.panel__thumbs { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 16px 16px; }
.panel__thumbs .media { aspect-ratio: 1 / 1.08; border-radius: 4px; }

.sites { display: grid; padding: 16px 20px 0; }
.site {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name years" "where pill" "scope scope";
  column-gap: 12px; row-gap: 4px; padding: 16px 0 16px; border-bottom: 1px solid rgba(247, 247, 240, .14);
}
.site__name { grid-area: name; font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + .6vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.site__where { grid-area: where; font-size: 12px; color: var(--on-ink-dim); align-self: center; }
.site__years { grid-area: years; font-size: 14px; font-variant-numeric: tabular-nums; align-self: end; text-align: right; }
.site__scope { grid-area: scope; max-width: 34em; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--sage); }
.pill { grid-area: pill; justify-self: end; align-self: center; padding: 2px 8px 3px; border: 1px solid rgba(247, 247, 240, .35); border-radius: 999px; font-size: 11px; color: var(--sage); white-space: nowrap; }
.pill--live { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.pill--build { border-color: var(--coolant); color: #B9D0D6; }
.panel__note { margin-top: auto; padding: 16px 20px 18px; font-size: 11px; color: var(--on-ink-dim); }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--gutter) calc(env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer__grid {
  display: grid; grid-template-columns: 3fr 4fr 4fr;
  border: 1px solid var(--ink); border-radius: var(--radius-panel); color: var(--text);
}
.footer__cell { min-width: 0; padding: 14px 20px 22px; }
.footer__cell:nth-child(3n+2), .footer__cell:nth-child(3n) { border-left: 1px solid var(--ink); }
.footer__cell:nth-child(n+4) { border-top: 1px solid var(--ink); }
.footer__cell--brand { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: clamp(300px, 26vw, 380px); }
.footer__word { font-size: 26px; font-weight: 560; letter-spacing: -0.035em; color: var(--ink); }
.footer__h { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 10px; }
.footer__h--gap { margin-top: 40px; }
.footer__links { display: grid; gap: 4px; font-size: 13px; }
.footer__links li, .footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.footer__links a { transition: color .25s; }
.footer__links a:hover { color: var(--ink); }
.footer__links .arrow-dot { width: 14px; height: 14px; border-width: 1px; }
.footer__links a:hover .arrow-dot { background: var(--ink); color: var(--cream); }
.footer__cell--mark { display: grid; place-items: center; padding: 28px 20px; }
.footer__mark { width: min(100%, 260px); }
.footer__hive { fill: var(--ink); }
.footer__about { max-width: 30em; margin-top: auto; padding-top: 72px; font-size: 13px; color: var(--muted); }
.footer__about--tight { padding-top: 0; }
.footer__note { max-width: 30em; margin-top: 16px; font-size: 12px; color: var(--muted); }
.footer__cell:nth-child(5) { display: flex; flex-direction: column; }

.write { display: grid; }
.write__row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.write__row input { width: 100%; border: 0; background: transparent; padding: 2px 0; outline: none; font-size: 13px; color: var(--ink); }
.write__row input::placeholder { color: rgba(51, 51, 49, .45); }
.write__row:focus-within { border-bottom-color: var(--ink); }
.write__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; }
.write__status { font-size: 12px; color: var(--muted); min-height: 1.4em; }
.write__send { padding: 7px 16px 8px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px; transition: opacity .25s; }
.write__send:hover { opacity: .85; }

.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 4px 0; font-size: 12px; color: var(--muted); }
.footer__legal p:last-child { display: flex; gap: 16px; }
.footer__legal a:hover { color: var(--ink); }
.mega--footer { padding: 0; margin: clamp(18px, 3vw, 36px) 0 0; line-height: .76; transform: translateY(.06em); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .principles { column-gap: 40px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { min-height: 520px; }
  .card__art { inset: 22% 0 22% 40%; }
}

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .principles__col { display: contents; }
  .p-1 { order: 1; } .p-2 { order: 2; } .img-a { order: 3; } .p-3 { order: 4; }
  .img-b { order: 6; } .p-4 { order: 5; } .p-5 { order: 7; } .p-6 { order: 8; }
  .img-b, .p-6 { margin-top: 0; }
  .phase__panel { left: 12px; width: min(620px, calc(100% - 24px)); }
  .cta__panels { grid-template-columns: 1fr; max-width: 640px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__cell { border-left: 0 !important; border-top: 0 !important; }
  .footer__cell:nth-child(even) { border-left: 1px solid var(--ink) !important; }
  .footer__cell:nth-child(n+3) { border-top: 1px solid var(--ink) !important; }
  .footer__cell--brand { min-height: 0; }
}

@media (max-width: 760px) {
  .nav__link { display: none; }
  .nav__burger { display: grid; }
}

@media (max-width: 699px) {
  .mega__line { display: block; width: max-content; }
  .hero__copy { gap: 20px; padding-bottom: 40px; }
  .hero__eyebrow { font-size: 13px; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta p:nth-child(2) { display: none; }
  .marquee__set li { width: 44vw; }
  .film__frame { width: calc(100% - 2 * var(--gutter)); aspect-ratio: 4 / 5; }
  .film__caption { font-size: 11px; padding-inline: 12px; }
  .stats, .stats__note { width: calc(100% - 2 * var(--gutter)); }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat__label { font-size: 13px; }
  .principles { grid-template-columns: 1fr; row-gap: 40px; }
  .principle { max-width: none; }
  .card { min-height: 480px; padding: 18px 20px 20px; }
  .card__art { inset: 34% 0 26% 24%; }
  .project__panel { height: 92vw; max-height: 520px; }
  .facts__list > div { grid-template-columns: 1fr; gap: 2px; }
  .project__meta { display: none; }
  .wire { min-height: 640px; }
  .phase__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when dots" "title dots"; row-gap: 0; padding-block: 12px 14px; }
  .phase__when { grid-area: when; font-family: var(--sans); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
  .phase__title { grid-area: title; }
  .phase__dots { grid-area: dots; }
  .phase__panel { position: static; width: auto; margin: 0 12px 14px; grid-template-columns: 1fr; display: none; transform: none; }
  .phase.is-open .phase__panel { display: grid; animation: rise .5s var(--ease-out); }
  .phase.is-active:not(.is-open) .phase__panel { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__cell:nth-child(n) { border-left: 0 !important; border-top: 1px solid var(--ink) !important; }
  .footer__cell:first-child { border-top: 0 !important; }
  .footer__about { padding-top: 12px; }
  .footer__cell--mark { order: 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { display: none; }
  .hero__meta, .marquee { animation: none; }
  .marquee.is-ready .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .wire__spark { display: none; }
  .js [data-reveal].is-armed, .js [data-reveal].is-armed > *, .js .mega.is-armed .w > span { opacity: 1; transform: none; }
  .card, .film__frame { transform: none; }
}
