/* Zimmerei Felder demo — layout. Brand tokens (colours, font) live in brand.css; screens render from data.js. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; font: 400 var(--t-body)/1.55 var(--sans); color: var(--ink); background: var(--ground); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
b, strong { font-weight: 600; }
p, h1, h2, h3, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.pane--paper :focus-visible { outline-color: var(--ink); }
[hidden] { display: none !important; }

:root {
  --hdr-h: 64px; --gut: clamp(16px, 4vw, 56px); --maxw: 1320px;
  --t-kick: 11.5px; --t-mini: 11px; --t-intro: 18px; --t-body: 16px; --t-fine: 14px;
  --h1: clamp(2.3rem, min(3.7vw, 7svh), 3.9rem);
  --h3s: clamp(1.15rem, min(1.45vw, 2.5svh), 1.36rem);
}
@media (max-width: 719px) { :root { --hdr-h: 56px; --t-kick: 10.5px; --t-mini: 10.5px; --t-intro: 16px; --t-body: 15px; --t-fine: 13.5px; --h3s: 1.12rem; } }

/* ---------- type roles ---------- */
.kicker { font: 600 var(--t-kick)/1.6 var(--sans); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.pane--dark .kicker, .top .kicker { color: var(--yellow); }
.mini { font: 500 var(--t-mini)/1.6 var(--sans); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pane--dark .mini { color: var(--white-2); }
.intro { font: 400 var(--t-intro)/1.5 var(--sans); color: var(--ink-2); }
.pane--dark .intro, .top .intro { color: var(--white-2); }
.fine { font: 400 var(--t-fine)/1.5 var(--sans); }
.ttl, .top__title { font-weight: 700; letter-spacing: -.01em; line-height: 1.05; }
.ttl > span, .top__title > span { display: block; }
.ttl em, .top__title em { font-style: normal; }
.top__title em, .pane--dark .ttl em { color: var(--yellow); }
.pane--paper .ttl em { background: linear-gradient(180deg, transparent 64%, var(--yellow) 64%, var(--yellow) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; margin: 0 -.06em; }

/* ---------- buttons ---------- */
.kn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border: 1px solid var(--yellow); border-radius: var(--r); background: var(--yellow); color: var(--ink); font: 600 15px/1.1 var(--sans); font-stretch: 106%; letter-spacing: .01em;
  text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .18s ease;
  -webkit-touch-callout: none; user-select: none; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.kn svg { width: 18px; height: 18px; flex: none; }
.kn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: 0; transition: opacity .25s ease; }
.kn:hover::after { opacity: .22; }
.kn:active { transform: scale(.97); }
.kn--line { background: transparent; color: inherit; border-color: currentColor; }
.kn--line::after { background: currentColor; }
.kn--line:hover::after { opacity: .12; }
.pane--paper .kn:not(.kn--line) { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.pane--paper .kn:not(.kn--line)::after { background: var(--yellow); }
.pane--paper .kn:not(.kn--line):hover::after { opacity: .14; }

/* ---------- header ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--hdr-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--gut);
  background: rgba(39, 37, 37, .97); color: var(--white); border-bottom: 1px solid rgba(243, 241, 234, .07); }
.bar__logo { display: block; width: 74px; transition: opacity .35s ease, transform .35s ease; }
.bar.has-mark .bar__logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.bar__nav { display: flex; gap: 28px; margin-left: auto; }
.bar__nav a { text-decoration: none; font: 500 14px/1 var(--sans); font-stretch: 108%; color: var(--white-2); padding: 10px 0; transition: color .2s ease; }
.bar__nav a:hover { color: var(--white); }
.bar__call { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 243, 98, .75); border-radius: var(--r);
  text-decoration: none; font: 500 14px/1 var(--sans); color: var(--white); white-space: nowrap; }
.bar__call svg { width: 17px; height: 17px; color: var(--yellow); }
.bar__call:hover { background: rgba(255, 243, 98, .12); }
@media (max-width: 899px) { .bar__nav { display: none; } .bar__call { margin-left: auto; } }
@media (max-width: 719px) { .bar__call span { display: none; } .bar__call { width: 44px; height: 44px; padding: 0; justify-content: center; } .bar__logo { width: 64px; } }

.mark { width: 100%; height: auto; overflow: visible; }
.mark .lg-word { fill: var(--logo-word); } .mark .lg-outline { fill: var(--logo-outline); } .mark .lg-fill { fill: var(--logo-fill); }

/* ---------- hero: the joint on the left, the words on the right ---------- */
.top { position: relative; min-height: 100svh; padding: var(--hdr-h) var(--gut) 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; column-gap: clamp(20px, 3vw, 56px); background: var(--ground); color: var(--white); overflow: hidden; overflow-anchor: none; }
.top__say { max-width: 560px; padding: 28px 0; }
.sign__logo { width: clamp(190px, 15vw, 270px); }
.top__label { margin-top: clamp(22px, 4.4svh, 44px); }
.top__title { font-size: var(--h1); margin-top: 10px; }
.top__line { max-width: 40ch; margin-top: 18px; }
.top__status { margin-top: 12px; color: var(--yellow); font: 500 var(--t-fine)/1.4 var(--sans); }
.top__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4.2svh, 40px); }
.top__btns .kn--line { color: var(--white); }
.stage { --dev: min(calc(100svh - var(--hdr-h) - 12px), 56vw, 980px); position: relative; width: var(--dev); height: var(--dev); align-self: center; margin-left: 0; }
.stage picture { display: contents; }
.stage__still, .stage__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__vid { opacity: 0; transition: opacity .25s linear;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 96%, transparent); mask-composite: intersect; }
.stage.has-vid .stage__vid { opacity: 1; }
.stage__ui { position: absolute; inset: 0; pointer-events: none; }
.stage__ui > * { pointer-events: auto; }
.stage__peg { position: absolute; width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: none; padding: 0; }
.stage__peg i { position: absolute; inset: 30%; border-radius: 50%; }
.stage__peg i::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid var(--yellow); opacity: 0; transform: scale(.6); }
.stage.is-ready .stage__peg i::after { animation: ring 1.8s ease-out 3; }
.stage.is-ready.is-off .stage__peg i::after { animation-play-state: paused; }
@keyframes ring { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: scale(1.5); } }
.stage__peg:hover i::after { opacity: .9; transform: scale(1.1); transition: transform .3s ease, opacity .3s ease; }
.stage__hint { position: absolute; font: 500 var(--t-mini)/1.3 var(--sans); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--white-2); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.stage.is-ready .stage__hint { opacity: 1; }
@media (max-width: 899px) { .stage__hint { display: none; } }

/* outlets: one per timber end — a chalk dot on the end grain and the service beside it */
.leg__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 1.5px solid rgba(243, 241, 234, .55); pointer-events: none;
  opacity: 0; transform: scale(.4); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1.4), background-color .35s ease, border-color .35s ease; }
.leg__dot::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; background: var(--yellow); opacity: 0; transform: scale(.4); }
.leg__dot.is-on { opacity: 1; transform: none; border-color: var(--yellow); background: var(--yellow); }
.leg__dot.is-on::after { animation: drop .9s ease-out 1; }
@keyframes drop { 0% { opacity: .5; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.7); } }
.leg { position: absolute; display: flex; flex-direction: column; gap: 3px; padding: 6px 0; border: 0; background: none; text-align: left; color: var(--white);
  transform: translate(0, -50%); opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.leg > span { transition: transform .45s ease; transform: translateY(6px); }
.leg--l { text-align: right; align-items: flex-end; transform: translate(-100%, -50%); }
.leg.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.leg.is-on > span { transform: none; }
.leg__t { font: 600 clamp(14px, calc(var(--dev) * .022), 19px)/1.12 var(--sans); hyphens: manual; -webkit-hyphens: manual; }
.leg__s { font: 500 clamp(9.5px, calc(var(--dev) * .0122), 11.5px)/1.2 var(--sans); font-stretch: 110%; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); line-height: 1.45; }
@media (hover: hover) and (pointer: fine) { .leg:hover .leg__t { text-decoration: underline 1px var(--yellow); text-underline-offset: 5px; } }
@media (max-width: 719px) { .leg__s { display: none; } }

/* phone + portrait tablet: logo row, the joint, the line, two doors */
@media (max-width: 899px) {
  .top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sign" "dev" "title" "btns"; padding: calc(var(--hdr-h) + 8px) 0 16px; align-content: center; row-gap: 0; }
  .top__say { display: contents; }
  .sign { grid-area: sign; padding: 0 var(--gut); }
  .sign__logo { width: min(38vw, 168px); }
  .top__line { display: none; }
  .top__label { grid-area: sign; justify-self: end; align-self: end; max-width: 42%; margin: 0 var(--gut) 4px 0; text-align: right; font-size: 10px; line-height: 1.5; }
  .stage { grid-area: dev; --dev: min(118vw, calc(100svh - var(--hdr-h) - 262px)); --sx: calc((100vw - var(--dev)) / 2); justify-self: start; margin: -2% 0 -4% var(--sx); }
  .top__title { grid-area: title; margin: 4px var(--gut) 0; font-size: clamp(1.3rem, 5.7vw, 2rem); line-height: 1.12; }
  .top__status { grid-area: btns; margin: 0 var(--gut) 8px; }
  .top__btns { grid-area: btns; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0 var(--gut); margin-top: 14px; }
  .top__btns .kn { padding: 0 16px; }
}

/* ---------- screens layer ---------- */
:root {
  --scr-t: calc(var(--hdr-h) + clamp(14px, 3.4svh, 46px));
  --scr-b: clamp(18px, 3.8svh, 50px);
  --scr-h: calc(100svh - var(--scr-t) - var(--scr-b));
  --h2s: clamp(2rem, min(3.2vw, 5.4svh), 3.4rem);
}
@media (max-width: 899px) { :root { --scr-b: 28px; } }
@media (max-width: 719px) { main > section { scroll-margin-top: var(--hdr-h); } :root { --scr-t: 24px; --h2s: clamp(1.75rem, 7.6vw, 2.3rem); } }
main .ttl { font-size: var(--h2s); }
main > section.pane { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) { main > section.pane { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
.inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.pane--paper { background: var(--paper); color: var(--ink); }
.pane--dark { background: var(--ground); color: var(--white); }
.pane .ttl { margin-top: 8px; }
.pane .intro { margin-top: 14px; max-width: 44ch; }

/* ---------- the inquiry desk ---------- */
.desk { position: relative; border-radius: var(--r); padding: 20px 22px 22px; display: flex; flex-direction: column; min-height: 380px;
  background: #fff; color: var(--ink); border: 1px solid var(--paper-2); box-shadow: 0 30px 60px -36px rgba(39, 37, 37, .4); }
.desk__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; min-height: 36px; }
.desk__back { width: 36px; height: 36px; margin-left: -8px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.desk__back svg { width: 20px; height: 20px; }
.desk__back:hover { background: var(--paper); }
.desk__back[hidden] + .desk__what { grid-column: 1 / 3; }
.desk__what { font: 600 var(--h3s)/1.2 var(--sans); min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.desk__step { white-space: nowrap; }
/* progress = a yellow folding rule (Zollstock) that unfolds step by step */
.ruler { position: relative; height: 16px; margin: 14px 0 16px; border-radius: 1px; overflow: hidden; background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, rgba(39, 37, 37, .22) 0 1px, transparent 1px 8px); background-size: 100% 5px; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px var(--paper-2); }
.ruler__fill { position: absolute; inset: 0; background-color: var(--yellow);
  background-image: repeating-linear-gradient(90deg, rgba(39, 37, 37, .75) 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, rgba(39, 37, 37, .75) 0 1.5px, transparent 1.5px 40px);
  background-size: 100% 5px, 100% 9px; background-repeat: no-repeat;
  -webkit-clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); transition: clip-path .8s cubic-bezier(.2, .8, .2, 1), -webkit-clip-path .8s cubic-bezier(.2, .8, .2, 1); }
.desk__body { flex: 1; display: flex; flex-direction: column; }
.desk__q { font: 600 var(--h3s)/1.25 var(--sans); }
.desk__q2 { margin-top: 14px; font: 500 var(--t-fine)/1.3 var(--sans); color: var(--ink-2); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.chip { min-height: 46px; padding: 10px 12px; text-align: left; border-radius: var(--r); font: 400 15px/1.25 var(--sans);
  border: 1px solid var(--paper-2); background: var(--paper); transition: border-color .2s ease, background-color .2s ease; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-on { border-color: var(--ink); background: #fff7a6; }
.chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips--3 .chip { padding: 9px 10px; font-size: 14px; }
.inputs { display: grid; gap: 14px; margin-top: 14px; }
.feld { display: grid; gap: 4px; }
.feld > span { font: 500 var(--t-mini)/1.5 var(--sans); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.feld input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 0 9px; font: 400 17px/1.3 var(--sans); border-radius: 0; }
.feld input:focus { outline: 0; border-bottom-color: var(--ink); }
.desk__go { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.desk__go .kn { flex: 1 1 auto; }
.desk .kn:not(.kn--line) { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.desk .kn--line { color: var(--ink); }
.desk__err { font: 500 var(--t-fine)/1.4 var(--sans); color: var(--olive); flex-basis: 100%; }
.zettel { border: 1px dashed var(--line); border-radius: var(--r); padding: 14px 16px; background: linear-gradient(180deg, #fffbd6, #fff 60%); }
.zettel__t { display: flex; align-items: center; gap: 10px; font: 600 var(--h3s)/1.25 var(--sans); }
.zettel__t svg { width: 22px; height: 22px; color: var(--ink); background: var(--yellow); border-radius: 50%; padding: 3px; flex: none; }
.zettel dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin-top: 12px; font: 400 var(--t-fine)/1.4 var(--sans); }
.zettel dt { color: var(--ink-2); }
.zettel dd { min-width: 0; overflow-wrap: anywhere; }
.zettel__note { margin-top: 12px; font: 400 var(--t-fine)/1.45 var(--sans); color: var(--ink-2); }
.zettel__note b { color: var(--ink); font-weight: 600; }

.ask__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 5vw, 88px); align-items: center; }
.look { margin-top: clamp(16px, 3svh, 28px); }
.look__frame { position: relative; height: clamp(180px, calc(var(--scr-h) - 330px), 430px); overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.look__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.look__img.is-out { opacity: 0; }
.look__cap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 10px; }
.look__cap .fine { color: var(--ink-2); }
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.kachel { position: relative; height: clamp(64px, 9.4svh, 96px); border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-2); text-align: left; color: #fff; }
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.kachel::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(39, 37, 37, .05) 20%, rgba(39, 37, 37, .82)); }
.kachel span { position: absolute; z-index: 2; left: 10px; right: 8px; bottom: 8px; font: 600 14.5px/1.15 var(--sans); }
.kachel::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: var(--r); box-shadow: inset 0 0 0 0 var(--yellow); transition: box-shadow .2s ease; }
.kachel.is-on::after { box-shadow: inset 0 0 0 3px var(--yellow); }
.kachel:hover img { transform: scale(1.05); }
.bilder { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bilder__add { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; font: 500 15px/1.2 var(--sans); }
.bilder__add svg { width: 22px; height: 22px; color: var(--ink); }
.bilder__add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bilder__th { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; background: var(--paper-2); }
.bilder__note { margin-top: 10px; font: 400 var(--t-fine)/1.45 var(--sans); color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- projects: before / after ---------- */
.proj__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4.5vw, 80px); align-items: center; }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 3.4svh, 30px); }
.place { min-height: 42px; padding: 0 15px; border: 1px solid var(--ground-3); border-radius: var(--r); background: transparent; font: 500 14px/1 var(--sans); color: var(--white); white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.place:hover { border-color: var(--white-2); }
.place[aria-selected="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.proj__info { margin-top: clamp(18px, 3.4svh, 30px); }
.proj__what { font: 600 var(--h3s)/1.25 var(--sans); }
.proj__line { margin-top: 6px; color: var(--white-2); max-width: 46ch; min-height: 3em; }
.proj__info .kn { margin-top: clamp(14px, 2.6svh, 22px); }
.cmp { position: relative; }
.cmp__box { --x: 50%; position: relative; aspect-ratio: 4 / 3; max-height: calc(var(--scr-h) - 40px); width: 100%; overflow: hidden; border-radius: var(--r); background: var(--ground-2);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.cmp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cmp__a { position: absolute; inset: 0; -webkit-clip-path: inset(0 calc(100% - var(--x)) 0 0); clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--yellow); pointer-events: none; }
.cmp__grip { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); }
.cmp__grip svg { width: 22px; height: 22px; }
.cmp__tag { position: absolute; top: 12px; padding: 5px 9px; border-radius: var(--r); background: rgba(39, 37, 37, .78); color: var(--white); font: 500 var(--t-mini)/1.2 var(--sans); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.cmp__tag--a { left: 12px; } .cmp__tag--b { right: 12px; }
.cmp__src { margin-top: 10px; color: var(--white-2); }
.cmp__img.is-out { opacity: 0; transition: opacity .3s ease; }

/* ---------- contact ---------- */
.reach__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.knot { position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: calc(var(--scr-h) - 10px); }
.knot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect; }
.reach__who { margin-top: 12px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin-top: clamp(16px, 3svh, 26px); font: 400 var(--t-body)/1.45 var(--sans); }
.facts dt { color: var(--ink-2); }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.facts a { text-decoration: none; border-bottom: 1px solid var(--line); }
.reach__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.6svh, 34px); }
.reach__btns .kn--line { color: var(--ink); }
.reach__btns .kn.is-done { background: var(--yellow); border-color: var(--ink); }

/* ---------- footer ---------- */
.foot { background: var(--ground); color: var(--white-2); padding-top: 8px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--ground-3); }
.foot__links { display: flex; gap: 22px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(178, 173, 163, .5); }
.foot a:hover { color: var(--white); }
.foot .vc-credit-row { margin-top: 18px; }

/* ---------- draft note + dock ---------- */
.memo__tab { position: fixed; left: 0; top: 50%; z-index: 45; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 14px 7px; border: 0; border-radius: 0 var(--r) var(--r) 0;
  background: var(--ground-3); color: var(--white); font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.memo__tab:hover { background: #4d4844; }
.memo { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(20, 19, 19, .55); }
.memo__panel { position: relative; width: min(440px, 100%); padding: 26px 24px 22px; border-radius: var(--r); background: var(--paper); color: var(--ink); display: grid; gap: 16px; justify-items: start; font: 400 var(--t-body)/1.55 var(--sans); }
.memo__panel #noteText { padding-right: 40px; }
.memo__panel .kn--line { color: var(--ink); }
.memo__fine { color: var(--ink-2); }
.memo__x { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); }
.memo__x::before, .memo__x::after { content: ''; position: absolute; left: 13px; right: 13px; top: 21px; height: 1.6px; background: var(--ink); transform: rotate(45deg); }
.memo__x::after { transform: rotate(-45deg); }
.pad { display: none; }
@media (max-width: 899px) {
  .memo__tab { display: none; }
  .pad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 42; display: grid; grid-template-columns: minmax(0, 1fr) 52px auto; gap: 8px; align-items: center;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(39, 37, 37, .97); border-top: 1px solid var(--ground-3);
    transform: translateY(110%); transition: transform .35s ease; }
  .pad.is-on { transform: none; }
  .pad__main { min-height: 48px; border: 0; border-radius: var(--r); background: var(--yellow); color: var(--ink); font: 600 15px/1 var(--sans); }
  .pad__call { display: grid; place-items: center; height: 48px; border: 1px solid var(--yellow); border-radius: var(--r); color: var(--white); }
  .pad__call svg { width: 20px; height: 20px; }
  .pad__note { min-height: 48px; padding: 0 10px; border: 0; background: none; color: var(--white-2); font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
  main > section:last-of-type { padding-bottom: calc(var(--scr-b) + 20px); }
  .foot { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1100px) and (min-width: 900px) {
  .ask__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
}
@media (max-width: 899px) {
  .ask__grid, .proj__grid, .reach__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .desk { min-height: 0; }
  .look { display: none; }
  .proj__say { display: contents; }
  .proj__say > .kicker { order: 1; } .proj__say > .ttl { order: 2; margin-top: 4px; } .proj__lead { display: none; }
  .cmp { order: 3; } .places { order: 4; margin-top: 0; } .proj__info { order: 5; margin-top: 0; }
  .proj__grid { gap: 12px; }
  .knot { aspect-ratio: auto; height: clamp(130px, 24svh, 240px); }
}
@media (max-width: 719px) {
  .ask__lead { display: none; }
  .desk { padding: 16px 16px 18px; }
  .places { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scroll-snap-type: x proximity; }
  .places::-webkit-scrollbar { display: none; }
  .place { scroll-snap-align: start; min-height: 40px; padding: 0 13px; }
  .proj__line { display: none; }
  .proj__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .proj__info .kn { margin-top: 0; padding: 0 14px; }
  .proj__what { font-size: var(--t-body); }
  .cmp__src { display: none; }
  .cmp__box { aspect-ratio: auto; height: clamp(200px, 37svh, 320px); }
  .reach__grid { gap: 14px; }
  .reach__who { margin-top: 8px; }
  .facts { gap: 4px 14px; margin-top: 12px; font-size: var(--t-fine); }
  .reach__btns { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px; margin-top: 16px; gap: 8px; }
  .reach__btns .kn { padding: 0 10px; }
  .reach__btns .kn--line span { display: none; }
  .kachel { height: clamp(58px, 8.6svh, 84px); }
  .kachel span { font-size: 13.5px; }
  .foot__row { flex-direction: column; }
}

/* ---------- motion states ---------- */
.js .sign__logo, .js .top__label, .js .top__title, .js .top__line, .js .top__btns { opacity: 0; }
.no-anim .sign__logo, .no-anim .top__label, .no-anim .top__title, .no-anim .top__line, .no-anim .top__btns,
.is-static .sign__logo, .is-static .top__label, .is-static .top__title, .is-static .top__line, .is-static .top__btns { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* VCSLV credit — one quiet line under the footer. Takes the footer's colour and font; the mark is vector
   (Onest 700 outlines, no font download). Only the dot carries our terracotta. */
.vc-credit-row {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  display: flex; justify-content: center;
  grid-column: 1 / -1; flex: 0 0 100%; width: 100%; box-sizing: border-box;
}
.vc-credit {
  --vc-dot: #D2664A;
  display: inline-flex; align-items: center; gap: .7em; min-height: 44px; padding: 0 6px;
  color: inherit; text-decoration: none; font-size: 12px; line-height: 1; letter-spacing: .04em;
  opacity: .72; transition: opacity .4s ease;
}
.vc-credit--light { --vc-dot: #A8452F; }
.vc-credit__mark { display: block; height: .92em; width: auto; overflow: visible; }
.vc-credit__dot { fill: var(--vc-dot); transform-box: fill-box; transform-origin: center; transition: transform .8s cubic-bezier(.2, .9, .25, 1.35) .15s, filter .4s ease; }
.vc-credit__line { padding-left: .7em; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.vc-credit.is-arm .vc-credit__dot { transform: scale(0); }
.vc-credit.is-arm.is-in .vc-credit__dot { transform: scale(1); }
.vc-credit:hover, .vc-credit:focus-visible { opacity: 1; }
.vc-credit:hover .vc-credit__dot, .vc-credit:focus-visible .vc-credit__dot { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--vc-dot) 80%, transparent)); }
.vc-credit:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 520px) {
  .vc-credit { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 10px 6px; }
  .vc-credit__line { flex-basis: 100%; text-align: center; padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .vc-credit.is-arm .vc-credit__dot { transform: none; transition: none; } }

.show-s { display: none; }
@media (max-width: 719px) { .hide-s { display: none; } .show-s { display: inline; } }
