/* Velatura. Ceppo grey + walnut umber, one Verde Alpi accent. Bodoni Moda display, Hanken Grotesk text. */
@font-face { font-family: 'Bodoni Moda'; src: url(fonts/bodoni-moda.woff2) format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url(fonts/bodoni-moda-italic.woff2) format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(fonts/hanken-grotesk.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni fb'; src: local('Didot'), local('Bodoni 72'), local('Times New Roman'), local('Times'); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: 'Hanken fb'; src: local('Helvetica Neue'), local('Arial'); size-adjust: 98%; ascent-override: 98%; descent-override: 26%; }

@property --tint { syntax: '<color>'; inherits: true; initial-value: #f0dcc0; }
@property --sun { syntax: '<color>'; inherits: true; initial-value: #ffe6c0; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: #ffc27a; }
@property --dark { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --shaft { syntax: '<number>'; inherits: true; initial-value: .7; }

:root {
  --stone: #D2CCC3;
  --stone-2: #C7C0B5;
  --paper: #E7E2DA;
  --umber: #2A211B;
  --muted: #5B5047;
  --rule: rgba(42, 33, 27, .2);
  --verde: #2F5245;
  --verde-h: #25433A;
  --on-verde: #EDE9E2;
  --d-text: #DCD6CD;
  --d-muted: #A89E92;
  --f-d: 'Bodoni Moda', 'Bodoni fb', 'Didot', serif;
  --f-b: 'Hanken Grotesk', 'Hanken fb', 'Helvetica Neue', Arial, sans-serif;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.76, 0, .24, 1);
  --e-ui: cubic-bezier(.23, 1, .32, 1);
  --pad: 20px;
  --r: 2px;
}
@media (min-width: 760px) { :root { --pad: 32px; } }
@media (min-width: 1200px) { :root { --pad: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--stone); color: var(--umber); font: 400 16px/1.55 var(--f-b); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--umber); color: var(--stone); }
:focus-visible { outline: 2px solid var(--umber); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--umber); color: var(--stone); padding: 10px 14px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.it-only { display: none; }
.lang-it .it-only { display: block; }

/* ---------- type ---------- */
.display { font-family: var(--f-d); font-weight: 400; letter-spacing: -.025em; line-height: .9; margin: 0; }
.h2 { font-family: var(--f-d); font-weight: 400; font-size: clamp(38px, 6.2vw, 92px); line-height: .95; letter-spacing: -.025em; margin: 0; }
.h3 { font-family: var(--f-d); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: -.015em; margin: 0; }
h3 { font-weight: 500; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font: 500 15px/1 var(--f-b); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: background-color .2s var(--e-ui), color .2s var(--e-ui), border-color .2s var(--e-ui), transform .14s var(--e-ui); }
.btn:active { transform: scale(.97); }
.btn-verde { background: var(--verde); color: var(--on-verde); }
.btn-verde:hover { background: var(--verde-h); }
.btn-line { background: transparent; border-color: rgba(42, 33, 27, .45); color: var(--umber); }
.btn-line:hover { background: var(--umber); color: var(--stone); border-color: var(--umber); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--e-out); }
.tlink:hover { background-size: 0 1px; background-position: 100% 100%; }
.tlink-sm { font-size: 13px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 var(--pad); transition: background-color .3s var(--e-ui), box-shadow .3s var(--e-ui); }
.nav.scrolled { background: rgba(210, 204, 195, .92); box-shadow: 0 1px 0 var(--rule); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-w { font-family: var(--f-d); font-style: italic; font-size: 25px; letter-spacing: -.01em; line-height: 1; }
.logo-s { font-size: 12px; color: var(--muted); display: none; }
.nav-links { display: none; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--e-out); }
.nav-links a:hover { background-size: 100% 1px; }
.nav-r { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid rgba(42, 33, 27, .35); border-radius: var(--r); }
.lang button { border: 0; background: transparent; padding: 0 10px; height: 34px; font-size: 12px; font-weight: 600; letter-spacing: .06em; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--umber); color: var(--stone); }
.nav-cta { display: none; }
.nav-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.nav-toggle .ic { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 60px 0 0 0; z-index: 49; background: var(--stone); padding: 28px var(--pad); display: flex; flex-direction: column; gap: 32px; }
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-family: var(--f-d); font-size: 40px; line-height: 1.15; text-decoration: none; border-bottom: 1px solid var(--rule); padding: 8px 0; }
.drawer-open { overflow: hidden; }
@media (min-width: 1024px) {
  .nav { height: 72px; }
  .logo-s, .nav-links, .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 68px var(--pad) 28px; }
.hero-copy { display: contents; }
.kicker { grid-row: 1; margin: 6px 0 10px; font-size: 13px; line-height: 1.4; color: var(--muted); max-width: 30ch; }
.hero h1 { grid-row: 2; font-size: clamp(52px, 15vw, 132px); }
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
.lang-it .hero h1 { font-size: clamp(46px, 13.2vw, 120px); }
.room { grid-row: 3; margin: 16px calc(var(--pad) * -1) 0; }
.room-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-2); }
#room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.room figcaption { padding: 0; }
.room { position: relative; }
.room-cap { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 11.5px; color: var(--umber); background: rgba(231, 226, 218, .9); padding: 4px 8px; border-radius: var(--r); }
.spec, .room [data-carry] { display: none; }
.room-note { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; padding: 10px 12px; background: rgba(231, 226, 218, .94); border-radius: var(--r); font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--e-ui), transform .5s var(--e-out); pointer-events: none; }
.room-note.on { opacity: 1; transform: none; }
.room-note b { font-weight: 600; }
.fan-zone { grid-row: 4; position: relative; height: 300px; margin: 0 calc(var(--pad) * -1); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fan { position: absolute; left: 50%; bottom: 76px; width: 0; height: 0; --bw: 56px; --bh: 196px; }
.fan-hint { position: absolute; left: 0; right: 0; top: 4px; margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); transition: opacity .4s var(--e-ui); pointer-events: none; }
.fan-used .fan-hint, .hint-off .fan-hint { opacity: 0; }
.lead { grid-row: 5; margin: 18px 0 0; font-size: 17px; line-height: 1.5; max-width: 34ch; }
.hero-ctas { grid-row: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }

/* the fan */
.blade { position: absolute; left: calc(var(--bw) / -2); bottom: calc(var(--bw) / -2); width: var(--bw); height: var(--bh); transform-origin: 50% calc(100% - var(--bw) / 2); padding: 0; border: 0; border-radius: 3px 3px calc(var(--bw) / 2) calc(var(--bw) / 2); background: var(--paper); display: flex; flex-direction: column; overflow: hidden; cursor: pointer; touch-action: pan-y; will-change: transform; box-shadow: 0 0 0 .5px rgba(42, 33, 27, .28), -6px 8px 16px -12px rgba(42, 33, 27, .55); -webkit-tap-highlight-color: transparent; }
.sw { flex: 0 0 60%; background: #bbb center / cover no-repeat; position: relative; }
.sw::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 30%, transparent 70%, rgba(42, 33, 27, .14)); }
.lab { flex: 1; display: flex; justify-content: space-between; padding: 7px 6px calc(var(--bw) * .95) 7px; }
.lab-n, .lab-c { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; line-height: 1; }
.lab-n { font: 500 11px/1 var(--f-b); letter-spacing: .01em; }
.lab-c { font: 500 9px/1 var(--f-b); color: var(--muted); letter-spacing: .06em; }
.tick { position: absolute; top: calc(60% + 6px); right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); opacity: 0; transform: scale(.4); transition: opacity .25s var(--e-ui), transform .35s var(--e-out); }
.blade[aria-pressed="true"] .tick { opacity: 1; transform: none; }
.blade:focus-visible { outline: 2px solid var(--umber); outline-offset: 2px; }
.rivet { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; z-index: 40; background: radial-gradient(circle at 35% 30%, #A9825E, #6B4A32 55%, #3E2A1C); box-shadow: 0 1px 2px rgba(42, 33, 27, .5), inset 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.dragging .blade { cursor: grabbing; }

/* room drawing */
#room .ln { fill: none; stroke: var(--umber); stroke-width: 1.35; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 0; }
#room .ln.faint { stroke-opacity: .26; }
#room .mat-top { transition: opacity .9s var(--e-out); }
#room .wash { fill: #E7E2DA; opacity: .1; pointer-events: none; }
#room .tint { fill: var(--tint); mix-blend-mode: multiply; opacity: .55; pointer-events: none; }
#room .dark { fill: #2A211B; opacity: var(--dark); pointer-events: none; }
#room .shaft { mix-blend-mode: screen; opacity: var(--shaft); }
#room .shaft-bar { stroke: #2A211B; stroke-opacity: .22; stroke-width: 7; filter: url(#soft); }
#room .glow { mix-blend-mode: screen; opacity: .9; pointer-events: none; }
#room .st-sun { stop-color: var(--sun); }
#room .st-glow { stop-color: var(--glow); }
#room { transition: --tint 1.1s var(--e-out), --sun 1.1s var(--e-out), --glow 1.1s var(--e-out), --dark 1.1s var(--e-out), --shaft 1.1s var(--e-out); }
/* intro: lines draw, then the materials arrive */
.js:not(.go) #room .ln { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js #room .ln { transition: stroke-dashoffset 1.25s var(--e-io); }
.js.go #room .ln { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js #room .mat, .js #room .shade, .js #room .tint, .js #room .shaft, .js #room .glow, .js #room .win polygon, .js #room .ceil polygon, .js #room .pillow polygon, .js #room .glass polygon, .js #room .curtain polygon, .js #room .wash { opacity: 0; transition: opacity 1s var(--e-out) .75s; }
.js.go #room .mat, .js.go #room .shade, .js.go #room .win polygon, .js.go #room .ceil polygon, .js.go #room .pillow polygon, .js.go #room .glass polygon, .js.go #room .curtain polygon { opacity: 1; }
.js.go #room .wash { opacity: .1; }
.js.go #room .tint { opacity: .55; }
.js.go #room .shaft { opacity: var(--shaft); transition: opacity 1.4s var(--e-out) 1.1s; }
.js.go #room .glow { opacity: .9; transition: opacity 1.4s var(--e-out) 1.2s; }
.js.go #room .mat-top { transition: opacity .9s var(--e-out); }
.js:not(.go) .hero h1 .ln > span { transform: translateY(105%); }
.js .hero h1 .ln > span { transition: transform 1.1s var(--e-out); }
.js .hero h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.js:not(.go) .kicker, .js:not(.go) .fan-hint { opacity: 0; }
.js .kicker { transition: opacity .8s var(--e-ui) .3s; }

@media (min-width: 760px) and (max-width: 1023px) {
  .fan-zone { height: 330px; }
  .fan { --bw: 70px; --bh: 262px; bottom: 44px; }
  .room { margin-inline: 0; }
}
@media (min-width: 1024px) {
  .hero { height: 100vh; height: 100svh; min-height: 680px; }
  .hero-in { height: 100%; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; column-gap: 24px; padding: 104px var(--pad) 28px; }
  .hero-copy { display: block; grid-column: 1 / span 5; grid-row: 1 / span 3; position: relative; z-index: 2; }
  .kicker { margin: 0 0 22px; }
  .hero h1 { font-size: clamp(64px, 7.1vw, 128px); }
  .lang-it .hero h1 { font-size: clamp(58px, 6.2vw, 112px); }
  .lead { margin-top: 28px; max-width: 31ch; font-size: 17px; }
  .hero-ctas { margin-top: 28px; }
  .room { position: relative; grid-column: 6 / span 7; grid-row: 1 / span 4; margin: 0; align-self: start; max-height: calc(100svh - 150px); }
  .room-frame { max-height: calc(100svh - 210px); aspect-ratio: auto; height: min(calc((100vw - 2 * var(--pad)) * 7 / 12 * .75), calc(100svh - 210px)); }
  .room figcaption { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding: 12px 0 0 150px; }
  .spec { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 12px; }
  .spec div { display: flex; gap: 6px; }
  .spec dt { color: var(--muted); }
  .spec dd { margin: 0; font-weight: 500; }
  .spec div.flash dd { animation: flash 1.2s var(--e-out); }
  .room [data-carry] { display: inline-flex; white-space: nowrap; }
  .room-note { left: 16px; right: auto; max-width: 380px; bottom: auto; top: 50px; transform: translateY(-8px); }
  .room-cap { left: 16px; top: 16px; font-size: 12px; padding: 5px 9px; }
  .fan-zone { position: absolute; left: 0; bottom: 0; width: 52%; height: 50%; margin: 0; z-index: 3; }
  .fan { left: 62%; bottom: 46px; --bw: 82px; --bh: 300px; }
  .fan-hint { justify-content: flex-start; left: var(--pad); top: auto; bottom: 66px; right: auto; max-width: 290px; }
}
@media (min-width: 1024px) and (max-height: 820px) { .fan { --bh: 260px; --bw: 74px; } .lead { font-size: 16px; } }
@keyframes flash { 0% { color: var(--verde); } 100% { color: inherit; } }

/* ---------- studio ---------- */
.studio { padding: 96px 0 88px; }
.studio-grid { display: grid; gap: 28px; }
.thesis { margin: 0; font-size: clamp(19px, 2.1vw, 28px); line-height: 1.38; max-width: 36ch; letter-spacing: -.005em; }
.studio-ph { margin: 8px 0 0; aspect-ratio: 4 / 5; overflow: hidden; }
.studio-ph img { width: 100%; height: 100%; object-fit: cover; }
.caps { list-style: none; margin: 0; padding: 0; }
.caps li { padding: 20px 0 22px; border-top: 1px solid var(--rule); display: grid; gap: 6px; }
.caps li:last-child { border-bottom: 1px solid var(--rule); }
.caps h3 { margin: 0; font-family: var(--f-d); font-size: 30px; font-weight: 400; letter-spacing: -.01em; line-height: 1.05; }
.caps p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (min-width: 1024px) {
  .studio { padding: 168px 0 140px; }
  .studio-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
  .studio .h2 { grid-column: 1 / span 7; }
  .thesis { grid-column: 8 / span 5; align-self: end; }
  .studio-ph { grid-column: 1 / span 4; grid-row: 2 / span 2; margin-top: 40px; }
  .caps { grid-column: 6 / span 7; grid-row: 2; }
  .caps li { grid-template-columns: 5fr 7fr; gap: 24px; padding: 30px 0 32px; }
  .caps h3 { font-size: 34px; }
}

/* ---------- work ---------- */
.work { padding: 72px 0 96px; background: var(--stone-2); }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 36px; }
.work-note { margin: 0; font-size: 13px; color: var(--muted); }
.projects { display: grid; gap: 44px; }
.proj { margin: 0; }
.proj .ph { margin: 0; overflow: hidden; }
.proj img { width: 100%; height: 100%; object-fit: cover; }
.proj-a .ph { aspect-ratio: 4 / 5; }
.proj-b { width: 78%; margin-left: auto; } .proj-b .ph { aspect-ratio: 3 / 4; }
.proj-c .ph { aspect-ratio: 5 / 4; }
.proj-d { width: 70%; } .proj-d .ph { aspect-ratio: 4 / 5; }
.proj-t { padding-top: 14px; display: grid; gap: 4px; }
.proj-t h3 { margin: 0; font-family: var(--f-d); font-weight: 400; font-size: 26px; letter-spacing: -.01em; line-height: 1.05; }
.proj-t p { margin: 0; font-size: 14px; color: var(--muted); }
.tag { justify-self: start; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 7px; border: 1px solid rgba(42, 33, 27, .35); border-radius: var(--r); color: var(--muted); }
@media (min-width: 1024px) {
  .work { padding: 140px 0 160px; }
  .work-head { margin-bottom: 72px; }
  .projects { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; }
  .proj-a { grid-column: 1 / span 6; }
  .proj-b { grid-column: 8 / span 4; width: auto; margin-top: 140px; }
  .proj-c { grid-column: 3 / span 6; margin-top: 120px; }
  .proj-d { grid-column: 10 / span 3; width: auto; margin-top: 220px; }
  .proj-t h3 { font-size: 30px; }
}

/* ---------- rule (quote) ---------- */
.rule { background: var(--umber); color: var(--d-text); padding: 96px 0; }
.rule blockquote { margin: 0; }
.rule-q { margin: 0; font-family: var(--f-d); font-style: italic; font-size: clamp(36px, 6.4vw, 104px); line-height: 1; letter-spacing: -.02em; max-width: 16ch; }
.rule footer { margin-top: 26px; font-size: 13px; color: var(--d-muted); }
@media (min-width: 1024px) { .rule { padding: 170px 0; } .rule-q { margin-left: 16.6%; } .rule footer { margin-left: 16.6%; } }

/* ---------- method ---------- */
.method { padding: 88px 0; }
.method-grid { display: grid; gap: 36px; }
.method-sub { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps .n { font-family: var(--f-d); font-size: 44px; line-height: .85; grid-row: span 2; }
.steps h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); max-width: 52ch; }
.steps .dur { grid-column: 2; font-size: 13px; font-weight: 500; }
.gov { background: var(--paper); padding: 28px 22px; border-radius: var(--r); }
.gov-h { margin: 0 0 14px; font-family: var(--f-d); font-weight: 400; font-size: 28px; letter-spacing: -.01em; line-height: 1.05; }
.gov ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gov li { padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); position: relative; }
.gov li::before { content: ''; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--umber); }
@media (min-width: 1024px) {
  .method { padding: 150px 0; }
  .method-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 72px; }
  .method-side { grid-column: 1 / span 4; position: sticky; top: 110px; align-self: start; }
  .steps { grid-column: 6 / span 7; }
  .steps li { grid-template-columns: 80px 1fr 150px; padding: 30px 0; align-items: start; }
  .steps .n { font-size: 64px; grid-row: auto; }
  .steps .dur { grid-column: 3; text-align: right; padding-top: 3px; }
  .gov { grid-column: 6 / span 7; padding: 40px 44px; }
  .gov ul { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .gov-h { font-size: 34px; margin-bottom: 20px; }
}

/* ---------- board tool ---------- */
.board { padding: 88px 0 96px; background: var(--stone-2); }
.board-head { display: grid; gap: 16px; margin-bottom: 36px; }
.board-head p { margin: 0; max-width: 52ch; color: var(--muted); }
.board-grid { display: grid; gap: 28px; }
.board-side { display: grid; gap: 16px; align-content: start; }
.pickers { display: grid; gap: 22px; order: 2; }
.pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border: 1px solid rgba(42, 33, 27, .25); border-radius: var(--r); background: var(--stone); cursor: pointer; font-size: 13.5px; line-height: 1.2; min-height: 44px; transition: border-color .2s var(--e-ui), background-color .2s var(--e-ui); }
.chip:hover { border-color: rgba(42, 33, 27, .6); }
.chip-sw { width: 32px; height: 32px; border-radius: 1px; background: center / cover no-repeat; flex: none; }
input:checked + .chip { border-color: var(--umber); background: var(--paper); box-shadow: inset 0 0 0 1px var(--umber); }
input:focus-visible + .chip { outline: 2px solid var(--umber); outline-offset: 2px; }
.plate { --plate-tint: #f0dcc0; position: relative; background: var(--paper); padding: 16px; border-radius: var(--r); box-shadow: 0 1px 0 rgba(42, 33, 27, .18), 0 24px 40px -30px rgba(42, 33, 27, .6); }
.plate-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.plate-name { flex: 1; min-width: 0; }
.plate-name input { width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 6px 0; font-family: var(--f-d); font-size: 22px; letter-spacing: -.01em; }
.plate-name input::placeholder { color: #8C8176; }
.plate-name input:focus { outline: none; border-bottom-color: var(--umber); }
.plate-code { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.plate-tiles { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 92px 92px 74px; gap: 10px; }
.tile { margin: 0; position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile-sw { flex: 1; background: center / cover no-repeat; border-radius: 1px; box-shadow: 0 1px 2px rgba(42, 33, 27, .35); position: relative; }
.tile-sw::after { content: ''; position: absolute; inset: 0; background: var(--plate-tint); mix-blend-mode: multiply; opacity: .35; transition: background-color 1s var(--e-out); }
.tile figcaption { display: none; }
.ta { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.tb { grid-column: 5 / span 2; grid-row: 1 / span 2; }
.tc { grid-column: 1 / span 3; grid-row: 3; }
.td { grid-column: 4 / span 2; grid-row: 3; }
.te { grid-column: 6; grid-row: 3; }
.plate-tiles + .plate-light { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.plate-light b { color: var(--umber); font-weight: 600; }
.plate-legend { display: none; }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.board-status { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: 13px; color: var(--muted); word-break: break-all; }
.saved-h { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.saved ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.saved li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--stone); border-radius: var(--r); }
.sv-sw { display: flex; }
.sv-sw i { width: 16px; height: 22px; background: center / cover; margin-right: -4px; border: 1px solid var(--stone); }
.sv-t { flex: 1; min-width: 0; display: grid; font-size: 13px; line-height: 1.3; }
.sv-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-t span { color: var(--muted); font-size: 12px; }
.sv-b { border: 0; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.sv-x { text-decoration: none; font-size: 18px; line-height: 1; }
@media (min-width: 560px) {
  .tile figcaption { display: grid; gap: 1px; padding-top: 6px; font-size: 11.5px; line-height: 1.25; }
  .tile figcaption b { font-weight: 600; }
  .tile figcaption i { font-style: normal; color: var(--muted); font-size: 10.5px; letter-spacing: .05em; }
  .plate-tiles { grid-template-rows: 150px 120px 120px; row-gap: 52px; padding-bottom: 46px; }
  .plate { padding: 24px 24px 18px; }
}
@media (min-width: 1024px) {
  .board { padding: 150px 0 140px; }
  .board-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 24px; margin-bottom: 64px; }
  .board-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
  .pickers { order: 0; gap: 26px; }
  .board-side { position: sticky; top: 100px; }
  .plate { padding: 32px 32px 22px; }
  .plate-tiles { grid-template-rows: 170px 140px 130px; }
}

/* consult form */
.consult { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(42, 33, 27, .3); display: grid; gap: 28px; scroll-margin-top: 90px; }
.consult-head { display: grid; gap: 10px; align-content: start; }
.consult-head p { margin: 0; color: var(--muted); max-width: 40ch; }
.consult-board { font-size: 14px; }
.consult-board b { color: var(--umber); }
.fields { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid rgba(42, 33, 27, .35); border-radius: var(--r); background: var(--paper); font-size: 16px; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A211B' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--umber); box-shadow: inset 0 0 0 1px var(--umber); }
[aria-invalid="true"] { border-color: #8A2E1E !important; }
.err { margin: 0; font-size: 13px; color: #8A2E1E; min-height: 0; }
.err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--umber); flex: none; }
.consult-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.fine { margin: 0; font-size: 12.5px; color: var(--muted); }
.done { padding: 28px; background: var(--paper); border-radius: var(--r); }
.done:focus { outline: none; }
.done-ic { width: 28px; height: 28px; color: var(--verde); }
.done-h { margin: 12px 0 6px; font-family: var(--f-d); font-size: 32px; line-height: 1; }
.done p:last-child { margin: 0; max-width: 52ch; }
@media (min-width: 760px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .consult { grid-template-columns: 4fr 8fr; column-gap: 56px; margin-top: 120px; padding-top: 56px; }
  .consult-foot, .done { grid-column: 2; }
}

/* ---------- contact + footer ---------- */
.contact { background: var(--umber); color: var(--d-text); padding: 96px 0 56px; }
.contact-grid { display: grid; gap: 36px; }
.contact-h { font-size: clamp(54px, 11vw, 176px); }
.contact-t p { margin: 0 0 28px; max-width: 38ch; font-size: 17px; }
.addr { margin: 0; display: grid; gap: 0; }
.addr div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(220, 214, 205, .18); }
.addr dt { color: var(--d-muted); font-size: 13px; padding-top: 2px; }
.addr dd { margin: 0; }
.addr a { text-decoration-color: rgba(220, 214, 205, .4); text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .contact { padding: 170px 0 80px; }
  .contact-grid { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 56px; }
}
.foot { background: var(--umber); color: var(--d-text); padding: 24px 0 96px; overflow: hidden; }
.foot-mark { margin: 0 0 28px; font-family: var(--f-d); font-style: italic; font-size: 27vw; line-height: .78; letter-spacing: -.04em; color: #3A2F27; white-space: nowrap; }
.foot-grid { display: grid; gap: 24px; border-top: 1px solid rgba(220, 214, 205, .18); padding-top: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.55; color: var(--d-muted); max-width: 92ch; }
.foot-legal .foot-concept { color: var(--d-text); }
@media (min-width: 1024px) { .foot { padding-bottom: 60px; } .foot-grid { grid-template-columns: 4fr 8fr; } .foot-mark { font-size: 24.4vw; } }

.concept-badge { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r); background: var(--umber); color: var(--stone); font: 500 12px/1.2 var(--f-b); text-decoration: none; box-shadow: 0 8px 24px -12px rgba(42, 33, 27, .6); transition: transform .15s var(--e-ui); }
.concept-badge:hover { transform: translateY(-1px); }

/* ---------- reveals (headings + images only) ---------- */
.js .rv { clip-path: inset(-10% -100vw 100% -100vw); transform: translateY(30px); transition: clip-path 1.1s var(--e-out), transform 1.1s var(--e-out); }
.js .rv.in { clip-path: inset(-10% -100vw -20% -100vw); transform: none; }
.js .ph img { clip-path: inset(100% 0 0 0); transform: scale(1.16); transition: clip-path 1.3s var(--e-io), transform 1.8s var(--e-out); }
.js .ph.in img { clip-path: inset(0 0 0 0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .rv, .js .ph img { clip-path: none; transform: none; }
  .js:not(.go) .hero h1 .ln > span { transform: none; }
  .js #room .ln, .js:not(.go) #room .ln { stroke-dasharray: 1 0; stroke-dashoffset: 0; }
  .js #room .mat, .js #room .shade, .js #room .win polygon, .js #room .ceil polygon, .js #room .pillow polygon, .js #room .glass polygon { opacity: 1; }
    .js #room .curtain polygon { opacity: 1; } .js #room .wash { opacity: .1; }
  .js #room .tint { opacity: .55; } .js #room .shaft { opacity: var(--shaft); } .js #room .glow { opacity: .9; }
  .js .kicker, .js .fan-hint { opacity: 1; }
}
@media (max-width: 759px) { #room .ln { stroke-width: 1.7; } }
#room .curtain polygon:first-child { opacity: .82; }
