/* Ali Rabie — portfolio. Helvetica only, black to white, quiet details. */
:root {
  --bg: #000; --fg: #f2f2f0; --dim: rgba(242, 242, 240, .5); --line: rgba(242, 242, 240, .16);
  --pad: clamp(16px, 2.2vw, 32px);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, 0, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 400 14px/1.4 var(--font); -webkit-font-smoothing: antialiased; transition: background-color .15s linear, color .15s linear; overflow-x: clip; }   /* clip, not hidden: it trims the sides without breaking the pinned sections */
a { color: inherit; text-decoration: none; }
img, video { display: block; }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- the folder ---------- */
#fold, #foldStill { position: fixed; left: 0; top: 0; width: 900px; height: 900px; z-index: 45; pointer-events: none; transform-origin: 0 0; will-change: transform; }
#foldStill { opacity: 1; }
#home { position: fixed; z-index: 41; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
body.docked #home { pointer-events: auto; }

/* ---------- header + corner infographics ---------- */
.hd { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: baseline; padding: var(--pad); padding-left: calc(var(--pad) + 34px); color: var(--fg); background: var(--bg); align-items: center; font-size: 13px; font-weight: 700; letter-spacing: -.01em; pointer-events: none; }
.hd a { pointer-events: auto; }
.hd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: linear-gradient(var(--bg), transparent); pointer-events: none; }
.hd-name { opacity: 0; transition: opacity .4s; }
body.docked .hd-name { opacity: 1; }
.hd-nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.hd-nav a { position: relative; }
.hd-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor; transition: right .3s; }
.hd-nav a:hover::after { right: 0; }
.hd-orbit { opacity: .7; }
.hud { position: fixed; z-index: 40; font: 400 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--fg); pointer-events: none; display: flex; gap: 12px; align-items: center; font-variant-numeric: tabular-nums; }
.hud-bl { left: 0; bottom: 0; padding: 12px var(--pad) var(--pad); background: linear-gradient(transparent, var(--bg) 45%); }
.hud-br { right: var(--pad); bottom: var(--pad); opacity: .7; }
.hud-frame { right: var(--pad); top: 50%; writing-mode: vertical-rl; transform: rotate(180deg) translateX(-50%); opacity: .5; }
.hud .bar { width: 80px; height: 1px; background: var(--line); position: relative; }
.hud .bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--fg); }

/* ---------- shared ---------- */
.sec { position: relative; padding: 9vh var(--pad); }
.sec + .sec { padding-top: 5vh; }                       /* sections follow each other closely; no dead band between them */
.lbl { font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--dim); display: flex; gap: 10px; align-items: center; margin-bottom: 4vh; white-space: nowrap; }
.lbl .brl { height: 11px; margin-left: 6px; max-width: 34vw; flex-shrink: 1; }
.lbl span { color: var(--fg); }
.lbl::before { content: "+"; color: var(--fg); }

/* ---------- 00 hero ---------- */
.hero { height: 250vh; position: relative; }
.hero-pin { position: sticky; top: 0; height: 100vh; }
.hero-corner { position: absolute; font: 400 11px/1.35 var(--mono); text-transform: uppercase; line-height: 1.35; color: var(--dim); }
.hero-corner.tl { left: var(--pad); top: calc(var(--pad) + 52px); }
.hero-corner.tr { right: var(--pad); top: calc(var(--pad) + 52px); text-align: right; }
.hero-scroll { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: var(--fg); transition: opacity .4s; pointer-events: none; }
.hs-g { width: 30px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.1; overflow: visible; }
.hs-l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hsDraw 1.4s var(--ease) .6s forwards; }
.hs-t { stroke-width: .8; opacity: .35; }
.hs-dot { fill: currentColor; stroke: none; animation: hsDot 1.8s var(--ease) 1.4s infinite; opacity: 0; }
.hs-txt { display: flex; flex-direction: column; gap: 4px; font: 400 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .03em; opacity: 0; animation: hsIn .9s var(--ease) 1s forwards; }
.hs-txt b { font-weight: 400; }
.hs-txt span { color: var(--dim); }
.hero-scroll .hs-arrow { animation: hsDraw 1.4s var(--ease) .9s forwards, hsNudge 1.8s ease-in-out 2.4s infinite; }
@keyframes hsDraw { to { stroke-dashoffset: 0; } }
@keyframes hsDot { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(11px); opacity: 1; } 100% { transform: translateY(13px); opacity: 0; } }
@keyframes hsIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes hsNudge { 50% { transform: translateY(3px); } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero-name { position: absolute; left: 0; right: 0; bottom: 16vh; text-align: center; opacity: 0; }
.hero-name h1 { font-weight: 700; font-size: clamp(28px, 4.2vw, 64px); letter-spacing: -.045em; line-height: 1; }
.hero-name p { margin-top: 12px; color: var(--dim); font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .02em; }

/* ---------- 01 statement ---------- */
.statement .big { font-size: clamp(30px, 5.9vw, 112px); line-height: .98; letter-spacing: -.052em; max-width: none; font-weight: 700; }
.facts { margin-top: 10vh; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts div { padding: 14px 14px 0 0; font-size: 13px; color: var(--fg); }
.facts b { display: block; font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }

/* ---------- 02 index ---------- */
.idx { min-height: 100vh; }
.idx-list { position: relative; z-index: 2; font-size: clamp(34px, 6.4vw, 104px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.idx-list a { -webkit-text-stroke: 0 currentColor; transition: color .3s, -webkit-text-stroke-width .3s var(--ease); }
.idx-list a .sup { font: 400 max(10px, .12em) var(--mono); font-size: max(10px, .12em); letter-spacing: 0; vertical-align: top; margin-left: .15em; color: var(--dim); }
.idx-list.on a:not(.hot) { color: var(--dim); }
.idx-list a.hot { -webkit-text-stroke-width: .028em; }
.idx-back { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; opacity: 0; transition: opacity .5s; pointer-events: none; overflow: hidden; }
.idx-back.on { opacity: 1; }
.idx-back img { width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(.9); transform: scale(1.15); opacity: .75; }
.idx-note { position: fixed; z-index: 5; right: var(--pad); bottom: 12vh; width: min(340px, 70vw); font-size: 13px; line-height: 1.45; opacity: 0; transition: opacity .3s; pointer-events: none; }
.idx-note.on { opacity: 1; }
.idx-note b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.idx-note small { display: block; margin-top: 10px; color: var(--dim); font: 400 10px var(--mono); text-transform: uppercase; }

/* ---------- 03 archive ---------- */
.arc-head, .arc-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 70px minmax(0, 3.4fr); gap: 0 18px; }
.arc-head { font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); padding-bottom: 10px; border-bottom: 1px solid var(--line); align-items: end; }
.arc-chart { display: flex; align-items: flex-end; gap: 3px; height: 30px; justify-content: flex-end; }
.arc-chart i { width: 22px; background: var(--fg); opacity: .85; position: relative; }
.arc-chart i::after { content: attr(data-y); position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9px; color: var(--dim); }
.arc-row { padding: 14px 0 18px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: start; }
.arc-row > div:not(.arc-imgs) { font-size: 12px; line-height: 1.35; }
.arc-row .t { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.arc-row .n { color: var(--dim); display: block; font: 400 10px var(--mono); margin-bottom: 4px; }
.arc-row .d, .arc-row .y { color: var(--dim); }
.arc-imgs { display: flex; flex-wrap: wrap; gap: 4px; }
.arc-imgs img { height: 74px; width: auto; background: #111; transition: opacity .3s, filter .3s; }
.arc-row:hover .arc-imgs img { filter: none; }
#arcRows:hover .arc-row:not(:hover) .arc-imgs img { opacity: .35; filter: grayscale(1); }

/* ---------- 04 column ---------- */
.col { position: relative; }
.col-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.col-pin > .lbl { position: absolute; left: var(--pad); top: calc(var(--pad) + 52px); }
.col-list { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); list-style: none; font: 400 10px/1.5 var(--mono); text-transform: uppercase; line-height: 1.45; color: var(--dim); }
.col-list li { transition: color .2s; cursor: pointer; }
.col-list li.on { color: var(--fg); }
.col-list li.on::before { content: "→ "; }
.col-track { position: absolute; left: 50%; top: 0; width: min(24vw, 300px); transform: translateX(-50%); will-change: transform; }
.col-track figure { margin: 0 0 3vh; cursor: pointer; }
.col-track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.col-track figure.on img { filter: none; }
.col-brk { position: absolute; top: 50%; height: min(44vh, 380px); width: auto; transform: translateY(-50%); fill: var(--fg); pointer-events: none; }
.col-brk.l { right: calc(50% + min(12vw, 150px) + 3vw); }
.col-brk.r { left: calc(50% + min(12vw, 150px) + 3vw); }
.col-meta { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); text-align: right; font: 400 10px/1.6 var(--mono); text-transform: uppercase; line-height: 1.45; color: var(--dim); }
.col-meta b { display: block; color: var(--fg); font: 700 20px/1.1 var(--font); letter-spacing: -.03em; text-transform: none; margin-bottom: 6px; }

/* ---------- 05 strips ---------- */
.strips-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: 1fr; }
.strips-cols { display: grid; grid-template-columns: repeat(7, 1fr); overflow: hidden; }
.strips-cols .sc { display: flex; flex-direction: column; will-change: transform; }
.strips-cols img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.strips-info { padding: calc(var(--pad) + 52px) var(--pad) var(--pad); font-size: 12px; line-height: 1.35; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 22px 16px; border-left: 1px solid var(--line); }
.strips-info b { font-weight: 700; font-size: clamp(18px, 1.8vw, 28px); letter-spacing: -.03em; line-height: 1.05; display: block; }
.strips-info span { color: var(--dim); font: 400 10px var(--mono); text-transform: uppercase; }

/* ---------- 06 ring ---------- */
.ring { height: 300vh; position: relative; }
.ring-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ring-wheel { position: absolute; left: 50%; top: 50%; width: 0; height: 0; will-change: transform; }
.ring-wheel a { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; transition: transform .3s; }
.ring-wheel a img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.ring-wheel a span { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: 9px; white-space: nowrap; color: var(--dim); }
.ring-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: 30vmin; }
.ring-center img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 auto 12px; }
.ring-center b { display: block; font-weight: 500; font-size: 15px; }
.ring-center span { font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); }
.ring-center i { font-style: normal; display: block; font-size: 22px; line-height: 1; margin: 10px 0 4px; color: #e5332a; }
.ring-side { position: absolute; top: 50%; transform: translateY(-50%); font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); }
.ring-side b { display: block; color: var(--fg); font-family: var(--font); text-transform: none; font-weight: 700; font-size: clamp(28px, 3.4vw, 54px); letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.ring-side.l { left: var(--pad); }
.ring-side.r { right: var(--pad); text-align: right; }

/* ---------- 07 fade ---------- */
.fade { height: 160vh; display: flex; align-items: center; justify-content: center; padding: 0 var(--pad); }
.fade-line { font-weight: 700; font-size: clamp(28px, 4.8vw, 80px); letter-spacing: -.055em; line-height: 1; text-align: center; max-width: 16ch; }

/* ---------- 08 numbers ---------- */
.nums-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4vw; }
.nums-row figure { margin: 0; }
.nums-row canvas { width: 100%; height: auto; display: block; }
.nums-row figcaption { margin-top: 14px; font: 400 11px var(--mono); text-transform: uppercase; line-height: 1.4; border-top: 1px solid var(--line); padding-top: 10px; display: flex; justify-content: space-between; }
.nums-row figcaption span { color: var(--dim); }

/* ---------- 09 services ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--line); counter-reset: s; }
.svc-list { border-top: 0; }
.svc-list li { display: grid; grid-template-columns: 60px minmax(0, 1.3fr) minmax(0, 2fr); gap: 0 20px; padding: 22px 0; align-items: baseline; transition: padding .3s; position: relative; }
.svc-list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.svc-list li:hover { padding-left: 12px; }
.svc-list .k { font: 400 11px var(--mono); color: var(--dim); }
.svc-list h3 { font-weight: 700; font-size: clamp(22px, 2.4vw, 38px); letter-spacing: -.035em; line-height: 1.05; }
.svc-list p { font-size: 13px; line-height: 1.5; color: var(--dim); max-width: 46ch; }

/* ---------- 10 contact ---------- */
.contact-big { font-weight: 700; font-size: clamp(44px, 9vw, 150px); letter-spacing: -.065em; line-height: .92; margin-bottom: 8vh; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 4vw; max-width: 980px; }
.cform label { display: flex; flex-direction: column; gap: 8px; font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); }
.cform .wide { grid-column: 1 / -1; }
.cform input, .cform textarea { font: 400 18px/1.3 var(--font); color: var(--fg); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 6px 0 10px; outline: none; resize: vertical; border-radius: 0; }
.cform input:focus, .cform textarea:focus { border-bottom-color: var(--fg); }
.cform input.bad { border-bottom-color: #e5332a; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform button { justify-self: start; font: 500 15px var(--font); color: var(--bg); background: var(--fg); border: 0; padding: 14px 26px; border-radius: 99px; cursor: pointer; }
.cform-msg { grid-column: 1 / -1; font-size: 13px; min-height: 1.4em; }
.contact-links { margin-top: 12vh; display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: 13px; }
.contact-links a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.ft { display: flex; justify-content: space-between; padding: var(--pad); padding-bottom: calc(var(--pad) + 40px); font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); border-top: 1px solid var(--line); }

/* ---------- project page ---------- */
.proj { position: fixed; inset: 0; z-index: 60; background: #000; color: #f2f2f0; overflow-y: auto; opacity: 0; pointer-events: none; transform: translateY(24px); transition: opacity .45s, transform .45s; --line: rgba(242,242,240,.16); --dim: rgba(242,242,240,.5); }
.proj.open { opacity: 1; pointer-events: auto; transform: none; }
.proj-in { padding: var(--pad); padding-top: calc(var(--pad) + 54px); }
.proj-bar { position: fixed; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: var(--pad); font: 400 11px var(--mono); text-transform: uppercase; background: linear-gradient(#000 40%, transparent); z-index: 2; }
.proj-bar button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.proj-title { font-weight: 700; font-size: clamp(48px, 10vw, 170px); letter-spacing: -.065em; line-height: .9; margin: 6vh 0 5vh; }
.proj-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2.4fr); gap: 0 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; line-height: 1.45; }
.proj-meta span { display: block; color: var(--dim); font: 400 10px var(--mono); text-transform: uppercase; margin-bottom: 6px; }
.proj-desc { font-size: 15px; line-height: 1.5; }

.proj-imgs img, .proj-imgs video { width: 100%; height: auto; background: #0d0d0d; }
.proj-imgs figcaption { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: #fff; mix-blend-mode: difference; }
.proj-next { margin: 14vh 0 6vh; border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: end; cursor: pointer; }
.proj-next span { font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); }
.proj-next b { font-weight: 700; font-size: clamp(36px, 6vw, 96px); letter-spacing: -.055em; line-height: .95; }
.proj-link { display: inline-block; margin-top: 16px; border-bottom: 1px solid var(--line); }
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .96); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb img, .lb video { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb video:not([src]) { display: none; }
.lb-x { position: absolute; right: var(--pad); top: var(--pad); font: 11px var(--mono); text-transform: uppercase; color: #fff; background: none; border: 0; cursor: pointer; }


/* ---------- 03 Telda Pulse ---------- */
.tel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; margin-bottom: 5vh; }
.tel-head .tel-title { flex: 1; min-width: 0; }
.tel-nav { display: flex; align-items: center; gap: 16px; flex: none; }
.tel-nav-t { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 400 10px/1.2 var(--mono); text-transform: uppercase; color: var(--dim); text-align: right; }
.tel-nav-t b { font: 700 15px/1.1 var(--font); letter-spacing: -.02em; text-transform: none; color: var(--fg); }
.tel-next { width: 56px; height: 56px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; flex: none; }
.tel-next svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tel-next circle { transition: fill .35s var(--ease); }
.tel-next path { transition: transform .45s var(--ease), stroke .35s; }
.tel-next:hover circle { fill: var(--fg); }
.tel-next:hover path { stroke: var(--bg); transform: translateX(3px); }
.tel-next:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; border-radius: 50%; }
/* moving to the next project: the section steps out, then the new one rises in */
.tel .tel-kicker, .tel #telAcc, .tel .tel-text, .tel .tel-meta, .tel .tel-title, .tel .tel-lead { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.tel.swap .tel-kicker, .tel.swap #telAcc, .tel.swap .tel-text, .tel.swap .tel-meta, .tel.swap .tel-title, .tel.swap .tel-lead { opacity: 0; transform: translateY(-10px); }
.tel-title { font-weight: 700; font-size: clamp(48px, 9vw, 150px); letter-spacing: -.065em; line-height: .9; }
.tel-kicker { font: 400 11px/1.5 var(--mono); text-transform: uppercase; color: var(--dim); text-align: right; flex: none; }
.tel-slider { margin: 0 calc(-1 * var(--pad)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.tel-slider::-webkit-scrollbar { display: none; }
.tel-slider.drag { cursor: grabbing; scroll-snap-type: none; }
.tel-track { display: flex; gap: 10px; padding: 0 var(--pad); width: max-content; }
.tel-track figure { margin: 0; flex: none; height: clamp(260px, 72vh, 820px); aspect-ratio: 1350 / 1080; scroll-snap-align: start; scroll-margin-left: var(--pad); position: relative; overflow: hidden; background: #0d0d0d; }
.tel-track img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.tel-track figure.in img { transform: none; }
.tel-track figcaption { position: absolute; left: 10px; bottom: 8px; font: 400 10px var(--mono); color: #fff; mix-blend-mode: difference; }
.tel-ctrl { display: flex; align-items: center; gap: 18px; margin-top: 16px; font: 400 11px var(--mono); text-transform: uppercase; }
.tel-ctrl button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.tel-ctrl button:hover { opacity: .6; }
.tel-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.tel-bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--fg); transition: width .25s linear; }
.tel-hint { color: var(--dim); }
.tel-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 4vw; margin-top: 10vh; align-items: start; }
.tel-lead { font-weight: 700; font-size: clamp(22px, 2.4vw, 38px); letter-spacing: -.04em; line-height: 1.05; }
.tel-text p { font-size: 15px; line-height: 1.5; margin-bottom: 1em; }
.tel-open { display: inline-block; margin-top: 10px; font: 400 11px var(--mono); text-transform: uppercase; border-bottom: 1px solid var(--fg); padding-bottom: 3px; }
.tel-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.tel-meta dt { font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.tel-meta dd { text-align: right; }

/* ---------- Braille: real words, set in raised dots ---------- */
.brl { display: inline-block; height: .62em; width: auto; vertical-align: baseline; margin-left: .18em; fill: currentColor; overflow: visible; }
.brl circle { transform-box: fill-box; transform-origin: center; }
.brl-big { display: block; width: 100%; height: auto; margin: 0; fill: var(--fg); }
.ft-brl { padding: 10vh var(--pad) 4vh; }
.brl-pulse circle { animation: brlPulse 2.4s var(--ease) infinite; animation-delay: calc(var(--i) * 70ms); }
@keyframes brlPulse { 0%, 70%, 100% { opacity: 1; } 35% { opacity: .2; } }

/* ---------- reveals: quiet, once ---------- */
.js [data-rv] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .14em .26em; margin: -.08em -.14em -.26em; }
.js [data-rv].done .w { overflow: visible; }
.js [data-rv="chars"] .w > span { display: inline-block; }
.js [data-rv="chars"] .w i { display: inline-block; font-style: normal; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 22ms); }
.js [data-rv="chars"].in .w i { transform: none; }
.js [data-rv="words"] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.js [data-rv="words"].in .w > span { transform: none; }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .brl circle { transform: scale(0); transition: transform .5s var(--ease); transition-delay: calc(400ms + var(--i) * 22ms); }
.js .in .brl circle, .js .brl.in circle { transform: none; }
.js .svc-list li::after, .js .tel-meta div, .js .arc-row { transition: transform 1.2s var(--ease), opacity 1s var(--ease); }
.js .svc-list li::after { transform: scaleX(0); transform-origin: left; transition-delay: calc(var(--d, 0) * 1ms); }
.js .svc-list li.in::after { transform: none; }
.js .svc-list li p, .js .svc-list li .k { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms + 120ms); }
.js .svc-list li.in p, .js .svc-list li.in .k { opacity: 1; transform: none; }
.idx-list .m { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .14em .26em; margin: -.08em -.14em -.26em; }
.idx-list.done .m { overflow: visible; }
.idx-list.done .m, .idx-list.done .m > span { display: inline; }   /* once risen, names flow as plain text */
.idx-list .m { max-width: 100%; }
.idx-list .cm { color: var(--fg); -webkit-text-stroke-width: 0; font-weight: 500; }
.js .idx-list .m > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.js .idx-list.in .m > span { transform: none; }
.js .arc-row { opacity: 0; transform: translateY(18px); }
.js .arc-row.in { opacity: 1; transform: none; }
.js .facts div { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 90ms + 200ms); }
.js .facts.in div { opacity: 1; transform: none; }


/* ---------- 01 about: work inside the sentence ---------- */
.ib { display: inline-block; position: relative; width: 1.18em; height: .74em; margin: 0 .02em; vertical-align: -.02em; overflow: hidden; background: #111; border-radius: .1em; cursor: pointer; transition: transform .5s var(--ease); transform-origin: 50% 60%; }
.ib img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.ib img.on { opacity: 1; }
a.ib:hover { transform: scale(2.6); z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ib-fold { width: .9em; height: .9em; vertical-align: -.09em; background: none; cursor: default; overflow: visible; }
.ib-fold img { opacity: 1; object-fit: contain; transform: scale(-1.35, 1.35); }
.js [data-rv] .ib { transform: scale(0); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 28ms + 150ms); }
.js [data-rv].in .ib { transform: none; }
.js [data-rv].in a.ib:hover { transform: scale(2.6); transition-delay: 0s; }

/* ---------- 04 archive: cards in columns ---------- */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--fg); border-radius: 99px; font: 400 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: var(--fg); background: none; }
.arc-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6vh; }
.arc-f-l { font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); margin-right: 8px; }
.arc-filter .pill { cursor: pointer; border-color: var(--line); color: var(--dim); transition: color .2s, border-color .2s, background .2s; }
.arc-filter .pill sup { font-size: 8px; margin-left: 4px; }
.arc-filter .pill:hover { color: var(--fg); border-color: var(--fg); }
.arc-filter .pill.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.arc-grid { display: flex; gap: clamp(16px, 2vw, 32px); align-items: flex-start; }
.arc-col { flex: 1; min-width: 0; }
.ac { margin-bottom: clamp(36px, 5vw, 64px); cursor: pointer; transition: opacity .5s var(--ease), filter .5s; }
.ac.off { opacity: .12; filter: grayscale(1); pointer-events: none; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 12px; }
.ac-n { width: 22px; height: 22px; border-radius: 50%; background: var(--fg); color: var(--bg); display: inline-grid; place-items: center; font: 400 9px var(--mono); font-style: normal; }
.ac-media { position: relative; overflow: hidden; background: #111; }
.ac-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ac-media .ac-top { opacity: 0; transition: opacity .3s ease; }
.ac-media .ac-top.on { opacity: 1; }
.ac-media img:not([src]) { display: none; }
.ac:hover .ac-media img { transform: scale(1.03); }
.ac-count { position: absolute; right: 8px; top: 8px; font: 400 9px var(--mono); color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.ac:hover .ac-count { opacity: 1; }
.ac h3 { font-weight: 500; font-size: clamp(24px, 2.1vw, 34px); line-height: 1; letter-spacing: -.035em; margin-bottom: 12px; }
.ac-cap { font: 400 10px/1.4 var(--mono); text-transform: uppercase; margin-top: 10px; }
.ac.txt .ac-cap { margin-top: 0; color: var(--dim); }
.ac-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.ac-more > div { overflow: hidden; }
.ac:hover .ac-more { grid-template-rows: 1fr; }
.ac-more p { font-size: 13px; line-height: 1.4; padding-top: 12px; color: var(--dim); }
.ac-thumbs { display: flex; gap: 4px; padding-top: 12px; }
.ac-thumbs img { flex: 1; min-width: 0; aspect-ratio: 1; object-fit: cover; }
.ac-go { display: inline-block; margin-top: 10px; font: 400 10px var(--mono); text-transform: uppercase; border-bottom: 1px solid var(--fg); padding-bottom: 2px; }
.js .ac { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter .5s; }
.js .ac.in { opacity: 1; transform: none; }
.js .ac.in.off { opacity: .12; }

/* ---------- project page: a website as its layers ---------- */
.proj-xp { position: relative; height: 88vh; margin: 8vh calc(-1 * var(--pad)) 0; overflow: hidden; user-select: none; touch-action: pan-y; cursor: grab; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  --ink: #f2f2f0; --faint: rgba(242,242,240,.2); --acc: #e5332a;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #141414 0%, #050505 75%); }
.proj-xp-l { position: absolute; left: var(--pad); top: 14px; z-index: 2; font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); }
.proj-xp .xp-scene { position: absolute; inset: 0; perspective: 2200px; perspective-origin: 50% 35%; }
.proj-xp .xp-page { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d; transform-origin: 0 0; will-change: transform; }
.proj-xp .xp-sheet { position: absolute; left: 0; top: 0; width: 1440px; background: #0b0b0b; outline: 1px solid rgba(233,230,223,.12); background-image: linear-gradient(rgba(233,230,223,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(233,230,223,.03) 1px, transparent 1px); background-size: 120px 120px; }
.proj-xp .xp-l { position: absolute; left: 0; top: 0; transform-style: preserve-3d; cursor: zoom-in; }
.proj-xp .xp-l img { display: block; width: 100%; height: 100%; }
.proj-xp .xp-l::before { content: ""; position: absolute; inset: 0; outline: 2px solid rgba(233,230,223,calc(.06 + var(--lift) * .3)); pointer-events: none; }
.proj-xp .xp-l.up::before { outline-color: rgba(229,51,42,.7); }
.proj-xp .xp-tag { position: absolute; right: calc(100% + 40px); top: 0; white-space: nowrap; font: 400 30px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); opacity: var(--lift); padding-right: 180px; }
.proj-xp .xp-tag b { font-weight: 400; color: var(--acc); margin-right: 18px; }
.proj-xp .xp-tag::after { content: ""; position: absolute; right: 0; top: 50%; width: 160px; height: 2px; background: currentColor; opacity: .5; }
.proj-xp .st-hud { position: absolute; left: var(--pad); bottom: 14px; z-index: 2; display: flex; gap: 10px; align-items: center; font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); }
.proj-xp .st-hud .sq { width: 8px; height: 8px; background: var(--acc); }
.proj-xp .st-hud b { font-weight: 400; color: var(--ink); margin-right: 8px; }
.proj-xp .st-hint { display: none; }
.proj-xp .xp-link { position: absolute; right: var(--pad); top: 10px; z-index: 2; border: 1px solid var(--faint); border-radius: 99px; padding: 6px 12px; font: 400 10px var(--mono); text-transform: uppercase; color: var(--ink); }
.proj-xp .xp-link:hover { background: var(--ink); color: #000; }
.proj-xp .xp-bar { position: absolute; right: var(--pad); top: 50%; width: 1px; height: 30vh; transform: translateY(-50%); background: var(--faint); }
.proj-xp .xp-bar i { position: absolute; inset: 0; background: var(--acc); transform-origin: top; transform: scaleY(0); }


/* ---------- the door ---------- */
.gate { position: fixed; inset: 0; z-index: 90; background: #000; color: #f2f2f0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 7vh; padding: var(--pad); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.gate-on .gate { display: flex; }
.gate-on body { overflow: hidden; }
.gate-on .hd, .gate-on .hud, .gate-on #fold, .gate-on #foldStill, .gate-on #home { opacity: 0; }
.hd, .hud, #fold, #foldStill { transition: opacity .9s var(--ease); }
.gate.out { opacity: 0; pointer-events: none; transform: scale(1.04); }
.gate-top { position: absolute; left: var(--pad); right: var(--pad); top: var(--pad); display: flex; justify-content: space-between; font: 400 11px var(--mono); text-transform: uppercase; color: rgba(242,242,240,.5); }
.gate-q { font-weight: 700; font-size: clamp(28px, 4.4vw, 68px); letter-spacing: -.05em; line-height: 1; text-align: center; max-width: 16ch; animation: gateUp 1.1s var(--ease) both; }
.gate-opts { display: flex; gap: clamp(28px, 9vw, 160px); }
.gate-o { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; text-align: center; animation: gateUp 1.1s var(--ease) both; animation-delay: .15s; transition: opacity .4s; }
.gate-o + .gate-o { animation-delay: .28s; }
.gate-opts:hover .gate-o:not(:hover) { opacity: .35; }
.gate-ic { position: relative; width: clamp(120px, 15vw, 210px); aspect-ratio: 1; margin-bottom: 14px; transition: transform .7s var(--ease); }
.gate-o:focus { outline: none; }
.gate-o:focus-visible { outline: 1px solid rgba(242,242,240,.5); outline-offset: 10px; }
.gate-o:hover .gate-ic, .gate-o:focus-visible .gate-ic { transform: scale(1.07); }
.gate-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#gateFoldImg { transform: scaleX(-1); }
.gate-orb img { inset: 10%; width: 80%; height: 80%; animation: orbFloat 6s ease-in-out infinite; }
.gate-o b { font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.035em; }
.gate-o small { font: 400 10px var(--mono); text-transform: uppercase; color: rgba(242,242,240,.5); }
.gate-ft { position: absolute; bottom: var(--pad); left: 0; right: 0; text-align: center; font: 400 10px var(--mono); text-transform: uppercase; color: rgba(242,242,240,.5); }
@keyframes gateUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbFloat { 50% { transform: translateY(-4%); } }
@media (max-width: 760px) { .gate-opts { gap: 28px; } .gate-ic { width: 34vw; } }

/* touch screens: the note sits under the names and scrolls with the page */
@media (hover: none) {
  .idx-note { position: relative; right: auto; bottom: auto; width: auto; max-width: 46ch; margin-top: 5vh; z-index: 3; display: none; }
  .idx-note.on { display: block; }
}

/* ---------- the white pages: a printed manual behind the content ---------- */
main { position: relative; }
main > section { scroll-margin-top: 44px; }        /* jumping to a section keeps its label clear of the menu bar */
main > section, main > footer, main > .ft-brl { position: relative; z-index: 1; }
.paper { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 50vh), transparent); mask-image: linear-gradient(#000 calc(100% - 50vh), transparent); pointer-events: none; color: #0a0a0a; opacity: 0; transition: opacity 1.2s var(--ease); }
.paper.on { opacity: 1; }
.paper-in { will-change: transform; }
.pb { padding: 2.2vw 0 4.4vw; white-space: nowrap; }
.pb.off { transform: translateX(-14vw); }
.pb-run { font: 400 clamp(11px, 1.35vw, 22px)/1 var(--mono); text-transform: uppercase; letter-spacing: .01em; opacity: .16; display: flex; gap: 4vw; padding: 0 var(--pad); }
.pb-big { font-weight: 700; font-size: clamp(44px, 8.6vw, 150px); line-height: .9; letter-spacing: -.055em; opacity: .07; padding: .5vw var(--pad) 0; }
.pb-big .brl { height: .42em; margin-left: .3em; opacity: 1.6; vertical-align: .02em; }
.pb-dots { padding: 2.4vw var(--pad) 0; opacity: .1; }
.pb-dots .brl { height: clamp(18px, 2.6vw, 44px); margin: 0 2.2vw 0 0; }

.proj-embed { position: relative; height: 86vh; margin: 8vh calc(-1 * var(--pad)) 0; background: #000; }
.proj-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.proj-embed-l { position: absolute; left: var(--pad); bottom: 16px; font: 400 10px var(--mono); text-transform: uppercase; color: rgba(242,242,240,.6); pointer-events: none; }

.loop { height: 150vh; position: relative; z-index: 1; }

/* ---------- curved slider ---------- */
.cv-stage { position: relative; height: clamp(320px, 70vh, 820px); margin: 0 calc(-1 * var(--pad)); outline: none; touch-action: pan-y; user-select: none; cursor: grab; }
.cv-stage.drag { cursor: grabbing; }
.cv-stage canvas { display: block; width: 100%; height: 100%; }
.cv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr); gap: 3vw; margin-top: 18px; font-size: 12px; line-height: 1.45; align-items: start; }
.cv-l { font-weight: 500; }
.cv-l span { font: 400 10px var(--mono); text-transform: uppercase; color: var(--dim); }
.cv-info { color: var(--dim); max-width: 46ch; }
.cv-nums { display: flex; flex-wrap: wrap; gap: 2px 8px; font: 400 11px var(--mono); }
.cv-nums button { background: none; border: 0; padding: 0; font: inherit; color: var(--dim); cursor: pointer; }
.cv-nums button:hover { color: var(--fg); }
.cv-nums button.on { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cv-meta { text-align: right; font: 400 10px/1.6 var(--mono); text-transform: uppercase; color: var(--dim); }
.cv-count { color: var(--fg); margin-right: 10px; }
.proj-cv { margin-top: 8vh; }

/* ---------- micrographics ---------- */
.lbl .mg { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); }
.mg-rule { flex: 1; height: 1px; margin: 0 18px 0 24px; background: var(--line); position: relative; min-width: 40px; transform-origin: left; }
.mg-rule::before, .mg-rule::after { content: ""; position: absolute; top: -1.5px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); }
.mg-rule::before { left: -2px; } .mg-rule::after { right: -2px; }
.js .lbl .mg-rule { transform: scaleX(0); transition: transform 1.2s var(--ease) .1s; }
.js .lbl.in .mg-rule { transform: none; }
.mg-g { width: 30px; height: 30px; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1; }
.mg-t { display: flex; flex-direction: column; gap: 3px; font: 400 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .03em; text-align: left; }
.mg-t b { font-weight: 400; color: var(--fg); }
.mg-t > span { color: var(--dim); }
.mg-d { fill: currentColor; stroke: none; transition: r .3s var(--ease); }
.mg-d:not(.on) { opacity: .45; }
.mg-dot { fill: currentColor; stroke: none; }
.mg-bar, .mg-sq { fill: currentColor; stroke: none; }
.mg-m { fill: transparent; stroke: currentColor; stroke-width: .7; transition: fill .4s var(--ease), opacity .4s; }
.mg-m.on { fill: currentColor; }
.mg-m:not(.on) { opacity: .5; }
.mg-sq:not(.on) { opacity: .2; }
.mg-ray { stroke-width: .8; opacity: .4; transition: opacity .3s, stroke-width .3s; }
.mg-ray.on { opacity: 1; stroke-width: 1.6; }
.mg-dash { stroke-dasharray: .04 .03; }
.mg-wave { fill: none; stroke: currentColor; transform-origin: 16px 16px; animation: mgWave 2.4s var(--ease) infinite; }
.mg-wave.w2 { animation-delay: 1.2s; }
.mg-blink { animation: mgBlink 2s steps(1) infinite; }
.mg-spin > g { transform-origin: 16px 16px; animation: mgSpin 40s linear infinite; }
.mg-spin-el { transform-origin: 16px 16px; animation: mgSpin 18s linear infinite; }
.mg-knob { transition: cx .5s var(--ease); }
@keyframes mgSpin { to { transform: rotate(360deg); } }
@keyframes mgWave { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes mgBlink { 50% { opacity: .2; } }
/* drawing in, when the label appears */
.js .lbl .mg-l, .js .lbl .mg-ray { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease), opacity .3s, stroke-width .3s; transition-delay: calc(.2s + var(--i, 0) * 40ms); }
.js .lbl .mg-dash { stroke-dasharray: .04 .03; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s .3s; }
.js .lbl.in .mg-l, .js .lbl.in .mg-ray { stroke-dashoffset: 0; }
.js .lbl.in .mg-dash { opacity: 1; }
.js .lbl .mg-d, .js .lbl .mg-sq, .js .lbl .mg-dot, .js .lbl .mg-m { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s var(--ease), r .3s; transition-delay: calc(.2s + var(--i, 0) * 30ms); }
.js .lbl.in .mg-d, .js .lbl.in .mg-sq, .js .lbl.in .mg-dot, .js .lbl.in .mg-m { transform: none; }
.js .lbl .mg-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--ease); transition-delay: calc(.3s + var(--i, 0) * 80ms); }
.js .lbl.in .mg-bar { transform: none; }
.js .lbl .mg-t { opacity: 0; transform: translateX(-6px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
.js .lbl.in .mg-t { opacity: 1; transform: none; }

/* ---------- phone menu ---------- */
.hd-menu { display: none; pointer-events: auto; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 80; background: #000; color: #f2f2f0; display: flex; flex-direction: column; padding: var(--pad); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.menu.open { opacity: 1; pointer-events: auto; }
.menu-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; }
.menu-top button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.menu-list { list-style: none; margin: auto 0; }
.menu-list li { overflow: hidden; padding: .06em .1em .12em; margin: -.06em -.1em -.12em; }
.menu-list a { display: flex; align-items: baseline; gap: 12px; font-weight: 700; font-size: clamp(40px, 12.5vw, 64px); letter-spacing: -.05em; line-height: 1.02; transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.menu-list a span { font: 400 11px var(--mono); letter-spacing: 0; color: rgba(242,242,240,.5); }
.menu.open .menu-list a { transform: none; }
.menu-ft { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 400 11px var(--mono); text-transform: uppercase; color: rgba(242,242,240,.7); }

/* ---------- light / dark switch ---------- */
.hd-theme { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hd-theme svg { width: 13px; height: 13px; transition: transform .6s var(--ease); }
.light .hd-theme svg { transform: rotate(180deg); }

/* ---------- light mode: the same site, white all the way down ---------- */
html.light { --bg: #fdfdfb; --fg: #0a0a0a; --dim: rgba(10, 10, 10, .5); --line: rgba(10, 10, 10, .16); }
.light body { background: #fdfdfb; color: #0a0a0a; }
.light .proj { background: #fdfdfb; color: #0a0a0a; --line: rgba(10,10,10,.16); --dim: rgba(10,10,10,.5); }
.light .proj-bar { background: linear-gradient(#fdfdfb 40%, transparent); }
.light .lb { background: rgba(253, 253, 251, .97); }
.light .lb-x { color: #0a0a0a; }
.light .gate { background: #fdfdfb; color: #0a0a0a; }
.light .gate-top, .light .gate-o small, .light .gate-ft { color: rgba(10,10,10,.5); }
.light .menu { background: #fdfdfb; color: #0a0a0a; }
.light .menu-list a span { color: rgba(10,10,10,.5); }
.light .menu-ft { color: rgba(10,10,10,.7); }
.light .ac-media, .light .ib, .light .proj-imgs img { background: #e9e9e6; }
.light .idx-back img { opacity: .55; }
.light ::selection { background: #0a0a0a; color: #fdfdfb; }

/* links roll to a second copy on hover */
.roll { display: inline-flex; flex-direction: column; height: 1.4em; line-height: 1.4; overflow: hidden; vertical-align: bottom; padding: 0 .12em; margin: -.075em -.12em; }
.roll > span { transition: transform .45s var(--ease); white-space: nowrap; }
a:hover > .roll > span { transform: translateY(-100%); }
.hd-nav a::after { display: none; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hd { font-size: 12px; padding-left: calc(var(--pad) + 29px); }
  .hd-nav a { display: none; }
  .hd-menu { display: inline-block; }
  .hd-theme .th-l { display: none; }
  .hd-nav { gap: 18px; align-items: center; }
  .hud-bl { display: none; }
  .paper.on { opacity: .22; }
  .ac-tags .pill:nth-of-type(n+2) { display: none; }
  .ring-center span, .ring-center i { display: none; }
  .ring-center b { font-size: 13px; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .arc-head { display: none; }
  .arc-row { grid-template-columns: 1fr auto; }
  .arc-row .d { display: none; }
  .arc-imgs { grid-column: 1 / -1; margin-top: 10px; }
  .arc-imgs img { height: 54px; }
  .col-list { display: none; }
  .col-track { width: 56vw; }
  .col-brk { height: 30vh; }
  .col-brk.l { right: calc(50% + 28vw + 3vw); }
  .col-brk.r { left: calc(50% + 28vw + 3vw); }
  .col-meta { right: auto; left: 0; right: 0; top: auto; bottom: 8vh; transform: none; text-align: center; }
  .strips-pin { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .strips-cols { grid-template-columns: repeat(3, 1fr); }
  .strips-cols .sc:nth-child(n+4) { display: none; }
  .ring-wheel a { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .ring-wheel a span { display: none; }
  .ring-center { width: 34vw; }
  /* phones: pinned again, but measured in svh, a height Safari's toolbar can't change, so nothing jumps.
     Long enough to look at, short enough not to feel stuck. */
  .strips { height: 210svh !important; }
  .strips-pin, .ring-pin { position: sticky; top: 0; height: 100svh; }
  .ring { height: 240svh; }
  .fade { height: 120svh; }
  .nums-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5vw; align-items: end; }
  .nums-row figcaption { font-size: 9px; }
  .svc-list li { grid-template-columns: 36px 1fr; }
  .svc-list p { grid-column: 2; margin-top: 8px; }
  .cform { grid-template-columns: 1fr; }
  .proj-meta { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .proj-desc { grid-column: 1 / -1; }
  .ft { flex-direction: column; gap: 6px; }
  .lbl { flex-wrap: wrap; row-gap: 12px; }
  .lbl .mg { flex-basis: 100%; }
  .mg-g { width: 22px; height: 22px; }
  .mg-t { font-size: 8px; gap: 2px; }
  .mg-rule { display: none; }
  .arc-grid { gap: 14px; }
  .ac h3 { font-size: 22px; }
  .ac-more { display: none; }
  .proj-xp { height: 70vh; }
  .proj-xp .xp-tag { display: none; }
  .tel-head { flex-direction: column; align-items: flex-start; }
  .tel-kicker { text-align: left; }
  .tel-nav { align-self: stretch; justify-content: space-between; }
  .tel-nav-t { align-items: flex-start; text-align: left; }
  .tel-next { width: 48px; height: 48px; }
  .cv-stage { height: 50vh; }
  .proj-embed { height: 68vh; }
  .cv-row { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .cv-info { grid-column: 1 / -1; order: 3; }
  .cv-nums { grid-column: 1 / -1; order: 4; }
  .cv-hint { display: none; }
  .tel-hint { display: none; }
  .tel-body { grid-template-columns: 1fr; gap: 5vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .hs-dot, .hero-scroll .hs-arrow, .brl-pulse circle { animation: none; } .hs-l { stroke-dashoffset: 0; animation: none; } .hs-txt { opacity: 1; animation: none; }
  .js [data-rv] .ib, .js .ac, .js [data-rv] .w > span, .js .rv, .js .brl circle, .js .svc-list li::after, .js .svc-list li *, .js .idx-list a, .js .arc-row, .js .facts div, .tel-track img { transform: none !important; opacity: 1 !important; transition: none !important; }
}
