/* ==========================================================================
   BENNET LAREN — intro page
   Sound it. Style it. Ship it.  The short front door onto the full portfolio (/work/).
   Same marked-up-proof vocabulary as the portfolio (paper, ink, red pen, yellow
   highlighter, tape, sticky notes), turned up: dark stage, one loud paper wall, one yellow close.
   ========================================================================== */

:root{
  --torn-a:polygon(0.0% 7%,2.2% 6%,4.3% 38%,6.5% 13%,8.7% 33%,10.9% 20%,13.0% 27%,15.2% 32%,17.4% 61%,19.6% 14%,21.7% 6%,23.9% 6%,26.1% 14%,28.3% 10%,30.4% 6%,32.6% 6%,34.8% 11%,37.0% 6%,39.1% 17%,41.3% 21%,43.5% 42%,45.7% 30%,47.8% 9%,50.0% 37%,52.2% 11%,54.3% 26%,56.5% 47%,58.7% 58%,60.9% 63%,63.0% 70%,65.2% 69%,67.4% 44%,69.6% 52%,71.7% 70%,73.9% 64%,76.1% 37%,78.3% 10%,80.4% 22%,82.6% 16%,84.8% 6%,87.0% 9%,89.1% 27%,91.3% 14%,93.5% 6%,95.7% 17%,97.8% 6%,100.0% 6%,100% 100%,0 100%);
  --torn-b:polygon(0 0,100% 0,100.0% 81%,97.8% 81%,95.7% 78%,93.5% 84%,91.3% 88%,89.1% 79%,87.0% 94%,84.8% 94%,82.6% 71%,80.4% 91%,78.3% 75%,76.1% 64%,73.9% 90%,71.7% 74%,69.6% 53%,67.4% 64%,65.2% 61%,63.0% 43%,60.9% 58%,58.7% 36%,56.5% 62%,54.3% 39%,52.2% 55%,50.0% 31%,47.8% 58%,45.7% 81%,43.5% 57%,41.3% 51%,39.1% 45%,37.0% 40%,34.8% 30%,32.6% 41%,30.4% 69%,28.3% 67%,26.1% 67%,23.9% 68%,21.7% 64%,19.6% 82%,17.4% 93%,15.2% 30%,13.0% 31%,10.9% 94%,8.7% 75%,6.5% 58%,4.3% 59%,2.2% 64%,0.0% 62%);
  --torn-c:polygon(0.0% 70%,2.2% 47%,4.3% 42%,6.5% 22%,8.7% 19%,10.9% 11%,13.0% 23%,15.2% 24%,17.4% 56%,19.6% 61%,21.7% 68%,23.9% 60%,26.1% 53%,28.3% 62%,30.4% 39%,32.6% 51%,34.8% 48%,37.0% 30%,39.1% 20%,41.3% 12%,43.5% 6%,45.7% 10%,47.8% 6%,50.0% 6%,52.2% 22%,54.3% 56%,56.5% 68%,58.7% 53%,60.9% 70%,63.0% 70%,65.2% 33%,67.4% 6%,69.6% 16%,71.7% 34%,73.9% 36%,76.1% 50%,78.3% 70%,80.4% 36%,82.6% 19%,84.8% 44%,87.0% 22%,89.1% 6%,91.3% 24%,93.5% 19%,95.7% 16%,97.8% 38%,100.0% 60%,100% 100%,0 100%);
}


: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);

  --ink: #13100D; --ink-2: #1B1713; --ink-3: #26201A;
  --paper: #F3EFE6; --paper-2: #EAE4D6; --paper-3: #DDD5C3;
  --text: #F3EFE6; --muted: #C4BDAE; --faint: #A39C8D;
  --rule: rgba(243, 239, 230, .16);
  --red: #E5391C; --red-text: #FF6F52; --red-pen: #E5321A;
  --yellow: #FFE14D; --pink: #FF5FA8; --blue: #2B3FE8; --green: #16A05A;

  --maxw: 1320px; --gut: clamp(18px, 4vw, 56px); --bar-h: 66px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 10px); }
html.lb-open { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--f-body); font-optical-sizing: auto; font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.55;
  overflow-x: 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(--yellow); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--blue); }
.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 { margin: 0; font-weight: 800; font-variation-settings: var(--disp); letter-spacing: -.02em; line-height: .9; 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(--yellow); color: #16130F; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* paper sections get a very quiet grain */
.paper { position: relative; background: var(--paper); color: #16130F; isolation: isolate; }
.paper::after, .band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; 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");
}

/* ---------- hand-made bits ---------- */
.note { font-family: var(--f-hand); color: var(--red-text); font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1; rotate: -2.5deg; margin: 0; display: inline-block; }
.paper .note { color: #BF2A10; }
.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; }
.scrawl { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.tape {
  position: absolute; z-index: 4; width: 21%; min-width: 46px; height: 5.4cqw; rotate: var(--r, -4deg); pointer-events: none;
  left: var(--tx, 38%); top: var(--ty, -2.4cqw);
  background: rgba(247, 224, 140, .86); 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: 8; aspect-ratio: 1; rotate: var(--r, -5deg); left: var(--x); top: var(--y); width: var(--w);
  padding: 2.6cqw 2.2cqw 2cqw; background: #FFE86A; color: #16130F; font-family: var(--f-hand); font-size: 3.3cqw; line-height: 1.02;
  box-shadow: 0 2.4cqw 3.2cqw -1.8cqw rgba(0, 0, 0, .6), inset 0 -3cqw 4cqw -3.4cqw rgba(120, 90, 0, .45);
  display: grid; align-content: space-between;
}
.sticky b { font-weight: 400; font-size: 1.6em; line-height: .9; display: block; }
.sticky::before { content: ""; position: absolute; left: 50%; top: -1.6cqw; width: 9cqw; height: 3.2cqw; 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%); }
.rec { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--red); animation: rec 1.8s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.4em; border: 2px solid var(--text); border-radius: 999px;
  background: transparent; color: var(--text); 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--hi { background: var(--yellow); border-color: var(--yellow); color: #16130F; }
.btn--hi:hover { box-shadow: 0 10px 0 -4px var(--pink); }
.btn--ink { background: #16130F; border-color: #16130F; color: var(--paper); }
.btn--ink:hover { box-shadow: 0 10px 0 -4px rgba(22, 19, 15, .38); }
.btn--ghost-ink { color: #16130F; border-color: #16130F; }
.btn--ghost-ink:hover { box-shadow: 0 10px 0 -4px rgba(22, 19, 15, .38); }
.btn--sm { padding: .62em 1.05em; font-size: .9rem; }

/* ==========================================================================
   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(--ink) 86%, 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); }
.bar__brand:hover svg { rotate: -18deg; }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.bar__more { position: relative; z-index: 0; padding: 8px 10px; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 6px; white-space: nowrap; }
.bar__more::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; z-index: -1; background: var(--yellow); scale: 0 1; transform-origin: left; transition: scale .35s var(--ease); border-radius: 2px; }
.bar__more:hover::after { scale: 1 1; }
.bar__more .short { display: none; }
.bar__cta { display: inline-flex; align-items: center; gap: 9px; padding: .72em 1.15em; border-radius: 999px; background: var(--yellow); color: #16130F; 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(--pink); }
@media (max-width: 560px) {
  .bar__more .long { display: none; } .bar__more .short { display: inline; }
  .bar__end { gap: 6px; } .bar__cta .long { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--bar-h) + 22px) 0 clamp(40px, 6vw, 72px); overflow-x: clip; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(48% 58% at 76% 50%, rgba(255, 95, 168, .15), transparent 70%), radial-gradient(38% 46% at 96% 4%, rgba(43, 63, 232, .22), transparent 72%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero__hi { display: flex; align-items: flex-start; gap: 4px; margin-bottom: clamp(4px, 1.2vw, 12px); }
.hero__hi .scrawl { width: 58px; height: 40px; color: var(--red-text); rotate: 4deg; margin-top: 12px; }
.stack { font-size: clamp(4.2rem, min(11.4vw, 19svh), 11.2rem); line-height: .84; letter-spacing: -.026em; }
.stack .ln { display: block; overflow: hidden; padding: .13em 0 .15em; margin: -.1em 0 -.11em; }
.stack .ln > span { display: inline-block; animation: lift .85s var(--ease) calc(.1s + var(--i) * .13s) both; }
@keyframes lift { from { translate: 0 108%; rotate: 3deg; } to { translate: 0 0; rotate: 0deg; } }
.stack .ln > .hl {
  line-height: 1.04; padding: 0 .12em; margin: -.1em -.12em; background-position: 0 50%; background-size: 0% 98%; transition: none;
  animation: lift .85s var(--ease) calc(.1s + var(--i) * .13s) both, swipe .9s var(--ease) .85s both;
}
@keyframes swipe { from { background-size: 0% 98%; color: var(--text); } 40% { color: var(--text); } to { background-size: 100% 98%; color: #16130F; } }
.hero__lede { font-size: clamp(1.12rem, 1rem + .55vw, 1.42rem); max-width: 31em; margin: clamp(18px, 2.4vw, 30px) 0 0; color: var(--muted); line-height: 1.45; animation: fadeUp .8s var(--ease) .75s both; }
.hero__lede a { color: var(--text); text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 94% / 100% 3px; transition: background-size .25s var(--ease), color .2s; padding: 0 .06em; }
.hero__lede a:hover, .hero__lede a:focus-visible { background-size: 100% 92%; color: #16130F; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 2.6vw, 32px); animation: fadeUp .8s var(--ease) .9s both; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: clamp(22px, 3vw, 36px) 0 0; color: var(--faint); animation: fadeUp .8s var(--ease) 1s both; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
@keyframes fadeUp { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* the pinned-up collage (everything in cqw so it scales as one piece) */
.pin { position: relative; container-type: inline-size; width: 100%; max-width: 660px; margin-inline: auto; aspect-ratio: 1 / 1.08; }
.pc { position: absolute; left: var(--x); top: var(--y); width: var(--w); rotate: var(--r); z-index: var(--z); animation: slap .7s var(--pop) calc(.45s + var(--i) * .13s) both; }
.pc__in { display: block; translate: calc(var(--mx, 0) * var(--d, 8) * 1px) calc(var(--my, 0) * var(--d, 8) * 1px); transition: scale .3s var(--pop); position: relative; }
.pin:hover .pc__in { scale: 1.015; }
@keyframes slap { 0% { opacity: 0; scale: 1.26; translate: 0 -3cqw; } 55% { opacity: 1; scale: .97; translate: 0 .5cqw; } 100% { opacity: 1; scale: 1; translate: 0 0; } }
.pc img { width: 100%; height: auto; border-radius: 1.5cqw; box-shadow: 0 2.6cqw 4cqw -1.8cqw rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .09); }
.pc .tape { --tx: 40%; }
.pc--star { width: var(--w); }
.pc--star svg { width: 100%; height: auto; aspect-ratio: 484 / 536; --sf: #FF5FA8; --sl: #16130F; filter: drop-shadow(0 0 0 #fff) drop-shadow(.5cqw 0 0 #F3EFE6) drop-shadow(-.5cqw 0 0 #F3EFE6) drop-shadow(0 .5cqw 0 #F3EFE6) drop-shadow(0 -.5cqw 0 #F3EFE6) drop-shadow(0 1.6cqw 1.6cqw rgba(0, 0, 0, .5)); }

/* tiny browser frame (sized by its own font-size, so it works in the collage and in cards) */
.dev, .dev__screen { display: block; }
.dev { border-radius: .9em; overflow: hidden; background: #1A1713; box-shadow: 0 1.8em 2.8em -1.4em rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .09); }
.dev__bar { display: flex; align-items: center; gap: .55em; padding: .62em .85em; background: #26201A; }
.dev__bar i { width: .7em; height: .7em; border-radius: 50%; background: #5A5248; }
.dev__bar i:nth-child(1) { background: #FF6A5C; } .dev__bar i:nth-child(2) { background: #FFC44D; } .dev__bar i:nth-child(3) { background: #3ECF6C; }
.dev__url { margin-left: .6em; font: 500 .78em var(--f-mono); color: #A79F90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dev__screen { aspect-ratio: 16 / 10; overflow: hidden; background: #26201A; }
.dev__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; box-shadow: none; }
.pc .dev { font-size: 2.1cqw; }

/* ==========================================================================
   THE WALL  (Style it.)
   ========================================================================== */
.wall { padding: clamp(78px, 9vw, 138px) 0 clamp(86px, 10vw, 150px); margin-top: -1px; }
.wall::before { content: ""; position: absolute; left: 0; right: 0; top: -33px; height: 34px; background: var(--paper); clip-path: var(--torn-a); z-index: 0; }
.wall__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 54px); }
.wall__title { font-size: clamp(4.6rem, 13.5vw, 11.4rem); line-height: .8; padding-bottom: .06em; }
.wall__side { max-width: 34em; padding-bottom: .4em; position: relative; }
.wall__sub { font-size: clamp(1.1rem, 1rem + .55vw, 1.42rem); line-height: 1.4; color: #3A342B; margin: 0 0 18px; }
.wall__note { display: flex; align-items: center; gap: 8px; }
.wall__note .scrawl { width: 54px; height: 38px; color: #BF2A10; rotate: 12deg; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 78px; }
.tile { position: relative; min-width: 0; }
.t-th { grid-column: span 7; grid-row: span 5; }
.t-oss { grid-column: span 5; grid-row: span 3; }
.t-app { grid-column: span 5; grid-row: span 2; }
.t-car { grid-column: span 5; grid-row: span 5; }
.t-swo { grid-column: span 4; grid-row: span 5; }
.t-fl { grid-column: span 3; grid-row: span 5; }
.t-707 { grid-column: span 6; grid-row: span 2; }
.t-ntl { grid-column: span 6; grid-row: span 2; }

.tile__box { position: absolute; inset: 0; }
.tile__pick {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; text-align: left;
  background: var(--tb, #E7E0CF); color: #16130F;
  box-shadow: 0 1px 0 rgba(22, 19, 15, .08), 0 22px 30px -22px rgba(26, 18, 8, .6);
  transition: transform .35s var(--pop), box-shadow .3s;
}
.tile__pick:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 1px 0 rgba(22, 19, 15, .08), 0 32px 38px -22px rgba(26, 18, 8, .62); }
.tile.is-on .tile__pick { box-shadow: 0 1px 0 rgba(22, 19, 15, .08), 0 26px 34px -20px rgba(120, 20, 8, .5); }
.a { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.a--fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); }
.a--contain img { width: auto; height: auto; max-width: 95%; max-height: 90%; }
.a--wide img { width: 94%; height: auto; max-height: 86%; object-fit: contain; }
.fan img, .pair img { position: absolute; border-radius: 10px; box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .6); }
.fan img { left: 50%; top: 47%; height: 74%; width: auto; aspect-ratio: 4 / 5; translate: calc(-50% + var(--fx)) -50%; rotate: var(--fr); }
.pair img:nth-child(1) { height: 82%; width: auto; aspect-ratio: 4 / 5; left: 9%; top: 9%; rotate: -4deg; }
.pair img:nth-child(2) { height: 86%; width: auto; aspect-ratio: 420 / 748; right: 10%; top: 6%; rotate: 4deg; z-index: 2; }
.icons { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5%; padding-bottom: 8%; }
.icons img { height: 54%; width: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 14px 22px -10px rgba(0, 0, 0, .55); rotate: var(--r); }
.cap {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; flex-direction: column; gap: 2px; max-width: calc(100% - 24px);
  padding: 7px 11px 8px; border-radius: 8px; background: rgba(243, 239, 230, .95); color: #16130F; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .5); rotate: -1deg; pointer-events: none;
}
.cap b { font-weight: 800; font-variation-settings: "wdth" 82; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.05; }
.cap i { font: 500 .68rem var(--f-mono); font-style: normal; color: #5C5548; letter-spacing: .01em; }
.zoom {
  position: absolute; right: 10px; top: 10px; z-index: 6; width: 42px; height: 42px; border-radius: 50%; border: 2px solid #16130F; background: var(--paper); color: #16130F;
  display: grid; place-items: center; opacity: 0; scale: .85; transition: opacity .2s, scale .25s var(--pop), background-color .2s;
}
.zoom svg { width: 18px; height: 18px; }
.tile:hover .zoom, .tile:focus-within .zoom { opacity: 1; scale: 1; }
.zoom:hover { background: var(--yellow); }
@media (hover: none) { .zoom { opacity: 1; scale: 1; } }

/* the red pen */
.pen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.pen path { fill: none; stroke: var(--red-pen); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .65s var(--ease); }
.tile.is-on .pen path { stroke-dashoffset: 0; }
@media (hover: hover) { .tile__pick:hover ~ .pen path { stroke-dashoffset: .93; } .tile.is-on .tile__pick:hover ~ .pen path { stroke-dashoffset: 0; } }
.yes {
  position: absolute; z-index: 7; right: 7%; top: -4.5%; font-family: var(--f-hand); font-size: 1.7rem; line-height: 1; color: #BF2A10; background: var(--yellow); padding: .08em .5em .12em;
  rotate: var(--yr, 5deg); opacity: 0; scale: .6; transition: opacity .25s .38s, scale .35s var(--pop) .38s; pointer-events: none; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .5);
}
.tile.is-on .yes { opacity: 1; scale: 1; }

/* the tally (appears once something is circled) */
.tally {
  visibility: hidden; position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 55; translate: -50% 160%; transition: translate .55s var(--pop), visibility 0s .55s;
  display: flex; align-items: center; gap: 14px; padding: 9px 10px 9px 20px; border-radius: 999px; max-width: calc(100vw - 24px);
  background: #16130F; color: var(--paper); box-shadow: 0 0 0 2px var(--yellow), 0 22px 44px -14px rgba(0, 0, 0, .75);
}
.tally.is-on { translate: -50% 0; visibility: visible; transition: translate .55s var(--pop), visibility 0s 0s; }
.tally.is-off { translate: -50% 160%; }
.tally__txt { margin: 0; display: flex; align-items: baseline; gap: 10px; min-width: 0; font-weight: 600; }
.tally__n { font-family: var(--f-hand); font-weight: 400; font-size: 1.9rem; line-height: .8; color: var(--yellow); }
.tally__needs { font: 500 .78rem var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tally__x { background: none; border: 0; padding: 8px 6px; font: 500 .78rem var(--f-mono); color: var(--faint); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tally__x:hover { color: var(--text); }
.tally .btn { padding: .78em 1.15em; font-size: .92rem; }

/* ==========================================================================
   SOUND IT. / SHIP IT.
   ========================================================================== */
.duo { position: relative; padding: clamp(86px, 10vw, 150px) 0 clamp(70px, 8vw, 120px); background: var(--ink); }
.duo::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 34px; background: var(--paper); clip-path: var(--torn-b); }
.duo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.lane { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); padding: clamp(22px, 3vw, 40px); border-radius: 24px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.lane h2 { font-size: clamp(3.6rem, 8.4vw, 7.4rem); line-height: .82; padding-bottom: .06em; }
.lane__body { margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.45; max-width: 30em; }
.lane__body b { color: var(--text); font-weight: 600; }
.lane__body + .chips { margin-top: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 .76rem var(--f-mono); padding: .5em .85em; border: 1.5px solid var(--rule); border-radius: 999px; color: var(--muted); }
.lane__go { margin-top: auto; align-self: flex-start; font-weight: 700; font-variation-settings: "wdth" 92; text-decoration: none; display: inline-flex; gap: .5em; align-items: center; padding: .15em 0; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 100% 3px; transition: background-size .25s var(--ease), color .2s; }
.lane__go:hover, .lane__go:focus-visible { background-size: 100% 100%; color: #16130F; }
.lane--sound .lane__inner { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: center; }
.reel { position: relative; width: 100%; max-width: 250px; aspect-ratio: 9 / 16; border-radius: 26px; padding: 7px; background: #0B0907; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 40px -22px rgba(0, 0, 0, .9); rotate: -3deg; justify-self: center; }
.reel video, .reel > img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; background: #26201A; }
.reel::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 14px; translate: -50% 0; width: 30%; height: 14px; border-radius: 99px; background: #0B0907; }
.reel__tag { position: absolute; z-index: 3; left: -12%; bottom: 12%; font-family: var(--f-hand); font-size: 1.35rem; line-height: 1; color: #16130F; background: var(--pink); padding: .12em .5em .16em; rotate: -6deg; box-shadow: 0 8px 12px -8px rgba(0, 0, 0, .6); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 8px; padding: 0; }
.stats div { border-top: 2px solid var(--rule); padding-top: 12px; min-width: 0; }
.stats dt { font-weight: 800; font-variation-settings: var(--disp); font-size: clamp(2.6rem, 4.2vw, 3.8rem); line-height: .9; letter-spacing: -.02em; color: var(--yellow); }
.stats dd { margin: 6px 0 0; font: 500 .74rem/1.35 var(--f-mono); color: var(--muted); }
.sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.site { text-decoration: none; display: block; transition: transform .3s var(--pop); }
.site:hover, .site:focus-visible { transform: translateY(-5px) rotate(-.8deg); }
.site .dev { font-size: clamp(8px, .95vw, 12px); }
.site__t { display: block; margin-top: 10px; font-weight: 800; font-variation-settings: "wdth" 84; font-size: 1.12rem; line-height: 1.05; letter-spacing: -.01em; }
.site__d { display: block; margin-top: 2px; font-size: .86rem; color: var(--faint); line-height: 1.3; }

/* the long version */
.more { position: relative; padding: clamp(10px, 2vw, 24px) 0 clamp(90px, 10vw, 140px); background: var(--ink); }
.more__card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(26px, 4vw, 56px); border-radius: 28px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.more__card h2 { font-size: clamp(3.2rem, 7.4vw, 6.6rem); line-height: .84; padding-bottom: .05em; }
.more__card p { color: var(--muted); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.45; max-width: 28em; margin: 18px 0 26px; }
.more__shot { position: relative; container-type: inline-size; display: block; text-decoration: none; transition: transform .4s var(--pop); }
.more__shot .dev { font-size: 2.15cqw; rotate: 2deg; }
.more__shot .dev__screen { aspect-ratio: 1200 / 630; }
.more__shot .tape { --tx: 10%; --ty: -2.4cqw; --r: -6deg; width: 14%; }
.more__shot .tape.t2 { --tx: 78%; --r: 5deg; }
.more__card:hover .more__shot, .more__shot:focus-visible { transform: translateY(-6px) rotate(-.6deg); }

/* ==========================================================================
   THE CLOSE
   ========================================================================== */
.band { position: relative; background: var(--yellow); color: #16130F; padding: clamp(80px, 9vw, 130px) 0 clamp(70px, 8vw, 110px); isolation: isolate; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: -33px; height: 34px; background: var(--yellow); clip-path: var(--torn-c); z-index: 0; }
.band::after { opacity: .09; }
.band .hl--ink { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%2316130F' 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"); }
.band .hl--ink.in, html:not(.js) .band .hl--ink { color: var(--yellow); }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.band h2 { font-size: clamp(3.8rem, 11.6vw, 10.6rem); line-height: .8; padding-bottom: .06em; max-width: 9.6em; }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.band__sub { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.35; max-width: 26em; margin: 22px 0 0; }
.band__act { display: grid; gap: 14px; justify-items: start; }
.band__note { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; }
.band__note .note { color: #16130F; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); rotate: -3deg; }
.band__note .scrawl { width: 54px; height: 38px; color: #16130F; rotate: 82deg; margin-top: 14px; }
.band__mail { font-weight: 800; font-variation-settings: "wdth" 84; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); letter-spacing: -.02em; text-decoration: none; background: linear-gradient(#16130F, #16130F) no-repeat 0 100% / 100% 3px; word-break: break-word; }
.band__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.band__links a { text-decoration: none; background: linear-gradient(#16130F, #16130F) no-repeat 0 100% / 0 2px; transition: background-size .25s var(--ease); }
.band__links a:hover { background-size: 100% 2px; }
.foot { background: var(--ink); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--faint); }
.foot__row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; font-size: .92rem; }
.foot__row a { color: var(--muted); text-underline-offset: 3px; }
.foot__row a:hover { color: var(--text); }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-variation-settings: var(--disp); letter-spacing: -.02em; }
.foot__brand svg { width: 26px; height: 26px; --sf: #FF5FA8; --sl: #16130F; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lb { width: min(1160px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: var(--ink-2); color: var(--text); box-shadow: 0 0 0 1px var(--rule), 0 50px 120px -20px rgba(0, 0, 0, .85); overflow: hidden; }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lbIn .45s var(--pop) both; }
.lb::backdrop { background: rgba(10, 8, 6, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes lbIn { from { opacity: 0; scale: .94; translate: 0 18px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.lb__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 14px 24px; }
.lb__kicker { margin: 0 0 4px; color: var(--faint); }
.lb__bar h3 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3.2rem); line-height: .9; }
.lb__x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--text); background: transparent; display: grid; place-items: center; transition: background-color .2s, color .2s, rotate .3s var(--pop); }
.lb__x:hover { background: var(--yellow); border-color: var(--yellow); color: #16130F; rotate: 90deg; }
.lb__x svg { width: 18px; height: 18px; }
.lb__body { overflow: auto; padding: 0 20px 18px; overscroll-behavior: contain; }
.lb__gal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; padding: clamp(14px, 2.4vw, 28px); border-radius: 16px; background: var(--paper); }
.lb__gal figure { margin: 0; min-width: 0; }
.lb__gal img { width: auto; height: auto; max-width: 100%; max-height: min(58dvh, 640px); border-radius: 8px; box-shadow: 0 14px 24px -14px rgba(26, 18, 8, .6); }
.lb__gal.is-single img { max-width: min(100%, 1040px); }
.lb__gal.is-row figure { flex: 1 1 140px; display: grid; justify-items: center; }
.lb__gal.is-row img { max-height: min(50dvh, 460px); }
.lb__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px 20px 24px; border-top: 1px solid var(--rule); }
.lb__text { margin: 0; flex: 1 1 360px; color: var(--muted); font-size: 1rem; line-height: 1.45; max-width: 46em; }
.lb__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb__acts .btn[aria-pressed="true"] { background: var(--red-pen); border-color: var(--red-pen); color: #fff; }
.lb__nav { display: flex; gap: 8px; }
.lb__nav button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--rule); background: transparent; display: grid; place-items: center; transition: border-color .2s, background-color .2s, color .2s; }
.lb__nav button:hover { border-color: var(--yellow); background: var(--yellow); color: #16130F; }
.lb__nav svg { width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; top: calc(var(--bar-h) + 10px); z-index: 120; translate: -50% -140%; opacity: 0; visibility: hidden; max-width: calc(100vw - 32px); padding: .7em 1.2em; border-radius: 999px; background: var(--yellow); color: #16130F; font-weight: 700; font-size: .95rem; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); transition: translate .45s var(--pop), opacity .3s, visibility .3s; pointer-events: none; }
.toast.is-on { translate: -50% 0; opacity: 1; visibility: visible; }

/* ---------- reveal on scroll ---------- */
html.js .rv { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }
html.js .rv.in { opacity: 1; translate: 0 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 999px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; grid-auto-flow: dense; gap: 14px; }
  .tile { grid-row: auto; }
  .t-oss, .t-th, .t-707, .t-ntl { grid-column: span 2; }
  .t-car, .t-swo, .t-fl, .t-app { grid-column: span 1; }
  .t-oss { aspect-ratio: 1.85; } .t-th { aspect-ratio: 1.55; } .t-707 { aspect-ratio: 2.7; } .t-ntl { aspect-ratio: 2.7; }
  .t-car, .t-swo, .t-fl, .t-app { aspect-ratio: .86; }
  .wall__head { grid-template-columns: 1fr; gap: 14px; }
  .wall__note { display: none; }
}
@media (max-width: 899px) {
  .hero { min-height: 0; padding-top: calc(var(--bar-h) + 18px); }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .stack { font-size: clamp(4.4rem, 22vw, 9rem); }
  .pin { max-width: 560px; }
  .duo__grid, .more__card, .band__grid { grid-template-columns: 1fr; }
  .lane--sound .lane__inner { grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); }
  .more__shot { order: -1; }
}
@media (max-width: 560px) {
  :root { --bar-h: 60px; }
  .lane--sound .lane__inner { grid-template-columns: 1fr; }
  .reel { max-width: 200px; }
  .cap b { font-size: .9rem; } .cap i { font-size: .62rem; } .cap { padding: 5px 8px 6px; left: 8px; bottom: 8px; }
  .zoom { width: 38px; height: 38px; right: 8px; top: 8px; }
  .tally { padding-left: 14px; gap: 8px; } .tally__needs { display: none; }
  .tally .btn { padding: .72em 1em; }
  .lb { border-radius: 16px; }
  .lb__bar { padding: 14px 14px 10px 16px; } .lb__body { padding: 0 12px 14px; } .lb__foot { padding: 14px 14px 16px 16px; }
  .band h2 { font-size: clamp(3.4rem, 17vw, 6rem); }
}
@media (max-width: 420px) { .sites { gap: 10px; } .site__d { display: none; } }

/* smooth page-to-page moves into the full portfolio (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) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .stack .ln > .hl { background-size: 100% 98%; color: #16130F; }
  html.js .rv { opacity: 1; translate: 0 0; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
