/* Voken Capital
   Layout: a 12-column grid (5 on phones) with a fluid outer margin. The page
   alternates dark and light worlds: a WebGL logo portal, a dark portfolio,
   a white editorial "about" field and a dark footer with a gold nugget.
   One deliberate look (black / white), so colors are fixed rather than themed. */

:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --ink: #0a0a0a;
  --paper: #fff;
  --box-a: #fbf8f6;
  --box-b: #dedede;
  --box-c: #cbcbcb;
  --line: rgba(0, 0, 0, .55);
  --line-soft: rgba(0, 0, 0, .28);
  --line-light: rgba(255, 255, 255, .5);

  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --font-label: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --cols: 12;
  --gm: clamp(16px, 12px + .8vw, 24px);
  --gutter: clamp(16px, 13.2px + .71vw, 24px);
  --pad-l: max(var(--gm), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gm), env(safe-area-inset-right, 0px));
  --header-top: calc(clamp(12px, 7.8px + 1.07vw, 24px) + env(safe-area-inset-top, 0px));
  --section: clamp(64px, 41.5px + 5.72vw, 128px);

  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.83, 0, .17, 1);
  --hc: #000;
}
@media (max-width: 767px) {
  :root { --cols: 5; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
p, h1, h2, h3, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type scale (mirrors a 1512px design, fluid below and above) ---------- */
.t-xl, .t-lg, .t-md, .t-nav, .t-menu, .t-display, .t-tagline, .t-item {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-kerning: none;
}
.t-xl { font-size: clamp(32px, 20.8px + 2.86vw, 64px); line-height: .9; letter-spacing: -.005em; }
.t-lg { font-size: 24px; line-height: 1; letter-spacing: -.01em; }
.t-md { font-size: 20px; line-height: 1; letter-spacing: -.01em; }
.t-nav { font-size: 14px; line-height: 1; letter-spacing: -.02em; }
.t-menu { font-size: 20px; line-height: 1; letter-spacing: -.03em; }
.t-display { font-size: clamp(56px, 40px + 4.29vw, 112px); line-height: .9; letter-spacing: -.01em; }
.t-tagline { font-size: clamp(32px, 23.6px + 2.14vw, 56px); line-height: 1; }
.t-item { font-size: 16px; line-height: 1.2; }
.t-label { font-family: var(--font-label); text-transform: uppercase; font-size: 12px; line-height: 1.1; font-weight: 400; letter-spacing: .02em; }
.t-body { font-family: var(--font-display); font-size: 16px; line-height: 1.5; font-weight: 400; }
.t-body-sm { font-family: var(--font-display); text-transform: uppercase; font-size: 12px; line-height: 1.5; font-weight: 500; letter-spacing: .02em; }
@media (min-width: 1512px) {
  .t-xl { font-size: 4.2328vw; }
  .t-lg { font-size: 1.5873vw; }
  .t-md { font-size: 1.32275vw; }
  .t-nav { font-size: .925926vw; }
  .t-menu { font-size: 1.32275vw; }
  .t-display { font-size: 7.40741vw; }
  .t-tagline { font-size: 3.7037vw; }
  .t-item { font-size: 1.0582vw; }
  .t-label { font-size: .793651vw; }
  .t-body { font-size: 1.0582vw; }
  .t-body-sm { font-size: .793651vw; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
  width: 100%;
}

/* split text (scramble) */
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }

/* ---------- WebGL stage ---------- */
.gl { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.gl canvas { display: block; width: 100%; height: 100%; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  pointer-events: none;
}
.loader-dot {
  width: 2.38vh; height: 2.38vh; border-radius: 50%; background: var(--ink);
  transition: transform .7s var(--ease-expo);
}
.loader-pct { position: absolute; top: var(--header-top); right: var(--pad-r); font-variant-numeric: tabular-nums; }
.loader.is-out { opacity: 0; transition: opacity .25s linear; }
.loader.is-gone { display: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--header-top) var(--pad-r) 0 var(--pad-l);
  color: var(--hc);
  transition: color .5s var(--ease-expo), opacity .8s var(--ease-expo);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
body.is-loading .site-header,
body.is-intro .site-header { opacity: 0; }
.logo { display: block; height: clamp(34px, 26px + .9vw, 46px); color: inherit; }
.logo svg { display: block; height: 100%; width: auto; }
@media (min-width: 1512px) { .logo { height: 3.05vw; } }
.nav ul { display: flex; align-items: center; gap: clamp(24px, 21.2px + .71vw, 32px); }
@media (min-width: 1512px) { .nav ul { gap: 2.1164vw; } }
.menu-btn { display: none; align-items: center; gap: 8px; }
.menu-label { position: relative; display: inline-grid; }
.menu-label > span { grid-area: 1 / 1; transition: opacity .3s; text-align: right; }
.menu-label-b { opacity: 0; }
.menu-icon { display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); }
.menu-icon i { background: currentColor; transition: transform .4s var(--ease-expo), opacity .3s; }
.menu-icon i:nth-child(2), .menu-icon i:nth-child(3) { opacity: .35; }
body.menu-open .menu-label-a { opacity: 0; }
body.menu-open .menu-label-b { opacity: 1; }
body.menu-open .menu-icon i:nth-child(1) { transform: translate(4.5px, 4.5px) rotate(45deg) scale(1.4, .35); }
body.menu-open .menu-icon i:nth-child(4) { transform: translate(-4.5px, -4.5px) rotate(-45deg) scale(1.4, .35); }
body.menu-open .menu-icon i:nth-child(2), body.menu-open .menu-icon i:nth-child(3) { opacity: 0; }
@media (max-width: 767px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
body.menu-open .site-header { color: #fff; z-index: 130; }

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  background: var(--black); color: var(--white);
  opacity: 0; pointer-events: none; transition: opacity .3s ease-out;
}
.mmenu.is-open { opacity: 1; pointer-events: auto; }
.mmenu-nav { text-align: right; }
.mmenu-nav .t-display { font-size: 7.5vh; text-align: right; }
.mmenu-social { position: absolute; right: var(--pad-r); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); text-align: right; }
.mmenu-social a { text-decoration: none; font-size: 2.35vh; }
@media (min-width: 768px) { .mmenu { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: fixed; inset: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end;
  padding: 0 var(--pad-r) calc(var(--gm) + env(safe-area-inset-bottom, 0px)) var(--pad-l);
  pointer-events: none; color: var(--ink);
}
.hero-title { grid-column: 1 / span 6; line-height: .9; }
.hero-scroll { grid-column: -2 / span 1; text-align: right; }
.hero-fallback { display: none; }
@media (max-width: 767px) {
  .hero-title { grid-column: 1 / span 4; }
  .hero-title br { display: none; }
}
.spacer-hero { height: 100vh; height: 100svh; }
.spacer-world { height: 200vh; height: 200svh; }

/* no-WebGL fallback: a quiet static hero */
body.no-gl .hero { position: relative; height: 100svh; background: var(--paper); }
body.no-gl .hero-fallback { display: block; position: absolute; left: 50%; top: 48%; width: min(46vh, 60vw); transform: translate(-50%, -50%); color: var(--ink); }
body.no-gl .hero-fallback svg { width: 100%; height: auto; display: block; }
body.no-gl .spacer { display: none; }

/* ---------- portfolio ---------- */
.portfolio {
  position: relative; z-index: 20;
  color: var(--white);
  padding-top: var(--section);
  padding-bottom: calc(var(--section) + 120px);
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 48px; column-gap: var(--gutter);
  padding-left: var(--pad-l); padding-right: var(--pad-r);
}
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(48px, 6vw, 110px); } }
@media (min-width: 1280px) { .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: block; color: inherit; text-decoration: none; will-change: transform; }
.card-media { position: relative; aspect-ratio: 331 / 246; overflow: hidden; background: #0d0d0d; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-expo), opacity 1.1s var(--ease-expo), filter 1.1s var(--ease-expo);
}
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.06); }
.card--soon { cursor: default; }
.card--soon .card-title { opacity: .55; }
.card-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 14px; }
.card-title { min-width: 0; }
.card-info { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 3px; padding-top: 2px; flex: 0 0 auto; max-width: 40%; }
.card-meta { transition: opacity 1s var(--ease-expo), transform 1s var(--ease-expo); }
/* reveal is only armed once JS is running */
.js .card:not(.is-in) .card-media img { opacity: 0; transform: scale(1.18); filter: blur(14px); }
.js .card:not(.is-in) .card-meta { opacity: 0; transform: translateY(10px); }
@media (max-width: 767px) { .card-title { font-size: 28px; } }

/* list / grid toggle */
.view-toggle {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  width: 102px; height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px dashed rgba(255, 255, 255, .7);
  transform: translate(-50%, 16px); opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-expo), transform .6s var(--ease-expo), visibility 0s .6s;
}
.view-toggle.is-visible, body.list-open .view-toggle { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .5s var(--ease-expo), transform .6s var(--ease-expo); }
.vt-label { position: relative; display: inline-grid; line-height: 1; font-weight: 700; text-align: left; }
.vt-label > span { grid-area: 1 / 1; transition: opacity .25s; }
.vt-b { opacity: 0; }
body.list-open .vt-a { opacity: 0; }
body.list-open .vt-b { opacity: 1; }
.vt-icon { display: grid; gap: 3px; width: 18px; }
.vt-icon i { display: block; height: 2px; background: currentColor; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px); transition: transform .4s var(--ease-expo); }
body.list-open .vt-icon i { background: currentColor; }
.sq { position: absolute; width: 5px; height: 5px; background: currentColor; }
.sq.tl { left: 0; top: 0; transform: translate(-50%, -50%); }
.sq.tr { right: 0; top: 0; transform: translate(50%, -50%); }
.sq.bl { left: 0; bottom: 0; transform: translate(-50%, 50%); }
.sq.br { right: 0; bottom: 0; transform: translate(50%, 50%); }
.sq.tm { left: 50%; top: 0; transform: translate(-50%, -50%); }
.sq.bm { left: 50%; bottom: 0; transform: translate(-50%, 50%); }

.list-view {
  position: fixed; inset: 0; z-index: 60;
  background: var(--black); color: var(--white);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease-expo), visibility 0s .5s;
}
.list-view.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-expo); }
.list-panel { position: relative; z-index: 2; height: 100%; padding-top: clamp(96px, 7.7vw, 116px); padding-bottom: 124px; }
.list-scroll { grid-column: 3 / span 8; height: 100%; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.list-scroll::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) { .list-scroll { grid-column: 1 / -1; } }
.list-rows { padding-bottom: 96px; border-top: 1px dashed var(--line-light); }
.list-row { border-bottom: 1px dashed var(--line-light); transition: opacity .48s var(--ease-expo); }
.list-row button {
  width: 100%; min-height: 68px; padding: 14px 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) 96px 48px; align-items: center; gap: 12px;
  text-align: left;
}
.list-row .lr-name { min-width: 0; }
.list-row .lr-index, .list-row .lr-status { text-align: right; font-variant-numeric: tabular-nums; }
.list-rows.has-hover .list-row:not(.is-hover) { opacity: .28; }
@media (max-width: 767px) {
  .list-row button { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .list-row .lr-sector { grid-column: 1; grid-row: 2; }
  .list-row .lr-status { grid-column: 2; grid-row: 1; }
  .list-row .lr-index { display: none; }
}
.list-poster { position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.list-poster-frame { width: min(50vw, 714px); aspect-ratio: 714 / 509; max-width: 100%; overflow: hidden; opacity: 0; transition: opacity .52s var(--ease-expo); }
.list-poster-frame img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.8) saturate(1.2); transform: scale(1.2); transition: transform 1.05s var(--ease-expo); }
.list-view.has-poster .list-poster-frame { opacity: 1; }
.list-view.has-poster .list-poster-frame img { transform: scale(1.1); }
.list-gradient { position: fixed; left: 0; right: 0; bottom: 0; height: clamp(220px, 22vw, 360px); z-index: 3; pointer-events: none; background: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 22%, rgba(0,0,0,.58) 58%, rgba(0,0,0,.92) 84%, #000 100%); }

/* ---------- about ---------- */
.about {
  position: relative; z-index: 20;
  color: var(--ink);
  background: rgba(255, 255, 255, var(--about-a, 1));
  padding-top: var(--section);
  overflow: hidden;
  overflow: clip;
  clip-path: inset(0);
}
.about > *:not(.about-frame):not(.about-contours) { position: relative; z-index: 2; }
.about-frame { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--about-a, 1); }
.about-frame i { position: absolute; display: block; }
.fv { top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(180deg, var(--line) 0 9px, transparent 9px 18px); }
.fh { left: 0; right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 9px, transparent 9px 18px); }
.fv1 { left: 9.72%; } .fv2 { left: 29.86%; } .fv3 { right: 29.86%; } .fv4 { right: 9.72%; }
.fh1 { top: calc(var(--header-top) + clamp(34px, 26px + .9vw, 46px) + 14px); }
.fh2 { top: 80.5%; }
@media (max-width: 767px) { .fv2, .fv3 { display: none; } .fv1 { left: 20%; } .fv4 { right: 20%; } }
.about-contours { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; opacity: var(--about-a, 1); }
.about-contours path { fill: none; vector-effect: non-scaling-stroke; }
.about-label { padding-left: var(--pad-l); padding-right: var(--pad-r); }
.about-statement-wrap { margin-top: clamp(16px, 1.59vw, 24px); }
.about-statement { grid-column: 1 / span 10; text-align: justify; text-wrap: pretty; }
@media (max-width: 1023px) { .about-statement { grid-column: 1 / -1; } }
@media (max-width: 767px) { .about-statement { text-align: left; } }
.about-statement .wd { transition: opacity .2s linear; }

.inside { padding-top: clamp(60px, 30px + 7.6vw, 145px); padding-bottom: clamp(80px, 64.5px + 3.93vw, 124px); }
.inside-head { display: flex; align-items: center; gap: clamp(16px, 1.59vw, 24px); padding-left: var(--pad-l); padding-right: var(--pad-r); }
.inside-bar {
  position: relative; width: 104px; height: 14px; overflow: hidden;
  background-image: repeating-conic-gradient(#000 0 25%, transparent 0 50%);
  background-size: 4px 4px;
}
.inside-bar-fill { position: absolute; inset: 0; background: #000; transform-origin: left center; transform: scaleX(.18); }
.inside-track {
  display: flex; margin-top: clamp(16px, 1.59vw, 24px);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding-right: var(--pad-r);
  cursor: grab; touch-action: pan-x pan-y;
  -webkit-user-select: none; user-select: none;
  scroll-snap-type: x proximity;
}
.inside-track::-webkit-scrollbar { display: none; }
.inside-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.ic { flex: 0 0 77.6vw; padding-left: var(--pad-l); scroll-snap-align: start; }
@media (min-width: 768px) { .ic { flex-basis: 26.4vw; padding-left: var(--gutter); } .ic:first-child { padding-left: var(--pad-l); flex-basis: calc(26.4vw - var(--gutter) + var(--pad-l)); } }
.ic-frame { aspect-ratio: 305 / 402; perspective: 2200px; max-width: 100%; }
@media (min-width: 768px) { .ic-frame { aspect-ratio: 400 / 527; } }
.ic-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.ic-img { position: absolute; inset: 0; overflow: hidden; background: #e9e9e9; }
.ic-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2) translateX(var(--px, 0)); pointer-events: none; -webkit-user-drag: none; }
.ic-text { display: block; padding-top: clamp(14px, 1.32vw, 20px); padding-right: 6%; }
.ic-text > span { display: block; }
.ic-num { opacity: .6; }
.ic-title { margin-top: clamp(10px, .93vw, 14px); }
.ic-desc { margin-top: clamp(8px, .66vw, 10px); max-width: 34ch; text-wrap: pretty; }
.ic.is-flipping .ic-flip { animation: icFlip .9s var(--ease-io) both; }
.ic.is-flipping .ic-img img { animation: icFlash .9s var(--ease-io); }
@keyframes icFlip {
  0% { transform: rotateY(0) skewY(0); }
  45% { transform: rotateY(165deg) skewY(-4deg); }
  100% { transform: rotateY(360deg) skewY(0); }
}
@keyframes icFlash { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.9); } }

.backed { margin-top: clamp(24px, 3.17vw, 48px); padding-bottom: clamp(60px, 10.5px + 7.51vw, 140px); }
.backed-title { grid-column: 3 / span 8; text-align: left; text-wrap: balance; }
.boxes-wrap { margin-top: clamp(40px, 1px + 7.51vw, 124px); }
.boxes { grid-column: 3 / span 8; }
@media (max-width: 1023px) { .backed-title, .boxes { grid-column: 1 / -1; } }
.boxes-row { display: flex; flex-direction: column; }
@media (min-width: 768px) { .boxes-row { flex-direction: row; } }
.box-col { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 768px) { .box-col { width: 50%; } }
.box { position: relative; padding: clamp(32px, 37.2px + .71vw, 48px); will-change: transform; }
@media (max-width: 767px) { .box { padding: 32px 24px; } }
@media (min-width: 1512px) { .box { padding: 3.1746vw; } }
.box--a { background: var(--box-a); }
.box--b { background: var(--box-b); }
.box--c { background: var(--box-c); }
.box-list, .box-text { margin-top: clamp(14px, 1.06vw, 16px); }
@media (min-width: 1512px) { .box-list, .box-text { margin-top: 1.0582vw; } }
.box-text { max-width: 62ch; }
.dot { position: absolute; width: 4px; height: 4px; background: #000; }
.dot.tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.dot.tr { top: 0; right: 0; transform: translate(50%, -50%); }
.dot.bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.dot.br { bottom: 0; right: 0; transform: translate(50%, 50%); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 20; height: 100vh; height: 100lvh; min-height: 600px; color: var(--white); }
.footer-stage { position: absolute; inset: 0; align-items: center; pointer-events: none; }
.footer-side { grid-column: span 2; pointer-events: auto; }
.footer-side--r { grid-column: 11 / span 2; text-align: right; }
@media (max-width: 767px) { .footer-side { display: none; } }
.footer-cta {
  position: absolute; top: 64%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 2 * var(--gm));
  text-align: center; pointer-events: auto;
}
.footer-cta a { text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .08em; white-space: nowrap; }
.footer-cta a:hover { text-decoration-thickness: .12em; }
.footer-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding-left: var(--pad-l); padding-right: var(--pad-r); padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.footer-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: clamp(16px, 1.59vw, 24px) 10px;
}
.footer-bar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 3px, transparent 3px 6px);
}
.copy.footer-copy { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -20%); }
.footer-x { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal { font-family: var(--font-label); font-size: 10px; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.45); }
/* one sentence per line; on phones the pair still settles into two lines */
.footer-legal span { display: block; }
@media (max-width: 767px) {
  .footer-legal { font-size: 8.5px; letter-spacing: 0; }
  .footer-legal span { display: inline; }
}
@media (max-width: 767px) {
  .footer-bar { flex-wrap: wrap; }
  .copy.footer-copy { position: static; transform: none; order: 3; width: 100%; text-align: left; }
}

/* copy-to-clipboard buttons */
.copy { position: relative; display: inline-grid; }
.copy > span { grid-area: 1 / 1; transition: opacity .2s; }
.copy-b { opacity: 0; }
.copy.is-copied .copy-a { opacity: 0; }
.copy.is-copied .copy-b { opacity: 1; }

/* dashed close button */
.dash-btn {
  position: absolute; display: flex; align-items: stretch; height: 50px;
  border: 1px dashed currentColor;
}
.dash-btn .t-label { display: flex; align-items: center; padding: 0 10px; font-weight: 700; border-right: 1px dashed currentColor; }
.dash-btn .x { position: relative; width: 48px; }
.dash-btn .x::before, .dash-btn .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.dash-btn .x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dash-btn .sq.tm, .dash-btn .sq.bm { left: auto; right: 48px; transform: translate(50%, -50%); }
.dash-btn .sq.bm { transform: translate(50%, 50%); }
.dash-btn:hover .x::before { transform: translate(-50%, -50%) rotate(135deg); }
.dash-btn:hover .x::after { transform: translate(-50%, -50%) rotate(45deg); }
.dash-btn .x::before, .dash-btn .x::after { transition: transform .5s var(--ease-expo); }

/* ---------- contact ---------- */
.contact {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; visibility: hidden; pointer-events: none;
  transition: visibility 0s .6s;
}
.contact.is-open { visibility: visible; pointer-events: auto; transition: none; }
.contact-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; transition: opacity .5s var(--ease-expo);
}
.contact.is-open .contact-backdrop { opacity: 1; }
.contact-card {
  position: relative; z-index: 1;
  width: min(720px, 100%); min-height: 430px; max-height: 100%; overflow: auto;
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto 1fr;
  gap: 24px;
  padding: 24px;
  transform-origin: 50% 0;
  transform: perspective(900px) rotateX(-80deg) translateY(-30px);
  opacity: 0;
  transition: transform .9s var(--ease-expo), opacity .35s linear;
  backface-visibility: hidden;
}
.contact.is-open .contact-card { transform: perspective(900px) rotateX(0) translateY(0); opacity: 1; }
.contact-title { grid-column: 1 / -1; line-height: .82; }
.contact-mark { grid-column: 1 / span 2; align-self: end; width: 80px; }
.contact-mark svg { width: 100%; height: auto; display: block; }
.contact-mid { grid-column: 3 / span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.contact-social { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-top: auto; }
.contact-social a { text-decoration: none; }
.contact-social a:hover { text-decoration: underline; }
.contact-emails { grid-column: 5 / span 2; display: flex; flex-direction: column; gap: 22px; }
.ce .copy { line-height: 1.3; }
.contact-close { top: 24px; right: 24px; }
@media (max-width: 767px) {
  .contact { padding: 0; }
  .contact-card { width: 100%; height: 100%; max-height: none; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 40px 16px; padding: 96px var(--pad-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--pad-l); }
  .contact-mark { position: absolute; top: 20px; left: var(--pad-l); width: 48px; }
  .contact-mid { grid-column: 1 / -1; order: 4; flex-direction: row; justify-content: flex-end; align-items: flex-end; }
  .contact-emails { grid-column: 1 / -1; order: 3; align-self: center; align-items: center; text-align: center; }
  .contact-close { top: 16px; right: var(--pad-r); }
}

/* ---------- project detail ---------- */
.project {
  position: fixed; inset: 0; z-index: 90;
  background: var(--black); color: var(--white);
  clip-path: inset(100% 0 0 0);
  visibility: hidden;
  transition: clip-path 1s var(--ease-expo), visibility 0s 1s;
}
.project.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 1s var(--ease-expo); }
.project-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.project-inner { min-height: 100%; padding-top: clamp(96px, 8vw, 132px); padding-bottom: 48px; row-gap: 32px; align-items: end; }
.project-media { grid-column: 6 / -1; grid-row: 1; align-self: stretch; position: relative; min-height: 60vh; overflow: hidden; background: #111; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease-expo); }
.project.is-open .project-media img { transform: scale(1); }
.project-info { grid-column: 1 / span 5; grid-row: 1; display: flex; flex-direction: column; gap: 24px; padding-right: var(--gutter); }
.project-title { overflow-wrap: anywhere; }
.project-desc { max-width: 46ch; }
.project-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gutter); padding-top: 18px; border-top: 1px dashed var(--line-light); }
.project-facts dt { opacity: .6; margin-bottom: 6px; }
.project-facts dd { margin: 0; overflow-wrap: anywhere; }
.project-facts a { text-decoration: none; }
.project-facts a::after { content: " \2197"; font-family: var(--font-label); font-weight: 400; }
.project-facts a:hover, .project-facts a:focus-visible { text-decoration: underline; text-underline-offset: .12em; }
/* long domains and handles get the full row once the two columns get narrow */
@media (max-width: 1279px) { .project-facts > .pf-link { grid-column: 1 / -1; } }
.project-next { display: inline-flex; align-items: baseline; gap: 10px; align-self: flex-start; margin-top: 8px; padding-top: 18px; }
.project-next:hover #project-next-name { text-decoration: underline; }
.project-close { top: var(--header-top); right: var(--pad-r); color: var(--white); z-index: 2; }
@media (max-width: 1023px) {
  .project-media { grid-column: 1 / -1; grid-row: 1; min-height: 0; aspect-ratio: 4 / 3; }
  .project-info { grid-column: 1 / -1; grid-row: 2; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
