/* Sam Shawcross — V25 “The Digital Workshop”
   One studio, one key light (top-left, slightly in front). Every object below is built and shaded against it. */

@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-var.woff") format("woff"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Anonymous Pro"; src: url("fonts/anonymous-pro.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --bg: #111112; --bg-2: #151517; --surface: #1b1b1d; --surface-2: #222225;
  --line: #2b2b2e; --line-2: #3a3a3e;
  --paper: #ecebe7; --paper-2: #cfcdc7; --muted: #9b9993; --faint: #8a8882;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Anonymous Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(18px, 3.2vw, 48px);
  --gap: clamp(14px, 1.7vw, 24px);
  --ease: cubic-bezier(.2, .8, .22, 1);
  --ease-io: cubic-bezier(.6, 0, .25, 1);
  --t: .85s;
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.95' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --alu: var(--brush), linear-gradient(180deg, #dfe1e4, #b7bbc0);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--paper); font: 400 15px/1.55 var(--font); font-optical-sizing: auto;
  background: radial-gradient(1100px 700px at 18% -8%, #1d1d20 0%, transparent 70%), var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--grain); opacity: .05; pointer-events: none; z-index: 0; mix-blend-mode: overlay; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.mono, .mono-label { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.mono-label { color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arr { display: inline-block; margin-left: .35em; font-size: .85em; transition: transform .35s var(--ease); }
a:hover .arr { transform: translate(2px, -2px); }
:focus-visible { outline: 1.5px solid var(--paper); outline-offset: 4px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: #111; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.shell { position: relative; z-index: 1; max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); overflow-x: clip; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 68px; border-bottom: 1px solid var(--line); }
.sig { display: inline-flex; align-items: center; gap: 11px; min-width: 44px; font-weight: 500; font-size: 14px; letter-spacing: -.005em; min-height: 44px; }
.lg-ss { --m: url("logos/ss-monogram.svg"); } .lg-se { --m: url("logos/scale-and-elevate.svg"); } .lg-nemry { --m: url("logos/nemry.svg"); } .lg-frne { --m: url("logos/frne.svg"); } .lg-ayohve { --m: url("logos/ayohve.svg"); }
.mark { display: block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.sig-mark { width: 19px; height: 20px; transition: transform .6s var(--ease); }
.sig:hover .sig-mark { transform: rotate(-8deg); }
.top nav ul { display: flex; gap: clamp(18px, 2.4vw, 32px); }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--paper-2); position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.top nav a:hover, .top nav a[aria-current] { color: var(--paper); }
.top nav a:hover::after, .top nav a[aria-current]::after { transform: scaleX(1); }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: var(--gap); align-items: end; padding: clamp(12px, 2vw, 28px) 0 clamp(14px, 2vw, 26px); min-height: clamp(300px, 30vw, 440px); }
.intro h1 { grid-row: 2; } .intro .lede { grid-row: 3; } .intro .gnote { grid-row: 4; }
.intro .hero-tile { grid-column: 7 / 13; grid-row: 1 / 6; align-self: stretch; }
.hero-tile .stage { height: clamp(280px, 28vw, 420px); }
.hero-tile .cap { border-top-color: transparent; }
.intro h1 { grid-column: 1 / 7; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.028em; line-height: 1.05; }
.intro .lede { grid-column: 1 / 8; margin-top: 10px; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); letter-spacing: -.005em; }
.intro .lede span:first-child { color: var(--paper-2); }
.intro .gnote { grid-column: 1 / 7; align-self: start; color: var(--muted); max-width: 44ch; margin-top: 18px; }

/* ---------- gallery composition ---------- */
.work {
  --r1: clamp(300px, 27vw, 430px); --r2: clamp(260px, 23vw, 360px); --r3: clamp(240px, 21vw, 330px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(10px, 1.4vw, 22px);
  grid-template-areas:
    "s1 s1 s1 s1 s1 s2 s2 s2 s3 s3 s3 s3"
    "s4 s4 s4 s4 s5 s5 s5 s5 s6 s6 s6 s6"
    "s7 s7 s7 s7 s7 s7 s7 ct ct ct ct ct";
  padding-bottom: clamp(40px, 6vw, 90px);
}
.gallery { display: contents; }
.tile { grid-area: var(--area); min-width: 0; position: relative; }
.contact-tile { grid-area: ct; }
.tile-link { display: flex; flex-direction: column; height: 100%; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.tile-link:focus-visible { outline-offset: 2px; border-radius: 10px; }
.stage { position: relative; display: grid; place-items: center; height: var(--r2); container-type: size; perspective: 1500px; perspective-origin: 50% 35%; }
.slot-1 .stage, .slot-2 .stage, .slot-3 .stage { height: var(--r1); }
.slot-7 .stage, .slot-x .stage { height: var(--r3); }
.cap { display: grid; grid-template-columns: 2.4em 1fr; column-gap: 6px; align-items: baseline; padding-top: 11px; border-top: 1px solid var(--line); position: relative; }
.cap::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.cap-n { font-family: var(--mono); font-size: 12px; color: var(--faint); grid-row: 1 / 3; transition: color .4s; }
.cap-t { font-size: 14px; font-weight: 500; letter-spacing: -.005em; }
.cap-d { font-size: 13px; color: var(--muted); }
.tile-link:hover .cap::before, .tile-link:focus-visible .cap::before, .tile.is-live .cap::before { transform: scaleX(1); }
.tile-link:hover .cap-n, .tile-link:focus-visible .cap-n { color: var(--paper); }

/* rig: every object is authored in ems and scaled to its stage with container units */
.rig { --rw: 30; --rh: 22; position: relative; width: calc(var(--rw) * 1em); height: calc(var(--rh) * 1em); font-size: min(calc(100cqw / var(--rw)), calc(100cqh / var(--rh)), 19px); transform-style: preserve-3d; }
.rig * { transform-style: preserve-3d; }
:where(.rig) :where(i, span, b, small, em) { display: block; font-style: normal; }
.floor { position: absolute; left: 50%; bottom: 6%; width: 70%; height: 14%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.28) 45%, transparent); filter: blur(.25em); transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }

/* six-faced cuboid */
.box { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); transition: transform var(--t) var(--ease); }
.box > i { position: absolute; }
.box > .f, .box > .bk { inset: 0; }
.box > .f { transform: translateZ(calc(var(--d) / 2)); }
.box > .bk { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.box > .l, .box > .r { top: 0; height: 100%; width: var(--d); left: calc(50% - var(--d) / 2); }
.box > .r { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.box > .l { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.box > .t, .box > .b { left: 0; width: 100%; height: var(--d); top: calc(50% - var(--d) / 2); }
.box > .t { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.box > .b { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

/* logo extrusion: the exact logo, stacked as a solid */
.ext { position: absolute; inset: 0; }
.ext > i { position: absolute; inset: 0; background: var(--edge, #888); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transform: translateZ(calc(var(--k) * var(--step, .12em))); }
.ext > i:last-child { background: var(--face, #fff); }

/* crops of real screenshots */
.crop { position: absolute; inset: 0; overflow: hidden; background: #0b0b0c; }
.crop img { position: absolute; max-width: none; width: var(--cw); height: var(--ch); left: var(--cx); top: var(--cy); object-fit: fill; }
.crop-empty { background: radial-gradient(circle at 50% 45%, #2a2b2e, #111 70%); }
.crop-empty img { display: none; }
.glass { position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.13) 0 22%, rgba(255,255,255,0) 22.4% 100%), linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%); box-shadow: inset 0 .08em .25em rgba(0,0,0,.7); pointer-events: none; }

/* hover / focus / in-view on touch — one state per object */
.tile:is(:hover, :focus-within, .is-live) { --on: 1; }

/* ======================================================================
   01 · Scale & Elevate — machined display that reveals its mobile layout
   ====================================================================== */
.r-pc { --rw: 34; --rh: 24; }
.r-pc .floor { width: 62%; bottom: 3%; }
.pc { position: absolute; inset: 0; transform: rotateX(-5deg) rotateY(-17deg); transition: transform 1s var(--ease); }
.tile:is(:hover, :focus-within, .is-live) .pc { transform: rotateX(-5deg) rotateY(-27deg) translateX(-2.6em); }
.pc-body { --w: 24em; --h: 16.6em; --d: 1.1em; transform: translate3d(0, -2.4em, 0); }
.pc-body > i { background: var(--alu); background-blend-mode: soft-light, normal; }
.pc-body > .f { border-radius: .28em; background: var(--brush), linear-gradient(176deg, #e6e8eb 0%, #c4c8cc 60%, #b0b4b9); background-blend-mode: soft-light, normal; box-shadow: inset 0 .06em 0 rgba(255,255,255,.85), inset 0 -.06em 0 rgba(0,0,0,.18); }
.pc-body > .bk { background: linear-gradient(180deg, #a8acb1, #8e9298); border-radius: .28em; }
.pc-body > .t { background: linear-gradient(90deg, #f3f4f5, #d7dadd); }
.pc-body > .r { background: var(--brush), linear-gradient(180deg, #8e9297, #6d7176); background-blend-mode: soft-light, normal; }
.pc-body > .l { background: linear-gradient(180deg, #d5d8db, #b9bcc0); }
.pc-body > .b { background: #5d6065; }
.pc-bezel { position: absolute; left: .42em; right: .42em; top: .42em; height: 12.9em; background: #070708; border-radius: .16em; box-shadow: inset 0 0 0 .04em #000, 0 .03em 0 rgba(255,255,255,.6); }
.pc-screen { position: absolute; inset: .5em; overflow: hidden; border-radius: .06em; background: #000; }
.pc-chin { position: absolute; left: 0; right: 0; bottom: 0; height: 3.3em; display: grid; place-items: center; }
.pc-logo { width: 2.2em; height: 1.62em; background: linear-gradient(180deg, #9da1a7, #b6babf); filter: drop-shadow(0 .03em 0 rgba(255,255,255,.75)) drop-shadow(0 -.02em 0 rgba(0,0,0,.25)); }
.pc-stand { position: absolute; inset: 0; }
.pc-neck { --w: 6.4em; --h: 7.4em; --d: .55em; transform: translate3d(0, 6.1em, -2.1em) rotateX(14deg); }
.pc-neck > i { background: var(--alu); background-blend-mode: soft-light, normal; }
.pc-neck > .f { background: var(--brush), linear-gradient(180deg, #8f9398, #c9cccf); background-blend-mode: soft-light, normal; }
.pc-neck > .r { background: #7a7e83; }
.pc-foot { --w: 9.6em; --h: .5em; --d: 7.4em; transform: translate3d(0, 9.95em, -1.4em); }
.pc-foot > i { background: var(--alu); background-blend-mode: soft-light, normal; }
.pc-foot > .t { background: var(--brush), linear-gradient(180deg, #e9ebed, #c8cbcf); background-blend-mode: soft-light, normal; }
.pc-foot > .f { background: linear-gradient(180deg, #aeb2b6, #85898e); }
.pc-foot > .r { background: #73777c; }
.pc-phone { position: absolute; inset: 0; transform: translate3d(4.5em, .4em, -2.2em); transition: transform 1s var(--ease) .05s; }
.tile:is(:hover, :focus-within, .is-live) .pc-phone { transform: translate3d(15.4em, 2.2em, 2.2em) rotateY(12deg); }
.ph-body { --w: 5.4em; --h: 11em; --d: .52em; }
.ph-body > i { background: linear-gradient(180deg, #3a3b3e, #232427); }
.ph-body > .f { border-radius: .8em; background: #0b0b0c; box-shadow: inset 0 0 0 .1em #2f3033, inset 0 0 0 .13em #6b6d71; }
.ph-body > .bk { border-radius: .8em; }
.ph-body > .l { background: linear-gradient(180deg, #8a8c90, #55575b); }
.ph-screen { position: absolute; inset: .26em; border-radius: .58em; overflow: hidden; background: #000; }
.ph-screen::after { content: ""; position: absolute; top: .3em; left: 50%; width: 1.5em; height: .42em; margin-left: -.75em; border-radius: 1em; background: #000; }

/* ======================================================================
   02 · Nemry — layered icon that separates into the software
   ====================================================================== */
.r-nm { --rw: 22; --rh: 24; }
.r-nm .floor { bottom: 10%; width: 72%; height: 20%; }
.nm { position: absolute; left: 50%; top: 58%; width: 0; height: 0; transform: rotateX(57deg) rotateZ(-42deg); }
.slab { position: absolute; left: -6.2em; top: -6.2em; width: 12.4em; height: 12.4em; transform: translateZ(calc(var(--z) * 1em)); transition: transform 1s var(--ease); }
.slab > i { position: absolute; inset: 0; border-radius: 2.75em; background: var(--edge); transform: translateZ(calc(var(--k, 0) * .11em)); }
.slab > i:nth-child(1) { --k: 0; filter: brightness(.7); } .slab > i:nth-child(2) { --k: 1; filter: brightness(.78); } .slab > i:nth-child(3) { --k: 2; filter: brightness(.86); } .slab > i:nth-child(4) { --k: 3; filter: brightness(.93); } .slab > i:nth-child(5) { --k: 4; }
.slab-face { position: absolute; inset: 0; border-radius: 2.75em; transform: translateZ(.55em); background: var(--face); box-shadow: inset 0 0 0 .06em rgba(255,255,255,.35); overflow: hidden; }
.nm-p0 { --z: 0; --edge: #0a2f86; --face: linear-gradient(135deg, #1f63e0, #003ab0); }
.nm-p1 { --z: .62; --edge: #c5cfdf; --face: linear-gradient(135deg, #ffffff, #e9eef7); }
.nm-p2 { --z: 1.24; --edge: #c5cfdf; --face: linear-gradient(135deg, #ffffff, #eef2f8); }
.nm-p3 { --z: 1.86; --edge: #0a3a9c; --face: radial-gradient(120% 90% at 20% 10%, #3a7cf0, #004cd3 55%, #003fb3); }
.tile:is(:hover, :focus-within, .is-live) .nm-p1 { --z: 3.4; transition-delay: .08s; }
.tile:is(:hover, :focus-within, .is-live) .nm-p2 { --z: 6.2; transition-delay: .04s; }
.tile:is(:hover, :focus-within, .is-live) .nm-p3 { --z: 9.2; }
.tile:is(:hover, :focus-within, .is-live) .r-nm .floor { transform: translateX(-50%) scale(1.08); opacity: .8; }
.nm-n { inset: 26% 28% 26% 28%; --edge: #c9d8f5; --face: #ffffff; --step: .13em; transform: translateZ(.02em); }
.nm-n > i:nth-child(-n+4) { background: #9fb4dc; }
.tile:is(:hover, :focus-within, .is-live) .nm-n { transform: translateZ(.5em); transition: transform 1s var(--ease) .15s; }
.nm-ui { position: absolute; inset: 1.5em; color: #17243b; font-size: .8em; line-height: 1.3; }
.nm-folders b { font-weight: 600; color: #004cd3; padding: .35em .6em; background: #e6eefc; border-radius: .5em; margin-bottom: .35em; }
.nm-folders span { padding: .35em .6em; border-bottom: .06em solid #e3e8f1; color: #3d4a63; }
.nm-note small { font-size: .78em; color: #5b6880; letter-spacing: .02em; margin-bottom: .35em; }
.nm-note > span { font-weight: 500; font-size: 1.02em; }
.nm-note em { margin-top: .8em; display: inline-block; align-self: start; padding: .4em .65em; background: #004cd3; color: #fff; border-radius: .55em; font-size: .85em; }
.nm-note em b { font-weight: 700; margin-right: .3em; display: inline; }
.nm-note { display: flex; flex-direction: column; }

/* ======================================================================
   03 · FRNE — the black magnetic case opens
   ====================================================================== */
.r-fr { --rw: 26; --rh: 22; }
.r-fr .floor { bottom: 8%; width: 82%; height: 22%; }
.fr { position: absolute; left: 50%; top: 61%; width: 0; height: 0; transform: rotateX(-27deg) rotateY(38deg); }
.fr-base { --w: 13em; --h: 4.4em; --d: 13em; }
.fr-base > i { background: var(--grain), linear-gradient(180deg, #1d1d1f, #121213); background-blend-mode: overlay, normal; }
.fr-base > .l { background: var(--grain), linear-gradient(180deg, #2b2b2e, #1a1a1c); background-blend-mode: overlay, normal; }
.fr-base > .t { display: none; }
.fr-base > .bk, .fr-base > .r { filter: brightness(.8); }
.fr-inside { position: absolute; inset: 0; }
.fr-pad { position: absolute; left: .45em; top: 50%; width: calc(100% - .9em); height: 12.1em; margin-top: -6.05em; transform: rotateX(90deg) translateZ(-1.7em); background: radial-gradient(circle at 40% 35%, #2a2a2d, #0e0e0f 75%); border-radius: .3em; }
.fr-card { position: absolute; left: 50%; top: 50%; width: 7.2em; height: 7.2em; margin: -3.6em 0 0 -3.6em; padding: .35em; background: #f4f4f2; border-radius: .12em; transform: translate3d(0, 1.55em, 0) rotateX(90deg) scale(.92); transition: transform 1.1s var(--ease); box-shadow: 0 .1em .3em rgba(0,0,0,.4); }
.fr-card img { width: 100%; height: 100%; object-fit: cover; }
.tile:is(:hover, :focus-within, .is-live) .fr-card { transform: translate3d(0, -4.4em, 0) rotateY(-38deg); transition-delay: .25s; }
.fr-lid { position: absolute; inset: 0; transform-origin: 0 0 -6.7em; transform: translateY(-2.45em); transition: transform 1.05s var(--ease); }
.tile:is(:hover, :focus-within, .is-live) .fr-lid { transform: translateY(-2.45em) rotateX(98deg); }
.fr-lidtop { --w: 13.4em; --h: .5em; --d: 13.4em; }
.fr-lidtop > i { background: var(--grain), linear-gradient(180deg, #232325, #161617); background-blend-mode: overlay, normal; }
.fr-lidtop > .t { background: var(--grain), radial-gradient(130% 110% at 15% 0%, #333336, #1a1a1c 60%, #141415); background-blend-mode: overlay, normal; display: grid; place-items: center; }
.fr-lidtop > .b { background: #0b0b0c; }
.fr-foil { width: 2.3em; height: 3.5em; background: linear-gradient(160deg, #f4f5f6 0%, #a6abb1 38%, #eef0f2 52%, #8d9298 80%); filter: drop-shadow(0 -.02em 0 rgba(0,0,0,.6)); transform: none; }
.fr-flap { --w: 13.4em; --h: 1.7em; --d: .32em; transform: translate3d(0, .6em, 6.86em); }
.fr-flap > i { background: var(--grain), linear-gradient(180deg, #1f1f21, #141415); background-blend-mode: overlay, normal; }
.fr-flap > .l { background: #2a2a2c; }

/* ======================================================================
   04 · Ayohve — storefront slab that selects a variant and fills the bag
   ====================================================================== */
.r-ay { --rw: 32; --rh: 22; }
.r-ay .floor { width: 74%; bottom: 7%; }
.ay { position: absolute; inset: 0; transform: rotateX(-5deg) rotateY(18deg); }
.ay-slab { --w: 18.4em; --h: 12.6em; --d: .7em; transform: translate3d(-3.2em, -.7em, 0) rotateX(6deg); }
.ay-slab > i { background: linear-gradient(180deg, #e7e8ea, #cfd1d4); }
.ay-slab > .f { background: #fbfbfa; border-radius: .45em; box-shadow: inset 0 0 0 .05em rgba(0,0,0,.08), inset 0 .07em 0 #fff; overflow: hidden; }
.ay-slab > .bk { border-radius: .45em; }
.ay-slab > .l { background: linear-gradient(180deg, #f4f5f6, #dcdee1); }
.ay-page { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; color: #121212; }
.ay-img { position: relative; background: #f0f0f0; }
.ay-v { position: absolute; inset: 0; transition: opacity .6s var(--ease); }
.ay-v img { width: 100%; height: 100%; object-fit: cover; }
.ay-v1 { opacity: 0; }
.tile:is(:hover, :focus-within, .is-live) .ay-v1 { opacity: 1; transition-delay: .35s; }
.ay-info { padding: 1.4em 1.2em; display: flex; flex-direction: column; gap: .4em; font-size: .9em; }
.ay-info small { font-family: var(--mono); font-size: .72em; letter-spacing: .14em; color: #6b6b6b; }
.ay-info b { font-size: 1.15em; font-weight: 600; letter-spacing: -.01em; }
.ay-sw { display: flex !important; align-items: center; gap: .45em; margin-top: .6em; flex-wrap: wrap; }
.sw { width: 1.15em; height: 1.15em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 55%), var(--c); box-shadow: 0 0 0 .1em #fff, 0 0 0 .16em transparent; transition: box-shadow .4s var(--ease); }
.sw0 { box-shadow: 0 0 0 .1em #fff, 0 0 0 .16em #111; }
.tile:is(:hover, :focus-within, .is-live) .sw0 { box-shadow: 0 0 0 .1em #fff, 0 0 0 .16em transparent; }
.tile:is(:hover, :focus-within, .is-live) .sw1 { box-shadow: 0 0 0 .1em #fff, 0 0 0 .16em #111; transition-delay: .2s; }
.ay-vl { position: relative; height: 1.3em; width: 4em; margin-left: .2em; font-size: .82em; color: #444; }
.ay-vl span { position: absolute; inset: 0; transition: opacity .4s; }
.ay-vl .l1 { opacity: 0; }
.tile:is(:hover, :focus-within, .is-live) .ay-vl .l0 { opacity: 0; }
.tile:is(:hover, :focus-within, .is-live) .ay-vl .l1 { opacity: 1; transition-delay: .3s; }
.ay-btn { margin-top: auto; position: relative; height: 2.3em; border-radius: .4em; background: #111; color: #fff; font-size: .85em; font-weight: 500; overflow: hidden; }
.ay-btn span { position: absolute; inset: 0; display: grid !important; place-items: center; transition: transform .5s var(--ease); }
.ay-btn .b1 { transform: translateY(100%); background: #022baf; }
.tile:is(:hover, :focus-within, .is-live) .ay-btn .b0 { transform: translateY(-100%); transition-delay: .55s; }
.tile:is(:hover, :focus-within, .is-live) .ay-btn .b1 { transform: translateY(0); transition-delay: .55s; }
.ay-drawer { --w: 9.4em; --h: 11.6em; --d: .5em; transform: translate3d(1.5em, -.3em, -1.6em) rotateX(6deg); transition: transform 1s var(--ease) .1s; }
.tile:is(:hover, :focus-within, .is-live) .ay-drawer { transform: translate3d(10.6em, .2em, -.4em) rotateX(6deg) rotateY(-6deg); transition-delay: .7s; }
.ay-drawer > i { background: #d4d6d9; }
.ay-drawer > .f { background: #ffffff; border-radius: .4em; box-shadow: inset 0 0 0 .05em rgba(0,0,0,.07); }
.ay-drawer > .bk { border-radius: .4em; }
.ay-bag { position: absolute; inset: 1em; color: #111; font-size: .82em; display: flex !important; flex-direction: column; gap: .8em; }
.ay-bag small { font-family: var(--mono); font-size: .8em; letter-spacing: .12em; color: #666; padding-bottom: .6em; border-bottom: .06em solid #e5e5e5; }
.ay-line { display: grid !important; grid-template-columns: 3.4em 1fr; gap: .6em; align-items: center; }
.ay-thumb { width: 3.4em; height: 3.4em; background: #f0f0f0; border-radius: .2em; overflow: hidden; }
.ay-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ay-line b { font-weight: 600; }
.ay-line span span { color: #666; }
.ay-co { margin-top: auto; height: 2.3em; border-radius: .4em; background: #022baf; color: #fff; display: grid !important; place-items: center; font-weight: 500; }
.ay-base { --w: 19.6em; --h: 1.5em; --d: 4.6em; transform: translate3d(-3.2em, 6.4em, .4em); }
.ay-base > i { background: linear-gradient(180deg, #0a2f9e, #031c78); }
.ay-base > .f { background: var(--brush), linear-gradient(180deg, #1640c4, #0a2a9c); background-blend-mode: soft-light, normal; display: grid; place-items: center; box-shadow: inset 0 .05em 0 rgba(255,255,255,.35); }
.ay-base > .t { background: var(--brush), linear-gradient(180deg, #2b56d8, #123ab8); background-blend-mode: soft-light, normal; }
.ay-base > .r { background: #061d6c; }
.ay-engrave { width: 1.9em; height: 1.2em; background: linear-gradient(180deg, #e9eefc, #b8c6f1); filter: drop-shadow(0 -.02em 0 rgba(0,0,0,.35)); }

/* ======================================================================
   05 · Brand identity — the real vector construction becomes metal
   ====================================================================== */
.r-vx { --rw: 20; --rh: 20; }
.r-vx .floor { width: 80%; bottom: 3%; opacity: .85; }
.vx-board { position: absolute; left: 50%; top: 47%; width: 16em; height: 16em; margin: -8em 0 0 -8em; background: var(--grain), linear-gradient(170deg, #f1f0ec, #e2e0da); background-blend-mode: soft-light, normal; border-radius: .22em; transform: rotateX(16deg); box-shadow: 0 .08em 0 #b9b7b0, 0 .14em 0 #9d9b94, 0 1.2em 2em -0.6em rgba(0,0,0,.6); transition: transform 1s var(--ease); }
.vx-art { position: absolute; inset: 1.7em 2em 2.4em; }
.vx { width: 100%; height: 100%; overflow: visible; }
.vx * { vector-effect: non-scaling-stroke; transition: opacity .5s var(--ease); }
.vx-guides rect, .vx-guides line { fill: none; stroke: #2b6cf3; stroke-width: .6; opacity: .3; stroke-dasharray: 3 3; }
.vx-path { fill: rgba(17,17,18,0); stroke: #2b6cf3; stroke-width: 1.1; transition: fill .9s var(--ease), stroke .6s; }
.vx-handles line { stroke: #2b6cf3; stroke-width: .7; }
.vx-handles circle { fill: #2b6cf3; }
.vx-anchors rect { fill: #fff; stroke: #2b6cf3; stroke-width: .9; }
.vx-bbox rect { fill: #fff; stroke: #2b6cf3; stroke-width: .8; }
.vx-meta { position: absolute; left: 1.2em; right: 1.2em; bottom: .8em; display: flex !important; justify-content: space-between; font-family: var(--mono); font-size: .62em; color: #6c6a64; letter-spacing: .04em; }
.vx-metal { position: absolute; left: 50%; top: 44%; width: 20em; height: 20em; margin: -10em 0 0 -10em; transform: translateZ(2em); pointer-events: none; }
.vx-metal .gl-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(.6em) scale(.94); transition: opacity .7s var(--ease) .15s, transform 1s var(--ease) .15s; }
.vx-metal canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.vx-metal.has-gl .gl-fallback { display: none; }
.tile:is(:hover, :focus-within, .is-live) .vx-handles, .tile:is(:hover, :focus-within, .is-live) .vx-bbox, .tile:is(:hover, :focus-within, .is-live) .vx-guides { opacity: 0; }
.tile:is(:hover, :focus-within, .is-live) .vx-anchors { opacity: 0; transition-delay: .12s; }
.tile:is(:hover, :focus-within, .is-live) .vx-path { fill: rgba(17,17,18,.07); stroke: rgba(43,108,243,0); }
.tile:is(:hover, :focus-within, .is-live) .vx-board { transform: rotateX(24deg) translateY(1em); }
.tile:is(:hover, :focus-within, .is-live) .vx-metal .gl-fallback { opacity: 1; transform: none; }

/* ======================================================================
   06 · Design and engineering — a panel that shows how it is assembled
   ====================================================================== */
.r-ds { --rw: 21; --rh: 20; }
.r-ds .floor { width: 72%; }
.ds { position: absolute; inset: 0; transform: rotateX(8deg) rotateY(-14deg); transition: transform 1s var(--ease); }
.tile:is(:hover, :focus-within, .is-live) .ds { transform: rotateX(16deg) rotateY(-24deg); }
.ds-frame { position: absolute; left: 50%; top: 44%; width: 16.4em; height: 12em; margin: -6em 0 0 -8.2em; border-radius: .5em; padding: .55em; background: var(--brush), linear-gradient(170deg, #3a3b3f, #222326 55%, #2b2c30); background-blend-mode: soft-light, normal; box-shadow: inset 0 .05em 0 rgba(255,255,255,.22), inset 0 -.05em 0 rgba(0,0,0,.5), .1em .14em 0 #0b0b0c, 0 1.2em 2em -0.6em rgba(0,0,0,.7); }
.ds-frame::before { content: ""; position: absolute; inset: .55em; border-radius: .22em; background: #161618; box-shadow: inset 0 .06em .2em rgba(0,0,0,.8); }
.ds-grid { position: absolute; inset: .55em 1.05em; display: grid !important; grid-template-columns: repeat(12, 1fr); gap: .28em; opacity: 0; transform: translateZ(.1em); transition: opacity .6s var(--ease); }
.ds-grid i { background: rgba(255, 74, 104, .14); border-left: .03em solid rgba(255, 74, 104, .45); border-right: .03em solid rgba(255, 74, 104, .45); }
.ds-comp { position: absolute; transition: transform 1s var(--ease); border-radius: .16em; }
.ds-bar { left: 1.05em; right: 1.05em; top: 1.05em; height: 1.3em; background: #222225; display: flex !important; align-items: center; gap: .55em; padding: 0 .5em; color: #ecebe7; border: .03em solid #333; }
.ds-bar > * { font-size: .52em; }
.ds-bar i { font-size: 1em; width: .42em; height: .42em; border-radius: .2em; background: #ecebe7; }
.ds-bar b { font-family: var(--mono); color: #9b9993; font-weight: 400; }
.ds-bar em { font-size: 1em; margin-left: auto; width: .55em; height: .55em; border: .04em solid #666; border-radius: .14em; }
.ds-media { left: 1.05em; top: 2.75em; width: 7.9em; height: 6.95em; background: var(--grain), linear-gradient(150deg, #2e2f33, #1c1c1f); background-blend-mode: overlay, normal; overflow: hidden; }
.ds-media::after { content: ""; position: absolute; left: 22%; top: 20%; width: 56%; height: 56%; border-radius: 50%; border: .5em solid #c7cace; border-right-color: transparent; transform: rotate(35deg); opacity: .5; }
.ds-copy { left: 9.35em; right: 1.05em; top: 2.75em; height: 5.2em; padding: .3em 0; }
.ds-copy b { font-size: .6em; font-weight: 500; color: #ecebe7; line-height: 1.2; margin-bottom: .6em; }
.ds-copy i { height: .3em; border-radius: .2em; background: #3a3a3e; margin-top: .42em; }
.ds-copy i:last-child { width: 62%; }
.ds-cta { left: 9.35em; top: 8.45em; width: 4.6em; height: 1.25em; border-radius: .25em; background: #ecebe7; color: #111; display: grid; place-items: center; }
.ds-cta span { font-size: .48em; font-weight: 600; }
.ds-red { position: absolute; font-family: var(--mono); font-size: .45em; color: #ff5571; opacity: 0; transition: opacity .5s var(--ease); transform: translateZ(2.6em); }
.ds-r1 { left: 19.5em; top: 7.2em; } .ds-r2 { left: 2.4em; top: -1.6em; } .ds-r3 { right: 2.4em; top: 15.6em; }
.ds-r1::before { content: ""; position: absolute; right: 120%; top: 50%; width: 1.5em; height: 1px; background: #ff5571; }
.ds-tokens { position: absolute; left: 50%; top: 77%; width: 11.5em; height: 2.2em; margin-left: -5.75em; padding: .45em .55em; border-radius: .35em; display: flex !important; gap: .38em; align-items: center; background: var(--brush), linear-gradient(180deg, #d9dbde, #b3b6bb); background-blend-mode: soft-light, normal; box-shadow: inset 0 .05em 0 #fff, 0 .1em 0 #7d8186; transform: translateY(-1.6em) translateZ(-1em); transition: transform 1s var(--ease); }
.tk { width: 1.3em; height: 1.3em; border-radius: .25em; background: var(--c); box-shadow: inset 0 0 0 .05em rgba(255,255,255,.18), 0 .05em .1em rgba(0,0,0,.3); }
.tk-aa { margin-left: auto; width: auto; background: none; box-shadow: none; color: #1a1a1c; font-weight: 600; font-size: .95em; }
.tile:is(:hover, :focus-within, .is-live) .ds-grid { opacity: 1; }
.tile:is(:hover, :focus-within, .is-live) .ds-red { opacity: 1; transition-delay: .3s; }
.tile:is(:hover, :focus-within, .is-live) .ds-bar { transform: translateZ(1.2em); }
.tile:is(:hover, :focus-within, .is-live) .ds-media { transform: translateZ(.7em); }
.tile:is(:hover, :focus-within, .is-live) .ds-copy { transform: translateZ(1.8em); }
.tile:is(:hover, :focus-within, .is-live) .ds-cta { transform: translateZ(2.5em); }
.tile:is(:hover, :focus-within, .is-live) .ds-tokens { transform: translateY(.9em) translateZ(.4em); }

/* ======================================================================
   07 · Experiments — specimen cabinet; the drawer slides out
   ====================================================================== */
.r-ex { --rw: 15; --rh: 20; }
.r-ex .floor { width: 90%; bottom: 10%; height: 20%; }
.ex { position: absolute; left: 50%; top: 56%; width: 0; height: 0; transform: rotateX(-24deg) rotateY(-30deg); }
.ex-cab { --w: 8.6em; --h: 7.4em; --d: 8.4em; }
.ex-cab > i { background: var(--alu); background-blend-mode: soft-light, normal; }
.ex-cab > .t { background: var(--brush), linear-gradient(135deg, #eef0f2, #c9ccd0); background-blend-mode: soft-light, normal; }
.ex-cab > .r { background: var(--brush), linear-gradient(180deg, #8f9398, #6f7378); background-blend-mode: soft-light, normal; }
.ex-cab > .l { background: #b3b7bb; }
.ex-cab > .f { background: var(--brush), linear-gradient(180deg, #d8dbde, #bfc2c6); background-blend-mode: soft-light, normal; }
.ex-cab > .f::after { content: ""; position: absolute; left: .35em; right: .35em; bottom: .35em; height: 3.6em; background: #1a1b1d; border-radius: .08em; box-shadow: inset 0 .1em .2em #000; }
.ex-label { position: absolute; left: 50%; top: 1.15em; width: 5.4em; margin-left: -2.7em; height: 1.9em; border-radius: .12em; background: #f3f2ee; box-shadow: inset 0 0 0 .1em #9ea2a7, inset 0 .14em .1em rgba(0,0,0,.25); display: flex !important; align-items: center; justify-content: space-between; padding: 0 .5em; font-family: var(--mono); color: #2a2a2a; }
.ex-label > * { font-size: .7em; }
.ex-label b { font-size: 1.25em; font-weight: 400; }
.ex-drawer { --w: 7.9em; --h: 3.25em; --d: 8em; transform: translate3d(0, 1.82em, 0); transition: transform 1.1s var(--ease); }
.tile:is(:hover, :focus-within, .is-live) .ex-drawer { transform: translate3d(0, 1.82em, 5.6em); }
.ex-drawer > i { background: linear-gradient(180deg, #a9adb2, #8b8f94); }
.ex-drawer > .t { display: none; }
.ex-drawer > .f { background: var(--brush), linear-gradient(180deg, #e3e5e8, #c3c6ca); background-blend-mode: soft-light, normal; display: grid; place-items: center; box-shadow: inset 0 .05em 0 #fff; }
.ex-drawer > .r { background: #7d8186; }
.ex-pull { width: 3em; height: .5em; border-radius: .3em; background: linear-gradient(180deg, #6f7378, #f1f2f3); box-shadow: 0 .08em .1em rgba(0,0,0,.35); }
.ex-tray { position: absolute; left: .3em; right: .3em; top: 50%; height: 7.4em; margin-top: -3.7em; transform: rotateX(90deg) translateZ(-1.3em); display: grid !important; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: .25em; padding: .25em; background: #8f9398; }
.ex-tray i { background: radial-gradient(circle at 50% 30%, #3c3d40, #222326); border-radius: .1em; box-shadow: inset 0 .08em .14em rgba(0,0,0,.7); overflow: hidden; }
.ex-tray img { width: 100%; height: 100%; object-fit: cover; }

/* ======================================================================
   08 · Behind the screen — rangefinder and a stack of real prints
   ====================================================================== */
.r-cm { --rw: 38; --rh: 17; }
.r-cm .floor { width: 92%; bottom: 2%; height: 18%; }
.cm { position: absolute; left: 7.5em; top: 7.6em; width: 0; height: 0; transform: rotateX(-8deg) rotateY(22deg); transition: transform 1s var(--ease); }
.tile:is(:hover, :focus-within, .is-live) .cm { transform: rotateX(-8deg) rotateY(34deg) translateX(-.6em); }
.cm-body { --w: 13.6em; --h: 7.6em; --d: 3.4em; }
.cm-body > i { background: var(--alu); background-blend-mode: soft-light, normal; border-radius: .2em; }
.cm-body > .f { background: var(--grain), linear-gradient(180deg, #232325, #18181a); background-blend-mode: overlay, normal; overflow: hidden; border-radius: .35em; }
.cm-body > .l { background: var(--brush), linear-gradient(180deg, #e4e6e9, #b7bbc0); background-blend-mode: soft-light, normal; }
.cm-body > .r { background: #73777c; }
.cm-body > .t { background: var(--brush), linear-gradient(90deg, #f0f1f3, #c6c9cd); background-blend-mode: soft-light, normal; }
.cm-front { position: absolute; inset: 0; }
.cm-plate-t { position: absolute; left: 0; right: 0; top: 0; height: 2.1em; background: var(--brush), linear-gradient(180deg, #e9ebee, #b9bdc2); background-blend-mode: soft-light, normal; box-shadow: 0 .05em 0 rgba(0,0,0,.4); }
.cm-plate-b { position: absolute; left: 0; right: 0; bottom: 0; height: .55em; background: linear-gradient(180deg, #b1b5ba, #8f9398); }
.cm-vf { position: absolute; z-index: 1; left: 1.1em; top: .5em; width: 2.6em; height: 1.1em; border-radius: .12em; background: linear-gradient(140deg, #4b5568, #0d0f14 55%, #283041); box-shadow: inset 0 0 0 .08em #2d2f33; }
.cm-rf { position: absolute; z-index: 1; right: 1.3em; top: .62em; width: 1em; height: .86em; border-radius: .1em; background: linear-gradient(140deg, #6d7686, #121419); box-shadow: inset 0 0 0 .07em #2d2f33; }
.cm-dial { position: absolute; left: 1.4em; top: 50%; width: 2.4em; height: 2.4em; margin-top: -1.2em; border-radius: 50%; background: repeating-conic-gradient(#a8acb1 0 6deg, #e3e5e8 6deg 12deg); box-shadow: 0 0 0 .2em #cfd2d6; transform: translateZ(.25em); }
.cm-btn { position: absolute; right: 2.2em; top: 50%; width: 1.2em; height: 1.2em; margin-top: -.6em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9a9ea3); transform: translateZ(.2em); }
.cm-lens { position: absolute; left: 0; top: .5em; width: 0; height: 0; transform: translateZ(1.7em); }
.ln { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%) translateZ(var(--z)); width: var(--s); height: var(--s); }
.ln0 { --z: .05em; --s: 6.2em; background: radial-gradient(circle, #d7dadd 62%, #9b9fa4 70%, #eceef0 74%, #8a8e93); }
.ln1 { --z: .8em; --s: 5.6em; background: radial-gradient(circle at 40% 35%, #2b2c2f, #0f0f10 70%); box-shadow: 0 0 0 .06em #3a3b3e; }
.ln2 { --z: 1.5em; --s: 5.5em; background: repeating-conic-gradient(#121213 0 4deg, #2c2d30 4deg 8deg); transition: transform 1.1s var(--ease); }
.ln2 .knurl { position: absolute; inset: .55em; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2a2b2e, #111 75%); }
.tile:is(:hover, :focus-within, .is-live) .ln2 { transform: translate(-50%, -50%) translateZ(var(--z)) rotate(52deg); }
.ln3 { --z: 2.1em; --s: 4.6em; background: radial-gradient(circle, transparent 60%, #8e9297 61%, #e2e4e7 66%, #6e7277 72%, #222 74%); }
.glass.ln { --z: 2.12em; --s: 3.3em; background: radial-gradient(circle at 38% 34%, rgba(255,255,255,.75) 0 4%, transparent 9%), radial-gradient(circle at 62% 66%, rgba(140,120,255,.35), transparent 35%), radial-gradient(circle at 45% 45%, #1b2440, #06070b 70%); box-shadow: inset 0 0 .4em rgba(120,170,255,.35); }
.prints { position: absolute; left: 50%; top: 1.4em; width: 20em; height: 14em; margin-left: -8.6em; }
.print { position: absolute; left: 5em; top: .6em; width: 7.2em; padding: .32em .32em 1.1em; background: #f2f1ec; border-radius: .06em; box-shadow: 0 .05em .1em rgba(0,0,0,.25), 0 .5em 1em -.3em rgba(0,0,0,.55); transform: translate3d(var(--x), var(--y), var(--z)) rotate(var(--r)); transition: transform 1s var(--ease); }
.print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.p0 { --x: -.6em; --y: .5em; --z: 0; --r: -9deg; } .p1 { --x: .4em; --y: .2em; --z: .1em; --r: -4deg; } .p2 { --x: 1.2em; --y: .3em; --z: .2em; --r: 2deg; } .p3 { --x: 2em; --y: .4em; --z: .3em; --r: 7deg; } .p4 { --x: 2.6em; --y: .1em; --z: .4em; --r: 12deg; }
.tile:is(:hover, :focus-within, .is-live) .p0 { --x: -5.4em; --y: 1.6em; --r: -12deg; }
.tile:is(:hover, :focus-within, .is-live) .p1 { --x: -1.4em; --y: .4em; --r: -6deg; transition-delay: .04s; }
.tile:is(:hover, :focus-within, .is-live) .p2 { --x: 2.5em; --y: -.2em; --r: 0deg; transition-delay: .08s; }
.tile:is(:hover, :focus-within, .is-live) .p3 { --x: 6.4em; --y: .3em; --r: 6deg; transition-delay: .12s; }
.tile:is(:hover, :focus-within, .is-live) .p4 { --x: 10.3em; --y: 1.4em; --r: 12deg; transition-delay: .16s; }

/* ======================================================================
   Frame — general object for new projects added in the editor
   ====================================================================== */
.tile:not([style]) { grid-column: span 4; }
.r-fm { --rw: 22; --rh: 20; }
.fm { position: absolute; inset: 0; transform: rotateX(-4deg) rotateY(-16deg); transition: transform 1s var(--ease); }
.tile:is(:hover, :focus-within, .is-live) .fm { transform: rotateX(-2deg) rotateY(-4deg) translateZ(1em); }
.fm-frame { --w: 15em; --h: 11.5em; --d: .8em; transform: translate3d(0, -.8em, 0) rotateX(-4deg); }
.fm-frame > i { background: var(--alu); background-blend-mode: soft-light, normal; }
.fm-frame > .r { background: #7d8186; }
.fm-frame > .f { background: var(--brush), linear-gradient(160deg, #e9ebee, #b5b9be); background-blend-mode: soft-light, normal; padding: .5em; }
.fm-mat { position: absolute; inset: .5em; background: #f4f3ef; box-shadow: inset 0 .08em .2em rgba(0,0,0,.35); padding: 1em; }
.fm-pic { position: absolute; inset: 1em; overflow: hidden; background: #ddd; }
.fm-pic img { width: 100%; height: 100%; object-fit: cover; }
.fm-empty { background: repeating-linear-gradient(45deg, #e6e4de 0 .5em, #efeee9 .5em 1em); }
.fm-ledge { --w: 18em; --h: .7em; --d: 3em; transform: translate3d(0, 5.4em, .6em); }
.fm-ledge > i { background: linear-gradient(180deg, #2a2b2e, #1a1a1c); }
.fm-ledge > .t { background: var(--brush), linear-gradient(180deg, #3a3b3f, #28292c); background-blend-mode: soft-light, normal; }

/* ---------- WebGL layer ---------- */
main { position: relative; }
.glc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
html.gl-on .stage[data-scene] > .rig { visibility: hidden; }
html.gl-on.gl-host .stage[data-scene] > .rig { visibility: visible; }
.dv-hero { position: relative; aspect-ratio: 4 / 3; width: 100%; margin-bottom: 14px; border-radius: 12px; overflow: hidden; cursor: grab; touch-action: pan-y; display: none;
  background: radial-gradient(70% 60% at 50% 38%, #232327, #141416 70%); box-shadow: inset 0 0 0 1px var(--line); }
html.js .dv-hero { display: block; }
.dv-hero:active { cursor: grabbing; }
.dv-hero canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.dv-hint { position: absolute; left: 14px; bottom: 12px; color: var(--muted); pointer-events: none; }
.dv-hero:not(.has-gl) { display: none !important; }

/* ---------- contact (the sign-off) ---------- */
.contact { display: flex; flex-direction: column; gap: 14px; padding-top: 11px; border-top: 1px solid var(--line); align-self: end; }
.contact p { color: var(--paper-2); max-width: 38ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.contact-links a:hover { border-color: var(--paper); }
.signature { width: min(250px, 70%); height: auto; opacity: .9; margin: 4px 0 -6px -6px; }
.colophon { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--faint) !important; max-width: none !important; }
.p-about .contact, .p-work .contact { margin: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.p-about .contact > *, .p-work .contact > * { grid-column: 1 / 7; }
.p-about .contact .signature, .p-work .contact .signature { grid-column: 9 / 13; grid-row: 1 / 4; align-self: center; justify-self: end; }
.p-about .contact .colophon, .p-work .contact .colophon { grid-column: 1 / 13; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }


/* ---------- project window ---------- */
.win { width: min(1200px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: #161618; color: var(--paper); box-shadow: 0 50px 140px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
.win[open] { display: flex; flex-direction: column; animation: win-in .55s var(--ease); }
.win.is-closing { animation: win-out .3s var(--ease-io) forwards; }
.win::backdrop { background: rgba(8,8,9,.62); animation: fade .4s ease; }
@keyframes win-in { from { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 24px)) scale(.9); } }
@keyframes win-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
html.win-open .shell { filter: grayscale(.9) brightness(.55); transition: filter .5s var(--ease); }
.win-bar { flex: none; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; height: 50px; padding: 0 9px 0 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1e1e21, #19191b); }
.win-id { color: var(--muted); }
.win-title { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-act a { font-size: 13px; color: var(--paper-2); display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 7px; }
.win-act a:hover { background: var(--surface-2); color: var(--paper); }
.win-close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: #1f1f22; cursor: pointer; }
.win-close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.win-close:hover { background: var(--surface-2); border-color: #4a4a4f; }
.win-body { flex: 1; overflow: auto; overscroll-behavior: contain; outline: none; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 100%; }
.d-visual { background: #121214; border-right: 1px solid var(--line); padding: clamp(16px, 2vw, 28px); }
.d-info { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.d-info > p:not([class]) { color: #c6c4be; max-width: 60ch; }
.kicker { color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: baseline; }
.d-title { display: flex; align-items: center; gap: 14px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.d-summary { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.4; letter-spacing: -.01em; color: var(--paper); max-width: 34ch; }
.badge { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: #232326; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 0 #000; }
.badge .mark { width: 60%; height: 60%; color: var(--paper); }
.b-nemry { background: linear-gradient(140deg, #2d6de8, #004cd3); } .b-nemry .mark { color: #fff; width: 46%; }
.b-ayohve { background: #fff; } .b-ayohve .mark { color: #022baf; width: 70%; }
.b-frne { background: #0d0d0e; box-shadow: inset 0 0 0 1px #2c2c2f; } .b-frne .mark { color: #d9dbde; width: 40%; }
.b-computer .mark { width: 62%; }
.b-plain .mono { font-size: 13px; color: var(--paper-2); }
.facts { border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.facts dd { font-size: 14px; }
.d-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn, .btn-q { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 9px; font-weight: 500; font-size: 14px; transition: background .3s, border-color .3s; }
.btn { background: var(--paper); color: #111; }
.btn:hover { background: #fff; }
.btn-q { border: 1px solid var(--line-2); }
.btn-q:hover { border-color: var(--paper); }
.dv { display: grid; gap: 14px; }
.dv figure { border-radius: 8px; overflow: hidden; background: #1b1b1d; }
.dv figcaption { padding: 8px 10px; color: var(--muted); }
.dv-gallery { grid-template-columns: 1fr 1fr; }
.dv-gallery .lead { grid-column: 1 / -1; }
.dv-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #222; }
.dv-gallery .lead img { aspect-ratio: 16 / 11; }
.img-missing { opacity: 0; }
.dv-note { color: var(--muted); }
.dv-vector { height: 100%; align-content: center; }
.dv-gl { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin: 0 auto; background: radial-gradient(closest-side at 50% 82%, rgba(0,0,0,.55), transparent), radial-gradient(70% 60% at 50% 40%, #1f1f22, transparent); border-radius: 12px; cursor: grab; touch-action: pan-y; }
.dv-gl:active { cursor: grabbing; }
.dv-gl canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.dv-gl .gl-fallback { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.dv-gl.has-gl .gl-fallback { display: none; }
.dv-vector .dv-note { text-align: center; }
.dv-contact { grid-template-columns: repeat(3, 1fr); align-items: start; }
.dv-contact figure { background: #f2f1ec; padding: 6px 6px 22px; border-radius: 2px; }
.dv-contact figure:nth-child(even) { transform: translateY(18px); }
.dv-contact img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.dv-pdp { grid-template-columns: 1fr 1fr; align-items: start; }
.pdp-media { background: #f0f0f0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.pdp-info .mono { color: var(--muted); }
.pdp-name { font-size: 20px; font-weight: 500; }
.pdp-info fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pdp-info legend { font-size: 13px; color: var(--paper-2); margin-bottom: 10px; padding: 0; }
.pdp-sw { position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.pdp-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pdp-sw span:not(.vh) { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 55%), var(--c); box-shadow: 0 0 0 3px #161618, 0 0 0 4px transparent; transition: box-shadow .3s; }
.pdp-sw input:checked + span { box-shadow: 0 0 0 3px #161618, 0 0 0 4.5px var(--paper); }
.pdp-sw input:focus-visible + span { outline: 1.5px solid var(--paper); outline-offset: 6px; }
.dv-pdp .btn { align-self: start; }
.dv-wide { grid-column: 1 / -1; }
.dv-wide img { width: 100%; height: auto; }
.dv-empty { min-height: 300px; place-content: center; text-align: center; color: var(--paper-2); }
.dv-empty .mono { color: var(--muted); }
.dv-grid { grid-template-columns: repeat(2, 1fr); }
.dv-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dv-grid figcaption { display: flex; flex-direction: column; gap: 2px; }
.dv-grid figcaption b { color: var(--paper); font-weight: 500; }
.dv-nemry { align-content: center; height: 100%; }
.nmw { display: grid; grid-template-columns: 38% 1fr; min-height: 320px; background: #f5f7fb; color: #17243b; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.nmw-side { background: #edf1f8; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; border-right: 1px solid #dfe5ef; }
.nmw-side span { padding: 8px 10px; border-radius: 8px; color: #3d4a63; }
.nmw-side .on { background: #fff; color: #004cd3; font-weight: 600; box-shadow: 0 1px 2px rgba(23,36,59,.08); }
.nmw-main { padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.nmw-t { font-weight: 600; font-size: 17px; }
.nmw-r { margin-top: auto; align-self: start; background: #004cd3; color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.dv-system { align-content: start; }
.sys-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 140px; }
.sys-grid i { background: rgba(255,74,104,.1); border-inline: 1px solid rgba(255,74,104,.4); position: relative; }
.sys-grid span { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; color: #ff6b85; }
.sys-tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 18px; }
.sys-tokens div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sys-tokens dt { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sys-tokens .sw { width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); background: var(--c); }
.sys-tokens dd { color: var(--muted); }
.sys-type { padding: 18px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.sys-type .t1 { font-size: 34px; font-weight: 500; letter-spacing: -.028em; }
.sys-type .t2 { font-size: 17px; color: var(--paper-2); }
.sys-type .t3 { color: var(--muted); margin-top: 8px; }

/* dedicated project pages */
.page-win { margin: clamp(20px, 3vw, 40px) 0 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #161618; }
.page-win .win-bar.static { grid-template-columns: auto 1fr auto; }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; min-height: 44px; font-weight: 500; }
.pager a + a { border-left: 1px solid var(--line); text-align: right; }
.pager a:hover { background: var(--surface); }
.pager .mono { color: var(--muted); font-weight: 400; }

/* ---------- about ---------- */
.a-intro { padding: clamp(36px, 6vw, 84px) 0 clamp(22px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.a-intro h1 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; margin-top: 12px; }
.a-lede { margin-top: 16px; font-size: clamp(17px, 1.5vw, 21px); color: var(--paper-2); max-width: 40ch; letter-spacing: -.01em; }
.a-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-top: clamp(28px, 4vw, 56px); }
.a-text { grid-column: 1 / 7; display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.a-text h2 { font-size: 13px; font-family: var(--mono); font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.a-text p { color: #c9c7c1; max-width: 62ch; font-size: 16px; }
.a-text p + p { margin-top: 12px; }
.a-ventures li { display: grid; grid-template-columns: 9em 1fr; gap: 4px 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.a-ventures li:last-child { border-bottom: 1px solid var(--line); }
.a-ventures h3 { font-size: 15px; font-weight: 500; grid-row: 1 / 3; }
.a-ventures p { font-size: 14px !important; }
.a-ventures a { font-size: 14px; color: var(--paper); display: inline-flex; align-items: center; min-height: 32px; }
.a-photos { grid-column: 8 / 13; }
.a-photos h2 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.a-photos > p { color: var(--muted); margin: 8px 0 22px; max-width: 42ch; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sheet figure { background: #f2f1ec; padding: 6px 6px 20px; border-radius: 2px; box-shadow: 0 16px 34px -18px rgba(0,0,0,.8); }
.sheet img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.sheet .sh1, .sheet .sh3 { transform: translateY(26px); }
.sheet figure { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* ======================================================================
   Tablet composition
   ====================================================================== */
@media (max-width: 1099px) {
  .work { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-areas:
      "s1 s1 s1 s1 s2 s2"
      "s3 s3 s3 s4 s4 s4"
      "s5 s5 s5 s6 s6 s6"
      "s7 s7 s7 s7 s7 s7"
      "ct ct ct ct ct ct";
    --r1: clamp(260px, 36vw, 380px); --r2: clamp(240px, 32vw, 330px); --r3: clamp(220px, 34vw, 320px); }
  .slot-3 .stage, .slot-4 .stage { height: var(--r2); }
  .tile:not([style]) { grid-column: span 3; }
  .intro { grid-template-rows: auto; min-height: 0; } .intro h1, .intro .lede, .intro .gnote { grid-column: 1 / 8; grid-row: auto; } .intro .hero-tile { grid-column: 8 / 13; grid-row: 1 / 4; } .hero-tile .stage { height: clamp(220px, 32vw, 320px); }
  .contact-tile { margin-top: 18px; }
}

/* ======================================================================
   Mobile — separately composed two-column gallery
   ====================================================================== */
@media (max-width: 699px) {
  body { font-size: 15px; }
  .top { height: 58px; }
  .sig-name { font-size: 14px; }
  .top nav ul { gap: 16px; }
  .top nav a { font-size: 13.5px; }
  .intro { padding: 26px 0 16px; }
  .intro h1 { font-size: 27px; }
  .intro .lede span { display: block; }
  .intro .gnote { font-size: 11.5px; }
  .work { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 14px;
    grid-template-areas: "s1 s1" "s2 s3" "s4 s4" "s5 s6" "s7 s7" "ct ct";
    --r1: clamp(200px, 62vw, 300px); --r2: clamp(150px, 44vw, 220px); --r3: clamp(170px, 52vw, 240px); }
  .slot-2 .stage, .slot-3 .stage, .slot-5 .stage, .slot-6 .stage { height: var(--r2); }
  .slot-4 .stage { height: clamp(190px, 58vw, 280px); }
  .slot-7 .stage { height: clamp(190px, 56vw, 260px); }
  .intro { display: flex; flex-direction: column; align-items: stretch; }
  .hero-tile { order: -1; margin: -6px 0 6px; } .hero-tile .stage { height: clamp(220px, 64vw, 300px); } .hero-tile .cap { display: none; }
  .slot-1 .stage { height: var(--r1); }
  .tile:not([style]) { grid-column: span 1; }
  .cap { grid-template-columns: 2.2em 1fr; padding-top: 9px; }
  .cap-t { font-size: 13.5px; } .cap-d { font-size: 12px; line-height: 1.35; }
  .contact-tile { margin-top: 18px; gap: 10px; }
  .contact-tile .signature { width: 72%; }
  .win { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; margin: 0; }
  .win[open] { animation: sheet-in .5s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .win-bar { padding-top: env(safe-area-inset-top); height: calc(54px + env(safe-area-inset-top)); grid-template-columns: auto 1fr auto; }
  .win-act { display: none; }
  .win-close { width: 44px; height: 44px; }
  .d-grid { grid-template-columns: 1fr; }
  .d-visual { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .d-info { padding: 22px 18px calc(32px + env(safe-area-inset-bottom)); }
  .facts div { grid-template-columns: 7.5em 1fr; }
  .dv-contact { grid-template-columns: 1fr 1fr; }
  .dv-pdp { grid-template-columns: 1fr; }
  .nmw { grid-template-columns: 1fr; } .nmw-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #dfe5ef; }
  .nmw-side span { white-space: nowrap; }
  .sys-grid { gap: 4px; height: 90px; }
  .a-body { grid-template-columns: 1fr; }
  .a-text, .a-photos { grid-column: 1 / -1; }
  .a-photos { margin-top: 44px; }
  .a-ventures li { grid-template-columns: 1fr; }
  .a-ventures h3 { grid-row: auto; }
  .p-about .contact, .p-work .contact { display: flex; }
  .pager a { padding: 14px; }
}
@media (max-width: 359px) {
  .top nav ul { gap: 12px; }
  .sig-name { display: none; }
  .work { column-gap: 10px; }
  .cap { grid-template-columns: 1fr; } .cap-n { grid-row: auto; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (hover: none) {
  .tile-link:hover .cap::before { transform: scaleX(0); }
}

/* ======================================================================
   Uniform app grid (v25.3): equal icons, same size, same angle, no rules
   ====================================================================== */
.top { border-bottom: 0; }
.work { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-areas: none !important; column-gap: clamp(16px, 3vw, 48px); row-gap: clamp(18px, 3vw, 44px); }
.work .tile { grid-area: auto !important; grid-column: auto !important; }
.work .tile .stage { height: clamp(220px, 23vw, 330px) !important; }
.work .tile.k-camera { grid-column: 1 / -1 !important; }
.work .tile.k-camera .stage { height: clamp(220px, 22vw, 320px) !important; }
.work .contact-tile { grid-column: 1 / -1 !important; }
.cap { display: flex; flex-direction: column; align-items: center; text-align: center; border-top: 0; padding-top: 2px; }
.cap::before { display: none; }
.cap-n { display: none; }
.cap-t { font-size: 15px; }
.tile-link:hover .cap-t, .tile-link:focus-visible .cap-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hero-tile .cap { align-items: center; }
.contact { border-top: 0; padding-top: clamp(20px, 3vw, 40px); }
.p-about .contact .colophon, .p-work .contact .colophon { border-top: 0; }
@media (max-width: 699px) {
  .work { grid-template-columns: 1fr 1fr !important; column-gap: 12px; row-gap: 20px; }
  .work .tile .stage { height: clamp(150px, 42vw, 220px) !important; }
  .work .tile.k-camera .stage { height: clamp(180px, 52vw, 260px) !important; }
  .cap-t { font-size: 14px; } .cap-d { font-size: 12px; }
}

.work .contact-tile { grid-area: auto !important; grid-row: auto !important; grid-column: 1 / -1 !important; }
/* pinboard (Behind the screen) */
.pinboard { position: relative; padding: clamp(18px, 3vw, 34px); border-radius: 14px; background: var(--grain), radial-gradient(120% 90% at 30% 10%, #2a2a2d, #1b1b1d 70%); background-blend-mode: overlay, normal; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 40px rgba(0,0,0,.5); }
.pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 30px) clamp(12px, 2vw, 24px); }
.pin { position: relative; display: block; width: 100%; padding: 8px 8px 26px; border: 0; border-radius: 2px; background: #f3f2ed; cursor: zoom-in; box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 26px -14px rgba(0,0,0,.8); transform: rotate(var(--r, 0deg)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pins li:nth-child(1) .pin { --r: -2.5deg; } .pins li:nth-child(2) .pin { --r: 1.8deg; } .pins li:nth-child(3) .pin { --r: -1.2deg; } .pins li:nth-child(4) .pin { --r: 2.2deg; } .pins li:nth-child(5) .pin { --r: -1.8deg; }
.pin:hover, .pin:focus-visible { transform: rotate(0deg) translateY(-4px) scale(1.03); box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 24px 40px -18px rgba(0,0,0,.9); }
.pin img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.tack { position: absolute; z-index: 1; left: 50%; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b9bec4 45%, #6e7378); box-shadow: 0 3px 4px rgba(0,0,0,.5); }
.lb { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); place-items: center; padding: 18px 56px 46px; border-radius: 14px; background: rgba(12,12,13,.94); }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; box-sizing: border-box; object-fit: contain; background: #f3f2ed; padding: 10px 10px 34px; box-shadow: 0 30px 60px rgba(0,0,0,.6); animation: lb-in .4s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--muted); }
.lb button { position: absolute; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #1f1f22; color: var(--paper); font-size: 22px; cursor: pointer; }
.lb-x { top: 10px; right: 10px; } .lb-p { left: 8px; top: 50%; margin-top: -22px; } .lb-n { right: 8px; top: 50%; margin-top: -22px; }
.pinboard .dv-note { margin-top: 14px; color: var(--muted); }
.win[data-kind=camera] .d-grid, .p-work.k-camera .d-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 699px) { .pins { grid-template-columns: 1fr 1fr; } .lb { position: fixed; inset: 0; border-radius: 0; padding: 60px 12px 60px; } .win[data-kind=camera] .d-grid, .p-work.k-camera .d-grid { grid-template-columns: 1fr; } }

/* studio light pool under each object */
.stage::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 46%; background: radial-gradient(closest-side, rgba(255,255,255,.055), rgba(255,255,255,.015) 55%, transparent); pointer-events: none; }
.hero-tile .stage::before { display: none; }

/* ======================================================================
   Hero — product-launch composition (centred, large, quiet)
   ====================================================================== */
.intro { display: flex !important; flex-direction: column; align-items: center; text-align: center; min-height: 0 !important; padding: clamp(28px, 5vw, 72px) 0 clamp(10px, 2vw, 24px) !important; background: radial-gradient(closest-side at 50% 62%, rgba(90,120,200,.11), rgba(90,120,200,.055) 38%, rgba(90,120,200,.018) 68%, transparent 100%); }
.intro .eyebrow { font-size: clamp(14px, 1.2vw, 17px); font-weight: 600; color: var(--muted); letter-spacing: -.005em; margin: 0 0 10px; }
.intro h1 { font-size: clamp(44px, 6.6vw, 96px) !important; font-weight: 600 !important; letter-spacing: -.045em !important; line-height: 1 !important; margin: 0; background: linear-gradient(180deg, #ffffff 30%, #b9bcc4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro .lede { margin: 16px 0 0 !important; font-size: clamp(18px, 1.7vw, 24px) !important; color: var(--paper-2) !important; max-width: 30ch; line-height: 1.35; letter-spacing: -.01em; }
.intro .cta { display: flex; gap: 28px; margin-top: 22px; font-size: clamp(16px, 1.3vw, 19px); }
.intro .cta a { color: #4d9fff; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.intro .cta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.intro .cta span { transition: transform .3s var(--ease); display: inline-block; }
.intro .cta a:hover span { transform: translateX(3px); }
.intro .hero-tile { order: 0 !important; width: min(100%, 760px); margin: clamp(4px, 1vw, 12px) auto 0 !important; grid-column: auto !important; grid-row: auto !important; }
.intro .hero-tile .stage { height: clamp(300px, min(36vw, 56vh), 520px) !important; }
.intro .hero-tile .cap { display: none !important; }
.intro .gnote { display: none; }
@media (max-width: 699px) {
  .intro { padding: 34px 0 0 !important; }
  .intro .cta { gap: 22px; margin-top: 14px; }
  .intro .hero-tile .stage { height: clamp(260px, 82vw, 360px) !important; }
  .work { row-gap: 26px; }
  .work .tile .stage { height: clamp(160px, 46vw, 230px) !important; }
  .cap-t { font-size: 15px; } .cap-d { font-size: 12.5px; line-height: 1.35; }
  .top nav ul { gap: 18px; }
}

/* custom software: the three layers of a product */
.dv-stack { display: grid; gap: 12px; }
.stk { padding: 18px 20px; border-radius: 12px; background: linear-gradient(160deg, #18231e, #121815); box-shadow: inset 0 0 0 1px #24372e; }
.stk .mono { color: #7fd8b3; margin-bottom: 6px; }
.stk p:last-child { color: var(--paper-2); }
.stk1 { margin-left: 18px; } .stk2 { margin-left: 36px; }
/* Work media: film, portrait grid and reserved slots */
.dv-gallery video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #111; }
.win[data-kind=frne] .dv-gallery figure:not(.lead) img { aspect-ratio: 4 / 5; }
.win[data-kind=frne] .dv-gallery figure:last-child:not(.lead) { grid-column: 1 / -1; }
.win[data-kind=frne] .dv-gallery figure:last-child:not(.lead) img { aspect-ratio: 16 / 10; }
.ph-slot { display: grid; place-content: center; gap: 6px; text-align: center; aspect-ratio: 16 / 9; width: 100%; border: 1px dashed rgba(255,255,255,.18); border-radius: 10px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px); color: var(--faint); }
.ph-slot b { font-weight: 500; color: var(--ink, #e8e6e1); font-size: 15px; }
.dv-wide + .dv-wide { margin-top: 18px; }
/* Capabilities window */
.dv-caps { display: grid; gap: 22px; }
.caps { list-style: none; margin: 0; padding: 0; display: grid; }
.caps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); }
.caps li:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.caps .mono { color: var(--faint); grid-row: span 2; padding-top: 3px; }
.caps b { font-weight: 600; font-size: 17px; }
.caps li > span:last-child { color: var(--faint); font-size: 14.5px; }
.caps-dl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1); color: inherit; text-decoration: none; transition: background .2s, transform .2s; }
.caps-dl:hover, .caps-dl:focus-visible { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.caps-pdf { display: grid; place-items: center; width: 44px; height: 54px; border-radius: 6px; background: #c8352b; color: #fff; font-size: 12px; letter-spacing: .06em; }
.caps-dl > span:nth-child(2) { display: grid; gap: 2px; }
.caps-dl .mono { color: var(--faint); font-size: 12px; }
.caps-dl .arr { font-size: 20px; }
/* ---------- Board: hero now lives in the work section ---------- */
.work { position: relative; }
.work .hero-tile { grid-column: 1 / -1 !important; grid-row: auto !important; width: min(100%, 760px); justify-self: center; margin: 0 auto; }
.work .hero-tile .stage { height: clamp(300px, min(36vw, 56vh), 520px) !important; }
.work .hero-tile .cap { display: none !important; }
.traces { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.work > .tile, .work .gallery > .tile { z-index: 1; }
@media (max-width: 760px) { .work .hero-tile .stage { height: clamp(260px, 82vw, 360px) !important; } .intro { padding-bottom: 0 !important; } }
@media (min-width: 1100px) {
  .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) !important; column-gap: clamp(28px, 4vw, 72px); row-gap: clamp(18px, 2vw, 30px); }
  .work .hero-tile { grid-column: 2 !important; grid-row: 1 / span 3 !important; width: 100%; align-self: center; }
  .work .hero-tile .stage { height: clamp(440px, 40vw, 640px) !important; }
  .work .tile.slot-1, .work .tile.slot-2, .work .tile.slot-3 { grid-column: 1 !important; }
  .work .tile.slot-4, .work .tile.slot-5, .work .tile.slot-6 { grid-column: 3 !important; }
  .work .tile.slot-1, .work .tile.slot-4 { grid-row: 1 !important; } .work .tile.slot-2, .work .tile.slot-5 { grid-row: 2 !important; } .work .tile.slot-3, .work .tile.slot-6 { grid-row: 3 !important; }
  .work .tile:is(.slot-1, .slot-2, .slot-3, .slot-4, .slot-5, .slot-6) .stage { height: clamp(170px, 13.5vw, 240px) !important; }
  .work .tile.k-camera { grid-row: 4 !important; margin-top: clamp(20px, 3vw, 48px); }
  .traces { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
  .work > .tile, .work .gallery > .tile { z-index: 1; }
}
.tr { --acc: #9aa0a8; }
.tr-base { fill: none; stroke: rgba(236,235,231,.16); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1), stroke .35s, stroke-width .35s; }
.tr-sig { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 4px var(--acc)); }
.tr-pin { fill: rgba(236,235,231,.35); opacity: 0; transition: opacity .3s, fill .3s; }
.tr-node { fill: #111112; stroke: rgba(236,235,231,.3); stroke-width: 1.25; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s .7s, stroke .3s, fill .3s; }
.tr.drawn .tr-base { stroke-dashoffset: 0; }
.tr.drawn .tr-pin, .tr.drawn .tr-node { opacity: 1; }
.tr.drawn .tr-sig { opacity: .75; animation: trsig 3.4s linear infinite; animation-delay: calc(var(--i) * -.55s); }
.tr.hot .tr-base, .traces.all .tr-base, .tr.arrive .tr-base { stroke: var(--acc); stroke-width: 1.6; }
.tr.hot .tr-node, .traces.all .tr-node, .tr.arrive .tr-node { stroke: var(--acc); fill: var(--acc); }
.tr.hot .tr-pin, .traces.all .tr-pin { fill: var(--acc); }
.tr.hot .tr-sig { animation-duration: 1.4s; opacity: 1; }
.tr.arrive .tr-node { animation: trpop .9s ease-out; }
@keyframes trsig { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes trpop { 0% { transform: scale(1); } 30% { transform: scale(2.2); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tr-base { transition: none; } .tr.drawn .tr-sig { animation: none; opacity: 0; } .tr.arrive .tr-node { animation: none; } }
