/* =========================================================
   PAUL IT UP — styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #F3F0E8;
  --bg-2: #E9E5DA;
  --fg: #0E0E0E;
  --muted: #5d594f;
  --line: rgba(14, 14, 14, .14);
  --card: #FBFAF6;
  --accent: #D4FF3A;
  --accent-ink: #0E0E0E;
  --lilac: #B7A4FF;
  --orange: #FF7A45;
  --sky: #7FD7FF;
  --ink: #0E0E0E;
  --paper: #F3F0E8;
  --shadow: 0 40px 80px -40px rgba(14, 14, 14, .35);
  --blob-op: .32;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0E; --bg-2: #161616; --fg: #F3F0E8; --muted: #a39e93;
    --line: rgba(243, 240, 232, .14); --card: #151515;
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); --blob-op: .17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0E; --bg-2: #161616; --fg: #F3F0E8; --muted: #a39e93;
  --line: rgba(243, 240, 232, .14); --card: #151515;
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); --blob-op: .17;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body.intro-on { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.section { padding: clamp(90px, 13vw, 180px) 0; position: relative; }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
.sec-title {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2.1rem, 6vw, 5.4rem);
  line-height: .98; letter-spacing: -.045em; margin: 0;
}
.sec-title .serif { font-size: 1.12em; font-weight: 400; }
.sec-title sup { font-family: var(--f-body); font-size: .22em; font-weight: 600; letter-spacing: 0; vertical-align: top; margin-left: .3em; color: var(--muted); }
.sec-note { color: var(--muted); max-width: 520px; margin: 20px 0 0; }

/* Grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--fg);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--b-bg); color: var(--b-fg); overflow: hidden; isolation: isolate;
  border: 1.5px solid var(--fg); white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before { /* fill that gets "pulled up" on hover */
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--fg); transform: translateY(102%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); }
.btn-solid { --b-bg: var(--fg); --b-fg: var(--bg); }
.btn-solid::before { background: var(--accent); }
.btn-solid:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { color: var(--bg); border-color: var(--fg); }
.btn-ghost { border-color: var(--line); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 20px 34px; font-size: 17px; }
.btn-arrow { display: inline-block; transition: transform .45s var(--spring); }
.btn:hover .btn-arrow { transform: rotate(-45deg) scale(1.15); }
.btn-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.magnetic { will-change: transform; transition: transform .5s var(--ease), color .45s var(--ease), border-color .45s var(--ease); }

/* ---------- Logo (SVG built in JS) ---------- */
.logo-svg { display: block; width: 100%; height: auto; overflow: visible; }
.logo-svg .ltr, .logo-svg .it { transform-box: fill-box; transform-origin: 50% 100%; }
.logo-svg path { vector-effect: none; }

/* ---------- Intro ---------- */
#intro {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; overflow: hidden;
  border-radius: 0 0 0 0; transition: transform 1.15s var(--ease-io), border-radius 1.15s var(--ease-io);
}
#intro.out { transform: translateY(-105%); border-radius: 0 0 50% 50% / 0 0 18vh 18vh; }
#intro.gone { display: none; }
.intro-grid {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(243,240,232,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(243,240,232,.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 70%);
}
.intro-stage { position: relative; width: min(980px, 100% - 32px); display: grid; place-items: center; min-height: 340px; }

.search {
  position: absolute; width: min(620px, 100%); top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.9); opacity: 0;
  transition: transform .7s var(--spring), opacity .5s var(--ease);
}
.search.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.search.drop { transform: translate(-50%, 40%) scale(.85) rotate(4deg); opacity: 0; transition: transform .7s var(--ease-io), opacity .5s var(--ease); }
.search-bar {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px 18px 24px;
  border-radius: 999px; background: #1a1a1a; border: 1px solid rgba(243,240,232,.14);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  font-size: clamp(16px, 2.6vw, 22px); font-weight: 600;
}
.search-ico { width: 22px; height: 22px; flex: none; opacity: .6; }
.search-text { white-space: pre; }
.search-text .sel { background: #3d63ff; color: #fff; border-radius: 3px; }
.caret { width: 2px; height: 1.2em; background: var(--accent); animation: blink 1s steps(1) infinite; margin-left: -10px; }
@keyframes blink { 50% { opacity: 0; } }
.search-go {
  margin-left: auto; font-size: 13px; padding: 9px 16px; border-radius: 999px;
  background: rgba(243,240,232,.08); color: rgba(243,240,232,.6); font-weight: 600;
}
.search-sugg {
  list-style: none; margin: 10px 0 0; padding: 8px; border-radius: 22px; background: #161616;
  border: 1px solid rgba(243,240,232,.1); font-size: 15px; color: rgba(243,240,232,.7);
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease);
}
.search-sugg.show { opacity: 1; transform: none; }
.search-sugg li { padding: 9px 14px; border-radius: 12px; display: flex; gap: 12px; align-items: center; }
.search-sugg li::before { content: "↗"; opacity: .4; }
.search-sugg li:first-child { background: rgba(243,240,232,.05); }
.search-sugg b { color: var(--paper); }

.intro-logo { width: min(860px, 92vw); position: relative; pointer-events: none; }
.intro-logo .ltr path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-logo .ltr { opacity: 0; transform: translateY(80px); }
.intro-logo .it { opacity: 0; transform: scale(.2) rotate(-25deg); }
.intro-logo.play .ltr {
  opacity: 1; transform: none;
  transition: opacity .3s calc(var(--i) * 80ms), transform .9s var(--spring) calc(var(--i) * 80ms);
}
.intro-logo.play .ltr path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) calc(var(--i) * 80ms); }
.intro-logo.play .ltr.up { transition: opacity .2s calc(var(--i) * 80ms + 300ms), transform 1s var(--spring) calc(var(--i) * 80ms + 300ms); }
.intro-logo .ltr.up { transform: translateY(260px); }
.intro-logo.play .it { opacity: 1; transform: none; transition: opacity .2s .1s, transform .9s var(--spring) .1s; }
.intro-logo.play .it { color: var(--accent); }

.intro-tag {
  position: absolute; bottom: -10px; left: 0; right: 0; text-align: center; margin: 0;
  font-family: var(--f-display); font-size: clamp(14px, 2vw, 20px); font-weight: 500; letter-spacing: -.01em;
  opacity: 0; transform: translateY(16px); transition: all .7s var(--ease);
}
.intro-tag em { font-family: var(--f-serif); font-size: 1.35em; color: var(--accent); }
.intro-tag.show { opacity: 1; transform: none; }

.intro-cord { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.cord-line { width: 2px; height: 0; background: linear-gradient(var(--paper), rgba(243,240,232,.6)); transition: height .9s var(--spring); }
.cord-knob {
  width: 22px; height: 30px; border-radius: 11px; background: var(--accent); margin-top: -1px;
  box-shadow: 0 6px 20px rgba(212,255,58,.45); transform: scale(0); transition: transform .5s var(--spring);
}
.intro-cord.down .cord-knob { transform: scale(1); }
.intro-cord.tug { animation: tug .6s var(--ease); }
@keyframes tug { 0%{transform:translate(-50%,0)} 35%{transform:translate(-50%,46px)} 70%{transform:translate(-50%,-8px)} 100%{transform:translate(-50%,0)} }

.intro-foot {
  position: absolute; bottom: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(243,240,232,.55); font-weight: 600;
}
.intro-count b { color: var(--paper); font-variant-numeric: tabular-nums; }
.intro-skip { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(243,240,232,.2); transition: background .3s, color .3s; }
.intro-skip:hover { background: var(--paper); color: var(--ink); }

/* ---------- Bulb ---------- */
.bulb {
  --pull: 0px; --sway: 0deg;
  position: fixed; top: 0; right: clamp(14px, 2.6vw, 36px); z-index: 120;
  display: flex; flex-direction: column; align-items: center; cursor: grab; touch-action: none;
  transform-origin: 50% 0; transform: rotate(var(--sway));
  transition: transform .9s var(--spring), opacity .6s;
  user-select: none; -webkit-user-select: none; outline: none;
}
body.intro-on .bulb { opacity: 0; pointer-events: none; }
.bulb.dragging { cursor: grabbing; transition: none; }
.bulb-cord { width: 2px; height: calc(30px + var(--pull)); background: var(--fg); opacity: .7; transition: height .7s var(--spring); }
.bulb.dragging .bulb-cord { transition: none; }
.bulb-body { position: relative; width: 34px; margin-top: -1px; }
.bulb-svg { width: 34px; height: auto; position: relative; z-index: 1; overflow: visible; }
.bulb-cap { fill: var(--muted); }
.bulb-thread { stroke: var(--bg); stroke-width: 1.5; opacity: .6; }
.bulb-glass { fill: color-mix(in srgb, var(--fg) 8%, transparent); stroke: var(--fg); stroke-width: 2.5; transition: fill .4s, stroke .4s; }
.bulb-fil { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; opacity: .55; transition: stroke .4s, opacity .4s; }
.bulb-shine { fill: none; stroke: var(--fg); stroke-width: 2.5; stroke-linecap: round; opacity: .25; }
.bulb-glow {
  position: absolute; left: 50%; top: 62%; width: 130px; height: 130px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.4); opacity: 0;
  background: radial-gradient(circle, rgba(255, 214, 92, .75), rgba(255, 214, 92, 0) 65%);
  transition: opacity .5s, transform .6s var(--spring); pointer-events: none;
}
[data-theme="light"] .bulb-glass { fill: #FFE07A; stroke: #0E0E0E; }
[data-theme="light"] .bulb-fil { stroke: #FF7A00; opacity: 1; }
[data-theme="light"] .bulb-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bulb-hint {
  margin-top: 6px; font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--muted);
  white-space: nowrap; animation: hint 2.4s var(--ease) infinite;
}
@keyframes hint { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }
.bulb.swing { animation: swing 1.2s var(--ease); }
@keyframes swing { 0%{transform:rotate(0)} 20%{transform:rotate(9deg)} 45%{transform:rotate(-6deg)} 70%{transform:rotate(3deg)} 100%{transform:rotate(0)} }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 150; display: none; }
.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--fg); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--fg); opacity: .5;
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, opacity .35s, border-color .35s;
}
.cursor-label { font-size: 13px; font-weight: 800; color: var(--accent-ink); opacity: 0; transform: scale(.6); transition: .3s var(--ease); white-space: nowrap; }
.cursor.link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: .9; }
.cursor.label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border-color: var(--accent); opacity: 1; }
.cursor.label .cursor-label { opacity: 1; transform: none; }
.cursor.label .cursor-dot, .cursor.hide .cursor-dot { opacity: 0; }
.cursor.hide .cursor-ring { opacity: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  width: min(1320px, 100% - var(--gutter) * 2); height: 62px;
  transform: translateX(-50%); display: flex; align-items: center; gap: 24px;
  padding: 0 10px 0 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease), background .5s, opacity .6s;
}
body.intro-on .site-header { opacity: 0; transform: translate(-50%, -30px); }
.site-header.hidden { transform: translate(-50%, -120%); }
@media (min-width: 900px) { .site-header { width: min(1320px, 100% - var(--gutter) * 2 - 64px); margin-left: -32px; } }

.brand { width: 150px; flex: none; color: var(--fg); position: relative; }
.brand .ltr { transition: transform .6s var(--ease), opacity .4s var(--ease); }
.brand .it { transition: transform .6s var(--spring), color .4s; }
.brand.compact .ltr { transform: translateX(var(--dx)) scale(.2); opacity: 0; }
.brand.compact .it { transform: translateX(-180px) scale(1.25); transform-origin: 50% 70%; }
.brand.compact:hover .ltr, .brand.compact:focus-visible .ltr { transform: none; opacity: 1; transition-delay: calc(var(--i) * 30ms); }
.brand.compact:hover .it { transform: none; }
.brand:not(.compact):hover .ltr { animation: hop .55s var(--ease) calc(var(--i) * 45ms); }
.brand:hover .it { animation: wiggle .7s var(--ease); }
@keyframes hop { 0%,100%{transform:translateY(0)} 40%{transform:translateY(-70px)} }
@keyframes wiggle { 0%,100%{rotate:0deg} 25%{rotate:-12deg} 55%{rotate:9deg} 80%{rotate:-4deg} }
.brand.launch .ltr.up { animation: launch .9s var(--ease-io); }
@keyframes launch { 0%{transform:translateY(0)} 35%{transform:translateY(-500px) scaleY(1.6)} 36%{transform:translateY(400px)} 100%{transform:translateY(0)} }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { padding: 8px 14px; font-size: 15px; font-weight: 600; border-radius: 999px; position: relative; }
.nav-link span { display: block; overflow: hidden; position: relative; height: 1.5em; line-height: 1.5em; }
.nav-link span::before, .nav-link span::after { content: attr(data-text); display: block; transition: transform .5s var(--ease); }
.nav-link span { color: transparent; }
.nav-link span::before { position: absolute; inset: 0; color: var(--fg); }
.nav-link span::after { position: absolute; inset: 100% 0 auto; color: var(--fg); font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.18em; }
.nav-link:hover span::before, .nav-link:hover span::after { transform: translateY(-100%); }
.nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--fg); transform: translateX(-50%); }

.menu-btn { display: none; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 14px; margin-left: auto; position: relative; }
.menu-btn span { position: absolute; left: 16px; width: 14px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: calc(50% - 4px); } .menu-btn span:nth-child(2) { top: calc(50% + 2px); }
.menu-btn b { padding-left: 22px; }
.menu-open .menu-btn span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 24px 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 11vw, 4.5rem); letter-spacing: -.05em; line-height: 1.1; display: flex; align-items: baseline; gap: 14px; transform: translateY(40px); opacity: 0; transition: .6s var(--ease); }
.mobile-menu a i { font-style: normal; font-size: 13px; letter-spacing: 0; font-family: var(--f-body); }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s } .menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s } .menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s }
.mm-foot { margin-top: auto; font-weight: 700; }
.mm-foot em { font-family: var(--f-serif); font-size: 1.3em; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; position: relative; display: flex; align-items: center; padding: 130px 0 170px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.hero-blob {
  position: absolute; width: 60vmax; height: 60vmax; left: 0; top: 0; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 35% 35%, var(--accent), transparent 62%), radial-gradient(circle at 70% 65%, var(--lilac), transparent 62%);
  opacity: var(--blob-op); translate: -50% -50%; will-change: transform; pointer-events: none;
  animation: blobspin 18s linear infinite;
}
@keyframes blobspin { to { rotate: 360deg; } }
.hero-dots {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px); background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2bd96b; box-shadow: 0 0 0 0 rgba(43,217,107,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43,217,107,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,107,0); } }

.hero-title {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2.6rem, 8.6vw, 9.6rem);
  line-height: .95; letter-spacing: -.055em; margin: 0 0 clamp(36px, 5vw, 64px);
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .06em .08em; margin: 0 -.06em -.08em; }
.hero-title .line-in { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease); }
.ready .hero-title .line-in { transform: none; }
.ready .hero-title .line:nth-child(2) .line-in { transition-delay: .1s; }
.ready .hero-title .line:nth-child(3) .line-in { transition-delay: .2s; }
.hero-title .serif { font-size: 1.14em; letter-spacing: -.03em; position: relative; }
.hero-title .serif::after { /* hand-drawn underline */
  content: ""; position: absolute; left: 2%; right: 4%; bottom: .04em; height: .1em; background: var(--accent);
  border-radius: 99px; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 1s;
}
.ready .hero-title .serif::after { transform: scaleX(1); }
/* Hover "boldening": a stroke + lift drawn by the GPU — no font-weight change, so no re-layout */
.ch {
  display: inline-block;
  -webkit-text-stroke: calc(var(--b, 0) * .032em) currentColor;
  transform: translateY(calc(var(--b, 0) * -.07em)) scale(calc(1 + var(--b, 0) * .06));
  transform-origin: 50% 80%;
}
.word { display: inline-block; white-space: nowrap; }
.hero-pill {
  display: inline-flex; align-items: center; vertical-align: middle; font-family: var(--f-serif); font-style: italic;
  font-size: .32em; letter-spacing: 0; padding: .25em .8em .3em; border-radius: 999px; background: var(--fg); color: var(--bg);
  transform: rotate(-6deg) translateY(-.4em); margin-left: .2em;
}
.hero-pill span { display: inline-block; animation: wob 3s var(--ease) infinite; }
@keyframes wob { 0%,100%{transform:rotate(0)} 50%{transform:rotate(-4deg) scale(1.05)} }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hero-sub { max-width: 470px; margin: 0; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.hero-sub .serif { color: var(--fg); font-size: 1.2em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-eyebrow, .hero-bottom { opacity: 0; transform: translateY(20px); transition: 1s var(--ease) .45s; }
.ready .hero-eyebrow, .ready .hero-bottom { opacity: 1; transform: none; }

.stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sticker {
  position: absolute; pointer-events: auto; cursor: grab; touch-action: none; user-select: none;
  font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); rotate: var(--r);
  opacity: 0; scale: .3; transition: scale .7s var(--spring), opacity .4s, box-shadow .3s;
}
.ready .sticker { opacity: 1; scale: 1; }
.sticker.dragging { cursor: grabbing; box-shadow: 0 24px 40px -14px rgba(0,0,0,.5); scale: 1.08; transition: scale .3s var(--spring); }
.s1 { top: 11.5%; right: 31%; background: var(--accent); color: var(--accent-ink); transition-delay: .9s; }
.s2 { top: 58.5%; right: 9%; background: var(--lilac); color: #0E0E0E; transition-delay: 1s; }
.s3 { top: 62%; right: 6%; background: var(--fg); color: var(--bg); transition-delay: 1.1s; }
.s4 { top: 11%; right: 52%; background: var(--orange); color: #0E0E0E; font-size: 24px; padding: 6px 12px; transition-delay: 1.2s; }
.s5 { top: 11%; right: 12%; background: var(--fg); color: var(--bg); transition-delay: 1.25s; }
.s6 { top: 56%; right: 17%; background: var(--sky); color: #0E0E0E; transition-delay: 1.3s; }
.s7 { top: 57%; right: 52%; background: var(--card); color: var(--fg); border: 1.5px solid var(--fg); transition-delay: 1.35s; }
.s8 { top: 57%; right: 41%; background: var(--accent); color: var(--accent-ink); transition-delay: 1.4s; }
.s9 { top: 15.5%; right: 44%; background: var(--lilac); color: #0E0E0E; transition-delay: 1.45s; }
.s10 { top: 59.5%; right: 29%; background: #ff5f8f; color: #fff; transition-delay: 1.5s; }
.s11 { top: 11.5%; right: 32%; background: var(--card); color: var(--fg); border: 1.5px dashed var(--fg); transition-delay: 1.55s; }
.s12 { top: 61%; right: 27.5%; background: var(--accent); color: var(--accent-ink); transition-delay: 1.6s; }
.sticker.round { width: 54px; height: 54px; padding: 0; display: grid; place-items: center; font-size: 24px; border-radius: 50%; }
.sticker.star {
  width: 82px; height: 82px; padding: 0; display: grid; place-items: center; border-radius: 0; font-size: 15px; box-shadow: none;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.25));
}
.sticker:not(.dragging):hover { animation: stickerWiggle .6s var(--ease); }
@keyframes stickerWiggle { 0%, 100% { rotate: var(--r); } 30% { rotate: calc(var(--r) - 9deg); } 60% { rotate: calc(var(--r) + 6deg); } }
.sticker.boing { animation: boing .55s var(--spring); }
@keyframes boing { 0% { scale: 1.12; } 40% { scale: .92; } 100% { scale: 1; } }
.sticker-hint {
  position: absolute; top: 67.5%; right: 3%; font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--muted);
  pointer-events: none; opacity: 0; transition: opacity .8s 1.9s;
}
.ready .sticker-hint { opacity: 1; animation: hint 2.4s var(--ease) infinite; }
.stickers.touched .sticker-hint { opacity: 0; transition-delay: 0s; }

.badge { position: absolute; z-index: 3; left: 50%; margin-left: -58px; bottom: 30px; width: 116px; height: 116px; display: grid; place-items: center; opacity: 0; transition: opacity 1s 1.2s; }
.ready .badge { opacity: 1; }
.badge-ring { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.badge-ring text { font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: .078em; fill: var(--fg); }
.badge-mid { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 20px; font-weight: 800; transition: transform .5s var(--spring); }
.badge:hover .badge-mid { transform: scale(1.2) translateY(4px); }
.badge:hover .badge-ring { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { padding: 30px 0; overflow: hidden; position: relative; z-index: 2; }
.marquee-row { background: var(--fg); color: var(--bg); padding: 18px 0; transform: rotate(-2deg); margin: 0 -5vw; white-space: nowrap; overflow: hidden; }
.marquee-row.alt { background: var(--accent); color: var(--accent-ink); transform: rotate(1.5deg); margin-top: -10px; }
.marquee-track { display: inline-flex; align-items: center; gap: 36px; will-change: transform; padding-right: 36px; }
.marquee-track span { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 3.2rem); letter-spacing: -.04em; text-transform: uppercase; }
.marquee-track span.serif { font-family: var(--f-serif); text-transform: none; font-size: clamp(2rem, 4.8vw, 3.9rem); }
.marquee-track b { font-size: clamp(1.2rem, 2.6vw, 2rem); }

/* ---------- Work ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px); }
.project { perspective: 1200px; }
.project:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.project-link { display: block; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.frame {
  border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); transform: translateZ(0);
}
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-bar i:nth-child(1) { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-url { margin-left: 12px; flex: 1; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 5px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-view { aspect-ratio: 16 / 10.5; position: relative; overflow: hidden; background: var(--bg-2); }
.frame-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.frame-view iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; background: #fff; }
.project:hover .frame-view img { transform: scale(1.05); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: var(--pc); color: #0E0E0E; }
.ph::before, .ph::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transition: transform 1.2s var(--ease); }
.ph::before { width: 50%; aspect-ratio: 1; left: -10%; top: -20%; }
.ph::after { width: 34%; aspect-ratio: 1; right: -6%; bottom: -14%; background: rgba(14,14,14,.12); }
.project:hover .ph::before { transform: translate(20%, 15%) scale(1.1); }
.project:hover .ph::after { transform: translate(-30%, -20%); }
.ph-title { position: relative; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 3.4rem); letter-spacing: -.05em; text-align: center; line-height: .95; padding: 0 20px; }
.ph-title em { display: block; font-family: var(--f-serif); font-weight: 400; font-size: .5em; letter-spacing: 0; margin-top: 10px; }
.project-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 6px 0; align-items: baseline; }
.project-meta h3 { margin: 0; font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.03em; }
.project-meta .yr { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--muted); }
.project-meta p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; }
.tags { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tags span { font-size: 12px; font-weight: 700; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Services ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 70px 1.2fr 1.3fr auto 50px; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 34px) 18px; border-bottom: 1px solid var(--line); isolation: isolate; overflow: hidden;
  transition: color .5s var(--ease), padding .5s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.svc:hover::before { transform: scaleY(1); }
.svc:hover { color: var(--accent-ink); padding-left: 34px; }
.svc-n { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--muted); transition: color .4s; }
.svc:hover .svc-n, .svc:hover .svc-d { color: var(--accent-ink); }
.svc-t { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2.8vw, 2.4rem); letter-spacing: -.04em; line-height: 1.05; }
.svc-d { margin: 0; color: var(--muted); font-size: 15px; transition: color .4s; }
.svc-tags { display: flex; gap: 6px; }
.svc-tags i { font-style: normal; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid currentColor; opacity: .7; }
.svc-arrow { font-size: 26px; justify-self: end; transition: transform .5s var(--spring); }
.svc:hover .svc-arrow { transform: rotate(45deg) scale(1.2); }

/* ---------- Process ---------- */
.process { position: relative; height: 420vh; background: var(--fg); color: var(--bg); }
.process .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.process-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 5vh, 60px); }
.process-head { flex: none; }
.process-track { display: flex; gap: 24px; padding-left: max(var(--gutter), (100vw - 1320px) / 2); will-change: transform; flex: none; }
.step {
  flex: none; width: clamp(290px, 34vw, 460px); min-height: clamp(320px, 46vh, 440px); border-radius: 28px;
  background: color-mix(in srgb, var(--bg) 6%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  padding: 32px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: background .5s var(--ease), color .5s;
}
.step::before { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -50px; border-radius: 50%; background: var(--c); opacity: .9; transition: transform .8s var(--ease); }
.step:hover::before { transform: scale(5); }
.step:hover { color: #0E0E0E; }
.step > * { position: relative; }
.step-n { font-family: var(--f-display); font-weight: 700; font-size: 64px; letter-spacing: -.06em; line-height: 1; }
.step h3 { margin: auto 0 12px; font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -.04em; }
.step p { margin: 0; opacity: .75; font-size: 16px; }
.step-time { margin-top: 18px; font-family: var(--f-serif); font-style: italic; font-size: 20px; }
.step-end { background: none; border-style: dashed; justify-content: center; align-items: flex-start; gap: 20px; }
.step-end::before { display: none; }
.step-end h3 { margin: 0; font-size: clamp(36px, 4vw, 54px); }
.step-end:hover { color: inherit; }
.process-bar { height: 3px; background: color-mix(in srgb, var(--bg) 15%, transparent); border-radius: 9px; overflow: hidden; flex: none; }
.process-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-visual { position: relative; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; position: relative; background: var(--card);
  border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform .8s var(--ease), border-radius .8s var(--ease);
}
.portrait:hover { transform: rotate(-2deg) scale(1.02); border-radius: 160px 30px 160px 30px; }
.portrait { background: #0E0E0E; }
.portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .8s var(--ease); filter: saturate(1.05); }
.portrait:hover .portrait-img { transform: scale(1.12); filter: saturate(1.25); }
.portrait::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(14,14,14,.75)); pointer-events: none; }
.portrait-logo { position: absolute; z-index: 1; left: 8%; right: 8%; bottom: 6%; color: #fff; transform: translateY(12px); opacity: .95; transition: transform .8s var(--spring); }
.portrait-logo .it { color: var(--accent); }
.portrait:hover .portrait-logo { transform: translateY(0); }
.portrait:hover .portrait-logo .ltr { animation: hop .55s var(--ease) calc(var(--i) * 45ms); }
.only-light { display: none; } [data-theme="light"] .only-light { display: block; } [data-theme="light"] .only-dark { display: none; }
.portrait-note { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--muted); border: 1px dashed var(--line); padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.about-sticker { position: absolute; top: -14px; right: -10px; opacity: 1; scale: 1; background: var(--accent); color: var(--accent-ink); font-size: 16px; }
.about-text { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); margin: 24px 0 0; }
.about-text em { color: var(--fg); font-family: var(--f-serif); font-size: 1.2em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0 34px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat b { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--f-serif); font-style: italic; font-size: 26px; margin-left: 4px; }
.stat p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); transition: .4s var(--spring); }
.tools span:hover { background: var(--fg); color: var(--bg); transform: translateY(-4px) rotate(-3deg); }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.4rem); letter-spacing: -.03em; }
summary::-webkit-details-marker { display: none; }
summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .5s var(--spring), background .3s; }
summary i::before, summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; translate: -50% -50%; }
summary i::after { rotate: 90deg; transition: rotate .4s var(--ease); }
details[open] summary i { transform: rotate(180deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
details[open] summary i::after { rotate: 0deg; }
details p { margin: 0; padding: 0 60px 26px 4px; color: var(--muted); }
details[open] p { animation: drop .5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: var(--accent-ink); border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; padding-bottom: clamp(48px, 5vw, 72px); }
.contact .eyebrow { color: rgba(14,14,14,.6); }
.contact-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 8vw, 8rem); line-height: .95; letter-spacing: -.06em; margin: 0 0 clamp(40px, 6vw, 80px); }
.contact-title .serif { font-weight: 400; font-size: 1.1em; }
.contact-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.contact-form legend { font-weight: 800; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(14,14,14,.4); font-weight: 700; font-size: 15px; transition: .35s var(--spring); }
.chips label:hover span { border-color: #0E0E0E; transform: translateY(-2px); }
.chips input:checked + span { background: #0E0E0E; color: var(--accent); border-color: #0E0E0E; transform: rotate(-2deg) scale(1.04); }
.chips input:focus-visible + span { outline: 2px solid #0E0E0E; outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 12px 0 34px; }
.field { position: relative; display: block; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(14,14,14,.35); color: #0E0E0E;
  font: inherit; font-size: 20px; font-weight: 600; padding: 28px 0 10px; outline: none; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; }
.field span { position: absolute; left: 0; top: 28px; font-weight: 600; color: rgba(14,14,14,.55); pointer-events: none; transition: .35s var(--ease); font-size: 18px; }
.field input:focus, .field textarea:focus { border-color: #0E0E0E; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 2px; font-size: 13px; color: #0E0E0E; letter-spacing: .04em; text-transform: uppercase; font-weight: 800; }
.field.err input, .field.err textarea { border-color: #d6331b; }
.contact .btn-accent { --b-bg: #0E0E0E; --b-fg: var(--accent); border-color: #0E0E0E; }
.contact .btn-accent::before { background: var(--paper); }
.contact .btn-accent:hover { color: #0E0E0E; }
.contact-side { border-left: 1.5px solid rgba(14,14,14,.2); padding-left: clamp(20px, 3vw, 40px); }
.cs-label { margin: 0 0 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.cs-label:not(:first-child) { margin-top: 32px; }
.cs-mail { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 36px); display: inline-block; line-height: 1.15; border-bottom: 2px solid; overflow-wrap: anywhere; }
.copy-btn { display: block; margin-top: 12px; font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 99px; background: rgba(14,14,14,.08); transition: background .3s; }
.copy-btn:hover { background: rgba(14,14,14,.16); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.socials a { font-weight: 700; font-size: 18px; display: inline-flex; gap: 8px; transition: transform .4s var(--spring); }
.socials a:hover { transform: translateX(8px); }
.cs-reply { margin: 0; font-weight: 700; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--accent); color: var(--accent-ink); padding: 0 0 30px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1.5px solid rgba(14,14,14,.2); }
.footer-top p { margin: 0; font-weight: 700; font-size: 14px; opacity: .65; }
.pull-top { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; padding: 8px 18px 8px 8px; border-radius: 99px; background: #0E0E0E; color: var(--accent); }
.pt-tab { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #0E0E0E; display: grid; place-items: center; transition: transform .5s var(--spring); }
.pull-top:hover .pt-tab { transform: translateY(-6px); }
.footer-logo { margin: clamp(40px, 6vw, 80px) auto clamp(30px, 4vw, 50px); color: #0E0E0E; cursor: default; }
.footer-logo .ltr, .footer-logo .it { transition: transform .5s var(--spring); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }

/* ---------- Preview modal ---------- */
.preview {
  width: min(1400px, 100vw - 32px); height: min(900px, 100dvh - 32px); max-width: none; max-height: none;
  padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--fg);
  overflow: hidden; box-shadow: 0 60px 120px -30px rgba(0,0,0,.6);
}
.preview[open] { display: flex; flex-direction: column; animation: pvIn .6s var(--ease); }
.preview::backdrop { background: rgba(14,14,14,.6); backdrop-filter: blur(8px); }
@keyframes pvIn { from { opacity: 0; transform: translateY(60px) scale(.96); } }
.pv-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pv-dots { display: flex; gap: 6px; } .pv-dots i { width: 11px; height: 11px; border-radius: 50%; }
.pv-dots i:nth-child(1){background:#ff5f57} .pv-dots i:nth-child(2){background:#febc2e} .pv-dots i:nth-child(3){background:#28c840}
.pv-url { flex: 1; min-width: 120px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 7px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-devices { display: flex; background: var(--bg-2); border-radius: 99px; padding: 3px; }
.pv-devices button { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pv-devices button.on { background: var(--fg); color: var(--bg); }
.pv-open { font-size: 13px; font-weight: 800; padding: 8px 14px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.pv-close { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); font-weight: 800; }
.pv-stage { flex: 1; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; padding: 12px; }
.pv-frame { width: 100%; height: 100%; transition: width .7s var(--ease); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); position: relative; }
.pv-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pv-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; background: var(--card); color: var(--fg); }
.pv-empty h4 { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 0 0 8px; letter-spacing: -.04em; }
.pv-empty p { color: var(--muted); margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 210; transform: translate(-50%, 140%);
  background: var(--fg); color: var(--bg); padding: 14px 22px; border-radius: 99px; font-weight: 700;
  transition: transform .6s var(--spring), visibility 0s .6s; max-width: calc(100% - 32px); text-align: center; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--spring); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.project { opacity: 0; transform: translateY(80px) rotate(2deg); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.project.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .svc { grid-template-columns: 50px 1fr 1.2fr 40px; }
  .svc-tags { display: none; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header { padding-right: 6px; margin-right: 0; width: calc(100% - 32px - 56px); left: 16px; transform: none; }
  body.intro-on .site-header { transform: translateY(-30px); }
  .site-header.hidden { transform: translateY(-130%); }
  .brand { width: 120px; }
  .projects { grid-template-columns: 1fr; }
  .project:nth-child(even) { margin-top: 0; }
  .svc { grid-template-columns: 40px 1fr 30px; gap: 14px; }
  .svc-d { grid-column: 2 / 3; grid-row: 2; }
  .svc-arrow { grid-column: 3; grid-row: 1; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; }
  .contact-side { border-left: 0; padding-left: 0; border-top: 1.5px solid rgba(14,14,14,.2); padding-top: 30px; }
  .process { height: auto; }
  .process-sticky { position: relative; height: auto; padding: 100px 0; }
  .process-track { flex-direction: column; padding: 0 var(--gutter); transform: none !important; }
  .step { width: 100%; min-height: 260px; }
  .process-bar { display: none; }
  .stickers .s3, .stickers .s7, .stickers .s9, .stickers .s11, .stickers .s8, .sticker-hint { display: none; }
  .s5 { top: auto; bottom: 15%; right: auto; left: 5%; } .s6 { top: auto; bottom: 3%; right: 6%; }
  .s10 { top: auto; bottom: 1.5%; right: 44%; } .stickers .s12 { display: none; }
  .s1 { top: auto; bottom: 8%; right: 50%; } .s2 { top: auto; bottom: 14%; right: 8%; } .s4 { top: 14%; right: 10%; }
  .badge { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-title { font-size: 14.5vw; }
  .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat span { font-size: 18px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .bulb-hint { display: none; }
  .pv-devices { order: 5; }
  details p { padding-right: 4px; }
  .intro-foot { left: 16px; right: 16px; }
}

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

/* ---------- Contact: phone button ---------- */
.phone { display: inline-flex; align-items: center; gap: 16px; margin: 4px 0 2px; }
.phone-ico {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: #0E0E0E; color: var(--accent); display: grid; place-items: center;
  transition: transform .5s var(--spring), background .3s;
}
.phone-ico svg { width: 28px; height: 28px; fill: currentColor; position: relative; z-index: 1; animation: ringring 3s var(--ease) infinite; transform-origin: 50% 50%; }
.phone-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #0E0E0E; animation: ripple 2.4s var(--ease) infinite; }
.phone-ring + .phone-ring { animation-delay: 1.2s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ringring { 0%, 62%, 100% { rotate: 0deg; } 66% { rotate: -18deg; } 70% { rotate: 16deg; } 74% { rotate: -14deg; } 78% { rotate: 12deg; } 82% { rotate: -6deg; } 86% { rotate: 0deg; } }
.phone:hover .phone-ico { transform: scale(1.1) rotate(-8deg); }
.phone:hover .phone-ico svg { animation-duration: .9s; }
.phone:active .phone-ico { transform: scale(.94); }
.phone-txt { display: flex; flex-direction: column; line-height: 1.15; }
.phone-txt small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.phone-txt b {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 2.5vw, 34px); white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat; transition: background-size .5s var(--ease);
}
.phone:hover .phone-txt b { background-size: 100% 2px; }

/* ---------- Work: "more incoming" ---------- */
.more-work {
  margin-top: clamp(60px, 9vw, 130px); position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: clamp(24px, 3vw, 40px);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.more-work::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -40%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%);
  opacity: .55; filter: blur(30px); animation: drift 12s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-30%, 40%) scale(1.2); } }
.mw-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mw-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.05; letter-spacing: -.045em; }
.mw-title .serif { font-weight: 400; font-size: 1.12em; }
.mw-num {
  display: inline-block; padding: 0 .25em; border-radius: .2em; background: var(--accent); color: var(--accent-ink);
  transform: rotate(-3deg); font-variant-numeric: tabular-nums; animation: numbob 3s var(--ease) infinite;
}
@keyframes numbob { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg) translateY(-3px); } }
.mw-loading { margin: 28px 0 30px; max-width: 460px; }
.mw-bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; position: relative; }
.mw-bar span {
  position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--fg) 0 10px, color-mix(in srgb, var(--fg) 70%, transparent) 10px 20px);
  animation: fill 4.8s var(--ease-io) infinite, stripes .8s linear infinite; transform-origin: left;
}
@keyframes fill { 0% { transform: scaleX(.04); } 70% { transform: scaleX(.92); } 85% { transform: scaleX(.97); } 100% { transform: scaleX(.04); } }
@keyframes stripes { to { background-position: 28px 0; } }
.mw-status { margin: 12px 0 0; font-weight: 700; font-size: 15px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mw-label { color: var(--muted); }
.mw-status-text { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.3em; display: inline-block; transition: transform .35s var(--ease), opacity .35s; }
.mw-status-text.swap { transform: translateY(-60%); opacity: 0; }
.mw-dots i { font-style: normal; display: inline-block; animation: dot 1.2s infinite; }
.mw-dots i:nth-child(2) { animation-delay: .2s; } .mw-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .3; } 30% { transform: translateY(-5px); opacity: 1; } }

.mw-stack { position: relative; height: clamp(260px, 30vw, 360px); }
.mw-win {
  position: absolute; width: 62%; border-radius: 14px; overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(0,0,0,.45);
  transition: rotate .7s var(--spring), translate .7s var(--spring);
}
.mw-wbar { display: flex; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.mw-wbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mw-wbar i:nth-child(1) { background: #ff5f57; } .mw-wbar i:nth-child(2) { background: #febc2e; } .mw-wbar i:nth-child(3) { background: #28c840; }
.mw-wbody { position: relative; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 110px; }
.mw-wbody span:not(.mw-spin) {
  height: 10px; border-radius: 99px; width: 100%;
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--line) 50%, var(--bg-2) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.mw-wbody span.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mw-wbody em { margin-top: auto; align-self: flex-start; font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #28c840; color: #0E0E0E; }
.w1 { left: 0; top: 4%; rotate: -7deg; animation: floatA 6s ease-in-out infinite; }
.w2 { right: 0; top: 18%; rotate: 5deg; animation: floatB 7s ease-in-out infinite; }
.w3 { left: 18%; bottom: 0; rotate: -2deg; border-style: dashed; border-width: 2px; border-color: var(--fg); background: var(--card); animation: floatA 5s ease-in-out infinite reverse; z-index: 2; }
.w3 .mw-wbody { align-items: center; justify-content: center; }
.w3 .mw-wbody em { align-self: center; margin-top: 10px; background: var(--accent); }
.mw-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--fg); animation: spin .9s linear infinite; }
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes floatB { 0%, 100% { translate: 0 0; } 50% { translate: 0 12px; } }
.more-work:hover .w1 { rotate: -12deg; }
.more-work:hover .w2 { rotate: 10deg; }
.mw-orbit { position: absolute; inset: 6% 10%; border-radius: 50%; border: 1.5px dashed var(--line); animation: spin 22s linear infinite; z-index: -1; }
.mw-orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.mw-orbit i:nth-child(1) { top: -6px; left: 50%; }
.mw-orbit i:nth-child(2) { bottom: 10%; left: 4%; background: var(--lilac); box-shadow: none; }
.mw-orbit i:nth-child(3) { top: 40%; right: -6px; background: var(--orange); box-shadow: none; }
.mw-chip {
  position: absolute; z-index: 3; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 99px; white-space: nowrap;
  background: var(--fg); color: var(--bg); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5);
  opacity: 0; scale: .4;
}
.more-work.in .mw-chip { animation: chipIn .7s var(--spring) forwards, floatA 4s ease-in-out infinite; }
.c1 { top: -2%; right: 6%; }
.c2 { bottom: 28%; right: -2%; background: var(--lilac); color: #0E0E0E; }
.c3 { bottom: 6%; left: -2%; background: var(--orange); color: #0E0E0E; }
.more-work.in .c1 { animation-delay: .5s, 1.2s; }
.more-work.in .c2 { animation-delay: .7s, 1.6s; }
.more-work.in .c3 { animation-delay: .9s, 2s; }
@keyframes chipIn { to { opacity: 1; scale: 1; } }

@media (max-width: 900px) {
  .more-work { grid-template-columns: 1fr; }
  .mw-stack { height: 280px; max-width: 460px; width: 100%; margin: 0 auto; }
}

/* intro: "Paul" typed in front of "it up" */
.search.caret-front .search-bar > .caret { visibility: hidden; }
.caret-in { display: inline-block; vertical-align: -0.15em; margin: 0 0 0 1px; }
.typed-paul { color: var(--accent); font-weight: 800; }

/* ---------- Hero: "Tidy up" sticker reset ---------- */
.sticker.returning { transition: translate .9s var(--spring) var(--rd, 0ms), rotate .6s var(--ease) var(--rd, 0ms); }
.tidy-btn {
  position: absolute; z-index: 4; top: 67%; right: 3%;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-weight: 800; font-size: 14px;
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.5);
  opacity: 0; scale: .4; pointer-events: none; visibility: hidden;
  transition: opacity .3s, scale .5s var(--spring), visibility 0s .5s, background .3s, color .3s;
}
.stickers-moved .tidy-btn { opacity: 1; scale: 1; pointer-events: auto; visibility: visible; transition: opacity .3s, scale .5s var(--spring), background .3s, color .3s; }
.tidy-btn:hover { background: var(--accent); color: var(--accent-ink); }
.tidy-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 15px; line-height: 1; }
.tidy-btn:hover .tidy-ico { background: var(--fg); color: var(--accent); }
.tidy-btn.spin .tidy-ico { animation: tidyspin .7s var(--ease); }
@keyframes tidyspin { from { rotate: 0deg; } to { rotate: -360deg; } }
@media (max-width: 900px) {
  .tidy-btn { top: auto; bottom: 23%; right: 5%; }
}

/* =========================================================
   REDESIGN (v2): sideways hero, sober light, iPhone call,
   game, paint splash, scratch card, easter egg
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Soft, sober background light ---------- */
.hero-blob {
  width: 80vmax; height: 80vmax; animation: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 75%, transparent) 0%, color-mix(in srgb, var(--lilac) 35%, transparent) 38%, transparent 66%);
  filter: blur(70px); opacity: var(--blob-op);
}

/* ---------- Sideways scrolling headline ---------- */
.hero-scroller {
  margin: clamp(18px, 3vw, 36px) calc(50% - 50vw) clamp(60px, 6.5vw, 96px);
  overflow: hidden; position: relative; z-index: 1; cursor: default;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hs-row { white-space: nowrap; overflow: visible; opacity: 0; transform: translateY(60px); transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.ready .hs-row { opacity: 1; transform: none; }
.ready .hs-row + .hs-row { transition-delay: .12s; }
.hs-track { display: inline-flex; will-change: transform; }
.hs-chunk {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(3.4rem, 10.5vw, 11rem);
  line-height: 1.02; letter-spacing: -.055em; padding-right: .3em; display: inline-flex; align-items: center;
}
.hs-chunk .serif { font-weight: 400; font-size: 1.12em; letter-spacing: -.03em; margin: 0 .12em; }
.hs-row:first-child .hs-chunk .serif { position: relative; }
.hs-row:first-child .hs-chunk .serif::after {
  content: ""; position: absolute; left: 2%; right: 4%; bottom: .08em; height: .09em; border-radius: 99px;
  background: var(--accent); z-index: -1;
}
.hs-outline .hs-chunk { color: transparent; -webkit-text-stroke: max(1.5px, .012em) var(--fg); }
.hs-outline .hs-chunk .serif { color: var(--fg); -webkit-text-stroke: 0; }
.hs-star { font-style: normal; color: var(--accent); -webkit-text-stroke: max(1px, .01em) var(--fg); font-size: .55em; margin-left: .35em; display: inline-block; animation: spin 8s linear infinite; }
@media (max-width: 560px) { .hs-chunk { font-size: 17vw; } }

/* ---------- Nav "Play" dot ---------- */
.nav-play::before { content: ""; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }

/* ---------- Footer: scared letters (JS drives transforms every frame) ---------- */
.footer-logo .ltr, .footer-logo .it { transition: none; }
.footer-logo { touch-action: manipulation; }
.egg-hint { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 15px; opacity: .75; margin-left: 4px; }

/* ---------- iPhone slide-to-call ---------- */
.iphone {
  --p: 0;
  position: relative; width: min(290px, 100%); height: 560px; border-radius: 48px; overflow: hidden; isolation: isolate;
  background: #000; border: 10px solid #121212; color: #fff;
  box-shadow: 0 0 0 1.5px #3a3a3a, 0 0 0 3px #0E0E0E, 0 40px 80px -30px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", var(--f-body); user-select: none; -webkit-user-select: none;
  transition: transform .6s var(--spring);
}
.iphone:hover { transform: rotate(-1.5deg) translateY(-4px); }
.ip-wall { position: absolute; inset: -40px; z-index: -1; background: url("assets/me.webp") center 35% / cover; filter: blur(22px) brightness(.5) saturate(1.25); }
.ip-wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.45)); }
.ip-island { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 3; transition: width .5s var(--spring); }
.calling .ip-island { width: 118px; }
.calling .ip-island::after { content: ""; position: absolute; right: 12px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #34c759; animation: pulse 1.4s infinite; }
.ip-status { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 24px 0; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.ip-icons { display: flex; align-items: flex-end; gap: 2px; }
.ip-icons i { width: 3px; background: #fff; border-radius: 1px; }
.ip-icons i:nth-child(1) { height: 4px; } .ip-icons i:nth-child(2) { height: 6px; } .ip-icons i:nth-child(3) { height: 8px; } .ip-icons i:nth-child(4) { height: 10px; }
.ip-icons b { width: 22px; height: 11px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 3px; margin-left: 6px; position: relative; }
.ip-icons b::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: #fff; border-radius: 1px; }
.ip-caller { text-align: center; margin-top: 34px; padding: 0 16px; }
.ip-state { margin: 0; font-size: 15px; opacity: .72; transition: opacity .3s; }
.ip-name { margin: 2px 0 18px; font-size: 31px; font-weight: 500; letter-spacing: -.015em; }
.ip-avatar { position: relative; width: 98px; height: 98px; margin: 0 auto; }
.ip-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 35%; position: relative; z-index: 1; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.ip-avatar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); animation: ripple 2.4s var(--ease) infinite; }
.ip-avatar span + span { animation-delay: 1.2s; }
.calling .ip-avatar span { border-color: #34c759; animation-duration: 1.4s; }
.ip-timer { margin: 14px 0 0; min-height: 1.3em; font-size: 17px; font-variant-numeric: tabular-nums; opacity: .9; }
.ip-quick { margin-top: auto; display: flex; gap: 64px; font-size: 12px; transition: opacity .35s, transform .35s var(--ease); }
.ip-quick span { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .92; }
.ip-quick i { font-style: normal; font-size: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.ip-slider {
  position: relative; width: calc(100% - 32px); height: 66px; margin: 22px 16px 30px; border-radius: 40px;
  background: rgba(255,255,255,.17); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center; overflow: hidden; transition: opacity .35s, transform .35s var(--ease);
}
.ip-slider::before { /* green trail behind the thumb */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(66px + var(--p) * (100% - 66px)); border-radius: inherit;
  background: rgba(52,199,89,.35); opacity: calc(var(--p) * 1.4);
}
.ip-slide-text {
  position: relative; padding-left: 46px; font-size: 21px; font-weight: 400; letter-spacing: .01em;
  background: linear-gradient(90deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.35) 35%, #fff 50%, rgba(255,255,255,.35) 65%, rgba(255,255,255,.35) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slideShine 2.4s linear infinite; opacity: calc(1 - var(--p) * 1.8);
}
@keyframes slideShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.ip-thumb {
  position: absolute; left: 5px; top: 5px; width: 56px; height: 56px; border-radius: 50%; z-index: 1;
  background: #34c759; color: #fff; display: grid; place-items: center; touch-action: none; cursor: grab;
  box-shadow: 0 6px 16px rgba(0,0,0,.3); animation: nudge 3.2s var(--ease) infinite;
}
.ip-thumb svg { width: 26px; height: 26px; fill: currentColor; }
.ip-thumb.back { transition: transform .5s var(--spring); }
.touching .ip-thumb, .calling .ip-thumb { animation: none; cursor: grabbing; }
.ip-thumb:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes nudge { 0%, 70%, 100% { translate: 0 0; } 78% { translate: 16px 0; } 86% { translate: 0 0; } 92% { translate: 8px 0; } }
.ip-end {
  position: absolute; bottom: 42px; left: 50%; width: 70px; height: 70px; border-radius: 50%; translate: -50% 0;
  background: #ff3b30; color: #fff; display: grid; place-items: center; scale: 0; opacity: 0; pointer-events: none;
  transition: scale .5s var(--spring), opacity .3s; box-shadow: 0 10px 24px rgba(255,59,48,.45);
}
.ip-end svg { width: 30px; height: 30px; fill: currentColor; rotate: 135deg; }
.calling .ip-end { scale: 1; opacity: 1; pointer-events: auto; transition-delay: .25s; }
.calling .ip-slider, .calling .ip-quick { opacity: 0; transform: translateY(24px); pointer-events: none; }
.ip-home { position: absolute; bottom: 8px; left: 50%; translate: -50% 0; width: 112px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.85); }
.ip-below { margin: 16px 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ip-below a { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.2vw, 30px); border-bottom: 2px solid; line-height: 1.1; }
.ip-below .copy-btn { margin: 0; }

/* ---------- Mini game ---------- */
kbd { font-family: var(--f-body); font-weight: 800; font-size: .82em; padding: 2px 8px; border-radius: 7px; border: 1.5px solid var(--line); border-bottom-width: 3px; background: var(--card); color: var(--fg); }
.play-coin { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .9em; vertical-align: 1px; }
.game {
  position: relative; height: clamp(270px, 34vw, 400px); border-radius: clamp(20px, 3vw, 34px); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); outline: none; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 24px 24px;
}
.game:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.game-hud { position: absolute; top: 16px; right: 20px; display: flex; gap: 18px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.game-hud b { font-family: var(--f-display); font-size: 18px; color: var(--fg); margin-left: 6px; letter-spacing: -.02em; }
.game-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 20px;
  background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transition: opacity .35s var(--ease);
}
.game.running .game-overlay { opacity: 0; pointer-events: none; }
.go-it { width: 54px; filter: brightness(0); animation: goBob 1.4s var(--ease) infinite; }
[data-theme="dark"] .go-it { filter: none; }
.game.over .go-it { animation: goDizzy 1s var(--ease) infinite; }
@keyframes goBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(6deg); } }
@keyframes goDizzy { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.go-title { margin: 10px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 2.1rem); letter-spacing: -.045em; }
.go-sub { margin: 0 0 14px; color: var(--muted); font-weight: 600; }

/* ---------- Scratch card ---------- */
.scratch { position: relative; margin-top: 30px; min-height: 112px; border-radius: 20px; overflow: hidden; background: var(--card); border: 1.5px dashed var(--line); }
.scratch-under { display: flex; align-items: center; gap: 16px; padding: 20px 24px; min-height: 112px; }
.scratch-emoji { font-size: 40px; flex: none; }
.scratch.done .scratch-emoji { animation: boing .7s var(--spring); }
.scratch-under p { margin: 0; color: var(--muted); }
.scratch-under b { color: var(--fg); }
.scratch-under a { color: var(--fg); font-weight: 800; border-bottom: 2px solid var(--accent); white-space: nowrap; }
.scratch-foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .7s var(--ease); }
.scratch-foil:active { cursor: grabbing; }
.scratch.done .scratch-foil { opacity: 0; pointer-events: none; }

/* ---------- Paint splash button ---------- */
.paint {
  position: fixed; left: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 30px); z-index: 120;
  width: 54px; height: 54px; border-radius: 50%; background: var(--fg); display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); transition: transform .5s var(--spring), opacity .6s;
}
body.intro-on .paint { opacity: 0; pointer-events: none; }
.paint:hover { transform: rotate(-14deg) scale(1.08); }
.paint-can { display: grid; place-items: center; }
.paint-can svg { width: 30px; height: 30px; overflow: visible; }
.pc-body, .pc-drip { fill: var(--accent); transition: fill .3s; }
.pc-rim { fill: var(--bg); }
.pc-handle { stroke: var(--bg); stroke-width: 3; stroke-linecap: round; }
.paint.tip .paint-can { animation: tipCan .6s var(--ease); }
@keyframes tipCan { 0%, 100% { rotate: 0deg; } 35% { rotate: -55deg; } 60% { rotate: 10deg; } }
.paint-hint { position: absolute; left: calc(100% + 10px); top: 50%; translate: 0 -50%; white-space: nowrap; font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--muted); animation: hint 2.4s var(--ease) infinite; pointer-events: none; }
.paint.used .paint-hint { display: none; }
.splash { position: fixed; z-index: 119; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--c); pointer-events: none; animation: splash .75s var(--ease) forwards; }
@keyframes splash { 0% { transform: scale(0); opacity: 1; } 55% { opacity: .9; } 100% { transform: scale(16); opacity: 0; } }
.drop { position: fixed; z-index: 119; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--c); pointer-events: none; animation: dropFly .85s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes dropFly { to { transform: translate(var(--dx), var(--dy)) scale(.25); opacity: 0; } }

/* ---------- Easter egg: raining "it"s ---------- */
.it-rain {
  position: fixed; top: -90px; z-index: 180; width: var(--s); aspect-ratio: 296 / 339; pointer-events: none;
  background: var(--accent);
  -webkit-mask: url("assets/it.png") center / contain no-repeat; mask: url("assets/it.png") center / contain no-repeat;
  filter: drop-shadow(2px 3px 0 var(--fg));
  animation: itFall var(--d) linear forwards;
}
@keyframes itFall { to { transform: translateY(calc(100vh + 180px)) rotate(var(--r)); } }

@media (max-width: 560px) {
  .paint { width: 46px; height: 46px; }
  .paint-can svg { width: 26px; height: 26px; }
  .paint-hint { display: none; }
  .iphone { height: 540px; }
  .ip-quick { gap: 48px; }
}

.scratch { user-select: none; -webkit-user-select: none; }
body.scrolled .paint-hint { opacity: 0; transition: opacity .3s; }
@media (min-width: 900px) { .footer-bottom { padding-left: 64px; } }

/* Phone: four stickers in a neat row under the buttons */
@media (max-width: 900px) {
  .stickers .s1, .stickers .s8 { display: none; }
  .stickers .s5 { top: auto; bottom: 12%; left: 5%; right: auto; }
  .stickers .s2 { top: auto; bottom: 12.5%; right: 5%; left: auto; }
  .stickers .s10 { top: auto; bottom: 3%; right: auto; left: 30%; }
  .stickers .s4 { top: auto; bottom: 3.5%; right: 22%; left: auto; }
}

/* Tighter gap between the game and About; photo aligned to the top and sticky while reading */
.section.play { padding-bottom: clamp(40px, 5vw, 72px); }
.section.about { padding-top: clamp(48px, 5vw, 80px); }
.about-grid { align-items: start; }
@media (min-width: 901px) { .about-visual { position: sticky; top: 110px; } }
