/* ==========================================================================
   Sanjay Newaskar Designs: homepage
   Direction: Editorial Minimalism on a 12-column Swiss grid.
   Display serif for the voice, quiet grotesk for text, mono for drawing-style labels.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Primitive: colours taken from the materials in the work */
  --paper-50: #F7F7F2;      /* drawing paper */
  --plaster-100: #ECECE6;   /* lime plaster */
  --plaster-200: #E1E1D9;
  --stone-300: #CBCBC2;
  --stone-400: #A9AAA1;
  --concrete-600: #5F615A;
  --graphite-800: #262824;
  --graphite-900: #1B1D1A;
  --foliage-700: #46561F;   /* the current lime green, deepened */
  --foliage-800: #39461A;
  --foliage-200: #C3CE98;
  --teak-600: #87593A;
  --signal-500: #5EB456;    /* SNDLLP green, sampled from the studio's mark */
  --signal-600: #4E9F46;
  --white: #FFFFFF;

  /* Semantic */
  --color-bg: var(--plaster-100);
  --color-surface: var(--paper-50);
  --color-surface-sunken: var(--plaster-200);
  --color-text: var(--graphite-900);
  --color-text-muted: var(--concrete-600);
  --color-line: var(--stone-300);
  --color-line-strong: var(--graphite-900);
  --color-accent: var(--foliage-700);
  --color-accent-hover: var(--foliage-800);
  --color-material: var(--teak-600);
  --color-on-image: var(--white);
  --color-on-image-muted: rgba(255, 255, 255, 0.78);
  --color-focus: var(--foliage-700);
  --color-signal: var(--signal-500);       /* fills, marks and accents on dark grounds; never text on light grounds (2.2:1) */
  --color-on-signal: var(--graphite-900);  /* 6.6:1 on the green */

  /* Component */
  --header-bg-solid: rgba(236, 236, 230, 0.9);
  --header-height: 76px;
  --button-primary-bg: var(--color-signal);
  --button-primary-bg-hover: var(--signal-600);
  --button-primary-text: var(--color-on-signal);
  --button-light-bg: var(--paper-50);
  --button-light-text: var(--graphite-900);
  --tile-bg: var(--color-surface);
  --tile-lead-bg: var(--graphite-900);
  --tile-lead-text: var(--paper-50);
  --hero-scrim-side: linear-gradient(90deg, rgba(14, 15, 13, 0.5) 0%, rgba(14, 15, 13, 0.18) 42%, rgba(14, 15, 13, 0) 62%);
  --hero-scrim: linear-gradient(180deg, rgba(14, 15, 13, 0.5) 0%, rgba(14, 15, 13, 0) 24%, rgba(14, 15, 13, 0) 42%, rgba(14, 15, 13, 0.72) 100%);

  /* Type */
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.8125rem;                                  /* 13px labels */
  --step-0: 1.0625rem;                                   /* 17px body */
  --step-1: 1.25rem;                                     /* 20px */
  --step-2: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);        /* 24-32 */
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 3rem);          /* 28-48 */
  --step-4: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);      /* 36-72 */
  --step-5: clamp(2.75rem, 1.2rem + 6vw, 7rem);          /* 44-112 */

  /* Space and layout (8-point steps) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --section-space: clamp(4.5rem, 2.5rem + 5.5vw, 8.5rem);
  --page-max: 1440px;
  --margin: clamp(16px, 4.5vw, 64px);
  --gutter: clamp(16px, 2vw, 28px);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark bands re-map the semantic tokens so components work on both grounds */
.band-dark {
  --color-bg: var(--graphite-900);
  --color-surface: var(--graphite-800);
  --color-text: var(--paper-50);
  --color-text-muted: var(--stone-400);
  --color-line: #3A3C37;
  --color-line-strong: var(--paper-50);
  --color-accent: var(--signal-500);
  --color-focus: var(--signal-500);
  background: var(--color-bg);
  color: var(--color-text);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--color-signal); color: var(--color-on-signal); }

.skip-link {
  position: absolute; left: var(--margin); top: -100px; z-index: 100;
  background: var(--graphite-900); color: var(--paper-50); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.section { padding-block: var(--section-space); }
.section-head {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-4);
  line-height: 1; letter-spacing: -0.02em; text-wrap: balance;
}
.section-intro { color: var(--color-text-muted); max-width: 44ch; margin-top: var(--space-2); }
.section-head > .section-intro { margin-top: 0; }

.label {
  font-family: var(--font-mono); font-weight: 400; font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); line-height: 1.5;
}
.meta {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.06em;
  color: var(--color-text-muted); line-height: 1.5;
}
.text-link {
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--color-line-strong); padding-bottom: 3px;
  display: inline-flex; gap: 10px; align-items: baseline;
}
.text-link::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.text-link:hover::after { transform: translateX(4px); }
.text-link:hover { border-bottom-color: var(--color-signal); }

/* Image frames: one ratio per role (21:9 hero, 3:2 landscape, 4:5 portrait) */
.media { display: block; overflow: hidden; background: var(--color-surface-sunken); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-4x5 { aspect-ratio: 4 / 5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-text); font-weight: 500; font-size: 0.9375rem; line-height: 1;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--button-primary-bg); color: var(--button-primary-text); }
.btn-primary:hover { background: var(--button-primary-bg-hover); }
.btn-light { background: var(--button-light-bg); color: var(--button-light-text); }
.btn-light:hover { background: var(--plaster-200); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--color-on-image); }
.btn-ghost:hover { border-color: var(--color-on-image); background: rgba(255, 255, 255, 0.08); }
.btn-outline { border-color: var(--color-line-strong); color: var(--color-text); }
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--color-on-image);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.site-header.is-solid {
  background: var(--header-bg-solid);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  color: var(--color-text);
  border-bottom-color: var(--color-line);
}
.site-header.menu-open { color: var(--paper-50); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { display: flex; align-items: center; gap: var(--space-4); height: var(--header-height); }

.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.wordmark-mark { height: 20px; width: auto; flex: none; fill: currentColor; color: var(--mark-color, inherit); transition: color 0.4s; }
.wordmark-rule { width: 1px; height: 28px; background: currentColor; opacity: 0.5; }
.wordmark-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; }
/* Mark colour: white over the hero, foliage on the solid header, green over the dark menu */
.site-header.is-solid { --mark-color: var(--foliage-700); }
.site-header.menu-open { --mark-color: var(--signal-500); }

.primary-nav ul { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.primary-nav a, .header-cta { font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.primary-nav a { padding-block: 6px; background: linear-gradient(var(--color-signal), var(--color-signal)) 0 100% / 0 2px no-repeat; transition: background-size 0.35s var(--ease-out); }
.primary-nav a:hover { background-size: 100% 2px; }
.header-cta { background: var(--button-primary-bg); color: var(--button-primary-text); padding: 12px 16px; line-height: 1; transition: background-color 0.25s; }
.header-cta:hover { background: var(--button-primary-bg-hover); }
.menu-toggle {
  display: none; background: none; border: 1px solid currentColor; padding: 10px 16px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
}

.site-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--graphite-900); color: var(--paper-50);
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-height));
  overflow-y: auto;
}
.site-menu-inner { display: grid; gap: var(--space-6); padding-block: var(--space-4) var(--space-6); min-height: 100%; align-content: space-between; }
.site-menu-links { display: grid; gap: 6px; }
.site-menu-links a {
  font-family: var(--font-display); font-size: clamp(2.5rem, 9vw, 3.5rem); line-height: 1.15;
  text-decoration: none; letter-spacing: -0.01em; transition: color 0.25s;
}
.site-menu-links a:hover { color: var(--color-signal); }
.site-menu-foot { display: grid; gap: var(--space-3); color: var(--stone-400); font-size: 0.9375rem; }
.site-menu-foot .btn { justify-self: start; }

@media (max-width: 1023px) {
  :root { --header-height: 64px; }
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .wordmark-mark { height: 17px; }
  .wordmark { gap: 12px; }
}
@media (max-width: 420px) {
  .wordmark-rule, .wordmark-name { display: none; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: clamp(540px, 88svh, 920px);
  background: var(--graphite-900); color: var(--color-on-image);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7.5s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim-side), var(--hero-scrim); pointer-events: none; }

.hero-content { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(1.75rem, 1rem + 3vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-4); align-items: end; }
.hero-copy { grid-column: 1 / span 8; display: grid; gap: var(--space-3); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-on-image-muted);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-5);
  line-height: 0.95; letter-spacing: -0.025em; text-wrap: balance; max-width: 12ch;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--color-signal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-1); }

.hero-meta { grid-column: 9 / span 4; display: grid; gap: 14px; justify-items: end; text-align: right; }
.hero-caption { display: grid; gap: 2px; }
.hero-caption-status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-on-image-muted); }
.hero-caption-name { font-size: 0.9375rem; font-weight: 500; }
.hero-controls { display: flex; align-items: center; gap: 14px; }
.hero-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.hero-progress { width: 72px; height: 1px; background: rgba(255, 255, 255, 0.35); position: relative; overflow: hidden; }
.hero-progress i { position: absolute; inset: 0; background: var(--color-signal); transform-origin: 0 50%; transform: scaleX(0); }
.hero-progress i.is-running { animation: hero-progress 6s linear forwards; }
@keyframes hero-progress { to { transform: scaleX(1); } }
.hero-pause {
  background: none; border: 1px solid rgba(255, 255, 255, 0.55); color: var(--color-on-image);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 10px; line-height: 1; cursor: pointer;
}
.hero-pause:hover { border-color: var(--color-on-image); }
.hero :focus-visible { outline-color: var(--color-on-image); }

@media (max-width: 899px) {
  /* Text spans the full width on small screens, so darken the whole lower half for the green headline */
  .hero { --hero-scrim: linear-gradient(180deg, rgba(14, 15, 13, 0.5) 0%, rgba(14, 15, 13, 0.12) 20%, rgba(14, 15, 13, 0.5) 46%, rgba(14, 15, 13, 0.82) 100%); }
  .hero-copy, .hero-meta { grid-column: 1 / -1; }
  .hero-meta { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: space-between; align-items: end; }
}
@media (max-width: 599px) {
  .hero-meta { grid-auto-flow: row; justify-content: stretch; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
  .hero-controls { justify-content: space-between; width: 100%; }
  .hero-progress { flex: 1; width: auto; }
}

/* ---------- 6. Introduction ---------- */
.intro-label { grid-column: 1 / span 3; padding-top: 0.6em; }
.intro-statement {
  grid-column: 4 / span 9;
  font-family: var(--font-display); font-weight: 400; font-size: var(--step-3);
  line-height: 1.22; letter-spacing: -0.01em; text-wrap: pretty; max-width: 32ch;
}
.intro-statement em { font-style: italic; color: var(--color-accent); }
.figures {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: clamp(3.5rem, 2rem + 5vw, 7rem);
}
.figures > div { border-top: 1px solid var(--color-line-strong); padding-top: var(--space-2); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; min-width: 0; }
.figures dt { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.4; }
.figures dd {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-4);
  line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums;
}
.figures dd.figures-cities { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em; padding-top: 0.25em; }
.figures-cities span { white-space: nowrap; }

@media (max-width: 899px) {
  .intro-label, .intro-statement { grid-column: 1 / -1; }
  .intro-label { margin-bottom: var(--space-3); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); }
}

/* ---------- 7. Featured work ---------- */
.featured { row-gap: clamp(3.5rem, 2rem + 5vw, 7rem); align-items: start; }
.project { display: grid; gap: 18px; text-decoration: none; min-width: 0; }
.project .media img, .discipline .media img, .wip .media img { transition: transform 0.9s var(--ease-out); }
.project:hover .media img, .discipline:hover .media img, .wip:hover .media img { transform: scale(1.035); }
.project-meta { display: grid; gap: 4px; }
.project-name {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-2);
  line-height: 1.1; letter-spacing: -0.01em;
  background: linear-gradient(var(--color-signal), var(--color-signal)) 0 100% / 0 2px no-repeat; transition: background-size 0.45s var(--ease-out);
  justify-self: start; padding-bottom: 3px;
}
.project:hover .project-name { background-size: 100% 2px; }
.award { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--color-accent); font-weight: 500; margin-top: 2px; }
.award::before { content: ""; width: 8px; height: 8px; background: var(--color-signal); flex: none; }

.f1 { grid-column: 1 / span 8; }
.f2 { grid-column: 10 / span 3; margin-top: clamp(5rem, 14vw, 15rem); }
.f3 { grid-column: 2 / span 4; }
.f4 { grid-column: 7 / span 6; margin-top: clamp(3rem, 9vw, 9rem); }
.f5 { grid-column: 1 / span 7; }
.f6 { grid-column: 9 / span 4; margin-top: clamp(4rem, 12vw, 12rem); }

@media (max-width: 1023px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f1, .f4, .f5, .f6 { grid-column: 1 / -1; margin-top: 0; }
  .f2 { grid-column: 1; margin-top: 0; }
  .f3 { grid-column: 2; margin-top: clamp(3rem, 10vw, 6rem); }
  .f6 .media { aspect-ratio: 3 / 2; }
}
@media (max-width: 699px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .f2, .f3 { grid-column: 1; margin-top: 0; }
  .f6 .media { aspect-ratio: 4 / 5; }
}

/* ---------- 8. Concept to creation ---------- */
.concept-head { row-gap: var(--space-4); align-items: end; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.concept-quote { grid-column: 1 / span 7; display: grid; gap: var(--space-4); }
.concept-quote blockquote { margin: 0; display: grid; gap: var(--space-2); }
.concept-quote blockquote p {
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: var(--step-4);
  line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
}
.concept-quote footer { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.concept-text { grid-column: 9 / span 4; color: var(--color-text-muted); }
@media (max-width: 899px) {
  .concept-quote, .concept-text { grid-column: 1 / -1; }
}

.compare { display: grid; gap: 14px; --pos: 50%; }
.compare-frame { position: relative; aspect-ratio: 1800 / 1013; overflow: hidden; background: var(--color-surface); }
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-sketch { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--color-signal); pointer-events: none; }
.compare-knob {
  position: absolute; top: 50%; left: 0; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--color-signal); border: 1px solid var(--color-signal);
}
.compare-knob::before, .compare-knob::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--graphite-900); border-width: 0 0 1px 1px;
}
.compare-knob::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.compare-knob::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-frame:has(.compare-range:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.compare-tag {
  position: absolute; top: 16px; padding: 6px 10px; pointer-events: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--color-signal); color: var(--color-on-signal);
}
.compare-tag-left { left: 16px; }
.compare-tag-right { right: 16px; }
.compare figcaption { display: flex; justify-content: space-between; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.06em; color: var(--color-text-muted); }

/* ---------- 9. What we design ---------- */
.discipline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) var(--gutter); }
.discipline { display: grid; gap: 10px; align-content: start; text-decoration: none; min-width: 0; }
.discipline .media { margin-bottom: 8px; }
.discipline-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 1.15rem + 0.55vw, 1.75rem); line-height: 1.1; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 12px; }
.discipline-name::after { content: "→"; font-family: var(--font-text); font-size: 1.1rem; transition: transform 0.3s var(--ease-out); }
.discipline:hover .discipline-name::after { transform: translateX(4px); color: var(--foliage-700); }
.discipline-text { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 959px) { .discipline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 10. Recognition (the one bento on the site) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.tile { grid-column: span 3; background: var(--tile-bg); padding: clamp(20px, 2vw, 32px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); line-height: 1.5; }
.tile-mid { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.01em; margin-top: auto; padding-top: var(--space-4); }
.tile-text { font-size: 0.9375rem; line-height: 1.5; color: var(--color-text-muted); }
.tile-lead { grid-column: span 6; grid-row: span 2; background: var(--tile-lead-bg); color: var(--tile-lead-text); --color-text-muted: var(--stone-400); justify-content: space-between; min-height: 360px; }
.tile-big { font-family: var(--font-display); font-weight: 500; font-size: var(--step-5); line-height: 0.9; letter-spacing: -0.03em; display: grid; gap: 10px; margin-top: auto; }
.tile-big span { font-style: italic; font-weight: 400; font-size: 0.5em; letter-spacing: -0.01em; color: var(--color-signal); }
.tile-lead .tile-text { color: var(--paper-50); font-size: var(--step-1); }
.tile-press { grid-column: span 8; }
.tile-since { grid-column: span 4; }
.press-list { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.35; letter-spacing: -0.005em; margin-top: auto; padding-top: var(--space-4); text-wrap: balance; }
.press-list span { white-space: nowrap; }
.press-list i { font-style: normal; color: var(--color-signal); padding-left: 0.12em; }

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile-lead, .tile-press, .tile-since { grid-column: 1 / -1; }
  .tile-lead { grid-row: auto; min-height: 300px; }
}
@media (max-width: 559px) {
  .tile { grid-column: 1 / -1; }
}

/* ---------- 11. Principals ---------- */
.principals .grid { align-items: center; row-gap: var(--space-6); }
.principals-photo { grid-column: 1 / span 6; }
.principals-photo .media { aspect-ratio: 749 / 719; }
.principals-text { grid-column: 8 / span 5; display: grid; gap: var(--space-4); align-content: center; }
.principals-text h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; margin-top: calc(-1 * var(--space-2)); text-wrap: balance; }
.principals-text article { display: grid; gap: 4px; padding-top: var(--space-3); border-top: 1px solid var(--color-line); }
.principals-text h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.2; }
.principals-text article p:last-child { color: var(--color-text-muted); font-size: 0.9375rem; margin-top: 6px; max-width: 54ch; }
.principals-text .text-link { justify-self: start; }
@media (max-width: 899px) {
  .principals-photo, .principals-text { grid-column: 1 / -1; }
}

/* ---------- 12. In progress ---------- */
.progress { border-top: 1px solid var(--color-line); }
.scroller-controls { display: flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--color-line-strong); font-size: 1.1rem; line-height: 1;
  transition: background-color 0.25s, color 0.25s, opacity 0.25s;
}
.icon-btn:hover:not(:disabled) { background: var(--color-text); color: var(--color-bg); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 440px); gap: var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding-inline: max(var(--margin), calc((100% - var(--page-max)) / 2));
  scroll-padding-inline: max(var(--margin), calc((100% - var(--page-max)) / 2));
  padding-bottom: var(--space-3);
}
.scroller > li { scroll-snap-align: start; min-width: 0; }
.wip { display: grid; gap: 6px; text-decoration: none; }
.wip .media { margin-bottom: 10px; }
.wip-name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.2; }
.wip-all {
  height: 100%; aspect-ratio: 3 / 2; align-content: space-between; padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--color-line-strong); transition: background-color 0.3s, color 0.3s;
}
.wip-all-count { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; }
.wip-all .wip-name::after { content: " →"; font-family: var(--font-text); }
.wip-all:hover { background: var(--color-signal); border-color: var(--color-signal); color: var(--color-on-signal); }

/* ---------- 13. Enquiry ---------- */
.enquiry { background: var(--color-surface); }
.enquiry .grid { row-gap: var(--space-6); align-items: end; }
.enquiry h2 { grid-column: 1 / span 7; font-family: var(--font-display); font-weight: 500; font-size: var(--step-5); line-height: 0.95; letter-spacing: -0.025em; text-wrap: balance; }
.enquiry h2 em { font-style: italic; font-weight: 400; color: var(--color-accent); }
.enquiry-side { grid-column: 9 / span 4; display: grid; gap: var(--space-3); }
.enquiry-side > p:first-child { color: var(--color-text-muted); }
.enquiry-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.enquiry-mail { font-size: 0.9375rem; color: var(--color-text-muted); }
.enquiry-mail a { color: var(--color-text); text-underline-offset: 3px; }
@media (max-width: 899px) {
  .enquiry h2, .enquiry-side { grid-column: 1 / -1; }
}

/* ---------- 14. Footer ---------- */
.site-footer { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem) var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--gutter); }
.footer-grid > div { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.footer-name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.site-footer .label { color: var(--color-accent); }
.footer-mark { margin-top: clamp(3.5rem, 2rem + 5vw, 7rem); color: var(--color-signal); }
.footer-mark svg { width: 100%; height: auto; }
.footer-muted, .site-footer address { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.6; }
.footer-list { display: grid; gap: 6px; font-size: 0.9375rem; }
.footer-list a, .footer-base a { text-decoration: none; }
.footer-list a:hover, .footer-base a:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap;
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); padding-top: var(--space-3); border-top: 1px solid var(--color-line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--color-text-muted);
}
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 15. Reveal: an aperture that opens, from a visible resting state ---------- */
.reveal.is-pending .media { clip-path: inset(5% 5% 5% 5%); }
.reveal.is-pending .media img { transform: scale(1.08); }
.reveal .media { transition: clip-path 1s var(--ease-out); }
.reveal.is-shown .media img { transition: transform 1.2s var(--ease-out); }

/* ---------- 16. Prototype toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 60;
  transform: translateX(-50%); width: max-content; max-width: min(560px, calc(100vw - 32px));
  background: var(--graphite-900); color: var(--paper-50); padding: 12px 18px;
  font-size: 0.875rem; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.toast code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--color-signal); }

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .hero-slide img, .hero-slide.is-active img { transform: none; }
  .reveal.is-pending .media { clip-path: none; }
  .reveal.is-pending .media img { transform: none; }
  .hero-progress { display: none; }
}
