/* Eon Interiors — one stylesheet. Tokens first; every colour and size is named here once. */

/* Fonts from the brand book (assets/brand/BRAND-BOOK.html), served from the site's own /fonts/.
   Quicksand and Nunito: SIL OFL 1.1; Telma: ITF Free Font License 2.0. Licences beside the files. */
@font-face { font-family: "Quicksand"; src: url(/fonts/Quicksand-Light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url(/fonts/Quicksand-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url(/fonts/Quicksand-Medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/Nunito-Light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/Nunito-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/Nunito-Medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Telma"; src: url(/fonts/Telma-Light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

:root {
  /* Palette: exact values from Master's export, design/tokens.json (1 Dec 2026).
     --panel and --panel-2 are not in the source; they stay as read from its pictures. */
  --ground: #17080C;      /* page background */
  --panel: #2a2023;       /* raised panel, a lighter plum (read from the source pictures) */
  --panel-2: #33272b;     /* hover / input ground */
  --cream: #EAE6CF;       /* main text */
  --cream-soft: #B5AE98;  /* muted text (source: textMuted) */
  --muted: #B5AE98;       /* muted text (source: textMuted) */
  --gold: #A6AE6A;        /* labels / accent (source: accent) */
  --line: rgba(234,230,207,0.2); /* lines (source: line) */
  --credit: #D9D8B8;      /* viewer credit text (source) */
  /* Kris's brand palette (brand book 04; export design/tokens.json) */
  --plum: #4D1022;        /* contact glow */
  --aubergine: #200611;   /* hero slider frame */
  --citron: #EDEDD2;      /* slider dots, viewer buttons */
  --error: #f0a48f;
  --focus: #e9d9a4;

  /* Type — the source's light rounded sans. The exact face is not identified yet (open);
     until its files are served from /fonts/, the system's own rounded face is used. No outside font service. */
  /* Source fonts: Quicksand (headings, logo, large text) and Nunito (body), weights 300/400/500,
     served from /fonts/ (@font-face above); the system faces are only the fallback. */
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Accent (brand book): Telma Light, one display line at a time, 24 px and up; never the logo,
     the wordmark, body text or long capitals. It has no 侘寂 glyphs. */
  --font-accent: "Telma", "Quicksand", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font: "Quicksand", ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-light: 300;
  --w-regular: 400;
  --w-medium: 500;

  /* Fluid scale (clamp): hero 40–76 px, titles 28–40 px, body 16–18 px, labels 12–13 px */
  --fs-hero: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --fs-display-md: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  --fs-title: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);
  --fs-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --fs-label: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem);
  --fs-small: 0.875rem;

  /* Space — 8 px grid */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --section: clamp(64px, 40px + 7.5vw, 160px);
  --gutter: clamp(16px, 4vw, 48px);
  --content: 1360px;
  --measure: 68ch;
  --radius: 6px;
  --radius-pill: 999px;
  --header-h: 80px;
  --header-h-small: 60px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-reveal: 600ms;
  --t-ui: 240ms;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h-small); }
body {
  margin: 0; background: var(--ground); color: var(--cream);
  font-family: var(--font-body); font-weight: var(--w-light); font-size: var(--fs-body); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ground); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s2); top: -100px; z-index: 100; background: var(--cream); color: var(--ground); padding: var(--s1) var(--s2); border-radius: var(--radius); }
.skip:focus { top: var(--s2); }

.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

/* Placeholder text: clearly marked for Master */
.ph { color: var(--gold); font-style: italic; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(166,174,106,.08) 6px 12px); border-bottom: 1px dashed var(--gold); padding: 0 .15em; }

/* Type */
.label { font-size: var(--fs-label); font-weight: var(--w-medium); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); line-height: 1.5; }
.label a { text-decoration: none; }
.display, .title, .wordmark, .values__list li { font-family: var(--font); }
/* The accent line (brand book): Telma Light, one display line at a time; today the Wabi-sabi line. */
.accent-line { font-family: var(--font-accent); font-weight: 300; }
.display { font-size: var(--fs-hero); font-weight: var(--w-light); line-height: 1.08; letter-spacing: -0.015em; max-width: 18ch; text-wrap: balance; }
.display--md { font-size: var(--fs-display-md); }
.title { font-size: var(--fs-title); font-weight: var(--w-light); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.lede { font-size: var(--fs-lede); color: var(--cream-soft); max-width: var(--measure); line-height: 1.6; }
.wordmark { font-size: 0.875rem; font-weight: var(--w-regular); letter-spacing: 0.32em; text-decoration: none; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s1); min-height: 48px; padding: 12px 28px;
  border: 1px solid var(--gold); border-radius: var(--radius-pill); background: transparent; color: var(--cream);
  font-size: 0.9375rem; font-weight: var(--w-regular); letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  transition: background var(--t-ui) var(--ease), color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.btn:hover { background: var(--gold); color: var(--ground); }
@media (max-width: 419px) { .btn { padding-inline: 20px; } }
.btn--solid { background: var(--cream); border-color: var(--cream); color: var(--ground); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); }
.btn--quiet { min-height: 40px; padding: 8px 20px; font-size: 0.875rem; border-color: var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(23,8,12,.55); color: var(--cream); cursor: pointer; transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease);
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow { color: var(--gold); text-decoration: none; letter-spacing: .04em; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: height var(--t-ui) var(--ease), background var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.site-header.is-solid { height: var(--header-h-small); background: rgba(23,8,12,.94); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header__bar { display: flex; align-items: center; gap: var(--s4); height: 100%; }
.site-header .wordmark { margin-right: auto; }
/* The lock-up (brand book 01): the full brush-stroke ensō, assets/brand/logo/enso-light.svg, beside the live
   Quicksand wordmark (14 px), in the proportions of lockup-quicksand-light.svg: gap 0.22 of the ensō's height. */
.wordmark--logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { flex: none; display: block; }
.logo-mark--header { width: 56px; height: 56px; transition: width var(--t-ui) var(--ease), height var(--t-ui) var(--ease); }
.site-header.is-solid .logo-mark--header { width: 44px; height: 44px; }
.site-header.is-solid .wordmark--logo { gap: 10px; }
.logo-mark--footer { width: 56px; height: 56px; }
@media (max-width: 599px) { .logo-mark--header { width: 44px; height: 44px; } .wordmark--logo { gap: 10px; } }
.nav ul { display: flex; gap: var(--s4); }
.nav a { position: relative; display: inline-block; padding: 8px 0; text-decoration: none; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: var(--w-regular); color: var(--cream-soft); transition: color var(--t-ui) var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t-reveal) var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--cream); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.menu-btn { display: none; }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--ground); display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.menu__nav { padding-block: var(--s6); display: flex; flex-direction: column; gap: var(--s6); }
.menu__nav ul { display: grid; gap: var(--s2); }
.menu__nav a:not(.btn) { font-size: clamp(2rem, 8vw, 3rem); font-weight: var(--w-light); text-decoration: none; line-height: 1.25; }
.menu__nav .btn { align-self: flex-start; }

@media (max-width: 899px) {
  .nav, .site-header__cta { display: none; }
  .menu-btn { display: inline-grid; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(24px, 6vw, 96px)); }
.hero__text { display: grid; gap: var(--s3); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__text .display { max-width: 22ch; line-height: 1.12; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s6); margin-top: var(--s3); }
.hero__row .lede { max-width: 44ch; font-size: var(--fs-body); color: var(--muted); }
.hero__row > p:last-child { flex: none; max-width: 100%; }
.btn--hero { border-color: rgba(234,230,207,.28); gap: 14px; white-space: nowrap; }
@media (max-width: 419px) { .btn--hero { gap: 8px; padding-inline: 18px; } }
@media (max-width: 359px) { .btn--hero { white-space: normal; } }
.btn--hero:hover { background: var(--cream); border-color: var(--cream); color: var(--ground); }

.slider { position: relative; height: clamp(360px, 78vh, 1100px); min-height: 320px; overflow: hidden; background: var(--aubergine); touch-action: pan-y; }
@media (orientation: portrait) and (max-width: 767px) { .slider { height: 72vh; } }
.slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1600ms var(--ease); }
/* only the current, the outgoing and the next slide are rendered: the others' images stay unloaded (lazy) */
.slide:not(.is-active):not(.was-active):not(.is-near) { display: none; }
.slide.was-active { z-index: 0; } .slide.is-active { z-index: 1; }
.slide.is-active { opacity: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slider__ui { position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-inline: auto; }
.slider__dashes { display: flex; gap: var(--s1); }
.slider__dashes button { width: clamp(24px, 5vw, 64px); height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.slider__dashes span { display: block; height: 2px; background: rgba(237,237,210,.4); position: relative; overflow: hidden; border-radius: 2px; }
.slider__dashes span::after { content: ""; position: absolute; inset: 0; background: var(--citron); transform: scaleX(0); transform-origin: left; }
.slider__dashes [aria-selected="true"] span::after { animation: dash var(--slide-ms, 6500ms) linear forwards; }
.slider__dashes .is-done span::after { transform: scaleX(1); }
.slider.is-paused .slider__dashes [aria-selected="true"] span::after { animation-play-state: paused; }
@keyframes dash { to { transform: scaleX(1); } }
.slider__arrows { display: flex; gap: var(--s1); }
@media (max-width: 419px) { .slider__arrows [data-prev], .slider__arrows [data-next] { display: none; } }
.slider .i-play { display: none; }
.slider.is-stopped .i-play { display: block; }
.slider.is-stopped .i-pause { display: none; }

/* ---------- Values ---------- */
.values__list { border-block: 1px solid var(--line); }
.values__list { display: flex; justify-content: space-between; gap: var(--s3); padding-block: var(--s4); }
.values__list { align-items: center; padding-block: clamp(24px, 3vw, 40px); }
.values__list li { font-size: clamp(1.25rem, 0.95rem + 1.1vw, 1.875rem); font-weight: var(--w-light); color: var(--cream); white-space: nowrap; display: flex; align-items: center; gap: clamp(16px, 4vw, 64px); }
.values__list li + li::before { content: "·"; color: var(--muted); }
@media (max-width: 719px) {
  .values__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); text-align: center; }
  .values__list li + li::before { content: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }
.section--panel { background: var(--panel); }
/* Wabi-sabi: the source's panel, rgba(23,8,12,.86) over the limewash plaster texture (export, design/colours-fonts-layout.md) */
#wabi-sabi { background: linear-gradient(rgba(23,8,12,.86), rgba(23,8,12,.86)), var(--panel) image-set(url(/img/wabisabi-plaster-2400.avif) type("image/avif"), url(/img/wabisabi-plaster-2400.jpg) type("image/jpeg")) center / cover no-repeat; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s3) clamp(16px, 2vw, 32px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head__title { font-size: var(--fs-title); font-weight: var(--w-light); line-height: 1.2; letter-spacing: -0.005em; }
.sec-head .sec-head__title { grid-column: 1 / span 6; }
.sec-head__text { grid-column: 8 / span 5; color: var(--muted); font-size: var(--fs-small); line-height: 1.75; max-width: 48ch; }
.sec-head__count { grid-column: 9 / span 4; justify-self: end; font-size: var(--fs-small); align-self: center; }
@media (max-width: 767px) { .sec-head .sec-head__title, .sec-head__text { grid-column: 1 / -1; } .sec-head__count { grid-column: 7 / -1; } .sec-head--count .sec-head__title { grid-column: 1 / span 6; } }
.after-row { margin-top: clamp(24px, 3vw, 40px); }
.section__intro { font-size: var(--fs-title); font-weight: var(--w-light); line-height: 1.3; max-width: 30ch; margin-bottom: clamp(32px, 4vw, 64px); text-wrap: balance; }

.row4 { display: grid; gap: clamp(16px, 2vw, 32px); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .row4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .row4 { grid-template-columns: 1fr; } }
.row4 + .center { margin-top: clamp(32px, 4vw, 64px); }

.fig { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.card .fig { aspect-ratio: 4 / 5; }
.fig picture, .fig img { width: 100%; height: 100%; }
.fig img { object-fit: cover; transition: transform 900ms var(--ease); }
.fig:hover img { transform: scale(1.03); }
.fig figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s4) var(--s2) var(--s2);
  background: linear-gradient(to top, rgba(23,8,12,.88), rgba(23,8,12,0)); font-size: var(--fs-small); color: var(--cream);
  opacity: 0; transform: translateY(8px); transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
}
.fig:hover figcaption, .fig:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .fig figcaption { opacity: 1; transform: none; } }

/* placeholder pictures read as placeholders */
picture.is-placeholder { outline: 1px dashed rgba(166,174,106,.35); outline-offset: -1px; }

/* ---------- Gallery ---------- */
#gallery h2 { margin-bottom: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: clamp(24px, 3vw, 48px); }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: transparent;
  color: var(--cream-soft); font-size: 0.9375rem; font-weight: var(--w-regular); cursor: pointer;
  transition: background var(--t-ui) var(--ease), color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--ground); border-color: var(--cream); }
.chip__n { font-size: .8em; opacity: .7; margin-left: 2px; }

/* Row-ordered masonry: each tile spans rows of 4 px by its own shape (set in JS), so new tiles only add below */
.masonry { --gap: clamp(16px, 2vw, 32px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-rows: 4px; column-gap: var(--gap); align-items: start; }
.masonry .tile { grid-row-end: span var(--rows, 60); }
.tile a { display: block; border-radius: var(--radius); }
.tile .fig { aspect-ratio: var(--ar); }
.tile.is-new { animation: rise var(--t-reveal) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.masonry + .center { margin-top: clamp(32px, 4vw, 56px); }
.gallery__project { text-align: center; margin-top: var(--s3); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(12,7,9,.97); display: grid; grid-template-rows: auto 1fr auto; }
.lightbox[hidden] { display: none; }
.lightbox__bar { grid-row: 1; display: flex; justify-content: space-between; align-items: center; padding: var(--s2) var(--gutter); }
.lightbox__count { font-size: var(--fs-small); letter-spacing: .12em; color: var(--cream-soft); font-variant-numeric: tabular-nums; }
.lightbox__stage { grid-row: 2; position: relative; overflow: hidden; touch-action: none; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 96px); min-height: 0; }
.lightbox__stage picture { max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); width: auto; object-fit: contain; border-radius: var(--radius); user-select: none; transform-origin: center; will-change: transform; }
.lightbox .icon-btn { border-color: var(--citron); color: var(--citron); } /* viewer buttons: citron border (brand book 04) */
.lightbox .icon-btn:hover { border-color: var(--gold); }
.lightbox__credit { font-size: var(--fs-small); color: var(--credit); }
.lightbox__caption { grid-row: 3; padding: var(--s2) var(--gutter) var(--s3); text-align: center; display: grid; gap: 4px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--s2); }
.lightbox__next { right: var(--s2); }
@media (max-width: 599px) { .lightbox__prev, .lightbox__next { top: auto; bottom: var(--s2); transform: none; } }

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.approach { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }
.approach__side { grid-column: 1 / span 4; display: grid; gap: var(--s3); align-content: start; align-self: stretch; }
.approach__intro { color: var(--muted); font-size: var(--fs-small); line-height: 1.75; }
.approach__body { grid-column: 6 / span 7; display: grid; gap: var(--s4); align-content: start; }
.approach__media { margin-top: var(--s2); }
.approach__media .fig { aspect-ratio: 2 / 3; }
@media (min-width: 1024px) { .approach__media { position: sticky; top: calc(var(--header-h-small) + 32px); } }
@media (max-width: 1023px) { .approach__side, .approach__body { grid-column: 1 / -1; } .approach__media .fig { aspect-ratio: 4 / 5; max-height: 80vh; } }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
@media (max-width: 599px) { .points { grid-template-columns: 1fr; } }
.points li { border-bottom: 1px solid var(--line); padding-block: var(--s4); display: grid; gap: var(--s1); align-content: start; }
.points__n { font-size: var(--fs-label); letter-spacing: .2em; color: var(--gold); font-weight: var(--w-medium); }
.points h3 { font-size: 1.25rem; font-weight: var(--w-regular); margin-top: var(--s1); }
.points p { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
.timeline__title { margin-top: var(--s6); }
.timeline { counter-reset: step; display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 var(--s4) var(--s4); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45em; width: 11px; height: 11px; border-radius: 50%; background: var(--ground); border: 1px solid var(--gold); }
.timeline li::after { content: counter(step, decimal-leading-zero); position: absolute; left: var(--s4); top: -1.4em; font-size: var(--fs-label); letter-spacing: .2em; color: var(--gold); }
.timeline li { margin-top: 1.4em; }
.timeline__intro { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; margin-block: var(--s2) var(--s3); max-width: 60ch; }
.timeline h4 { font-size: 1.125rem; font-weight: var(--w-regular); }
.timeline p { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; margin-top: var(--s1); }

/* ---------- Wabi-sabi ---------- */
.wabi { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px); align-items: center; }
.wabi__enso { grid-column: 1 / span 4; background: var(--ground); border-radius: var(--radius); padding: clamp(12px, 2vw, 28px); }
.wabi__body { grid-column: 6 / span 6; display: grid; gap: var(--s3); }
.wabi__body p:not(.label) { color: var(--muted); font-size: var(--fs-small); line-height: 1.8; max-width: var(--measure); }
.wabi__points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
.wabi__points li { display: grid; gap: var(--s1); align-content: start; }
.wabi__points h3 { font-size: 1.125rem; font-weight: var(--w-regular); }
.wabi__points p { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
@media (max-width: 899px) { .wabi__enso, .wabi__body { grid-column: 1 / -1; } .wabi__enso { max-width: 360px; } }
@media (max-width: 599px) { .wabi__points { grid-template-columns: 1fr 1fr; } }
.enso { width: 100%; aspect-ratio: 1; }
/* The mask path uncovers the brushed picture along the stroke; the movement is unchanged (3.2 s). */
.enso__draw { fill: none; stroke: #fff; stroke-width: 150; stroke-linecap: butt; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.enso.pre .enso__draw { stroke-dashoffset: 1; }
.enso.pre.is-drawn .enso__draw { stroke-dashoffset: 0; transition: stroke-dashoffset 3200ms cubic-bezier(.45, .05, .25, 1); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px); }
.about { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }
.about__side { grid-column: 1 / span 3; display: grid; gap: var(--s3); align-content: start; }
.about__body .about__quote { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); font-weight: var(--w-light); line-height: 1.45; color: var(--cream); max-width: 40ch; margin-bottom: var(--s1); }
.about__portrait { display: grid; gap: var(--s2); align-self: start; }
.about__portrait picture { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__body { grid-column: 5 / span 7; display: grid; gap: var(--s3); align-content: start; }
.about__body p { color: var(--muted); font-size: var(--fs-small); line-height: 1.8; max-width: var(--measure); }
@media (max-width: 899px) { .about__side, .about__body { grid-column: 1 / -1; } .about__portrait { max-width: 420px; } }
.pills { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.pills li { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--fs-small); color: var(--cream-soft); font-weight: var(--w-regular); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s6) clamp(16px, 2vw, 32px); }
/* Contact glow (brand book 04; export: linear-gradient(180deg, rgba(23,8,12,0) 0%, rgba(77,16,34,0.38) 100%)) */
.contact-section { background: linear-gradient(180deg, rgba(23,8,12,0) 0%, rgba(77,16,34,.38) 100%), var(--ground); }
.contact__head { grid-column: 1 / span 5; display: grid; gap: var(--s3); align-content: start; }
.contact__email { font-size: var(--fs-lede); border-bottom: 1px solid var(--muted); justify-self: start; padding-bottom: 4px; }
.enquiry, .enquiry__thanks { grid-column: 7 / span 6; }
@media (max-width: 1023px) { .contact__head, .enquiry, .enquiry__thanks { grid-column: 1 / -1; } }
.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 599px) { .enquiry { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--fs-small); font-weight: var(--w-regular); color: var(--cream); padding: 0; }
.opt { color: var(--muted); font-weight: var(--w-light); }
.field input:not([type=radio]):not([type=checkbox]):not([type=file]), .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: var(--w-regular); transition: border-color var(--t-ui) var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field input[type=file] { font-size: var(--fs-small); color: var(--cream-soft); padding: var(--s1) 0; }
.field input[type=file]::file-selector-button { font: inherit; margin-right: var(--s2); padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--gold); background: transparent; color: var(--cream); cursor: pointer; }
.choice { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: 4px; }
.choice label, .check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; font-size: var(--fs-small); }
.check { border: 0; padding: 4px 0; min-height: 32px; }
.choice label:has(input:checked) { border-color: var(--gold); background: var(--panel-2); }
input[type=radio], input[type=checkbox] { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
.field__err { color: var(--error); font-size: var(--fs-small); min-height: 0; }
.field__err:empty { display: none; }
.enquiry__error-summary { grid-column: 1 / -1; border-left: 3px solid var(--error); padding: var(--s2); background: var(--panel-2); border-radius: var(--radius); }
.enquiry__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__thanks { align-self: start; padding: var(--s6) 0; border-top: 1px solid var(--gold); }

/* ---------- Footer ---------- */
/* The footer carries on the contact glow's end colour: plum at 0.38 over the ground (brand values only) */
.site-footer { background: linear-gradient(rgba(77,16,34,.38), rgba(77,16,34,.38)), var(--ground); border-top: 1px solid var(--line); padding-block: var(--s10) var(--s4); font-size: var(--fs-small); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s4); }
.site-footer__grid .wordmark { margin-bottom: 14px; } /* the 56 px mark needs a quarter of its width clear (brand book) */
.site-footer__map, .site-footer__social { display: grid; gap: var(--s1); align-content: start; }
.site-footer a { text-decoration: none; color: var(--cream-soft); }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.not-linked { color: var(--muted); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 599px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Project page ---------- */
.project-hero { padding-top: calc(var(--header-h) + clamp(24px, 5vw, 80px)); }
.project-hero .container { display: grid; gap: var(--s2); padding-bottom: clamp(32px, 5vw, 64px); }
.project-hero__cover { height: clamp(320px, 75vh, 1000px); background: var(--panel); }
.project-hero__cover picture, .project-hero__cover img { width: 100%; height: 100%; }
.project-hero__cover img { object-fit: cover; }
.project-story { display: grid; gap: var(--s3); }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 120px)); gap: var(--s3); margin-top: var(--s3); }
@media (max-width: 767px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
.swatches li { display: grid; gap: var(--s1); font-size: var(--fs-small); letter-spacing: .08em; }
.swatch { display: block; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); }
.swatch--lime { background: #e6dfcf; } .swatch--clay { background: #b9805f; } .swatch--olive { background: #7c7a4a; }
.swatch--plum { background: #4a2633; } .swatch--timber { background: #8a5f3c; } .swatch--stone { background: #a9a196; }
.swatches + .muted { margin-top: var(--s2); }
.project-seq { display: grid; gap: clamp(24px, 4vw, 64px); justify-items: center; }
.project-seq li { width: 100%; max-width: 1100px; }
.project-seq li:nth-child(3n+2) { max-width: 720px; justify-self: end; }
.project-seq li:nth-child(3n) { max-width: 720px; justify-self: start; }
.project-seq a { display: block; border-radius: var(--radius); }
.next-project { border-top: 1px solid var(--line); display: grid; gap: var(--s2); }
.next-project a { text-decoration: none; }
.page-project .site-header:not(.is-solid), .page-plain .site-header:not(.is-solid) { background: transparent; }
.prose { padding-top: calc(var(--header-h) + var(--s8)); max-width: calc(var(--measure) + 2 * var(--gutter)); display: grid; gap: var(--s3); }

/* ---------- Scroll reveal: JS marks only below-the-fold items .pre; never under reduced motion ---------- */
.reveal.pre { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal.pre { opacity: 1; transform: none; }
  .fig:hover img { transform: none; }
  .enso.pre .enso__draw { stroke-dashoffset: 0; }
  .slide { transition: none; }
}
.section--panel .fig { background: var(--panel-2); }
