/* Mohamed Mokhtar — design system.
   Layout idea: a set of architectural sheets on black. One loud element (the cut between drawing and
   built room); everything else is quiet, right-aligned, and ruled with thin gold dimension lines. */
:root {
  color-scheme: dark;
  --black: #050505;
  --charcoal: #111111;
  --gold: #D9AA68;
  --champagne: #E7C28D;
  --ivory: #F5F1EA;
  --muted: #99948D;
  --panel: #0B0A09;
  --line: rgba(217, 170, 104, .24);
  --line-strong: rgba(217, 170, 104, .55);
  --hair: rgba(245, 241, 234, .09);
  --glow: rgba(217, 170, 104, .16);
  --danger: #E58B76;
  --ok: #A9C7A0;

  --font-display: "Alexandria", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;
  --font-tech: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --fs-display: clamp(1.9rem, 1rem + 4.3vw, 4.5rem);
  --fs-h2: clamp(1.55rem, 1.05rem + 2.1vw, 2.85rem);
  --fs-h3: clamp(1.05rem, .98rem + .4vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: .84rem;
  --fs-tech: .74rem;

  --gutter: clamp(20px, 5vw, 72px);
  --wrap: 1280px;
  --space-section: clamp(64px, 8.5vw, 124px);
  --ease: cubic-bezier(.22, .8, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-jumping { scroll-behavior: auto; }
body { margin: 0; background: var(--black); color: var(--ivory); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.9; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--black); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200; background: var(--gold); color: var(--black); padding: 10px 18px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
main { position: relative; z-index: 1; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- fixed layers ---------- */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.gl-ready .stage { opacity: 1; }
.gl-idle .stage { visibility: hidden; }
.no-gl .stage { display: none; }
.progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--champagne), var(--gold)); transform-origin: right center; transform: scaleX(var(--p, 0)); }
.wipe { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: var(--black) repeating-linear-gradient(90deg, transparent 0 79px, var(--line) 79px 80px); clip-path: inset(0 0 0 100%); }
.wipe.is-in { clip-path: inset(0 0 0 0); transition: clip-path .42s var(--ease-io); }
.wipe.is-out { clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease-io); }
.cursor, .trail { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; opacity: 0; transition: opacity .3s; position: fixed; inset-block-start: 0; inset-inline-start: 0; left: 0; z-index: 120; pointer-events: none; }
  .has-cursor .cursor.is-on { opacity: 1; }
  .cursor i, .cursor b { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor i { width: 6px; height: 6px; background: var(--champagne); }
  .cursor b { width: 34px; height: 34px; border: 1px solid var(--line-strong); transition: width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s; }
  .cursor.is-link b { width: 58px; height: 58px; background: var(--glow); border-color: var(--gold); }
  .cursor.is-drag b { width: 74px; height: 74px; border-style: dashed; }
  .has-cursor .trail { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 119; pointer-events: none; }
}

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--black); display: grid; place-content: center; justify-items: center; gap: 14px; transition: opacity .7s var(--ease), visibility 0s .7s; }
html:not(.js) .loader { display: none; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader { animation: loaderBail .5s 16s forwards; }      /* never leave the loader up for good */
@keyframes loaderBail { to { opacity: 0; visibility: hidden; } }
.loader__mark { width: 96px; stroke: var(--gold); stroke-width: 2; }
.loader__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-io) forwards; }
.loader__mark .loader__base { stroke: var(--line-strong); animation-delay: .5s; }
.loader__name { font-family: var(--font-display); font-weight: 300; letter-spacing: .02em; color: var(--champagne); }
.loader__pct { font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--muted); direction: ltr; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- buttons ---------- */
.btn { --bh: 50px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 28px; border-radius: 999px; font-family: var(--font-display); font-weight: 400; font-size: .95rem; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s, transform .5s var(--ease); will-change: transform; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: linear-gradient(135deg, var(--champagne), var(--gold)); color: #141008; font-weight: 500; box-shadow: 0 0 0 0 var(--glow); }
.btn--gold:hover { box-shadow: 0 10px 40px -8px rgba(217, 170, 104, .55); }
.btn--line { border: 1px solid var(--line-strong); color: var(--ivory); background: rgba(5, 5, 5, .35); backdrop-filter: blur(6px); }
.btn--line:hover { border-color: var(--champagne); background: rgba(217, 170, 104, .12); }
.btn--line svg { stroke: var(--gold); }
.btn--line svg path { fill: none; }
#watchBtn svg path { fill: var(--gold); stroke: none; }
.btn--ghost { padding-inline: 6px; border-radius: 0; color: var(--champagne); background: linear-gradient(var(--gold), var(--gold)) no-repeat right calc(100% - 10px) / 100% 1px; }
.btn--ghost:hover { color: var(--ivory); background-size: 0 1px; background-position: left calc(100% - 10px); transition: background-size .5s var(--ease), color .3s; }
.btn[disabled] { opacity: .55; cursor: progress; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; font-size: var(--fs-small); color: var(--muted); background: rgba(5, 5, 5, .45); backdrop-filter: blur(6px); transition: color .3s, border-color .3s; }
.chip:hover { color: var(--champagne); border-color: var(--line-strong); }
.chip svg { width: 16px; height: 16px; }
.chip [lang="en"] { font-family: var(--font-latin); font-style: italic; font-size: 1.05em; }

/* ---------- nav ---------- */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50; height: var(--nav-h); padding-inline: var(--gutter); padding-block-start: env(safe-area-inset-top, 0px); display: flex; align-items: center; gap: 28px; transition: background-color .4s, transform .5s var(--ease), border-color .4s; border-block-end: 1px solid transparent; }
.nav.is-solid, html:not(.js) .nav { background: rgba(5, 5, 5, .78); backdrop-filter: blur(14px); border-color: var(--hair); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 40px; stroke: var(--gold); stroke-width: 5; }
.brand__text { display: grid; line-height: 1.25; }
.brand__text strong { font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--champagne); }
.brand__text em { font-family: var(--font-latin); font-size: .92rem; color: var(--muted); text-align: start; unicode-bidi: plaintext; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); margin-inline: auto; }
.nav__links a { position: relative; padding: 12px 0; font-size: .92rem; color: rgba(245, 241, 234, .78); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--champagne); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: right; }
.nav__cta { --bh: 44px; padding-inline: 22px; font-size: .9rem; }
.nav__toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; position: relative; margin-inline-start: auto; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--champagne); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 19px; } .nav__toggle span:last-child { top: 27px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 49; background: rgba(5, 5, 5, .96); backdrop-filter: blur(18px); padding: calc(var(--nav-h) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto; animation: menuIn .45s var(--ease); }
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-block-end: 1px solid var(--hair); font-family: var(--font-display); font-weight: 300; font-size: 1.45rem; }
.menu nav a span { font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--gold); }
.menu__foot { display: grid; gap: 12px; }
@media (max-width: 1080px) { .nav__links, .nav__cta { display: none; } .nav__toggle { display: block; } }

/* ---------- section scaffolding ---------- */
.section { position: relative; background: var(--black); padding-block: var(--space-section); }
.head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-block-end: clamp(36px, 5vw, 64px); }
.head--start { justify-items: start; text-align: start; }
.head__mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--gold); position: relative; }
.head__mark::before, .head__mark::after { content: ""; position: absolute; top: 50%; width: clamp(28px, 6vw, 80px); height: 1px; background: var(--line); }
.head__mark::before { right: 100%; } .head__mark::after { left: 100%; }
.head--start .head__mark::before { display: none; }
.head__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h2); line-height: 1.35; color: var(--champagne); text-wrap: balance; max-width: 22ch; }
.head__sub { color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.divider { position: relative; z-index: 1; background: var(--black); height: 1px; }
.divider i { position: absolute; inset-inline: var(--gutter); top: 0; height: 1px; background: var(--hair); overflow: hidden; }
.divider i::after { content: ""; position: absolute; inset-block: 0; width: 22%; right: 0; background: linear-gradient(90deg, transparent, var(--champagne), transparent); transform: translateX(calc(var(--p, 0) * -560% + 120%)); }

/* reveal primitives (only when JS is on; content is visible otherwise) */
.js [data-reveal] > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal] .head__title { clip-path: inset(0 0 100% 0); transform: translateY(26px); transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease), opacity .4s; }
.js [data-reveal].is-in > * { opacity: 1; transform: none; }
.js [data-reveal].is-in .head__title { clip-path: inset(-20% -5% -20% -5%); }
.js [data-reveal].is-in > *:nth-child(2) { transition-delay: .08s; } .js [data-reveal].is-in > *:nth-child(3) { transition-delay: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; height: 230vh; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: calc(var(--nav-h) + 12px) var(--gutter) 96px; }
.hero__fallback { display: none; position: absolute; inset: 0; }
.hero__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__fallback-wire { clip-path: inset(0 62% 0 0); mix-blend-mode: screen; }
.hero__fallback::after { content: ""; position: absolute; inset-block: 0; left: 38%; width: 1px; background: linear-gradient(transparent, var(--champagne) 20%, var(--champagne) 80%, transparent); box-shadow: 0 0 24px 2px var(--gold); }
.hero__fallback-final { clip-path: inset(0 0 0 38%); }
.no-gl .hero__fallback, html:not(.js) .hero__fallback { display: block; background: #030303; }
.no-gl .hero, html:not(.js) .hero { height: auto; }
.no-gl .hero__pin, html:not(.js) .hero__pin { position: relative; min-height: 100svh; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, rgba(5, 5, 5, .82) 0%, rgba(5, 5, 5, .5) 34%, rgba(5, 5, 5, 0) 62%), linear-gradient(to top, rgba(5, 5, 5, .9) 0, rgba(5, 5, 5, 0) 26%), linear-gradient(to bottom, rgba(5, 5, 5, .7) 0, rgba(5, 5, 5, 0) 18%); opacity: var(--scrim, 1); transition: opacity 1s; }
.hero__copy { position: relative; z-index: 2; max-width: 620px; display: grid; gap: 20px; justify-items: start; opacity: calc(1 - var(--hp, 0) * 2.4); transform: translateY(calc(var(--hp, 0) * -90px)); }
.hero.is-watching .hero__copy { opacity: 0; pointer-events: none; transition: opacity .6s; }
.hero.is-watching .hero__scrim { opacity: .2; }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: var(--gold); font-size: .95rem; }
.hero__kicker, .hero__lead { text-shadow: 0 0 14px rgba(5, 5, 5, .95), 0 0 3px rgba(5, 5, 5, .8); }
.hero__kicker [lang="en"] { font-family: var(--font-latin); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.hero__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-display); line-height: 1.32; color: var(--ivory); }
.hero__title .line { display: block; overflow: hidden; padding-block: .12em; margin-block: -.12em; }
.hero__title .line > span { display: block; }
.hero__title .line:last-child > span { color: var(--champagne); }
.hero__lead { max-width: 46ch; color: rgba(245, 241, 234, .82); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-block-start: 6px; }
.js .hero__title .line > span { transform: translateY(115%); transition: transform 1.2s var(--ease); }
.js .hero__kicker, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero.is-revealed .hero__title .line > span { transform: none; }
.js .hero.is-revealed .hero__title .line:last-child > span { transition-delay: .12s; }
.js .hero.is-revealed .hero__kicker, .js .hero.is-revealed .hero__lead, .js .hero.is-revealed .hero__actions { opacity: 1; transform: none; }
.js .hero.is-revealed .hero__lead { transition-delay: .3s; } .js .hero.is-revealed .hero__actions { transition-delay: .45s; }

.cut { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 56px; margin-left: -28px; transform: translateX(var(--cut-x, 40vw)); cursor: ew-resize; touch-action: pan-y; opacity: 0; pointer-events: none; transition: opacity .6s; }
.hero.is-interactive .cut { opacity: calc(1 - var(--hp, 0) * 3); pointer-events: auto; }
.no-gl .cut { display: none; }
.cut__grip { position: absolute; top: 58%; left: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; border: 1px solid var(--champagne); background: rgba(5, 5, 5, .55); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--champagne); box-shadow: 0 0 30px -4px var(--gold); transition: transform .4s var(--ease), background-color .3s; }
.cut:hover .cut__grip, .cut:focus-visible .cut__grip, .cut.is-dragging .cut__grip { transform: scale(1.12); background: rgba(217, 170, 104, .22); }
.cut__grip svg { width: 20px; height: 20px; }
.cut__tag { position: absolute; top: calc(58% + 40px); font-size: var(--fs-small); color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.cut__tag--plan { right: calc(50% + 14px); } .cut__tag--built { left: calc(50% + 14px); }
.cut:hover .cut__tag, .cut:focus-visible .cut__tag, .cut.is-dragging .cut__tag, .cut.is-hint .cut__tag { opacity: 1; }

.hero__stages { position: absolute; z-index: 2; left: var(--gutter); bottom: 30px; display: flex; gap: 22px; font-size: var(--fs-small); color: rgba(153, 148, 141, .6); opacity: calc(1 - var(--hp, 0) * 3); }
.hero__stages li { display: flex; align-items: baseline; gap: 8px; padding-block-start: 10px; border-block-start: 1px solid var(--hair); transition: color .5s, border-color .5s; }
.hero__stages span { font-family: var(--font-tech); font-size: var(--fs-tech); }
.hero__stages li.is-on { color: var(--champagne); border-color: var(--gold); }
.no-gl .hero__stages, .no-gl .hero__tools { display: none; }
.hero__tools { position: absolute; z-index: 4; right: var(--gutter); bottom: 68px; display: flex; gap: 10px; opacity: calc(1 - var(--hp, 0) * 3); }
.hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: var(--fs-tech); color: var(--muted); opacity: calc(1 - var(--hp, 0) * 5); }
.hero__scroll i { width: 22px; height: 36px; border: 1px solid var(--line-strong); border-radius: 12px; position: relative; }
.hero__scroll i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--champagne); border-radius: 2px; animation: wheel 1.8s var(--ease-io) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) {
  .hero { height: 190vh; }
  .hero__pin { align-items: end; padding-block-end: 120px; }
  .hero__scrim { background: linear-gradient(to top, rgba(5, 5, 5, .97) 0, rgba(5, 5, 5, .86) 40%, rgba(5, 5, 5, .5) 60%, rgba(5, 5, 5, 0) 78%), linear-gradient(to bottom, rgba(5, 5, 5, .75) 0, rgba(5, 5, 5, 0) 16%); }
  .hero__copy { gap: 14px; }
  .hero__lead { font-size: .95rem; line-height: 1.8; }
  .hero__actions .btn { --bh: 48px; padding-inline: 22px; }
  .hero__stages { right: var(--gutter); bottom: 74px; gap: 0; justify-content: space-between; }
  .hero__stages li { flex: 1; font-size: .74rem; gap: 5px; }
  .hero__tools { bottom: 16px; right: auto; left: var(--gutter); }
  .hero__scroll { display: none; }
  .cut__grip { top: 30%; } .cut__tag { top: calc(30% + 40px); }
}

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); perspective: 1400px; }
.card { --mx: 50%; --my: 50%; position: relative; display: grid; grid-template-rows: auto 1fr; text-align: start; border: 1px solid rgba(245, 241, 234, .13); background: var(--panel); border-radius: 4px; overflow: hidden; cursor: pointer; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; width: 100%; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(217, 170, 104, .16), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), var(--champagne), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover, .card:focus-visible { border-color: var(--line); box-shadow: 0 30px 80px -40px rgba(217, 170, 104, .45); }
.card:hover::before, .card:hover::after, .card:focus-visible::before, .card:focus-visible::after { opacity: 1; }
.card__art { width: 100%; aspect-ratio: 16 / 10; transform: translateZ(30px); }
.card__body { padding: 4px clamp(16px, 2vw, 26px) clamp(18px, 2vw, 26px); display: grid; gap: 8px; align-content: start; transform: translateZ(18px); }
.card__n { font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--gold); }
.card__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.5; color: var(--ivory); }
.card__desc { font-size: .92rem; color: var(--muted); line-height: 1.8; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 6px; font-size: var(--fs-small); color: var(--champagne); }
.card__more svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(-6px); }
.js .card { opacity: 0; transform: rotateX(38deg) translateY(50px); transform-origin: 50% 100%; }
.js .card.is-in { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--ease), opacity .7s, border-color .4s, box-shadow .5s; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s; }
.js .card.is-live { transition: transform .18s linear, border-color .4s, box-shadow .5s; transition-delay: 0s; }
.plainlist { display: grid; gap: 8px; color: var(--champagne); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { grid-template-columns: 38% 1fr; grid-template-rows: auto; align-items: center; } .card__art { aspect-ratio: 1; } .card__body { padding: 14px 16px 14px 12px; } .card__desc { font-size: .86rem; } }

.sheet { position: fixed; inset-block: 0; inset-inline-start: auto; inset-inline-end: 0; left: 0; right: auto; margin: 0; width: min(520px, 100%); max-width: 100%; height: 100%; max-height: 100%; border: 0; border-inline-start: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--panel); color: var(--ivory); padding: clamp(22px, 4vw, 44px); padding-block-start: 76px; overflow-y: auto; }
.sheet[open] { display: grid; align-content: start; gap: 14px; animation: sheetIn .55s var(--ease); }
.sheet::backdrop { background: rgba(5, 5, 5, .7); backdrop-filter: blur(4px); }
@keyframes sheetIn { from { transform: translateX(-100%); } to { transform: none; } }
.sheet__close, .lightbox__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(5, 5, 5, .6); color: var(--champagne); transition: background-color .3s, border-color .3s; }
.sheet__close:hover, .lightbox__btn:hover { background: rgba(217, 170, 104, .18); border-color: var(--champagne); }
.sheet__close svg, .lightbox__btn svg { width: 20px; height: 20px; }
.sheet__close { position: absolute; top: 16px; left: 16px; }
.sheet__art { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--hair); background: var(--black); }
.sheet__n { font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--gold); }
.sheet__title { font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; line-height: 1.4; color: var(--champagne); }
.sheet__lead { color: rgba(245, 241, 234, .82); }
.sheet h4 { font-family: var(--font-display); font-weight: 400; font-size: 1rem; color: var(--ivory); margin-block-start: 8px; }
.sheet__list { display: grid; gap: 8px; color: var(--muted); margin-block-end: 10px; }
.sheet__list li { position: relative; padding-inline-start: 22px; }
.sheet__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .95em; width: 12px; height: 1px; background: var(--gold); }

/* ---------- about ---------- */
.about { overflow: hidden; }
.about__plan { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .13; pointer-events: none; }
.about__plan path, .about__plan circle { stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.about__plan-labels { font-family: var(--font-tech); font-size: 15px; stroke: none; opacity: var(--p, 1); }
.about__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about__text { display: grid; gap: 26px; }
.about__text .head { margin: 0; }
.about__figure { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 18px; }
.about__figure canvas { position: absolute; inset-block-end: 0; inset-inline-start: -10px; width: 260px; height: 130px; pointer-events: none; }
.about__figure-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(4.4rem, 9vw, 7rem); line-height: 1; color: var(--champagne); direction: ltr; font-variant-numeric: tabular-nums; display: inline-flex; align-items: flex-start; transition: opacity .8s; }
.about__figure-num b { font-weight: 300; font-size: .5em; color: var(--gold); margin-top: .12em; }
.js .about__figure:not(.is-done) .about__figure-num { opacity: 0; }
.about__figure-cap { color: var(--muted); max-width: 16ch; padding-block-end: .7em; line-height: 1.6; }
.about__body { display: grid; gap: 14px; color: rgba(245, 241, 234, .8); max-width: 60ch; }
.materials { display: flex; flex-wrap: wrap; gap: 10px; }
.materials li { padding: 8px 16px; border: 1px solid var(--line); font-size: var(--fs-small); color: var(--champagne); background: rgba(217, 170, 104, .05); position: relative; }
.materials li::before { content: ""; position: absolute; inset-inline-start: -1px; top: -1px; width: 7px; height: 7px; border-top: 1px solid var(--champagne); border-inline-start: 1px solid var(--champagne); }
.js .materials li { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .materials.is-in li { opacity: 1; transform: none; }
.about__side { display: grid; gap: 30px; }
.compare__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--charcoal); touch-action: pan-y; user-select: none; cursor: ew-resize; --pos: 50%; }
.compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; inset-block: 0; left: var(--pos); width: 48px; margin-left: -24px; display: grid; place-items: center; }
.compare__handle::before { content: ""; position: absolute; inset-block: 0; left: 50%; width: 1px; background: var(--champagne); box-shadow: 0 0 18px 1px var(--gold); }
.compare__handle span { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--champagne); background: rgba(5, 5, 5, .7); display: grid; place-items: center; color: var(--champagne); }
.compare__handle svg { width: 18px; height: 18px; }
.compare__label { position: absolute; top: 12px; padding: 4px 12px; font-size: var(--fs-small); background: rgba(5, 5, 5, .7); color: var(--champagne); border: 1px solid var(--hair); }
.compare__label--before { left: 12px; } .compare__label--after { right: 12px; }
.compare figcaption { margin-block-start: 12px; font-size: var(--fs-small); color: var(--muted); }
.compare figcaption small { display: block; opacity: .75; }
.quote { position: relative; padding: 26px 30px; border-inline-start: 1px solid var(--gold); background: linear-gradient(to left, rgba(217, 170, 104, .08), transparent); }
.quote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.7; color: var(--champagne); text-wrap: balance; }
@media (max-width: 900px) { .about__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-end: clamp(22px, 3vw, 36px); }
.filter { min-height: 44px; padding: 0 18px; border: 1px solid var(--hair); border-radius: 999px; font-size: var(--fs-small); color: rgba(245, 241, 234, .75); transition: color .3s, border-color .3s, background-color .3s; }
.filter:hover { border-color: var(--line-strong); color: var(--champagne); }
.filter[aria-pressed="true"] { background: linear-gradient(135deg, var(--champagne), var(--gold)); border-color: transparent; color: #141008; font-weight: 500; }
@media (max-width: 700px) { .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } .filters::-webkit-scrollbar { display: none; } .filter { flex: none; } }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 auto clamp(18px, 2.4vw, 28px); font-size: var(--fs-small); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.tile__kind { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; font-style: normal; font-size: var(--fs-tech); line-height: 1.7; white-space: nowrap; border: 1px solid var(--line); background: rgba(5, 5, 5, .72); color: var(--champagne); }
.tile__kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tile__kind--built { color: var(--champagne); border-color: var(--line-strong); }
.tile__kind--wip { color: #E9C46A; border-style: dashed; }
.tile__kind--wip::before { border-radius: 0; transform: rotate(45deg); }
.tile__kind--design { color: #BFC8D6; border-color: rgba(191, 200, 214, .35); }
.tile__kind--design::before { background: none; border: 1px solid currentColor; }
.filter span { margin-inline-start: 8px; font-family: var(--font-tech); font-size: .7rem; opacity: .6; }
.mosaic { --row: clamp(150px, 17.2vw, 252px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--row); grid-auto-flow: dense; gap: clamp(8px, 1vw, 14px); }
.tile { position: relative; overflow: hidden; background: var(--charcoal); cursor: pointer; padding: 0; text-align: start; }
.tile--p { grid-row: span 2; }
.tile img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; transform: translateY(calc(var(--par, 0) * 1%)) scale(1.02); transition: scale .9s var(--ease); }
.tile:hover img, .tile:focus-visible img { scale: 1.07; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 5, 5, .85), transparent 52%); opacity: .5; transition: opacity .5s; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile .tile__kind { position: absolute; z-index: 1; top: 10px; right: 10px; }
.tile__cap { position: absolute; z-index: 1; inset-inline: 14px; bottom: 12px; display: grid; gap: 2px; transform: translateY(8px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; opacity: 1; }
.tile__cap b { font-family: var(--font-display); font-weight: 400; font-size: .95rem; line-height: 1.5; color: var(--ivory); }
.tile__cap span { font-size: var(--fs-tech); color: var(--champagne); }
/* the mask sits on the image, not the tile: an element clipped to nothing never reports as "in view" */
.js .tile { background: transparent; }
.js .tile > img { clip-path: inset(100% 0 0 0); }
.js .tile::after, .js .tile .tile__cap, .js .tile .tile__kind { visibility: hidden; }
.js .tile.is-in { background: var(--charcoal); transition: background-color .2s 1s; }
.js .tile.is-in > img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) calc(var(--i, 0) * 60ms), scale .9s var(--ease); }
.js .tile.is-in::after, .js .tile.is-in .tile__cap, .js .tile.is-in .tile__kind { visibility: visible; }
.tile.is-leaving { opacity: 0; scale: .92; transition: opacity .3s, scale .3s; }
.more { display: flex; justify-content: center; margin-block-start: clamp(20px, 3vw, 34px); }
@media (hover: none) { .tile__cap { opacity: 1; transform: none; } .tile::after { opacity: .9; } .tile__cap span { display: none; } .tile__cap b { font-size: .84rem; } }
@media (max-width: 700px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); --row: 31vw; } .legend { justify-content: flex-start; } .tile__cap { inset-inline: 10px; bottom: 8px; } .tile__cap b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tile .tile__kind { top: 6px; right: 6px; padding: 0 7px; } }

.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(3, 3, 3, .97); color: var(--ivory); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr) min(340px, 30vw); animation: fade .4s; }
.lightbox::backdrop { background: #030303; }
@keyframes fade { from { opacity: 0; } }
.lightbox__stage { position: relative; overflow: hidden; touch-action: pan-y; }
.lightbox__stage img { position: absolute; inset: clamp(12px, 3vw, 44px); width: calc(100% - 2 * clamp(12px, 3vw, 44px)); height: calc(100% - 2 * clamp(12px, 3vw, 44px)); object-fit: contain; transition: transform .6s var(--ease), opacity .5s; }
.lightbox__stage img.is-off-next { transform: translateX(-8%); opacity: 0; } .lightbox__stage img.is-off-prev { transform: translateX(8%); opacity: 0; }
.lightbox__info { padding: 96px clamp(18px, 2.4vw, 34px) 34px; border-inline-start: 1px solid var(--hair); display: grid; align-content: start; gap: 14px; overflow-y: auto; }
.lightbox__count { font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--gold); text-align: end; }
.lightbox__info > .tile__kind { justify-self: start; }
.lightbox__info h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.45rem; line-height: 1.5; color: var(--champagne); }
.lightbox__info > p { color: rgba(245, 241, 234, .8); font-size: .95rem; }
.lightbox__info dl { display: grid; gap: 10px; margin-block-start: 6px; }
.lightbox__info dt { font-size: var(--fs-tech); color: var(--gold); } .lightbox__info dd { font-size: .92rem; color: var(--muted); border-block-end: 1px solid var(--hair); padding-block-end: 10px; }
.lightbox__btn { position: absolute; z-index: 2; }
.lightbox__btn--close { top: 18px; left: 18px; } .lightbox__btn--fs { top: 18px; left: 76px; }
.lightbox__btn--prev { top: 50%; right: 18px; margin-top: -24px; } .lightbox__btn--next { top: 50%; left: calc(min(340px, 30vw) + 18px); margin-top: -24px; }
@media (max-width: 860px) { .lightbox[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; } .lightbox__info { padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px)); border: 0; border-block-start: 1px solid var(--hair); max-height: 42vh; } .lightbox__info dl { display: none; } .lightbox__btn--prev { right: 12px; top: 34%; } .lightbox__btn--next { left: 12px; top: 34%; } .lightbox__count { text-align: start; } }

/* ---------- process ---------- */
.process { position: relative; height: 560vh; }
.process__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; padding-block: calc(var(--nav-h) + 8px) 28px; }
.process__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, rgba(5, 5, 5, .95) 0, rgba(5, 5, 5, .8) 32%, rgba(5, 5, 5, 0) 64%), linear-gradient(to top, rgba(5, 5, 5, .7), transparent 22%), linear-gradient(to bottom, rgba(5, 5, 5, .7), transparent 16%); }
.process__layout { position: relative; display: grid; grid-template-columns: minmax(0, 470px); gap: 18px; align-content: center; }
.process__head { margin: 0; gap: 10px; }
.process__head .head__sub { font-size: .92rem; }
.steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-block-start: 1px solid var(--hair); opacity: .42; transition: opacity .5s; }
.step__n { font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--gold); padding-top: .5em; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; line-height: 1.6; color: var(--ivory); transition: color .5s; }
.step p { font-size: .9rem; color: var(--muted); line-height: 1.8; display: grid; grid-template-rows: 0fr; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .5s; }
.step img { display: none; }
.step.is-active { opacity: 1; } .step.is-active h3 { color: var(--champagne); } .step.is-active p { max-height: 8em; opacity: 1; }
.process__rail { position: absolute; inset-block: 0; inset-inline-end: calc(var(--gutter) - 14px); width: 1px; background: var(--hair); }
.process__rail i { position: absolute; inset-inline: 0; top: 0; height: 100%; background: linear-gradient(var(--champagne), var(--gold)); transform-origin: top; transform: scaleY(var(--q, 0)); }
.process__dims { position: absolute; inset: 0; pointer-events: none; opacity: var(--dim-a, 0); }
.process__dims span { position: absolute; left: 0; top: 0; padding: 1px 8px; font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--champagne); background: rgba(5, 5, 5, .75); border: 1px solid var(--line); white-space: nowrap; transform: translate(-50%, -50%); }
@media (max-width: 760px) {
  .process { height: 480vh; }
  .process__pin { align-items: end; padding-block-end: 22px; }
  .process__scrim { background: linear-gradient(to top, rgba(5, 5, 5, .96) 0, rgba(5, 5, 5, .8) 34%, rgba(5, 5, 5, 0) 62%), linear-gradient(to bottom, rgba(5, 5, 5, .8), transparent 20%); }
  .process__head .head__sub, .process__head .head__mark { display: none; }
  .process__head .head__title { font-size: 1.25rem; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; position: relative; padding-block-end: 9.5em; }
  .step { display: block; padding: 8px 0 0; border-block-start: 2px solid var(--hair); position: static; }
  .step.is-active { border-color: var(--gold); }
  .step > div { position: absolute; inset-inline: 0; top: 36px; opacity: 0; transition: opacity .5s; pointer-events: none; }
  .step.is-active > div { opacity: 1; }
  .step p { max-height: none; opacity: 1; }
  .process__rail { display: none; }
}
/* no-WebGL: an ordinary illustrated timeline */
.no-gl .process, html:not(.js) .process { height: auto; background: var(--black); padding-block: var(--space-section); }
.no-gl .process__pin, html:not(.js) .process__pin { position: relative; height: auto; overflow: visible; padding: 0; }
.no-gl .process__scrim, .no-gl .process__rail, .no-gl .process__dims, html:not(.js) .process__scrim, html:not(.js) .process__dims { display: none; }
.no-gl .process__layout, html:not(.js) .process__layout { grid-template-columns: minmax(0, 1fr); }
.no-gl .steps, html:not(.js) .steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; padding: 0; }
.no-gl .step, html:not(.js) .step { opacity: 1; display: grid; border-block-start: 1px solid var(--line); padding-top: 14px; }
.no-gl .step > div, html:not(.js) .step > div { position: static; opacity: 1; display: grid; gap: 8px; }
.no-gl .step p, html:not(.js) .step p { max-height: none; opacity: 1; }
.no-gl .step img, html:not(.js) .step img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--hair); margin-top: 6px; }

/* ---------- from the site ---------- */
.site__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(400px, 38%)); gap: clamp(28px, 5vw, 80px); align-items: center; }
.site__text { display: grid; gap: 26px; min-width: 0; }
.site__text .head { margin: 0; }
.clips { display: grid; gap: 10px; }
.clip { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; text-align: start; border: 1px solid var(--hair); background: var(--panel); transition: border-color .3s, background-color .3s; min-height: 64px; }
.clip img { width: 62px; height: 84px; object-fit: cover; }
.clip span { display: grid; gap: 2px; } .clip b { font-family: var(--font-display); font-weight: 400; font-size: .95rem; line-height: 1.6; color: var(--ivory); } .clip small { font-size: var(--fs-tech); color: var(--muted); }
.clip:hover { border-color: var(--line-strong); }
.clip[aria-pressed="true"] { border-color: var(--gold); background: rgba(217, 170, 104, .08); } .clip[aria-pressed="true"] b { color: var(--champagne); }
.player { --open: 1; position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 84vh; justify-self: center; background: #020202; clip-path: inset(calc((1 - var(--open)) * 10%) calc((1 - var(--open)) * 12%)); }
@media (max-width: 860px) { .site__grid { display: flex; flex-direction: column; align-items: stretch; gap: 22px; } .site__text { display: contents; } .site__text .head { order: 1; } .player { order: 2; width: min(100%, 380px); align-self: center; } .clips { order: 3; } .thumbs { order: 4; } }
.player video { width: 100%; height: 100%; object-fit: cover; background: #020202; }
.player__corner { position: absolute; z-index: 2; width: 26px; height: 26px; border: 0 solid var(--champagne); pointer-events: none; }
.player__corner--a { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; } .player__corner--b { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.player__corner--c { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; } .player__corner--d { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.player__badge { position: absolute; z-index: 3; top: 16px; right: 16px; padding: 4px 14px; font-size: var(--fs-small); color: var(--champagne); background: rgba(5, 5, 5, .72); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.player__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.player__big { position: absolute; z-index: 3; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; border: 1px solid var(--champagne); background: rgba(5, 5, 5, .55); backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--champagne); transition: transform .5s var(--ease), background-color .3s, opacity .4s; }
.player__big::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid var(--line); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.player__big:hover { transform: scale(1.08); background: rgba(217, 170, 104, .25); }
.player__big svg { width: 34px; height: 34px; } .player__big svg path, #playSmall .i-play, #playSmall .i-pause { fill: currentColor; stroke: none; }
.player[data-state="playing"] .player__big { opacity: 0; pointer-events: none; }
.player__bar { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 26px 12px 8px; background: linear-gradient(transparent, rgba(5, 5, 5, .88)); direction: ltr; opacity: 0; transition: opacity .4s; }
.player[data-state="playing"] .player__bar, .player[data-state="paused"] .player__bar { opacity: 1; }
.player[data-state="playing"].is-quiet .player__bar { opacity: 0; }
.player__bar button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ivory); border-radius: 50%; } .player__bar button:hover { color: var(--champagne); background: rgba(217, 170, 104, .14); }
.player__bar svg { width: 20px; height: 20px; }
.player .i-pause, .player[data-state="playing"] .i-play { display: none; } .player[data-state="playing"] .i-pause { display: block; }
#muteBtn .i-x, #muteBtn[aria-pressed="true"] .i-wave { display: none; } #muteBtn[aria-pressed="true"] .i-x { display: block; }
.player__time { font-family: var(--font-tech); font-size: var(--fs-tech); color: var(--muted); min-width: 78px; text-align: center; font-variant-numeric: tabular-nums; }
.player__seek { flex: 1; min-width: 0; height: 44px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; --v: 0%; }
.player__seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--v), rgba(245, 241, 234, .25) var(--v)); }
.player__seek::-moz-range-track { height: 2px; background: rgba(245, 241, 234, .25); } .player__seek::-moz-range-progress { height: 2px; background: var(--gold); }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--champagne); }
.player__seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--champagne); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs:empty { display: none; }
.thumbs img { flex: 0 0 auto; width: clamp(96px, 12vw, 132px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair); }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact__streaks i { position: absolute; height: 1px; width: 60%; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); opacity: .7; animation: streak 9s linear infinite; }
.contact__streaks i:nth-child(1) { top: 18%; right: -60%; } .contact__streaks i:nth-child(2) { top: 52%; right: -60%; animation-delay: -3s; animation-duration: 12s; } .contact__streaks i:nth-child(3) { top: 84%; right: -60%; animation-delay: -6s; animation-duration: 10s; }
@keyframes streak { to { transform: translateX(-290%); } }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__intro .head { margin-block-end: 26px; }
.contact__direct { display: grid; gap: 14px; justify-items: start; }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__buttons .btn svg { stroke: currentColor; }
.contact__wa-note { font-size: var(--fs-small); color: var(--muted); }
.contact__facts { display: grid; gap: 10px; margin-block-start: 8px; }
.contact__facts div { display: grid; gap: 0; } .contact__facts dt { font-size: var(--fs-tech); color: var(--gold); } .contact__facts dd { color: var(--ivory); user-select: all; text-align: right; font-variant-numeric: tabular-nums; }
html:not(.js) .form { display: none; }      /* without the script the form has nowhere to send to; the WhatsApp button beside it still works */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--hair); background: rgba(11, 10, 9, .86); position: relative; }
.form::before, .form::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--gold); }
.form::before { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; } .form::after { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.form__trap { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); color: var(--champagne); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; background: rgba(5, 5, 5, .7); border: 1px solid var(--hair); border-block-end-color: var(--line-strong); border-radius: 2px; color: var(--ivory); font-size: 1rem; transition: border-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.8; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: 18px 55%, 24px 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 14px; }
.field select option { background: var(--charcoal); color: var(--ivory); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px var(--glow); }
.field small { font-size: var(--fs-tech); color: var(--muted); }
.field__err { font-size: var(--fs-small); color: var(--danger); min-height: 0; }
.field.is-bad input, .field.is-bad select { border-color: var(--danger); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__status { font-size: .92rem; color: var(--muted); flex: 1; min-width: 200px; }
.form__status.is-ok { color: var(--ok); } .form__status.is-bad { color: var(--danger); }
.form__status button { color: var(--champagne); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.form__status > a:not(.btn) { color: var(--champagne); text-decoration: underline; text-underline-offset: 4px; display: inline-block; padding-block: 8px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- reviews ---------- */
.head__mark--quote { font-family: var(--font-latin); font-size: 1.9rem; line-height: 1; padding-top: .35em; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.review { display: grid; gap: 18px; align-content: space-between; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--hair); background: var(--panel); position: relative; }
.review::before { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.review blockquote { color: rgba(245, 241, 234, .86); text-wrap: pretty; }
.review figcaption { display: grid; gap: 2px; padding-block-start: 14px; border-block-start: 1px solid var(--hair); }
.review figcaption strong { font-family: var(--font-display); font-weight: 400; color: var(--champagne); }
.review figcaption span { font-size: var(--fs-small); color: var(--muted); }

/* ---------- footer ---------- */
.foot__phone { color: var(--champagne) !important; font-variant-numeric: tabular-nums; }
.foot { position: relative; z-index: 1; background: var(--black); border-block-start: 1px solid var(--hair); padding-block: 44px calc(34px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 30px; }
.foot__line { color: var(--muted); font-size: var(--fs-small); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .92rem; } .foot__links a { padding: 10px 0; color: rgba(245, 241, 234, .75); } .foot__links a:hover { color: var(--champagne); }
.foot__copy { grid-column: 1 / -1; font-size: var(--fs-tech); color: var(--muted); border-block-start: 1px solid var(--hair); padding-block-start: 18px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] > *, .js .card, .js .tile > img, .js .materials li, .js .hero__title .line > span, .js .hero__kicker, .js .hero__lead, .js .hero__actions { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .about__figure .about__figure-num { opacity: 1 !important; }
  .tile img { transform: none; }
}
