/* fonts: self-hosted latin subset of Archivo (SIL Open Font License) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; src: url("/assets/fonts/archivo-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Bazzurro: tokens. A dark gallery hall: ink ground, bone text, one terracotta accent. */
:root {
  --bg: #0E1012;
  --bg-2: #15181B;
  --bg-3: #1D2125;
  --ink: #EDEDE9;
  --ink-2: #A9AFB3;
  --line: #2C3136;
  --field: #858C91;         /* form borders: 3:1 or better on the dark surfaces */
  --input: #0E1012;
  --accent: #A83A17;        /* buttons (white text 6.4:1) */
  --accent-h: #BE4520;      /* button hover (white text 5.2:1) */
  --accent-t: #E9835D;      /* accent as text or ring on dark (7:1) */

  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type ramp: 14 / 17 / 21 / 28 / 38-48 / 38-96 */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: 1.75rem;
  --t-xl: clamp(2.125rem, 1.4rem + 2.2vw, 3rem);
  --t-hero: clamp(2.375rem, 0.9rem + 5.6vw, 6rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 40px; --s7: 64px; --s8: 96px; --s9: 144px;

  --gutter: clamp(20px, 4vw, 56px);
  --wrap: 1360px;
  --sec: clamp(72px, 10vw, 144px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hdr: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; color-scheme: dark; scrollbar-color: var(--field) var(--bg); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-base)/1.65 var(--f); font-stretch: 100%;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ol, ul { margin: 0; padding: 0; list-style: none; }
input, button { font: inherit; color: inherit; }
input { caret-color: var(--accent-t); }
:focus-visible { outline: 2px solid var(--accent-t); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 80; background: var(--ink); color: var(--bg); padding: var(--s3) var(--s4); }
.skip:focus { top: var(--s3); }

/* cross-document page transitions (progressive: unsupported browsers just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* headings and labels */
.h1 { font-size: var(--t-hero); font-weight: 560; line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: var(--t-xl); font-weight: 560; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: var(--s5); max-width: 22ch; }
.lbl { font-size: var(--t-sm); font-weight: 600; font-stretch: 118%; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.sub { font-size: var(--t-md); line-height: 1.45; color: var(--ink-2); max-width: 46ch; margin: 0; }
.sec { padding-block: var(--sec); }
.sec-alt { background: var(--bg-2); }
.sec-head { margin-bottom: var(--s6); }
.sec-head .h2 { margin-bottom: var(--s3); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s5);
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 0;
  font-size: 1rem; font-weight: 600; font-stretch: 108%; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.14s var(--ease);
}
.btn:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn:active { transform: scale(0.96); }
.btn-sm { min-height: 44px; padding: 0 var(--s4); font-size: 0.9375rem; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-block { width: 100%; height: 100%; min-height: 64px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); view-transition-name: hdr; }
.hdr-in { display: flex; align-items: center; gap: var(--s5); min-height: var(--hdr); }
.mark { display: inline-flex; gap: 0.4em; align-items: center; min-height: 44px; text-decoration: none; font-size: 1.0625rem; letter-spacing: 0.02em; margin: 0; white-space: nowrap; }
.mark b { font-weight: 800; font-stretch: 125%; letter-spacing: 0.1em; text-transform: uppercase; }
.mark span { font-weight: 400; font-stretch: 110%; color: var(--ink-2); }
.nav { display: none; margin-left: auto; gap: var(--s5); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 9px; height: 2px; background: var(--accent-t); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-cta { display: none; }
.menu { margin-left: auto; position: relative; }
.menu summary { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--ink); cursor: pointer; list-style: none; font-weight: 600; font-stretch: 108%; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--bg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(88vw, 320px); background: var(--bg-2); border: 1px solid var(--ink); padding: var(--s3); display: grid; gap: 2px; }
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s3); text-decoration: none; font-weight: 500; }
.menu-panel a:not(.btn):hover, .menu-panel a[aria-current="page"] { background: var(--bg-3); }
.menu-panel .btn { margin-top: var(--s2); white-space: normal; text-align: center; }
@media (min-width: 1200px) {
  .nav { display: flex; }
  .hdr-cta { display: inline-flex; }
  .menu { display: none; }
}

/* motion: load entrance (hero) + scroll reveals. Off without JS and under reduced motion. */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.w > span { display: inline-block; }
.js .w > span { animation: rise 0.95s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
.js .settle img { animation: settle 1.7s var(--ease) both; }
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 45ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .wipe { position: relative; }
.js .wipe::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: 50% 0; transition: transform 0.95s var(--ease); z-index: 2; pointer-events: none; }
.js .sec-alt .wipe::after { background: var(--bg-2); }
.js .wipe.in::after { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .w > span, .js .settle img { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .wipe::after { display: none; }
  .btn, .nav a::after, .door, .door img { transition: none; }
}

/* home hero */
.hero { position: relative; min-height: calc(100svh - var(--hdr)); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 16 18 / 0.3) 0%, rgb(14 16 18 / 0) 28%, rgb(14 16 18 / 0.72) 58%, rgb(14 16 18 / 0.95) 100%); }
.hero-in { padding-block: clamp(120px, 20vh, 220px) clamp(32px, 5vw, 72px); }
.hero-row { display: grid; gap: var(--s5); margin-top: var(--s5); align-items: end; }
.lead { font-size: var(--t-md); line-height: 1.45; max-width: 34ch; margin: 0; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (min-width: 900px) { .hero-row { grid-template-columns: 1fr auto; margin-top: var(--s6); } }

/* facts */
.facts { border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: 1fr; }
.fact { padding: var(--s5) 0; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact-v { font-size: var(--t-lg); font-weight: 560; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 var(--s2); font-variant-numeric: tabular-nums; }
.fact-l { font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); margin: 0; max-width: 26ch; }
@media (min-width: 640px) { .facts-in { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-top: 0; } .fact:nth-child(even) { padding-left: var(--s5); border-left: 1px solid var(--line); } }
@media (min-width: 1000px) {
  .facts-in { grid-template-columns: repeat(4, 1fr); }
  .fact { padding: var(--s6) var(--s5); border-top: 0; border-left: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; border-left: 0; }
  .fact-v { font-size: var(--t-xl); }
}

/* recorrido: the WebGL walk. Without WebGL (or with reduced motion) the same content is a stacked gallery. */
.rec { border-bottom: 1px solid var(--line); }
.rec-stage { display: none; }
.rec-intro { padding-block: var(--sec) var(--s6); }
.rec-list { display: grid; gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px); padding-bottom: var(--sec); }
@media (min-width: 760px) { .rec-list { grid-template-columns: 1fr 1fr; } }
.rec-fig { margin: 0; }
.rec-fig a { display: block; text-decoration: none; }
.rec-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); }
.rec-fig figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding-top: var(--s3); font-weight: 600; font-stretch: 105%; }
.rec-fig figcaption span { font-weight: 400; font-size: var(--t-sm); color: var(--ink-2); }
.rec.gl .rec-intro { display: none; }
.rec.gl .rec-track { height: calc(var(--n) * 92svh + 100svh); position: relative; }
.rec.gl .rec-stage { display: block; position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr)); overflow: hidden; background: var(--bg); }
.rec.gl .rec-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; gap: 0; }
.rec.gl .rec-list img { display: none; }
.rec.gl .rec-list { pointer-events: none; }
.rec canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rec-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(14 16 18 / 0.8) 0%, rgb(14 16 18 / 0) 26%, rgb(14 16 18 / 0) 58%, rgb(14 16 18 / 0.92) 100%); }
.rec-ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(24px, 4vw, 48px); pointer-events: none; }
.rec-ui a { pointer-events: auto; }
.rec-head .h2 { margin-bottom: var(--s2); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.rec-head .sub { font-size: var(--t-base); }
.rec-cap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s5); }
.rec-name { font-size: clamp(2rem, 1rem + 3.6vw, 4.5rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1; margin: 0 0 var(--s2); transition: opacity 0.3s var(--ease); }
.rec-type { margin: 0; color: var(--ink-2); font-size: var(--t-base); transition: opacity 0.3s var(--ease); }
.rec-cap.swap .rec-name, .rec-cap.swap .rec-type { opacity: 0; }
.rec-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); z-index: 3; }
.rec-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent-t); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* doors: four categories */
.doors-sec { padding-block: var(--sec); }
.doors { display: flex; gap: 2px; height: min(78svh, 760px); margin-top: var(--s6); }
.door { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(20px, 2.4vw, 36px); text-decoration: none; background: var(--bg-2); transition: flex-grow 0.7s var(--ease); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.68); transition: filter 0.5s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 16 18 / 0) 35%, rgb(14 16 18 / 0.88) 100%); }
.door-cap { position: relative; z-index: 2; }
.door-name { display: block; font-size: clamp(1rem, 0.5rem + 0.75vw, 1.4rem); font-weight: 700; font-stretch: 104%; text-transform: uppercase; letter-spacing: 0; line-height: 1.05; }
.door-n { display: block; margin-top: var(--s2); color: var(--ink); font-size: var(--t-base); }
.door:hover, .door:focus-visible { flex-grow: 2.6; }
.door:hover img, .door:focus-visible img { filter: brightness(0.95); }
.door:focus-visible { outline-offset: -4px; }
@media (max-width: 899px) {
  .doors { flex-direction: column; height: auto; }
  .door { flex: none; height: clamp(180px, 34svh, 300px); }
  .door-name { font-size: 1.75rem; }
  .door:hover, .door:focus-visible { flex-grow: 0; }
}

/* estudio */
.estudio { display: grid; gap: var(--s7); }
.estudio-text p { max-width: 58ch; }
.quote { margin: var(--s6) 0; padding: 0; max-width: 34ch; }
.quote p { font-size: var(--t-lg); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 var(--s3); text-indent: -0.42em; }
.quote footer { font-size: var(--t-sm); font-weight: 600; font-stretch: 118%; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-t); }
.estudio-media { display: grid; gap: var(--s4); align-content: start; }
.fig-main { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.fig-main img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.fig-croquis { margin: 0; background: var(--ink); color: #14171A; }
.fig-croquis img { width: 100%; height: auto; }
.fig-croquis figcaption { font-size: var(--t-sm); padding: var(--s2) var(--s3) var(--s3); }
@media (min-width: 960px) {
  .estudio { grid-template-columns: 6fr 5fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
  .fig-main { aspect-ratio: 4 / 5; }
  .fig-croquis { width: 68%; margin: -22% 0 0 -22%; position: relative; z-index: 3; border: 8px solid var(--bg); }
}

/* servicios */
.servicios { display: grid; gap: var(--s6); }
.acc details { border-top: 1px solid var(--ink-2); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 72px; padding: var(--s4) 0; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font-size: var(--t-md); font-weight: 560; letter-spacing: -0.015em; line-height: 1.25; text-wrap: pretty; }
.acc summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 50% 50% / 2px 100% no-repeat; transition: transform 0.35s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary:hover h3 { color: var(--accent-t); }
.acc-body { padding: 0 0 var(--s6); max-width: 62ch; }
.acc-body p { margin-bottom: 0; color: var(--ink-2); }
.acc-fig { margin: var(--s5) 0 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.acc-fig img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .servicios { grid-template-columns: 4fr 7fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
  .servicios-head { position: sticky; top: 120px; }
}

/* consulta: title block */
.rotulo { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--ink-2); border: 1.5px solid var(--ink-2); }
.rc { background: var(--bg); padding: var(--s4) var(--s5) var(--s5); grid-column: 1 / -1; margin: 0; min-width: 0; border: 0; }
.sec-alt .rc { background: var(--bg-2); }
.rc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); padding-block: var(--s3); }
.rc-studio { font-size: var(--t-sm); color: var(--ink-2); }
.rc .lbl { display: block; margin-bottom: var(--s3); padding: 0; }
.rc-tipo legend { padding: 0; float: left; width: 100%; }
.rc-tipo .chips { clear: both; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s4); border: 1px solid var(--field); background: var(--input); font-weight: 500; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-t); outline-offset: 3px; }
.rc input[type="text"], .rc input[type="number"] { width: 100%; min-height: 52px; padding: 0 var(--s4); background: var(--input); border: 1px solid var(--field); border-radius: 0; font-size: 1.0625rem; }
.rc input[type="text"]:hover, .rc input[type="number"]:hover { border-color: var(--ink); }
.rc input:focus-visible { outline: 2px solid var(--accent-t); outline-offset: 2px; border-color: var(--ink); }
.help { font-size: var(--t-sm); color: var(--ink-2); margin: var(--s2) 0 0; }
.rc-msg output { display: block; font-size: var(--t-md); line-height: 1.4; letter-spacing: -0.01em; }
.rc-go { padding: 0; }
@media (min-width: 960px) {
  .rc-tipo { grid-column: span 8; }
  .rc-nombre { grid-column: span 4; }
  .rc-zona { grid-column: span 8; }
  .rc-m2 { grid-column: span 4; }
  .rc-msg { grid-column: span 8; display: flex; flex-direction: column; justify-content: center; }
  .rc-go { grid-column: span 4; }
}

/* dónde estamos */
.donde { display: grid; gap: var(--s6); }
.donde address { font-style: normal; font-size: var(--t-md); line-height: 1.4; margin-bottom: var(--s5); }
.donde dl { margin: 0 0 var(--s5); display: grid; gap: var(--s4); }
.donde dt { font-size: var(--t-sm); font-weight: 600; font-stretch: 118%; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.donde dd { margin: 2px 0 0; }
.donde dd a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.mapbox { position: relative; width: 100%; aspect-ratio: 1 / 1; min-width: 0; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.mapbox-addr { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s5); margin: 0; color: var(--ink-2); }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 560px) and (max-width: 959px) { .mapbox { aspect-ratio: 4 / 3; } }
@media (min-width: 960px) {
  .donde { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
  .mapbox { aspect-ratio: 5 / 4; }
}

/* footer */
.ftr { background: var(--bg-2); padding-top: var(--s8); border-top: 1px solid var(--line); }
.ftr-in { display: grid; gap: var(--s6); }
.ftr-brand .mark { margin-bottom: var(--s3); }
.ftr-line { color: var(--ink-2); max-width: 30ch; margin-bottom: var(--s5); }
.ftr-nav { display: grid; align-content: start; gap: 0; }
.ftr-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; }
.ftr-nav a:hover { color: var(--accent-t); text-decoration: underline; }
.ftr-legal { margin-top: var(--s7); padding-block: var(--s5); border-top: 1px solid var(--line); }
.ftr-legal p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 900px) { .ftr-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s7); } }

/* category pages */
.chero { position: relative; min-height: calc(86svh - var(--hdr)); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.chero-img { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; }
.chero-img img { width: 100%; height: 100%; object-fit: cover; }
.chero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 16 18 / 0.35) 0%, rgb(14 16 18 / 0.1) 30%, rgb(14 16 18 / 0.6) 65%, rgb(14 16 18 / 0.95) 100%); }
.chero-in { padding-block: clamp(96px, 16vh, 180px) clamp(32px, 5vw, 72px); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s2); margin: 0 0 var(--s2); font-size: var(--t-sm); color: var(--ink); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--ink-2); }
.crumb a:hover { text-decoration-color: var(--accent-t); color: var(--accent-t); }
.ctitle { font-size: clamp(1.9rem, 7.6vw, 6rem); font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.98; margin: 0 0 var(--s5); overflow-wrap: anywhere; }
.chero-row { display: grid; gap: var(--s4) var(--s6); align-items: end; }
.chero-row .lead { max-width: 46ch; }
.chero-n { margin: 0; font-size: var(--t-md); font-weight: 560; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .chero-row { grid-template-columns: 1fr auto; } }

.feats { display: grid; gap: clamp(56px, 8vw, 128px); }
.feat { position: relative; margin: 0; }
.feat-link { display: block; text-decoration: none; }
.feat-img { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-cap h3 { font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 var(--s2); }
.feat-cap p { margin: 0 0 var(--s4); color: var(--ink-2); }
.feat-go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-stretch: 108%; border-bottom: 2px solid var(--accent-t); transition: color 0.2s var(--ease); }
.feat-link:hover .feat-go, .feat-link:focus-visible .feat-go { color: var(--accent-t); }
.feat-full .feat-img { aspect-ratio: 21 / 9; }
.feat-full .feat-cap { padding-top: var(--s4); }
.feat-split { display: grid; gap: var(--s5); }
@media (min-width: 900px) {
  .feat-split .feat-link { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
  .feat-split.rev .feat-link { grid-template-columns: 5fr 7fr; }
  .feat-split.rev .feat-img { order: 2; }
  .feat-split .feat-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 899px) { .feat-full .feat-img { aspect-ratio: 16 / 10; } .feat-cap { padding-top: var(--s4); } }

/* index of all projects */
.idx { display: grid; gap: var(--s6); }
.idx-list { display: grid; }
.idx-row { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s4); align-items: center; width: 100%; min-height: 72px; padding: var(--s2) 0; background: none; border: 0; color: var(--ink-2); text-align: left; text-decoration: none; cursor: pointer; transition: color 0.2s var(--ease), padding 0.35s var(--ease); }
.idx-row img { width: 96px; height: 62px; object-fit: cover; background: var(--bg-2); }
.idx-name { font-size: var(--t-md); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.idx-go { font-size: var(--t-sm); font-weight: 600; font-stretch: 108%; color: var(--ink-2); }
.idx-row[href] .idx-go { color: var(--accent-t); }
.idx-row:hover .idx-name, .idx-row:focus-visible .idx-name { color: var(--accent-t); }
.idx-prev { display: none; }
@media (min-width: 960px) {
  .idx { grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .idx-row { grid-template-columns: 1fr auto; min-height: 56px; padding: var(--s3) 0; color: var(--ink-2); }
  .idx-row img { display: none; }
  .idx-name { font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem); color: var(--ink-2); }
  .idx-row:hover, .idx-row:focus-visible, .idx-row.on { padding-left: var(--s4); }
  .idx-row:hover .idx-name, .idx-row:focus-visible .idx-name, .idx-row.on .idx-name { color: var(--ink); }
  .idx-prev { display: block; position: sticky; top: calc(var(--hdr) + 32px); margin: 0; }
  .idx-prev-box { aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
  .idx-prev-box img { width: 100%; height: 100%; object-fit: cover; }
  .idx-prev figcaption { padding-top: var(--s3); font-weight: 600; font-stretch: 105%; }
}

/* next category and calls */
.nextcat { display: block; padding-block: var(--sec); text-decoration: none; border-top: 1px solid var(--line); }
.nextcat .wrap { display: block; }
.nextcat-l { display: block; margin-bottom: var(--s3); }
.nextcat-t { display: block; font-size: clamp(1.9rem, 7.6vw, 6rem); font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; overflow-wrap: anywhere; transition: color 0.3s var(--ease); }
.nextcat:hover .nextcat-t, .nextcat:focus-visible .nextcat-t { color: var(--accent-t); }
.cta { padding-block: var(--sec); }
.cta .h2 { max-width: 20ch; }
.cta p { color: var(--ink-2); max-width: 46ch; }

/* project pages */
.phero { position: relative; min-height: calc(100svh - var(--hdr)); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.phero-img { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; }
.phero-img img { width: 100%; height: 100%; object-fit: cover; }
.phero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 16 18 / 0.35) 0%, rgb(14 16 18 / 0) 28%, rgb(14 16 18 / 0.5) 62%, rgb(14 16 18 / 0.94) 100%); }
.phero-in { padding-block: clamp(96px, 16vh, 180px) clamp(32px, 5vw, 72px); }
.ptitle { font-size: var(--t-hero); font-weight: 560; line-height: 1; letter-spacing: -0.035em; margin: 0 0 var(--s4); }
.pmeta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; font-size: var(--t-base); }
.pg { display: grid; gap: clamp(12px, 2vw, 28px); padding-block: var(--sec); }
.pg-pair { display: grid; grid-template-columns: 1fr; gap: clamp(12px, 2vw, 28px); }
.pg-narrow { width: min(100%, 66%); margin-inline: auto; }
.lbb { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; }
.lbb img { width: 100%; height: auto; background: var(--bg-2); }
.lbb:focus-visible { outline-offset: 6px; }
@media (min-width: 900px) {
  .pg-pair { grid-template-columns: 1fr 1fr; }
  .pg-pair > :nth-child(2) { margin-top: clamp(40px, 9vw, 140px); }
}
@media (max-width: 899px) { .pg-narrow { width: 100%; } }
.next { position: relative; display: grid; align-items: end; min-height: 64svh; overflow: hidden; isolation: isolate; text-decoration: none; border-top: 1px solid var(--line); }
.next-img { position: absolute; inset: 0; z-index: -1; margin: 0; overflow: hidden; }
.next-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); transition: filter 0.5s var(--ease); }
.next:hover .next-img img, .next:focus-visible .next-img img { filter: brightness(0.9); }
.next-in { padding-block: clamp(96px, 16vh, 180px) clamp(32px, 5vw, 72px); }
.next-t { display: block; font-size: var(--t-hero); font-weight: 560; letter-spacing: -0.035em; line-height: 1; margin-top: var(--s3); }

/* lightbox */
#lb { border: 0; padding: 0; background: transparent; width: min(96vw, 1400px); max-width: none; max-height: 96vh; margin: auto; color: #fff; overflow: visible; }
#lb::backdrop { background: rgb(8 9 10 / 0.95); }
#lb figure { margin: 0; }
#lb img { width: 100%; max-height: 78vh; object-fit: contain; background: transparent; }
#lb figcaption { padding: var(--s3) 0; font-size: var(--t-sm); }
.lb-bar { display: flex; gap: var(--s3); flex-wrap: wrap; }
.lb-bar button { min-height: 48px; padding: 0 var(--s5); background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / 0.7); cursor: pointer; font-weight: 600; font-stretch: 108%; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.14s var(--ease); }
.lb-bar button:hover { background: #fff; color: var(--bg); }
.lb-bar button:active { transform: scale(0.96); }
#lb-close { margin-left: auto; }
#lb :focus-visible { outline-color: #fff; }

/* 404 */
.nf { min-height: 60svh; display: grid; align-content: center; }
@media (max-width: 420px) {
  .hdr .mark { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; font-size: 1rem; }
  .mark b { letter-spacing: 0.08em; }
  .btn { padding: 0 var(--s4); }
  .hero-actions .btn { flex: 1 1 100%; }
}
