/* ==========================================================================
   BENNET LAREN — portfolio (v3)
   A marked-up proof: warm paper, black ink, a red pen, a yellow highlighter,
   masking tape and sticky notes. The work wears its own client's colors.
   ========================================================================== */

:root {
  --f-body: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-hand: "Covered By Your Grace", "Bradley Hand", "Segoe Print", cursive;
  --disp: "wdth" 78, "opsz" 28;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);

  --paper: #F3EFE6; --paper-2: #EAE4D6; --paper-3: #DDD5C3;
  --ink: #16130F; --ink-2: #4B453C; --ink-3: #6E675A;
  --rule: rgba(22, 19, 15, .16);
  --red: #E5391C; --red-text: #BF2A10;
  --yellow: #FFE14D; --blue: #2B3FE8; --green: #16A05A;
  --card: #FBF8F1;
  --shadow: 0 34px 60px -30px rgba(26, 18, 8, .55);

  --maxw: 1280px; --gut: clamp(18px, 4vw, 56px); --bar-h: 66px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #13100D; --paper-2: #1B1713; --paper-3: #26201A;
  --ink: #F3EFE6; --ink-2: #C4BDAE; --ink-3: #958E7F;
  --rule: rgba(243, 239, 230, .16);
  --red-text: #FF6F52; --card: #1D1914;
  --shadow: 0 34px 60px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13100D; --paper-2: #1B1713; --paper-3: #26201A;
    --ink: #F3EFE6; --ink-2: #C4BDAE; --ink-3: #958E7F;
    --rule: rgba(243, 239, 230, .16);
    --red-text: #FF6F52; --card: #1D1914;
    --shadow: 0 34px 60px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* the same dark touches for visitors whose system is dark and who never used the lights button */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :focus-visible { outline-color: var(--yellow); }
  :root:not([data-theme="light"]) .spec b { color: #5BE39A; }
  :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; opacity: .04; }
  :root:not([data-theme="light"]) .bar__nav a:hover, :root:not([data-theme="light"]) .bar__nav a.is-here { color: var(--ink); }
  :root:not([data-theme="light"]) .bar__nav a::after { height: 3px; bottom: 4px; }
}
:root[data-theme="dark"] .bar__nav a:hover, :root[data-theme="dark"] .bar__nav a.is-here { color: var(--ink); }
:root[data-theme="dark"] .bar__nav a::after { height: 3px; bottom: 4px; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 10px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-optical-sizing: auto; font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.55;
  overflow-x: hidden; transition: background-color .4s, color .4s;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--yellow); color: #16130F; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
:root[data-theme="dark"] :focus-visible { outline-color: var(--yellow); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; font-variation-settings: var(--disp); letter-spacing: -.016em; line-height: .94; text-wrap: balance; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .01em; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* paper grain, very quiet */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.3 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .04; }

/* ---------- hand-made bits ---------- */
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: 0; line-height: 1.05; }
.note { font-family: var(--f-hand); color: var(--red-text); font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem); line-height: 1; rotate: -2.5deg; margin: 0; display: inline-block; }
.hl {
  color: inherit; padding: 0 .12em; margin: 0 -.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%23FFE14D' d='M4 17C42 5 92 12 152 8s118 1 144 7c-3 14 3 28-2 39-50 8-112 3-162 5S34 55 5 52C8 40 0 29 4 17z'/%3E%3C/svg%3E") no-repeat 0 82% / 0% 84%;
  transition: background-size .9s var(--ease) .15s, color .3s .4s;
}
.hl.in, html:not(.js) .hl { background-size: 100% 84%; color: #16130F; }
.draw path, .draw ellipse { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1.1s var(--ease) .2s; }
.draw.in path, .draw.in ellipse, html:not(.js) .draw path { stroke-dashoffset: 0; }
.scrawl { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tape {
  position: absolute; z-index: 4; width: 88px; height: 28px; rotate: var(--r, -4deg); pointer-events: none;
  background: rgba(247, 224, 140, .82); box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  clip-path: polygon(0 0, 4% 14%, 0 28%, 4% 42%, 0 56%, 4% 70%, 0 84%, 3% 100%, 100% 100%, 96% 84%, 100% 70%, 96% 56%, 100% 42%, 96% 28%, 100% 14%, 97% 0);
}
.sticky {
  position: absolute; z-index: 5; width: clamp(130px, 14vw, 190px); aspect-ratio: 1; padding: 18px 16px 14px; rotate: var(--r, -5deg);
  background: #FFE86A; color: #16130F; font-family: var(--f-hand); font-size: clamp(1.15rem, .9rem + .8vw, 1.6rem); line-height: 1.02;
  box-shadow: 0 18px 24px -14px rgba(0, 0, 0, .55), inset 0 -22px 30px -26px rgba(120, 90, 0, .45);
  display: grid; align-content: space-between;
}
.sticky b { font-weight: 400; font-size: 1.55em; line-height: .9; display: block; }
.sticky::before { content: ""; position: absolute; left: 50%; top: -12px; width: 64px; height: 24px; translate: -50% 0; rotate: -3deg; background: rgba(255, 255, 255, .5); mix-blend-mode: soft-light; clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.4em; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; white-space: nowrap; line-height: 1;
  font-weight: 700; font-variation-settings: "wdth" 92; font-size: 1rem; letter-spacing: -.005em;
  transition: transform .2s var(--pop), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 0 -4px var(--yellow); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.rec { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229, 57, 28, .6); animation: rec 1.8s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ==========================================================================
   BAR
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar-h); display: flex; align-items: center; gap: 18px; padding-inline: var(--gut);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.bar.is-solid { background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 1px 0 var(--rule); }
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-variation-settings: var(--disp); font-size: 1.15rem; letter-spacing: -.03em; white-space: nowrap; }
.bar__brand svg { width: 32px; height: 32px; --sf: #FF5FA8; --sl: #16130F; transition: rotate .5s var(--pop); }
:root[data-theme="dark"] .bar__brand svg { --sl: #16130F; }
.bar__brand:hover svg { rotate: -18deg; }
.bar__nav { display: flex; gap: 2px; margin-left: auto; }
.bar__nav a { position: relative; padding: 8px 12px; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; }
.bar__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 8px; z-index: -1; background: var(--yellow); scale: 0 1; transform-origin: left; transition: scale .35s var(--ease); border-radius: 2px; }
.bar__nav a:hover::after, .bar__nav a.is-here::after { scale: 1 1; }
.bar__nav a:hover, .bar__nav a.is-here { color: #16130F; }
.bar__end { display: flex; align-items: center; gap: 10px; }
.lights { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: transparent; transition: background-color .2s, rotate .4s var(--pop); }
.lights:hover { rotate: 20deg; background: var(--yellow); color: #16130F; }
.lights svg { width: 18px; height: 18px; }
.bar__cta { display: inline-flex; align-items: center; gap: 9px; padding: .72em 1.15em; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; transition: transform .2s var(--pop), box-shadow .2s; }
.bar__cta:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 0 -3px var(--yellow); }
.bar__menu { display: none; padding: .6em 1em; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; font-size: .9rem; }
@media (max-width: 960px) {
  .bar__menu { display: inline-block; }
  .bar__nav { display: none; position: fixed; top: calc(var(--bar-h) + 6px); left: var(--gut); right: var(--gut); flex-direction: column; margin: 0; padding: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .5); }
  .bar__nav.is-open { display: flex; }
  .bar__nav a { padding: 14px 12px; font-size: 1.15rem; }
  .bar__nav a::after { display: none; }
  .bar__nav a:hover { background: var(--yellow); }
  .bar__end { margin-left: auto; }
}
@media (max-width: 560px) { .bar__brand span { display: none; } .bar__cta .long { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: calc(var(--bar-h) + clamp(28px, 6vw, 80px)) 0 clamp(48px, 7vw, 96px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: clamp(24px, 3vw, 56px); align-items: center; }
.hero__hi { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 14px; color: var(--red-text); }
.hero__hi .note { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.3rem); }
.hero__hi svg { width: 58px; height: 44px; margin-top: 10px; rotate: 8deg; }
.hero h1 { font-size: clamp(2.8rem, .8rem + 5.7vw, 6.5rem); line-height: .94; letter-spacing: -.016em; font-variation-settings: var(--disp); max-width: 9.6em; }
.hero__lede { max-width: 33em; margin: clamp(20px, 2.6vw, 34px) 0 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.42; color: var(--ink-2); font-weight: 450; }
.hero__lede b { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: clamp(22px, 3vw, 36px); }
.hero__meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-3); }
.hero__meta span::before { content: "·"; margin-right: 22px; color: var(--ink-3); }
.hero__meta span:first-child::before { display: none; }

/* the cluster of live sites */
.cluster { position: relative; width: 100%; aspect-ratio: 1 / .98; }
.mini { position: absolute; left: var(--x); top: var(--y); width: var(--w); rotate: var(--r); z-index: var(--z, 1); display: block; text-decoration: none; color: inherit; transition: rotate .4s var(--pop), scale .4s var(--pop), translate .4s var(--pop); }
.mini:hover, .mini:focus-visible { rotate: 0deg; scale: 1.06; z-index: 9; }
.mini .dev { box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .12); }
.mini .dev__screen { aspect-ratio: 16 / 10; }
.mini .dev__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--sy, 0%); transition: object-position 1.2s var(--ease); }
.mini__label { position: absolute; z-index: 5; left: -8px; top: -16px; padding: 3px 11px 4px; rotate: -3deg; background: #FBE9A6; color: #16130F; font-family: var(--f-hand); font-size: clamp(1rem, .85rem + .5vw, 1.35rem); line-height: 1.1; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5); clip-path: polygon(0 4%, 3% 0, 8% 6%, 100% 0, 98% 52%, 100% 100%, 6% 94%, 0 100%, 2% 50%); display: inline-flex; align-items: center; gap: 7px; }
.mini__label i { width: 7px; height: 7px; border-radius: 50%; background: #1fb85a; box-shadow: 0 0 0 3px rgba(31, 184, 90, .25); }
.cluster .sticky { right: -2%; bottom: -3%; width: clamp(120px, 12vw, 164px); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cluster { max-width: 640px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .cluster { aspect-ratio: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding: 18px var(--gut) 40px; max-width: none; scrollbar-width: none; }
  .cluster::-webkit-scrollbar { display: none; }
  .mini { position: relative; left: auto; top: auto; flex: none; width: min(78vw, 360px); rotate: 0deg; scroll-snap-align: center; }
  .cluster .sticky { display: none; }
}

/* ---------- receipts ---------- */
.receipts { border-block: 2px solid var(--ink); background: var(--paper-2); }
.receipts__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; }
.rc { position: relative; padding: clamp(22px, 3vw, 40px) clamp(16px, 2.2vw, 30px); border-left: 1px dashed var(--rule); }
.rc:first-child { border-left: 0; padding-left: 0; }
.rc b { display: block; font-weight: 800; font-variation-settings: var(--disp); letter-spacing: -.012em; line-height: .85; font-size: clamp(2.8rem, 1.2rem + 4.4vw, 5.2rem); }
.rc:first-child b { font-size: clamp(3.6rem, 1.4rem + 6.4vw, 7.6rem); position: relative; display: inline-block; }
.rc span { display: block; margin-top: 10px; max-width: 24ch; color: var(--ink-2); font-size: .98rem; line-height: 1.35; }
.rc .circle { position: absolute; left: -7%; top: -14%; width: 118%; height: 130%; color: var(--red); pointer-events: none; overflow: visible; }
.rc .note { position: absolute; right: 8%; bottom: 8px; }
@media (max-width: 960px) {
  .receipts__grid { grid-template-columns: 1fr 1fr; }
  .rc:nth-child(odd) { border-left: 0; padding-left: 0; }
  .rc:nth-child(n+3) { border-top: 1px dashed var(--rule); }
  .rc:first-child { grid-column: 1 / -1; border-bottom: 1px dashed var(--rule); }
  .rc .note { position: static; margin-top: 8px; }
}

/* ==========================================================================
   INDEX
   ========================================================================== */
.sec { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.sec__head { margin-bottom: clamp(30px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; }
.sec__title { font-size: clamp(2.5rem, 1rem + 5.2vw, 5.8rem); letter-spacing: -.016em; }
.sec__sub { max-width: 52ch; margin-top: 18px; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.45; }
.ix-list { border-top: 2px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.ix { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 150px; gap: 8px 26px; align-items: baseline; padding: 18px 8px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .35s var(--ease), background-color .2s, color .2s; }
.ix__n { font-weight: 800; font-variation-settings: var(--disp); font-size: clamp(1.7rem, 1rem + 2.3vw, 3rem); letter-spacing: -.012em; line-height: 1; }
.ix__k { color: var(--ink-2); font-size: 1rem; }
.ix__s { display: inline-flex; align-items: center; gap: 8px; justify-self: end; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); }
.ix__s i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.ix__s i.live { background: #1fb85a; box-shadow: 0 0 0 3px rgba(31, 184, 90, .22); }
.ix:hover, .ix:focus-visible { padding-left: 22px; background: var(--yellow); color: #16130F; }
.ix:hover .ix__k, .ix:hover .ix__s { color: #16130F; }
.ix__arrow { position: absolute; right: 14px; top: 50%; translate: 0 -50%; opacity: 0; font-weight: 800; transition: opacity .2s, translate .3s var(--pop); }
.ix:hover .ix__arrow { opacity: 1; translate: 6px -50%; }
.ix__sep { padding: 18px 8px 6px; font-family: var(--f-hand); font-size: 1.5rem; color: var(--red-text); border-bottom: 1px solid var(--rule); rotate: -1deg; }
@media (max-width: 760px) { .ix { grid-template-columns: 1fr auto; } .ix__k { grid-column: 1; } .ix__s { grid-row: 1; grid-column: 2; } }
.peek { position: fixed; z-index: 75; left: 0; top: 0; width: min(30vw, 400px); aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; pointer-events: none; opacity: 0; scale: .8; background: #111; box-shadow: var(--shadow); border: 2px solid var(--ink); transition: opacity .2s, scale .3s var(--pop); }
.peek.on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (hover: none) { .peek { display: none; } }

/* ==========================================================================
   DEVICES (browser + phone), annotated and scroll-linked
   ========================================================================== */
.dev { position: relative; border-radius: 14px; background: #0c0b0a; container-type: inline-size; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06); }
.dev__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 14px 14px 0 0; background: linear-gradient(#2d2a27, #221f1c); }
.dev__bar i { width: 10px; height: 10px; border-radius: 50%; background: #5d564e; }
.dev__bar i:nth-child(1) { background: #d4574a; } .dev__bar i:nth-child(2) { background: #d9a93e; } .dev__bar i:nth-child(3) { background: #55a85e; }
.dev__url { margin-left: 10px; flex: 0 1 62%; height: 20px; display: flex; align-items: center; padding: 0 11px; border-radius: 999px; background: #100e0d; color: #a9a094; font: 500 11px var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 14px 14px; background: #111 center top / cover no-repeat; }
.dev__page { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.dev__page > img { width: 100%; height: auto; display: block; }
.ph { position: relative; width: 100%; padding: 8px; border-radius: 34px; background: #151210; container-type: inline-size; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .1); }
.ph__screen { position: relative; aspect-ratio: 9 / 19; overflow: hidden; border-radius: 27px; background: #000; }
.ph__screen::before { content: ""; position: absolute; z-index: 4; top: 8px; left: 50%; width: 26%; height: 15px; translate: -50% 0; border-radius: 99px; background: #000; }
.ph .dev__page { width: 100%; }
.ann {
  position: absolute; left: var(--x); top: var(--y); z-index: 3; width: max-content; max-width: 28cqw; rotate: var(--r, -3deg);
  font-family: var(--f-hand); font-size: clamp(12px, 3.1cqw, 26px); line-height: 1.02; color: var(--ac, #FFE14D); pointer-events: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 0 .55em rgba(0, 0, 0, .55);
}
.ann--ink { color: #16130F; text-shadow: none; }
.ann svg { position: absolute; width: 3.6em; height: 2.7em; left: var(--ax, -3.4em); top: var(--ay, .1em); rotate: var(--ar, 0deg); fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)); }
.ann--ink svg { filter: none; }
.ph .ann { font-size: clamp(10px, 6.2cqw, 20px); max-width: 60cqw; }
.dev--static .dev__page { position: static; }
.detail { position: absolute; z-index: 4; margin: 0; rotate: var(--r, 3deg); border-radius: 10px; background: #0c0b0a; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .08); transition: rotate .4s var(--pop), scale .4s var(--pop); }
.detail img { width: 100%; border-radius: 10px; display: block; }
.detail figcaption { position: absolute; left: 10px; bottom: -18px; padding: 2px 9px 3px; background: #FBE9A6; color: #16130F; rotate: -2deg; font-family: var(--f-hand); font-size: clamp(.95rem, .8rem + .4vw, 1.25rem); line-height: 1.1; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .6); }
.detail:hover { rotate: 0deg; scale: 1.04; }

/* ==========================================================================
   CASE PANELS (live sites)
   ========================================================================== */
.case {
  --c-bg: #111; --c-fg: #F3EFE6; --c-dim: rgba(243, 239, 230, .74); --c-ac: #FF6B45; --c-line: rgba(243, 239, 230, .18);
  position: relative; padding-block: clamp(64px, 8vw, 120px); background: var(--c-bg); color: var(--c-fg); overflow: clip;
}
.case__head { margin-bottom: clamp(26px, 4vw, 56px); }
.case__tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 13px; border: 1px solid var(--c-line); border-radius: 999px; font: 500 .78rem var(--f-mono); color: var(--c-dim); }
.case__tag i { width: 8px; height: 8px; border-radius: 50%; background: #2fd26b; box-shadow: 0 0 0 4px rgba(47, 210, 107, .2); animation: rec 1.8s ease-in-out infinite; }
.case__title { margin: 18px 0 0; font-size: clamp(3.1rem, 1rem + 9.1vw, 9.2rem); line-height: .9; letter-spacing: -.018em; font-variation-settings: var(--disp); }
.case__title .dot { color: var(--c-ac); }
.case__say { margin: 14px 0 0; font-family: var(--f-hand); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.7rem); line-height: 1; color: var(--c-ac); rotate: -1.6deg; transform-origin: left; }
.case__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 84px); align-items: start; }
.case--flip .case__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case--flip .case__media { order: -1; }
.case__lede { margin: 0; font-size: clamp(1.15rem, 1.02rem + .6vw, 1.45rem); line-height: 1.42; color: var(--c-fg); font-weight: 450; max-width: 30em; }
.case__lede b { font-weight: 800; color: var(--c-ac); }
.case__list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.case__list li { position: relative; padding-left: 34px; color: var(--c-dim); line-height: 1.45; max-width: 36em; }
.case__list li b { color: var(--c-fg); font-weight: 700; }
.case__list li::before { content: ""; position: absolute; left: 0; top: .12em; width: 22px; height: 22px; background: var(--c-ac); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 71%, 21% 92%, 32% 57%, 2% 35%, 39% 35%); }
.case__wired { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.case__wired > span { font-family: var(--f-hand); font-size: 1.45rem; color: var(--c-ac); margin-right: 6px; rotate: -2deg; }
.chip { padding: 5px 12px 6px; border: 1.5px solid var(--c-line); border-radius: 6px; background: transparent; color: var(--c-fg); font: 500 .8rem var(--f-mono); transition: background-color .2s, color .2s, border-color .2s, rotate .2s var(--pop); }
.chip:hover { background: var(--c-ac); border-color: var(--c-ac); color: #fff; rotate: -2deg; }
.case__cta { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 30px; }
.case .btn { background: var(--c-fg); color: var(--c-bg); border-color: var(--c-fg); }
.case .btn--ghost { background: transparent; color: var(--c-fg); border-color: var(--c-line); }
.case .btn:hover { box-shadow: 0 10px 0 -4px var(--c-ac); }
.case__media { position: relative; padding: 0 0 clamp(36px, 6vw, 90px); }
.case__media .dev { width: 92%; margin-left: auto; }
.case--flip .case__media .dev { margin-left: 0; margin-right: auto; }
.case__media .ph { position: absolute; z-index: 3; left: 0; bottom: 0; width: 25%; max-width: 230px; rotate: -4deg; }
.case--flip .case__media .ph { left: auto; right: 0; rotate: 4deg; }
.case__media .detail { right: 3%; bottom: clamp(-8px, -1vw, 0px); width: 38%; max-width: 380px; }
.case--flip .case__media .detail { right: auto; left: 3%; --r: -3deg; }
.case__media .sticky { top: -5%; left: -3%; }
.case--flip .case__media .sticky { left: auto; right: -3%; --r: 5deg; }
.case__media .tape--a { top: -10px; left: 12%; --r: -6deg; } .case__media .tape--b { top: -10px; right: 12%; --r: 5deg; }
.case__media .dev > .tape { z-index: 6; }
.case--wr  { --c-bg: #0F0D0C; --c-fg: #F2ECDE; --c-dim: #B9AFA2; --c-ac: #F0603C; --c-line: rgba(242, 236, 222, .2); }
.case--vc  { --c-bg: #FFBE00; --c-fg: #0B0B0B; --c-dim: rgba(11, 11, 11, .8); --c-ac: #0B0B0B; --c-line: rgba(11, 11, 11, .3); }
.case--vc .btn { background: #0B0B0B; color: #FFBE00; border-color: #0B0B0B; }
.case--vc .btn--ghost { background: transparent; color: #0B0B0B; border-color: rgba(11, 11, 11, .45); }
.case--vc .btn:hover { box-shadow: 0 10px 0 -4px #fff; }
.case--vc .chip:hover { background: #0B0B0B; border-color: #0B0B0B; color: #FFBE00; }
.case--vc .case__list li::before { background: #0B0B0B; }
.case--vc .sticky { background: #FFF8DC; }
.case--vc .case__say { color: #0B0B0B; }
.case--sp  { --c-bg: #FBF7EE; --c-fg: #2A1B3A; --c-dim: #5D4E6B; --c-ac: #7C3FB8; --c-line: rgba(42, 27, 58, .2); }
.case--tb  { --c-bg: #11113A; --c-fg: #ECEBFF; --c-dim: #B3B2DC; --c-ac: #A8A3FF; --c-line: rgba(236, 235, 255, .22); }
.case--sp .case__tag i { box-shadow: 0 0 0 4px rgba(47, 210, 107, .25); }
.case--sp .btn:hover { box-shadow: 0 10px 0 -4px #D8C3F2; }
@media (max-width: 960px) {
  .case__grid, .case--flip .case__grid { grid-template-columns: 1fr; gap: 34px; }
  .case--flip .case__media { order: 0; }
  .case__media { order: -1; padding-bottom: 70px; }
  .case__media .dev, .case--flip .case__media .dev { width: 100%; margin: 0; }
  .case__media .ph { width: 30%; left: -2%; } .case--flip .case__media .ph { right: -2%; left: auto; }
  .case__media .detail, .case--flip .case__media .detail { width: 44%; right: 0; left: auto; }
  .case__media .sticky, .case--flip .case__media .sticky { top: -8%; left: auto; right: 2%; }
}
@media (max-width: 600px) {
  .case__media .sticky, .case--flip .case__media .sticky { display: none; }
  .case__media .ph, .case--flip .case__media .ph { width: 34%; }
  .case__media .detail, .case--flip .case__media .detail { width: 50%; }
  .case__title { font-size: clamp(3rem, 14vw, 5rem); }
}

/* ==========================================================================
   RACK (patch bay)
   ========================================================================== */
.rig { background: var(--paper-2); overflow: clip; }
.rack { position: relative; color: #EFE9DC; padding: clamp(18px, 3vw, 34px); border-radius: 22px; background: linear-gradient(180deg, #1c1916, #14110f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 50px 90px -40px rgba(0, 0, 0, .9); }
.rack::before, .rack::after { content: ""; position: absolute; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #cfc7b6, #6b655a 70%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); }
.rack::before { left: 14px; } .rack::after { right: 14px; }
.rack__head { display: flex; justify-content: space-between; gap: 12px; margin: 4px 22px 18px; font: 500 .74rem var(--f-mono); color: #8B8374; }
.pb { position: relative; display: grid; grid-template-columns: minmax(150px, 290px) 1fr minmax(170px, 290px); }
.pb__cables { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.pb__col { position: relative; z-index: 2; display: grid; gap: 8px; align-content: start; }
.pb__row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.pb__col--right .pb__row { flex-direction: row; }
.pb__col--left .pb__row { justify-content: flex-end; }
.jack { flex: none; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #060504 0 36%, #9b9486 38% 60%, #5b554a 62% 100%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(0, 0, 0, .5); transition: box-shadow .2s; }
.pb__row:hover .jack, .pb__row.is-lit .jack { box-shadow: 0 0 0 4px var(--lit, #FFE14D), 0 0 18px 2px var(--lit, #FFE14D); }
.lbl { padding: 6px 14px 7px; rotate: var(--r, -1.5deg); background: #F0E2A8; color: #16130F; font-family: var(--f-hand); font-size: 1.22rem; line-height: 1; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .7); clip-path: polygon(0 5%, 2% 0, 5% 6%, 100% 0, 98% 50%, 100% 100%, 4% 94%, 0 100%, 2% 50%); transition: translate .25s var(--pop), background-color .2s; }
.pb__row:hover .lbl, .pb__row.is-lit .lbl { translate: 4px 0; background: #FFE36A; }
.pb__col--right .pb__row:hover .lbl, .pb__col--right .pb__row.is-lit .lbl { translate: -4px 0; }
.lbl2 { padding: 7px 12px 8px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; background: rgba(255, 255, 255, .04); font: 500 .8rem var(--f-mono); color: #EFE9DC; transition: background-color .2s, border-color .2s, color .2s; }
.pb__row:hover .lbl2, .pb__row.is-lit .lbl2, .pb__row.is-on .lbl2 { background: var(--lit, #FFE14D); border-color: var(--lit, #FFE14D); color: #16130F; }
.pb__row.is-dim { opacity: .38; }
.pb__row { transition: opacity .2s; }
.cab { fill: none; stroke-linecap: round; transition: opacity .25s, stroke-width .25s; }
.cab--o { stroke: rgba(0, 0, 0, .55); stroke-width: 8; }
.cab--c { stroke-width: 5; opacity: .62; }
.cab--h { stroke: rgba(255, 255, 255, .5); stroke-width: 1.2; opacity: .55; transform: translateY(-1.4px); }
.cab-g.is-on .cab--c { opacity: 1; stroke-width: 6; }
.cab-g.is-on .cab--h { opacity: .9; }
.cab-g.is-off .cab--c, .cab-g.is-off .cab--h, .cab-g.is-off .cab--o { opacity: .1; }
.cab--flow { stroke: #fff; stroke-width: 2; stroke-dasharray: 2 22; opacity: 0; transition: opacity .2s; }
.cab-g.is-on .cab--flow { opacity: .95; animation: cabflow .9s linear infinite; }
@keyframes cabflow { to { stroke-dashoffset: -48; } }
.rack__detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: clamp(26px, 4vw, 44px); padding-top: 26px; border-top: 1px dashed rgba(255, 255, 255, .2); min-height: 220px; }
.rack__kind { font: 500 .78rem var(--f-mono); color: #8B8374; margin-bottom: 8px; }
.rack__name { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.4rem); line-height: .88; letter-spacing: -.04em; color: var(--lit, #FFE14D); }
.rack__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin: 18px 0 0; padding: 0; list-style: none; font: 500 .76rem var(--f-mono); }
.rack__flow li { white-space: nowrap; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; animation: popin .4s var(--pop) both; animation-delay: calc(var(--i, 0) * .07s); }
.rack__flow li:not(:last-child)::after { content: "→"; margin-left: 12px; margin-right: -14px; color: var(--lit, #FFE14D); }
@keyframes popin { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.rack__text { margin: 16px 0 0; max-width: 54ch; color: #C2BAAB; }
.rack__text b { color: #fff; font-weight: 700; }
.rack__side h4 { margin: 0 0 12px; font: 500 .78rem var(--f-mono); color: #8B8374; letter-spacing: 0; }
.rack__used { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rack__used a { display: inline-block; padding: 6px 13px 7px; border-radius: 999px; background: var(--lit, #FFE14D); color: #16130F; font-weight: 700; font-size: .95rem; text-decoration: none; transition: rotate .2s var(--pop); }
.rack__used a:hover { rotate: -3deg; }
.rack__swap { animation: swapin .45s var(--pop); }
@keyframes swapin { from { opacity: 0; transform: translateY(12px) skewX(-6deg); } }
.pb-list { display: none; }
@media (max-width: 860px) { .rack__detail { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .pb { display: none; }
  .pb-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .pb-list button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); color: #EFE9DC; font: 500 .9rem var(--f-mono); }
  .pb-list button[aria-pressed="true"] { background: var(--lit, #FFE14D); color: #16130F; border-color: transparent; }
}

/* ==========================================================================
   MORE WORK
   ========================================================================== */
.more .sec__title { max-width: 9ch; }
.mod { position: relative; display: grid; grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); gap: clamp(26px, 5vw, 80px); align-items: center; padding-block: clamp(46px, 7vw, 96px); border-top: 2px solid var(--ink); }
.mod--flip { grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); }
.mod--flip .mod__media { order: 2; }
.mod__kind { font: 500 .8rem var(--f-mono); color: var(--ink-3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mod__kind i { width: 8px; height: 8px; border-radius: 50%; background: #1fb85a; box-shadow: 0 0 0 3px rgba(31, 184, 90, .22); }
.mod__kind i.off { background: var(--ink-3); box-shadow: none; }
.mod__title { margin: 12px 0 0; font-size: clamp(2.6rem, 1.1rem + 5.2vw, 5.8rem); letter-spacing: -.018em; line-height: .92; }
.mod__title em { font-style: normal; color: var(--red-text); }
.mod__sub { margin: 18px 0 0; max-width: 34em; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.4; color: var(--ink); font-weight: 450; }
.mod__sub q { font-family: var(--f-hand); font-size: 1.2em; quotes: "“" "”"; color: var(--red-text); }
.mod__list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.mod__list li { position: relative; padding-left: 30px; color: var(--ink-2); max-width: 36em; }
.mod__list li b { color: var(--ink); font-weight: 700; }
.mod__list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 19px; height: 19px; background: var(--red); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 71%, 21% 92%, 32% 57%, 2% 35%, 39% 35%); }
.mod__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; padding: 0; list-style: none; }
.mod__tags li { padding: 4px 11px 5px; border: 1.5px solid var(--ink); border-radius: 6px; font: 500 .76rem var(--f-mono); }
.mod__stats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 26px 0 0; padding: 0; list-style: none; }
.mod__stats b { display: block; font-weight: 800; font-variation-settings: var(--disp); font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); line-height: .9; letter-spacing: -.04em; }
.mod__stats span { color: var(--ink-2); font-size: .9rem; max-width: 16ch; display: block; line-height: 1.3; margin-top: 4px; }
.mod__link { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.mod__fine { margin-top: 18px; font: 500 .74rem var(--f-mono); color: var(--ink-3); }
.mod__media { position: relative; min-width: 0; }
.mod__media figure { margin: 0; }
.shot { border-radius: 12px; box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .14); background: var(--paper-2); width: 100%; }
.cap { margin-top: 10px; font-family: var(--f-hand); font-size: 1.25rem; line-height: 1; color: var(--ink-2); rotate: -1deg; }
.stage { position: relative; display: grid; place-items: center; gap: 22px; padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 48px); border-radius: 18px; background: radial-gradient(120% 90% at 30% 10%, color-mix(in srgb, var(--yellow) 60%, transparent), transparent 60%), var(--paper-2); box-shadow: var(--shadow), 0 0 0 1px var(--rule); }
.stage img.icon { width: clamp(140px, 20vw, 230px); filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .35)); }
.spec { width: min(100%, 410px); background: var(--card); color: var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .5), 0 0 0 1px var(--rule); font: 500 .76rem var(--f-mono); }
.spec p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 0; border-top: 1px dashed var(--rule); }
.spec p.t { border-top: 0; color: var(--ink-3); padding-top: 0; }
.spec b { color: #0A7A3E; font-weight: 500; }
:root[data-theme="dark"] .spec b { color: #5BE39A; }
.reel { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.reel figure { flex: none; scroll-snap-align: start; margin: 0; }
.reel .p { width: clamp(190px, 22vw, 270px); } .reel .t { width: clamp(150px, 17vw, 210px); }
.reel img, .reel video { width: 100%; border-radius: 12px; box-shadow: var(--shadow); background: var(--paper-2); }
.reel figcaption { margin-top: 8px; font: 500 .72rem var(--f-mono); color: var(--ink-3); }
.mod--wide { grid-template-columns: 1fr; }
.mod--wide .mod__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 70px); align-items: end; margin-bottom: 30px; }
.mod--wide .mod__bot { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 70px); align-items: start; }
.mod--dark { background: #0E0B0B; color: #EFE9DF; border-radius: 28px; padding-inline: clamp(22px, 4vw, 56px); border-top: 0; margin-top: 30px; --ink: #EFE9DF; --ink-2: #B6AEA4; --ink-3: #8A8277; --red: #E0313B; --red-text: #FF6B6B; --rule: rgba(239, 233, 223, .18); }
.mod--dark .mod__tags li { border-color: rgba(239, 233, 223, .5); }
.mod--dark .shot { box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-top: 14px; }
.duo img { border-radius: 12px; box-shadow: var(--shadow); }
.phone-solo { max-width: 330px; margin-inline: auto; }
.phone-solo img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
@media (max-width: 960px) {
  .mod, .mod--flip { grid-template-columns: 1fr; }
  .mod--flip .mod__media { order: 0; }
  .mod--wide .mod__top, .mod--wide .mod__bot { grid-template-columns: 1fr; }
}
/* tools grid */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); padding-block: clamp(46px, 7vw, 96px); border-top: 2px solid var(--ink); }
.tools__head { grid-column: 1 / -1; }
.tool { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--rule), 0 24px 40px -30px rgba(0, 0, 0, .4); }
.tool h3 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); letter-spacing: -.04em; }
.tool .mono { color: var(--ink-3); display: block; margin: 8px 0 14px; }
.tool p { color: var(--ink-2); margin: 0; max-width: 42ch; }
.tool p b { color: var(--ink); }
.tool .ico { width: 84px; height: 84px; margin-bottom: 14px; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .25)); }
.tool--xy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.xy { position: relative; aspect-ratio: 1.5; width: 100%; max-height: 340px; border-radius: 16px; background: #131110; touch-action: none; cursor: crosshair; overflow: hidden; --px: .5; --py: .45; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .08); outline-offset: 4px; }
.xy::before, .xy::after { content: ""; position: absolute; background: rgba(255, 255, 255, .16); }
.xy::before { left: calc(var(--px) * 100%); top: 0; bottom: 0; width: 1px; }
.xy::after { top: calc((1 - var(--py)) * 100%); left: 0; right: 0; height: 1px; }
.xy__grid { position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 12.5% 25%, linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 12.5% 25%; }
.xy__puck { position: absolute; left: calc(var(--px) * 100%); top: calc((1 - var(--py)) * 100%); width: 54px; height: 54px; margin: -27px 0 0 -27px; --sf: #FF5FA8; --sl: #16130F; pointer-events: none; z-index: 2; transition: scale .2s var(--pop); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.xy.is-down .xy__puck { scale: 1.25; }
.xy__ax { position: absolute; z-index: 1; font: 500 .7rem var(--f-mono); color: #9A9285; }
.xy__ax--x { left: 12px; bottom: 9px; } .xy__ax--y { right: 12px; top: 9px; }
.xy__hint { margin-top: 12px; font-family: var(--f-hand); font-size: 1.4rem; color: var(--red-text); rotate: -1.5deg; }
.xy__read { font: 500 .78rem var(--f-mono); color: var(--ink-3); margin-top: 8px; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } .tool--xy { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVICES / ABOUT
   ========================================================================== */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.svc__i { position: relative; padding: 28px 26px 32px 0; border-bottom: 1px solid var(--rule); }
.svc__i:not(:nth-child(3n+1)) { padding-left: 26px; border-left: 1px solid var(--rule); }
.svc__i h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.04em; line-height: .95; }
.svc__i p { margin: 12px 0 0; color: var(--ink-2); max-width: 32ch; }
.svc__proof { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; padding: 0; list-style: none; font: 500 .78rem var(--f-mono); }
.svc__proof a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.svc__proof a:hover { background: var(--yellow); color: #16130F; text-decoration: none; }
.svc__go { margin-top: 16px; padding: 0; border: 0; background: none; font-family: var(--f-hand); font-size: 1.4rem; color: var(--red-text); rotate: -2deg; text-decoration: none; display: inline-block; }
.svc__go:hover { text-decoration: underline; }
@media (max-width: 960px) { .svc { grid-template-columns: 1fr 1fr; } .svc__i:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .svc__i:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--rule); } }
@media (max-width: 600px) { .svc { grid-template-columns: 1fr; } .svc__i:nth-child(even) { padding-left: 0; border-left: 0; } }
.about { background: var(--paper-2); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 96px); align-items: start; }
.about__text p { max-width: 52ch; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink-2); margin: 1.1em 0 0; }
.about__text p:first-of-type { margin-top: 28px; color: var(--ink); font-weight: 550; }
.about__text a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: .15em; }
.about__text a:hover { background: var(--yellow); color: #16130F; text-decoration: none; }
.now { position: relative; padding: 26px 26px 22px; border-radius: 6px; background: var(--card); box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .45), 0 0 0 1px var(--rule); rotate: 1.2deg; background-image: repeating-linear-gradient(transparent 0 33px, color-mix(in srgb, var(--blue) 18%, transparent) 33px 34px); }
.now::before { content: ""; position: absolute; left: 46px; top: 0; bottom: 0; width: 2px; background: color-mix(in srgb, var(--red) 55%, transparent); }
.now h3 { font-family: var(--f-hand); font-weight: 400; font-size: 2rem; letter-spacing: 0; color: var(--red-text); margin: 0 0 8px 62px; line-height: 1; rotate: -1deg; }
.now dl { margin: 0; display: grid; }
.now div { display: grid; grid-template-columns: 62px 1fr; align-items: baseline; min-height: 34px; padding-top: 0; }
.now dt { font: 500 .72rem var(--f-mono); color: var(--ink-3); padding-right: 10px; text-align: right; }
.now dd { margin: 0; font-family: var(--f-hand); font-size: 1.28rem; line-height: 34px; color: var(--ink); padding-left: 16px; }
.now .tape { top: -12px; left: 40%; --r: -3deg; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .now { rotate: 0deg; } }

/* ==========================================================================
   CONTACT — project sheet
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(34px, 5vw, 80px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--bar-h) + 26px); min-width: 0; container-type: inline-size; }
.contact .sec__title { font-size: clamp(3.2rem, 1rem + 7vw, 7.8rem); }
.contact__mail { display: inline-block; margin-top: clamp(24px, 3vw, 40px); font-weight: 800; font-variation-settings: var(--disp); font-size: clamp(1.05rem, 6.1cqw, 2.7rem); letter-spacing: -.035em; text-decoration: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 8C50 2 100 12 150 7s100 4 148-2' fill='none' stroke='%23E5391C' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 10px; padding-bottom: 8px; overflow-wrap: anywhere; }
.contact__mail:hover { background-color: var(--yellow); color: #16130F; }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-weight: 600; }
.contact__links a { text-decoration: none; border-bottom: 2px solid var(--rule); }
.contact__links a:hover { border-color: var(--red); }
.sheet { position: relative; padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3vw, 40px) clamp(24px, 3vw, 36px) clamp(48px, 6vw, 76px); border-radius: 6px; background: var(--card); box-shadow: 0 40px 60px -34px rgba(0, 0, 0, .55), 0 0 0 1px var(--rule); display: grid; gap: 22px; background-image: repeating-linear-gradient(transparent 0 35px, color-mix(in srgb, var(--blue) 14%, transparent) 35px 36px); background-position: 0 14px; }
.sheet::before { content: ""; position: absolute; left: clamp(30px, 4vw, 52px); top: 0; bottom: 0; width: 2px; background: color-mix(in srgb, var(--red) 60%, transparent); }
.sheet__title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sheet__title h3 { font-family: var(--f-hand); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); letter-spacing: 0; color: var(--red-text); rotate: -1.5deg; line-height: 1; }
.sheet__title span { font: 500 .76rem var(--f-mono); color: var(--ink-3); }
.sheet__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fld { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld > span, .fld > legend { padding: 0; font: 500 .76rem var(--f-mono); color: var(--ink-3); }
.fld i { font-style: normal; color: var(--red-text); }
.sheet input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .sheet textarea {
  width: 100%; margin: 0; padding: 7px 2px 8px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font: 600 1.1rem/1.35 var(--f-body); -webkit-appearance: none; appearance: none; transition: background-color .2s;
}
.sheet textarea { min-height: 140px; resize: vertical; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 10px; line-height: 1.5; background: color-mix(in srgb, var(--card) 70%, transparent); }
.sheet ::placeholder { color: color-mix(in srgb, var(--ink) 42%, transparent); font-weight: 450; }
.sheet input:focus, .sheet textarea:focus { outline: none; background-color: color-mix(in srgb, var(--yellow) 28%, transparent); }
.fld.is-bad input, .fld.is-bad textarea { border-color: #D6002F; }
.fld.is-bad > span { color: #C4002B; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; }
.need { position: relative; cursor: pointer; }
.need input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.need span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 8px; font-weight: 650; font-size: .95rem; line-height: 1; background: var(--card); transition: background-color .15s, color .15s, rotate .2s var(--pop), box-shadow .15s; }
.need:hover span { rotate: -2deg; }
.need input:checked + span { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red); rotate: -1deg; }
.need input:checked + span::before { content: "✓"; color: var(--yellow); font-weight: 800; }
.need input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.budget { display: grid; gap: 8px; }
.budget__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.budget__val { font-family: var(--f-hand); font-size: 1.7rem; line-height: 1; color: var(--red-text); rotate: -1.5deg; }
.budget input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: grab; --fill: 100%; }
.budget input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--red) var(--fill), var(--card) var(--fill)); }
.budget input[type=range]::-moz-range-track { height: 6px; border-radius: 8px; border: 2px solid var(--ink); background: var(--card); }
.budget input[type=range]::-moz-range-progress { height: 6px; border-radius: 8px; background: var(--red); }
.budget input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 0 4px 0 var(--ink); }
.budget input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 0 4px 0 var(--ink); }
.budget input[type=range]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.budget__ticks { display: flex; justify-content: space-between; margin: -4px 0 0; padding: 0; list-style: none; font: 500 .66rem var(--f-mono); color: var(--ink-3); }
.budget__ticks li { flex: 1; text-align: center; } .budget__ticks li:first-child { text-align: left; } .budget__ticks li:last-child { text-align: right; }
.budget__ticks li.is-on { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 6px; border-radius: 999px; text-align: center; font-weight: 700; font-size: .92rem; line-height: 1.1; transition: background-color .2s, color .2s; }
.seg label:hover span { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.sheet__err { margin: 0; color: #C4002B; font-weight: 700; }
.sheet__err:empty { display: none; }
.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.sheet__foot small { max-width: 34ch; color: var(--ink-3); font-size: .9rem; line-height: 1.35; }
.sheet .btn[disabled] { opacity: .6; pointer-events: none; }
.ticket { padding: 18px 20px; border-radius: 6px; background: var(--ink); color: var(--paper); border: 2px dashed var(--yellow); animation: popin .5s var(--pop); }
.ticket[hidden] { display: none; }
.ticket p { margin: 0 0 8px; color: color-mix(in srgb, var(--paper) 78%, transparent); }
.ticket .ticket__no { font: 500 .78rem var(--f-mono); color: var(--yellow); margin-bottom: 4px; }
.ticket .ticket__t { color: var(--paper); font-weight: 800; font-variation-settings: var(--disp); font-size: 1.7rem; line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.ticket .btn { margin-top: 6px; border-color: var(--paper); color: var(--paper); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__intro { position: static; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .seg span { font-size: .8rem; padding: 10px 2px; } .budget__ticks { font-size: .56rem; } }

/* ==========================================================================
   FOOTER, toast
   ========================================================================== */
.foot { background: #12100D; color: #EDE7DB; padding: 46px 0 34px; }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; }
.foot__brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-variation-settings: var(--disp); font-size: 1.5rem; letter-spacing: -.03em; }
.foot__brand svg { width: 38px; height: 38px; --sf: #FF5FA8; --sl: #EDE7DB; }
.foot__list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.foot__list a { text-decoration: none; border-bottom: 2px solid transparent; }
.foot__list a:hover { border-color: var(--yellow); }
.foot__meta { width: 100%; padding-top: 22px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font: 500 .78rem var(--f-mono); color: #9C9486; }
.foot__meta a { color: inherit; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 22px; translate: -50% 20px; opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; transition: opacity .25s, translate .35s var(--pop); pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- reveal ---------- */
html.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js .rv.in { opacity: 1; transform: none; }
.spark { position: fixed; z-index: 98; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; }

html:not(.js) .dev__page { position: static; }
html:not(.js) .rack, html:not(.js) .pb { display: none; }
.rig__fallback { display: none; }
html:not(.js) .rig__fallback { display: block; }
.og-only { display: none; }
html.og .bar, html.og .toast, html.og .hero__lede, html.og .hero__cta, html.og .hero__meta { display: none !important; }
html.og .hero { padding-top: 70px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js .rv { opacity: 1; transform: none; }
  .hl { background-size: 100% 84%; color: #16130F; }
}

/* smooth page-to-page moves between the intro and this page (Chrome / Safari; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .5s var(--ease) both vtOut; }
::view-transition-new(root) { animation: .55s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; translate: 0 -5%; scale: .985; } }
@keyframes vtIn { from { opacity: 0; translate: 0 5%; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
