/* FORTIS — the drawing set. Paper, sage ink, and a warm lamp. */
:root {
  --paper: #eeebe3;
  --paper-2: #e5e1d6;
  --paper-3: #d9d4c6;
  --ink: #1f231c;
  --ink-2: #474c40;       /* labels: 7.6:1 on paper */
  --sage: #6d8a3d;        /* their mark, lines and rules */
  --sage-ink: #4b6524;    /* small sage text: 5.9:1 on paper */
  --lamp: #f1b94f;        /* interaction cue only */
  --lamp-soft: rgba(241, 185, 79, .28);
  --rule: rgba(31, 35, 28, .22);
  --inset: 14px;
  --bar: 58px;
  --f-lat: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-ka: "Noto Sans Georgian", "Archivo", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 var(--f-lat); font-variation-settings: "wdth" 100; background: var(--paper); overflow-x: hidden; }
html.ka body { font-family: var(--f-ka); }
html.en .ka, html.ka .en { display: none !important; }
[lang="ka"] { font-family: var(--f-ka); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--sage-ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* paper grain + faint grid, drawn in CSS */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .18;
}
main, .foot { position: relative; z-index: 1; }

.skip { position: fixed; left: 20px; top: 20px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- the frame (still) ---------- */
.frame { position: fixed; inset: var(--inset); border: 1px solid var(--ink); pointer-events: none; z-index: 40; box-shadow: 0 0 0 40px var(--paper); }
.tk { position: absolute; background-repeat: repeat; opacity: .55; }
.tk-t, .tk-b { left: 0; right: 0; height: 6px; background-image: linear-gradient(90deg, var(--ink) 1px, transparent 1px); background-size: 24px 6px; }
.tk-t { top: 0; } .tk-b { bottom: 0; }
.tk-l, .tk-r { top: 0; bottom: 0; width: 6px; background-image: linear-gradient(var(--ink) 1px, transparent 1px); background-size: 6px 24px; }
.tk-l { left: 0; } .tk-r { right: 0; }

.bar { position: fixed; z-index: 45; top: var(--inset); left: var(--inset); right: var(--inset); height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 16px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font-weight: 700; letter-spacing: .14em; font-variation-settings: "wdth" 125; font-size: 18px; }
.brand-ka { font-size: 12px; color: var(--ink-2); }
.box { fill: none; stroke: var(--sage); stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }
.box.mark { width: 30px; height: 27px; }
.bar-nav { display: flex; align-items: center; gap: 4px; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
html.ka .bar-nav { font-family: var(--f-ka); text-transform: none; letter-spacing: 0; font-size: 13px; }
.bar-nav > * { padding: 10px 12px; text-decoration: none; border: 1px solid transparent; }
.bar-nav > *:hover { border-color: var(--ink); }
.btn-lang { border: 1px solid var(--ink) !important; font-family: var(--f-ka); }
html.ka .btn-lang { font-family: var(--f-mono); }

.titleblock { position: fixed; z-index: 44; right: var(--inset); bottom: var(--inset); width: 248px;
  background: var(--paper); border-left: 1px solid var(--ink); border-top: 1px solid var(--ink);
  font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.tb-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--rule); }
.tb-row:last-child { border-bottom: 0; }
.tb-name { justify-content: space-between; color: var(--ink); font-weight: 500; }
.tb-sheet { font: 600 22px/1 var(--f-lat); font-variation-settings: "wdth" 110; color: var(--ink); letter-spacing: 0; }
.tb-k { color: var(--sage-ink); }
.tb-title { min-height: 26px; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-xy b { color: var(--ink); font-weight: 500; min-width: 3ch; }

.rail { position: fixed; z-index: 44; right: calc(var(--inset) + 10px); top: 50%; transform: translateY(-58%);
  display: flex; flex-direction: column; gap: 3px; }
.rail a { display: block; width: 22px; height: 12px; position: relative; text-decoration: none; }
.rail a::before { content: ""; position: absolute; right: 0; top: 5px; width: 10px; height: 1px; background: var(--ink); transition: width .3s var(--ease), background .3s; }
.rail a span { position: absolute; right: 30px; top: -2px; font: 500 10px/1 var(--f-mono); white-space: nowrap; opacity: 0; transform: translateX(6px); transition: .25s var(--ease); background: var(--paper); padding: 2px 4px; }
.rail a:hover span, .rail a:focus-visible span, .rail a.on span { opacity: 1; transform: none; }
.rail a:hover::before { width: 18px; }
.rail a.on::before { width: 22px; height: 2px; background: var(--sage); }
.rail a.done::before { background: var(--sage); }
body.work .rail { display: none; }

/* lamp cursor */
.lamp { position: fixed; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  pointer-events: none; z-index: 60; border: 1px solid var(--lamp); box-shadow: 0 0 40px 10px var(--lamp-soft);
  opacity: 0; transition: opacity .25s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); }
.lamp.on { opacity: 1; }
.lamp.xray { width: 22px; height: 22px; margin: -11px 0 0 -11px; box-shadow: none; border-color: var(--sage); }
@media (hover: none) { .lamp { display: none; } }

/* ---------- plates ---------- */
.plate { position: relative; margin: 0; width: 100%; background: var(--paper-2); overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.plate.ready { cursor: none; }
@media (hover: none) { .plate.ready { cursor: auto; } }
.plate::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--ink); pointer-events: none; }
html:not(.js) .plate canvas { display: none; }

/* ---------- cover ---------- */
.cover { min-height: 100svh; display: grid; grid-template-columns: minmax(330px, 5fr) 7fr; gap: clamp(20px, 3vw, 56px);
  padding: calc(var(--inset) + var(--bar) + 28px) calc(var(--inset) + 52px) calc(var(--inset) + 28px) calc(var(--inset) + 34px); align-items: center; }
.cover-mark .box { width: 88px; height: 80px; stroke-width: 7; }
.box.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease) forwards; }
.box.draw .box-lid path { animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cover h1 { margin-top: 18px; line-height: .86; }
.h1-en { display: block; font-size: clamp(56px, 7.4vw, 136px); font-weight: 700; font-variation-settings: "wdth" 125; letter-spacing: -.01em; }
.h1-ka { display: block; font-size: clamp(22px, 2.4vw, 36px); font-weight: 400; color: var(--sage-ink); margin-top: 10px; letter-spacing: .02em; }
.role { margin-top: 22px; font: 500 13px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
html.ka .role { font-family: var(--f-ka); text-transform: none; letter-spacing: 0; font-size: 15px; }
.pun { margin-top: 6px; color: var(--sage-ink); font-size: 15px; }
.lede { margin-top: 16px; max-width: 34em; font-size: 17px; color: var(--ink-2); }
.stats { display: flex; gap: 0; margin-top: 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stats li { flex: 1; padding: 10px 12px 10px 0; font-size: 12px; line-height: 1.25; color: var(--ink-2); }
.stats li + li { padding-left: 12px; border-left: 1px solid var(--rule); }
.stats b { display: block; font-size: 30px; line-height: 1.05; font-weight: 600; color: var(--ink); font-variation-settings: "wdth" 110; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta > * { padding: 13px 18px; text-decoration: none; border: 1px solid var(--ink); font-weight: 500; font-size: 15px; }
.cta .go { background: var(--ink); color: var(--paper); }
.cta .go:hover { background: var(--sage-ink); border-color: var(--sage-ink); }
.cta .ghost:hover { background: var(--paper-2); }
.cover-plate { position: relative; }
.cover-plate .plate { max-height: calc(100svh - 2 * var(--inset) - var(--bar) - 120px); }
.hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink-2); }
html.ka .hint { font-family: var(--f-ka); }
.hint-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px var(--lamp-soft); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-mouse { display: none; } }
.cover-cap { position: absolute; right: 0; bottom: -2px; font: 500 11px/1 var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.cover-plate .hint { padding-right: 160px; }

/* ---------- sheets ---------- */
.sheet { position: relative; height: 230vh; height: 230svh; }
.sheet + .sheet { border-top: 1px dashed var(--rule); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(20px, 3vw, 48px); align-items: center; grid-template-rows: minmax(0, 1fr);
  padding: calc(var(--inset) + var(--bar) + 22px) calc(var(--inset) + 52px) calc(var(--inset) + 22px) calc(var(--inset) + 30px); }
.plate-wrap { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; height: 100%; min-height: 0; }
.plate-wrap .plate { max-height: 100%; width: auto; height: 100%; max-width: 100%; }
.plate-link { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sheet-text { align-self: center; padding-bottom: 120px; }
.sheet-no { display: flex; align-items: baseline; gap: 12px; font: 500 12px/1 var(--f-mono); color: var(--ink-2); letter-spacing: .06em; }
.sheet-no b { font: 600 15px/1 var(--f-mono); color: var(--sage-ink); padding: 5px 8px; border: 1px solid var(--sage-ink); }
.sheet-no .state { margin-left: auto; text-transform: uppercase; }
.sheet h2 { margin-top: 16px; font-size: clamp(30px, 3.2vw, 52px); line-height: .96; font-weight: 650; font-variation-settings: "wdth" 100; letter-spacing: -.01em; overflow-wrap: break-word; }
html.ka .sheet h2 { font-weight: 600; font-size: clamp(30px, 3vw, 48px); line-height: 1.1; }
.sheet h2 a { text-decoration: none; }
.sheet h2 a:hover { color: var(--sage-ink); }
.sheet-title { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.facts { margin: 18px 0 0; border-top: 1px solid var(--ink); font-size: 13px; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 11px/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sage-ink); }
html.ka .facts dt { font-family: var(--f-ka); text-transform: none; letter-spacing: 0; font-size: 12px; }
.facts dd { margin: 0; }
.open { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--ink); text-decoration: none; font-weight: 500; transition: background .2s, color .2s; }
.open:hover { background: var(--ink); color: var(--paper); }
.open em { font: 400 11px/1 var(--f-mono); font-style: normal; opacity: .8; }
.strip { display: flex; gap: 6px; margin-top: 16px; }
.strip li { flex: 1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.strip li:nth-child(2) { transition-delay: .06s; } .strip li:nth-child(3) { transition-delay: .12s; } .strip li:nth-child(4) { transition-delay: .18s; }
.sheet.lit .strip li, html:not(.js) .strip li { opacity: 1; transform: none; }
.strip a { display: block; aspect-ratio: 4/3; overflow: hidden; outline-offset: 1px; border: 1px solid var(--rule); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.strip a:hover img { transform: scale(1.06); }

/* ---------- process ---------- */
.process { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px);
  padding: 0 calc(var(--inset) + 52px) 0 calc(var(--inset) + 30px); border-top: 1px solid var(--ink); }
.proc-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--bar) + var(--inset)); }
.proc-cap { margin-top: 10px; font: 500 11px/1 var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.proc-text h2 { position: sticky; top: calc(var(--inset) + var(--bar) + 20px); padding: 30px 0 14px; background: linear-gradient(var(--paper) 80%, transparent); z-index: 2;
  font-size: clamp(28px, 3vw, 46px); font-variation-settings: "wdth" 112; line-height: 1; }
.steps { padding-bottom: 30vh; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s; border-top: 1px solid var(--rule); }
.step.on { opacity: 1; }
.step-n { font: 600 64px/1 var(--f-lat); font-variation-settings: "wdth" 125; color: var(--sage); }
.step h3 { margin-top: 10px; font-size: 26px; font-weight: 600; }
.step p { margin-top: 8px; max-width: 28em; color: var(--ink-2); font-size: 17px; }

/* ---------- on the table (instagram) ---------- */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 72px); line-height: .95; font-variation-settings: "wdth" 118; font-weight: 650; }
html.ka .sec-head h2 { font-size: clamp(28px, 3.4vw, 54px); line-height: 1.1; }
.sec-head p { color: var(--ink-2); max-width: 36em; }
.sec-head a { color: var(--sage-ink); }
.now { overflow-x: clip; padding: 18vh calc(var(--inset) + 52px) 14vh calc(var(--inset) + 30px); border-top: 1px solid var(--ink); }
.pins { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 26px); margin-top: 48px; }
.pins li { transform: rotate(var(--r)); transition: transform .45s var(--ease); }
.pins li:nth-child(even) { margin-top: 48px; }
.pins li:hover { transform: rotate(0) translateY(-8px) scale(1.03); z-index: 2; }
.pins a { display: block; position: relative; background: #f8f6f0; padding: 8px 8px 12px; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(31,35,28,.45); }
.pins img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.pin { position: absolute; top: -7px; left: 50%; width: 46px; height: 14px; margin-left: -23px; background: rgba(214, 205, 176, .8); transform: rotate(-3deg); }
.cap { display: block; margin-top: 10px; font-size: 13px; line-height: 1.35; }
.pins time { display: block; margin-top: 6px; font: 400 11px/1 var(--f-mono); color: var(--ink-2); }

/* ---------- studio ---------- */
.studio { padding: 14vh calc(var(--inset) + 52px) 14vh calc(var(--inset) + 30px); border-top: 1px solid var(--ink); }
.studio-lede { font-size: 18px; }
.studio-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); margin-top: 56px; }
.services li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 22px; font-weight: 500; font-variation-settings: "wdth" 105; }
.services li:first-child { border-top: 1px solid var(--ink); }
.services li > span:first-child { font: 500 12px/1 var(--f-mono); color: var(--sage-ink); }
.team { columns: 2; column-gap: 32px; border-top: 1px solid var(--ink); }
.team li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.tm-r { color: var(--ink-2); font-size: 13px; text-align: right; }

/* ---------- end ---------- */
.end { padding: 16vh calc(var(--inset) + 52px) 12vh calc(var(--inset) + 30px); border-top: 1px solid var(--ink); text-align: center; }
.end-box .box { width: min(280px, 50vw); height: auto; stroke-width: 4; margin: 0 auto; }
.end-box .box path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.end-box .box-lid { transition: transform 1.2s .9s var(--ease); transform-origin: 150px 128px; }
.end.in .end-box .box path { stroke-dashoffset: 0; }
.end.in .end-box .box-lid { transform: translate(0, -46px) rotate(-8deg); }
.end h2 { margin-top: 36px; font-size: clamp(36px, 5.4vw, 88px); line-height: .95; font-variation-settings: "wdth" 120; font-weight: 650; }
html.ka .end h2 { font-size: clamp(30px, 4vw, 64px); line-height: 1.1; }
.end-lede { margin: 18px auto 0; max-width: 34em; color: var(--ink-2); font-size: 17px; }
.end-phone { margin-top: 28px; }
.end-phone a { font-size: clamp(36px, 6vw, 92px); font-weight: 700; font-variation-settings: "wdth" 125; text-decoration: none; letter-spacing: .02em; background: linear-gradient(var(--lamp), var(--lamp)) 0 92% / 0 30% no-repeat; transition: background-size .4s var(--ease); }
.end-phone a:hover { background-size: 100% 30%; }
.end-list { margin: 32px auto 0; max-width: 720px; text-align: left; border-top: 1px solid var(--ink); }
.end-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.end-list li > span:first-child { font: 500 11px/1.7 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sage-ink); }
.end-list a { margin-right: 14px; }
.end.small { padding-top: 10vh; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 22px calc(var(--inset) + 52px) calc(var(--inset) + 22px) calc(var(--inset) + 30px); font: 400 12px/1.4 var(--f-mono); color: var(--ink-2); border-top: 1px solid var(--ink); }
body.home .foot { padding-right: calc(var(--inset) + 270px); }

/* ---------- index overlay ---------- */
.index { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--paper) 96%, transparent); overflow: auto; }
.index[hidden] { display: none; }
.ix-in { position: relative; min-height: 100%; padding: calc(var(--inset) + 22px) calc(var(--inset) + 30px); }
.ix-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.ix-k { font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.ix-close { font-size: 34px; line-height: 1; width: 48px; height: 48px; border: 1px solid var(--ink); }
.ix-cols { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; margin-top: 28px; position: relative; z-index: 1; }
.ix-col h3 { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--sage-ink); padding-bottom: 10px; }
html.ka .ix-col h3 { font-family: var(--f-ka); text-transform: none; font-size: 14px; }
.ix-col a { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); text-decoration: none; font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; font-variation-settings: "wdth" 108; }
.ix-col a:hover, .ix-col a:focus-visible { color: var(--sage-ink); }
.ix-no, .ix-y { font: 500 12px/1 var(--f-mono); color: var(--ink-2); }
.ix-peek { position: fixed; right: calc(var(--inset) + 30px); bottom: calc(var(--inset) + 30px); z-index: 0; width: 360px; pointer-events: none; opacity: 0; transition: opacity .2s; border: 1px solid var(--ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.ix-peek.on { opacity: 1; }

/* ---------- project page ---------- */
.w-hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 48px); align-items: center;
  padding: calc(var(--inset) + var(--bar) + 26px) calc(var(--inset) + 30px) calc(var(--inset) + 30px) calc(var(--inset) + 30px); }
body.work .titleblock { display: none; }
.w-plate .plate { max-height: calc(100svh - 2 * var(--inset) - var(--bar) - 110px); }
.w-plate { display: flex; flex-direction: column; align-items: center; }
.w-plate .plate { width: auto; height: auto; max-width: 100%; }
.w-text h1 { margin-top: 16px; font-size: clamp(40px, 4.6vw, 78px); line-height: .95; font-weight: 650; font-variation-settings: "wdth" 115; }
html.ka .w-text h1 { font-size: clamp(32px, 3.6vw, 58px); line-height: 1.1; }
.w-src { margin-top: 16px; font-size: 13px; }
.w-src a { color: var(--sage-ink); }
.w-gallery { padding: 8vh calc(var(--inset) + 30px); border-top: 1px solid var(--ink); }
.g-hint { font: 500 12px/1 var(--f-mono); color: var(--ink-2); margin-bottom: 26px; }
html.ka .g-hint { font-family: var(--f-ka); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 32px); }
.gallery li { position: relative; grid-column: span 12; }
.gallery li.g-wide:nth-child(3n+2) { grid-column: 2 / span 10; }
.gallery li.g-wide:nth-child(3n) { grid-column: span 8; }
.gallery li.g-tall { grid-column: span 6; }
.g-n { position: absolute; left: 10px; top: 10px; font: 500 11px/1 var(--f-mono); background: var(--paper); padding: 5px 7px; border: 1px solid var(--ink); }
.gallery .plate { scroll-margin-top: 110px; }
.w-next { display: grid; grid-template-columns: 1fr auto 1.4fr; border-top: 1px solid var(--ink); }
.w-next a { display: flex; flex-direction: column; gap: 8px; padding: 30px calc(var(--inset) + 30px); text-decoration: none; position: relative; overflow: hidden; }
.w-next a + a { border-left: 1px solid var(--ink); }
.w-next span { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sage-ink); }
.w-next b { font-size: clamp(20px, 2.4vw, 38px); font-weight: 600; font-variation-settings: "wdth" 112; }
.wn-next { color: var(--paper); background: var(--ink); min-height: 220px; justify-content: flex-end; }
.wn-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .4s, transform .8s var(--ease); }
.wn-next:hover img { opacity: .7; transform: scale(1.04); }
.wn-next span, .wn-next b { position: relative; color: var(--paper); }

/* ---------- 404 ---------- */
body.is-404 .cover h1::after { content: "404"; display: block; font: 500 14px/1 var(--f-mono); color: var(--ink-2); margin-top: 10px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .titleblock { display: none; }
  body.home .foot { padding-right: calc(var(--inset) + 52px); }
  .stage { grid-template-columns: minmax(0, 1fr) 290px; }
  .pins { grid-template-columns: repeat(3, 1fr); }
  .pins li:nth-child(even) { margin-top: 0; }
  .pins li:nth-child(3n+2) { margin-top: 36px; }
}

/* ---------- phone: its own reading mode ---------- */
@media (max-width: 760px) {
  :root { --inset: 8px; --bar: 52px; }
  .tk { display: none; }
  .rail { display: none; }
  .brand-ka { display: none; }
  .bar { padding: 0 6px 0 10px; }
  .bar-nav > * { padding: 9px 8px; }
  .bar-nav a[href$="#contact"] { display: none; }
  .cover { grid-template-columns: 1fr; padding: calc(var(--inset) + var(--bar) + 18px) 22px 30px; gap: 18px; align-items: start; }
  .cover-mark .box { width: 54px; height: 50px; }
  .cover h1 { margin-top: 10px; }
  .h1-en { font-size: clamp(56px, 19vw, 96px); }
  .lede { font-size: 15px; }
  .stats b { font-size: 24px; }
  .cover-plate { order: 0; }
  .cover-plate .hint { padding-right: 0; }
  .cover-cap { position: static; margin-top: 6px; }
  .cta > * { padding: 12px 14px; font-size: 14px; }
  .sheet { height: 190svh; }
  .stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 16px; padding: calc(var(--inset) + var(--bar) + 14px) 18px 22px; }
  .plate-wrap { height: auto; }
  .plate-wrap .plate { width: 100%; height: auto; max-height: 46svh; }
  .sheet-text { padding-bottom: 0; }
  .sheet h2 { margin-top: 10px; font-size: 34px; }
  .sheet-title { font-size: 13px; }
  .facts { margin-top: 10px; font-size: 12px; }
  .facts div { grid-template-columns: 84px 1fr; padding: 5px 0; }
  .facts div:nth-child(5) { display: none; }
  .open { margin-top: 12px; padding: 10px 14px; }
  .strip { display: none; }
  .process { grid-template-columns: 1fr; padding: 0 18px; }
  .proc-stage { position: sticky; top: calc(var(--inset) + var(--bar)); height: auto; padding: 12px 0 8px; z-index: 3; background: var(--paper); }
  .proc-stage .plate { max-height: 30svh; }
  .proc-text h2 { position: static; padding-top: 18px; }
  .step { min-height: 50svh; }
  .step-n { font-size: 44px; }
  .now, .studio, .end { padding-left: 18px; padding-right: 18px; }
  .sec-head { grid-template-columns: 1fr; }
  .pins { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .pins li:nth-child(n) { margin-top: 0; }
  .pins li:nth-child(even) { margin-top: 28px; }
  .studio-cols { grid-template-columns: 1fr; margin-top: 32px; }
  .services li { font-size: 18px; }
  .team { columns: 1; }
  .end-list li { grid-template-columns: 1fr; gap: 4px; }
  .foot { flex-direction: column; padding: 18px 18px 26px; }
  .ix-cols { grid-template-columns: 1fr; gap: 22px; }
  .ix-in { padding: 18px; }
  .ix-peek { display: none; }
  .w-hero { grid-template-columns: 1fr; padding: calc(var(--inset) + var(--bar) + 16px) 18px 30px; gap: 16px; align-items: start; }
  .w-plate .plate { max-height: 52svh; }
  .w-gallery { padding: 30px 18px; }
  .gallery li, .gallery li.g-wide:nth-child(n), .gallery li.g-tall { grid-column: span 12; }
  .w-next { grid-template-columns: 1fr 1fr; }
  .wn-next { grid-column: span 2; border-left: 0 !important; border-top: 1px solid var(--ink); }
  .w-next a { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .sheet { height: auto; }
  .stage { position: relative; height: auto; min-height: 100svh; }
  .strip li { opacity: 1; transform: none; }
  .step { opacity: 1; }
}

/* round-one fixes */
.gallery { max-width: 1240px; margin: 0 auto; }
@media (max-width: 760px) {
  .w-hero { min-height: 0; align-content: start; }
  .cover .pun { display: none; }
}

.end-list .v { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.end-list .v a { margin: 0; }
@media (min-width: 1101px) { .proc-text { padding-right: 230px; } .studio-cols { padding-right: 230px; } }

/* =====================================================================
   v3 — dense: the images and their drawings carry the world
   ===================================================================== */
.titleblock { width: 230px; }
.tb-meta { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet, .sheet-like { position: relative; height: 240vh; height: 240svh; }
.sheet + .sheet { border-top: 0; }
.cover.sheet-like { height: 100vh; height: 100svh; min-height: 0; display: block; padding: 0; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: block;
  padding: calc(var(--inset) + var(--bar) + 8px) calc(var(--inset) + 40px) calc(var(--inset) + 8px) calc(var(--inset) + 8px); }
.mosaic { position: relative; height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(6, 1fr); gap: 6px; }
.tile { grid-area: var(--a); width: auto; height: auto; min-height: 0; min-width: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { border-color: rgba(31,35,28,.55); }
.tile-a { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tile.ready { cursor: none; }
.tag { position: absolute; z-index: 3; left: calc(var(--inset) + 22px); bottom: calc(var(--inset) + 22px); display: inline-flex; align-items: baseline; gap: 12px;
  padding: 12px 16px 13px; background: var(--paper); border: 1px solid var(--ink); text-decoration: none; box-shadow: 0 18px 40px -24px rgba(31,35,28,.6); transition: background .2s, color .2s; }
.tag b { font: 600 13px/1 var(--f-mono); color: var(--sage-ink); }
.tag-n { font-size: clamp(22px, 2.2vw, 34px); line-height: 1; font-weight: 650; font-variation-settings: "wdth" 108; }
html.ka .tag-n { font-size: clamp(20px, 1.9vw, 28px); }
.tag i { font: 400 12px/1 var(--f-mono); font-style: normal; color: var(--ink-2); }
.tag-go { font-size: 22px; transition: transform .25s var(--ease); }
.tag:hover { background: var(--ink); color: var(--paper); }
.tag:hover b, .tag:hover i { color: var(--paper); }
.tag:hover .tag-go { transform: translateX(5px); }

/* cover wall + name card */
.card { position: absolute; z-index: 3; left: calc(var(--inset) + 22px); bottom: calc(var(--inset) + 22px); width: min(430px, calc(100% - 60px));
  padding: 18px 20px 20px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 24px 50px -28px rgba(31,35,28,.6); }
.card-mark .box { width: 44px; height: 40px; stroke-width: 8; }
.card h1 { margin-top: 8px; line-height: .9; }
.card .h1-en { display: inline; font-size: clamp(48px, 5.4vw, 86px); }
.card .h1-ka { display: inline; font-size: clamp(18px, 1.6vw, 24px); margin: 0 0 0 6px; }
.card .role { margin-top: 12px; }
.card .stats { display: block; margin-top: 8px; border: 0; font-size: 14px; color: var(--ink-2); }
.card .stats b { display: inline; font-size: 16px; color: var(--ink); }
.card .cta { margin-top: 14px; }
.cover .hint { position: absolute; z-index: 3; right: calc(var(--inset) + 52px); bottom: calc(var(--inset) + 120px); margin: 0; padding: 7px 10px; background: var(--paper); border: 1px solid var(--rule); }
body.home .cover .hint { bottom: calc(var(--inset) + 22px); right: calc(var(--inset) + 270px); }

/* instagram mosaic */
.ig figcaption { position: absolute; z-index: 2; left: 8px; bottom: 8px; right: 8px; font-size: 12px; line-height: 1.3; padding: 6px 8px; background: color-mix(in srgb, var(--paper) 92%, transparent); opacity: 0; transform: translateY(6px); transition: .25s var(--ease); pointer-events: none; }
.ig:hover figcaption { opacity: 1; transform: none; }

/* goodbye, compact */
.end { padding-top: 12vh; }
.end .team { columns: 3; column-gap: 28px; max-width: 900px; margin: 46px auto 0; text-align: left; border-top: 1px solid var(--ink); font-size: 13px; }
.end .team li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 8px; }
.end .team li > span:last-child { color: var(--ink-2); font-size: 12px; }

/* project page */
.w-top { height: 160vh; height: 160svh; }
.w-tag { position: absolute; z-index: 3; left: calc(var(--inset) + 22px); bottom: calc(var(--inset) + 22px); max-width: calc(100% - 320px);
  padding: 12px 16px 14px; background: var(--paper); border: 1px solid var(--ink); }
.w-tag h1 { font-size: clamp(28px, 3vw, 48px); line-height: 1; font-weight: 650; font-variation-settings: "wdth" 108; }
.w-tag h1 b { font: 600 14px/1 var(--f-mono); color: var(--sage-ink); vertical-align: middle; margin-right: 6px; }
.w-facts { margin-top: 8px; font: 400 12px/1.4 var(--f-mono); color: var(--ink-2); }
html.ka .w-facts { font-family: var(--f-ka); }
body.work .titleblock { display: block; }
.film { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; padding: 6px calc(var(--inset) + 40px) 6px calc(var(--inset) + 8px); }
.film li { position: relative; grid-column: span 12; }
.film li.frame-1 { grid-column: 1 / span 7; }
.film li.frame-2 { grid-column: 8 / span 5; }
.film .plate { width: 100%; height: auto; max-height: none; }
.film .g-n { position: absolute; left: 10px; top: 10px; z-index: 2; font: 500 11px/1 var(--f-mono); background: var(--paper); padding: 5px 7px; border: 1px solid var(--ink); }
.film li.frame-1 .plate, .film li.frame-2 .plate { aspect-ratio: auto !important; height: 72vh; }
.film li.frame-1 .plate img, .film li.frame-2 .plate img { object-fit: cover; }
.end.small .w-src { margin-top: 18px; font-size: 13px; }

@media (max-width: 1100px) { .card { bottom: calc(var(--inset) + 22px); } }
@media (max-width: 760px) {
  .titleblock { display: none !important; }
  .stage { padding: calc(var(--inset) + var(--bar) + 6px) 6px 6px; }
  .mosaic { grid-template-columns: 1fr 1fr; gap: 4px; }
  .tile { grid-area: var(--m); }
  .tile.m-hide { display: none; }
  .tag { left: 14px; bottom: 14px; padding: 10px 12px; gap: 8px; }
  .tag-n { font-size: 22px; }
  .card { left: 14px; right: 14px; bottom: 14px; width: auto; padding: 14px 16px 16px; }
  .card .h1-en { font-size: 52px; }
  .card .role { font-size: 11px; }
  .card .cta > * { padding: 10px 12px; font-size: 14px; }
  .cover .hint, body.home .cover .hint { right: 14px; left: auto; top: calc(var(--inset) + var(--bar) + 14px); bottom: auto; font-size: 11px; }
  .sheet { height: 210svh; }
  .end .team { columns: 1; }
  .w-tag { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .film { padding: 4px 6px; gap: 4px; }
  .film li.frame-1, .film li.frame-2 { grid-column: span 12; }
  .film li.frame-1 .plate, .film li.frame-2 .plate { height: auto; aspect-ratio: 4/3 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-like, .w-top { height: auto; }
  .stage { position: relative; height: 100svh; }
}

/* ---------- v3 smoothness ---------- */
.bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
.lamp { will-change: transform; transition: opacity .25s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); }
.tile, .film .plate { background: var(--paper); contain: layout paint; }
html.js .plate img { opacity: 0; }
html.js .plate.show img { opacity: 1; }
@media (hover: hover) { .tile, .film .plate { cursor: none; } }
.sheet .stage, .cover .stage, .w-top .stage { contain: layout; }

/* touch and coarse pointers: no lamp, no x-ray, no hint — the walls draw and light by scroll alone */
@media not ((hover: hover) and (pointer: fine)) {
  .lamp, .hint, .cover .hint, body.home .cover .hint { display: none !important; }
  .tile, .film .plate, .plate.ready { cursor: auto; }
}
/* title block: let long lines wrap instead of being cut */
.titleblock { width: 250px; }
.tb-title, .tb-meta { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }

/* ---------- SEO round: real headings and text, same look ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tag h2.tag-n { margin: 0; display: inline; }
.ix-col h2 { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--sage-ink); padding-bottom: 10px; }
html.ka .ix-col h2 { font-family: var(--f-ka); text-transform: none; font-size: 14px; }
.end .about { max-width: 900px; margin: 54px auto 0; text-align: left; border-top: 1px solid var(--ink); padding-top: 18px; }
.end .about h2 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 600; font-variation-settings: "wdth" 105; }
.end .about p { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 60em; }
.end .svc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }
.end .svc li { font: 500 12px/1 var(--f-mono); padding: 7px 9px; border: 1px solid var(--rule); color: var(--ink); }
html.ka .end .svc li { font-family: var(--f-ka); }
a.btn-lang { text-decoration: none; }
.nf-main { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.nf-in .box { width: 160px; height: auto; stroke-width: 5; }
.nf-in .box path { stroke-dasharray: none; }
.nf-in h1 { margin-top: 20px; font-size: clamp(30px, 4vw, 56px); font-variation-settings: "wdth" 115; }
.nf-in .cta { justify-content: center; }
.nf-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 26px; font-size: 13px; max-width: 760px; }
/* larger hit areas for the sheet rail (24 px targets) */
.rail { gap: 0; }
.rail a { height: 24px; width: 24px; }
.rail a::before { top: 11px; }
.rail a span { top: 5px; }
