/* Vish Designs — homepage v2: minimal, dark, editorial.
   One near-black ground, warm off-white ink, two quieter inks, hairlines, one pink accent used only on small marks. */

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --ink: #ecebe7;
  --ink-2: #a9a7a1;
  --ink-3: #8a8883;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #ff4d79;

  --sans: "Outfit", "Mont", "Montserrat", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1360px;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
  --gap: clamp(7rem, 12vw, 10rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #050505; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.soft { color: var(--ink-3); }
.acc { color: var(--accent); }

/* ---------- type ---------- */
.label { font-family: var(--mono); font-size: 0.6875rem; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 0.9em; vertical-align: 0.1em; }
.num { color: var(--ink-2); margin-right: 1.2em; }
.h2 { font-size: clamp(2.25rem, 1.3rem + 3vw, 4.25rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }
p { color: var(--ink-2); max-width: 54ch; }
.small { font-size: 0.875rem; }

/* ---------- buttons ---------- */
.btn-pill { display: inline-flex; align-items: center; gap: 0.9rem; height: 3rem; padding: 0 1.4rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 0.9375rem; font-weight: 400; color: var(--ink); background: rgba(255,255,255,0.03); transition: background-color 200ms ease, border-color 200ms ease, transform 140ms var(--ease); }
.btn-pill:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); }
.btn-pill:active { transform: scale(0.97); }
.btn-solid { background: var(--ink); color: #050505; border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #050505; }
.btn-line { display: inline-flex; align-items: center; gap: 0.8rem; padding-bottom: 0.35rem; border-bottom: 1px solid rgba(255,255,255,0.3); font-size: 0.9375rem; font-weight: 400; color: var(--ink); transition: border-color 200ms ease, gap 200ms var(--ease); }
.btn-line:hover { border-color: var(--accent); gap: 1.1rem; }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; top: 1rem; left: 0; right: 0; z-index: 50; padding-inline: var(--pad); pointer-events: none; }
.nav { pointer-events: auto; max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.6rem 0.55rem 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 14, 14, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-name { font-size: 1.0625rem; font-weight: 400; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 2rem; font-size: 0.875rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; gap: 0.8rem; align-items: center; padding: 0.6rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); font-size: 0.875rem; transition: background-color 200ms ease; }
.nav-cta:hover { background: rgba(255,255,255,0.14); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 760px); padding: 6.5rem var(--pad) 5.5rem; display: grid; grid-template-rows: 1fr auto; justify-items: center; overflow: hidden; }
.hero-tl, .hero-tr { position: absolute; top: 6.25rem; z-index: 3; }
.hero-tl { left: var(--pad); }
.hero-tr { right: var(--pad); }
.hero-side { position: absolute; left: var(--pad); top: 34%; z-index: 3; display: grid; gap: 1.4rem; }
.plus { color: var(--accent); font-size: 1.25rem; line-height: 1; }
.hero-portrait { position: absolute; top: 4.5rem; left: 50%; width: min(520px, 40vw); transform: translateX(-50%); z-index: 1; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); mask-image: linear-gradient(to bottom, #000 55%, transparent 92%); }
.hero-portrait img { width: 100%; height: auto; background: none; filter: grayscale(1) contrast(1.12) brightness(1.02); }
.hero-copy { position: relative; z-index: 2; align-self: end; text-align: center; display: grid; justify-items: center; padding-top: clamp(20rem, 38vh, 26rem); }
.hero-kicker { margin-bottom: 0.6rem; color: var(--ink); text-shadow: 0 0 14px #000, 0 0 4px #000; }
.hero-name { font-size: clamp(3.5rem, 10.5vw, 10.5rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.055em; white-space: nowrap; }
.hero-name .soft { color: var(--ink-2); font-weight: 200; }
.reveal-line { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; }
.reveal-line > span { display: inline-block; }
.hero-sub { margin-top: 1.4rem; text-align: center; max-width: 52ch; color: var(--ink-2); }
.hero-actions { margin-top: 2rem; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 1.5rem; display: flex; justify-content: space-between; z-index: 3; }
.tick { display: inline-block; width: 1px; height: 14px; background: var(--ink-3); margin-right: 0.9em; vertical-align: -0.2em; }

/* ---------- layout ---------- */
.stats, .block, .footer { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.block { padding-top: var(--gap); }
.block-head { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); margin-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.split-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; margin-bottom: clamp(3.5rem, 6vw, 5rem); }
.split-head p { justify-self: end; max-width: 34ch; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr) 0.9fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 2rem 1.75rem 2.25rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-text { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--ink-3); }
.stat-link { display: flex; justify-content: space-between; align-items: center; }
.stat-link .arrow { font-size: 1.25rem; transition: transform 250ms var(--ease); }
.stat-link:hover .arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.4) contrast(1.05) brightness(1.05); }
.about-photo figcaption { margin-top: 0.9rem; }
.about-text { display: grid; gap: 1.5rem; justify-items: start; }
.about .h2, .process .h2 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.25rem); }

/* ---------- skills tabs ---------- */
.skills { margin-top: clamp(5rem, 9vw, 8rem); border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); padding: clamp(1.25rem, 2.5vw, 2rem); }
.skills-top { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.skills-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
.skills-visual { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #000; }
.skill-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 500ms var(--ease), transform 900ms var(--ease); }
.skill-img.is-on { opacity: 1; transform: none; }
.skills-side { display: flex; flex-direction: column; gap: 2rem; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.tabs button { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 2px; font-size: 0.875rem; font-weight: 400; color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.tabs button span { font-size: 0.75rem; opacity: 0.6; }
.tabs button:hover { border-color: rgba(255,255,255,0.25); color: var(--ink); }
.tabs button[aria-selected="true"] { background: #e9e2d6; color: #0b0b0b; border-color: #e9e2d6; }
.tab-panel { display: grid; gap: 1rem; }
.tab-panel:not([hidden]) { animation: fade-up 450ms var(--ease); }
.skills-note { margin-top: auto; }

/* ---------- work ---------- */
.feature { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-bottom: clamp(3.5rem, 6vw, 5rem); margin-bottom: clamp(3.5rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.frame { border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.frame-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.75rem; color: var(--ink-3); text-align: center; }
.dots { width: 34px; height: 6px; background: radial-gradient(circle, #3a3a3a 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x; }
.frame-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.frame-media > img, .frame-media > video { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.frame:hover .frame-media > img, .frame:hover .frame-media > video { transform: scale(1.025); }
.frame-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--bg-2); }
.frame-split > img, .frame-split > video { height: 100%; }
.frame-cap { padding: 0.8rem 1rem; border-top: 1px solid var(--line); }
.feature-text { display: grid; gap: 1.1rem; justify-items: start; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.card { display: grid; gap: 1rem; align-content: start; }
.card .frame { margin-bottom: 0.75rem; }
.more { margin-top: clamp(4rem, 7vw, 6rem); }
.more-label { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 15rem 1fr auto; align-items: center; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); transition: padding 300ms var(--ease); }
a.row:hover { padding-left: 0.75rem; }
a.row:hover .arrow { color: var(--accent); transform: translate(4px, -4px); }
.row-title { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.2; }
.row-note { font-size: 0.875rem; color: var(--ink-3); text-align: right; }
.row .arrow { transition: transform 250ms var(--ease), color 200ms ease; }
.tag { display: inline-block; vertical-align: 0.35em; margin-left: 0.6rem; padding: 0.1rem 0.55rem; border: 1px solid rgba(255, 77, 121, 0.45); border-radius: 999px; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.process-left { display: grid; gap: 1.6rem; justify-items: start; }
.accent-label { color: var(--accent); margin-top: 1rem; }
.process-right .accent-label { margin-top: 0; margin-bottom: 1rem; }
.steps { display: grid; gap: 0; width: 100%; max-width: 26rem; border-top: 1px solid var(--line); }
.steps li { display: flex; align-items: center; gap: 1.1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink); }
.step-n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; font-family: var(--mono); font-size: 0.625rem; color: var(--ink-3); }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 0; text-align: left; }
.acc-btn > span:first-child { display: grid; gap: 0.35rem; }
.acc-title { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.acc-icon { position: relative; flex: none; width: 14px; height: 14px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink-2); transition: transform 300ms var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-inner { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.5rem; padding-bottom: 1.75rem; align-items: start; }
.acc-inner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.acc-panel:not([hidden]) .acc-inner { animation: fade-up 450ms var(--ease); }
.tags { margin-top: 0.8rem; font-size: 0.8125rem; color: var(--ink-3); padding-left: 0.9rem; border-left: 1px solid var(--accent); }

/* ---------- proof ---------- */
.big { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; padding-bottom: clamp(3rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.big-num { font-size: clamp(5rem, 13vw, 13.5rem); font-weight: 200; line-height: 0.85; letter-spacing: -0.06em; color: var(--ink); max-width: none; font-variant-numeric: tabular-nums; }
.big-text { display: grid; gap: 1.1rem; justify-items: start; }
.trio { display: grid; grid-template-columns: 1fr 1fr 1.2fr; }
.trio > div { padding: 2.5rem 2rem 0 0; }
.trio > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.trio-num { font-size: clamp(2.75rem, 2rem + 2.4vw, 4.25rem); font-weight: 200; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.trio-title { margin: 0.9rem 0 0.3rem; color: var(--ink); font-weight: 400; }
.quote { margin-top: 1rem; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- workshops strip ---------- */
.strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; scroll-snap-type: x proximity; cursor: grab; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip img { flex: none; width: clamp(150px, 15vw, 220px); min-width: 0; height: auto; aspect-ratio: 2 / 3; object-fit: cover; scroll-snap-align: start; filter: grayscale(0.25) brightness(0.9); transition: filter 300ms ease, transform 400ms var(--ease); user-select: none; -webkit-user-drag: none; }
.strip img:hover { filter: none; transform: translateY(-6px); }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.quotes blockquote { display: grid; gap: 1.5rem; align-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.quotes p { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); }

/* ---------- contact ---------- */
.contact-body { display: grid; justify-items: center; text-align: center; gap: 2.25rem; padding-bottom: clamp(5rem, 9vw, 8rem); }
.contact-title { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.75rem); }
.contact-sub { text-align: center; max-width: 46ch; }

/* ---------- footer ---------- */
.footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; padding-top: 2.5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); }
.footer-name { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem); font-weight: 300; letter-spacing: -0.035em; color: var(--ink); }
.footer-links { display: flex; gap: 1.75rem; align-items: center; font-size: 0.875rem; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- motion ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-line > span { transform: translateY(105%); animation: line-up 1100ms var(--ease-expo) forwards; }
  .js .reveal-line + .reveal-line > span { animation-delay: 120ms; }
  .js .hero-portrait { opacity: 0; animation: portrait-in 1600ms var(--ease) 100ms forwards; }
  .js .hero-sub, .js .hero-actions, .js .hero-kicker, .js .hero-tl, .js .hero-tr, .js .hero-side, .js .hero-foot { opacity: 0; animation: fade-up 900ms var(--ease) forwards; animation-delay: 500ms; }
  .js .hero-actions { animation-delay: 650ms; }
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--ease), transform 1000ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes portrait-in { from { opacity: 0; transform: translateX(-50%) scale(1.04); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .nav-links { gap: 1.25rem; }
  .hero-side { display: none; }
  .hero-portrait { width: min(480px, 58vw); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat-link { display: none; }
  .split-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .split-head p { justify-self: start; }
  .skills-body { grid-template-columns: 1fr; }
  .skills-visual { aspect-ratio: 16 / 11; }
  .feature { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .big { grid-template-columns: 1fr; }
  .row { grid-template-columns: 12rem 1fr auto; }
}

/* ---------- phone ---------- */
@media (max-width: 47.99em) {
  .hide-sm { display: none; }
  .nav { padding-left: 1.1rem; }
  .nav-links { display: none; }
  .hero { padding-top: 5.5rem; padding-bottom: 4.5rem; }
  .hero-tl { top: 5.75rem; }
  .hero-tr { display: none; }
  .hero-portrait { top: 6rem; width: 82vw; }
  .hero-copy { padding-top: 74vw; }
  .hero-name { font-size: 15.5vw; white-space: normal; line-height: 0.92; }
  .h2, .about .h2, .process .h2 { font-size: 8.4vw; }
  .contact-title { font-size: 9.6vw; }
  .hero-name .reveal-line { display: block; }
  .br-wide { display: none; }
  .hero-actions { gap: 1.4rem; flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .about { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; gap: 0.4rem 1rem; }
  .row .label { grid-column: 1 / -1; }
  .row-note { grid-column: 1 / -1; text-align: left; }
  .acc-inner { grid-template-columns: 5.5rem 1fr; gap: 1rem; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio-quote { grid-column: 1 / -1; border-left: 0 !important; padding-left: 0 !important; }
  .quotes { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .footer-legal { flex-direction: column; gap: 0.25rem; }
}

/* ================= v3 additions ================= */
img { background: none; }
.feature.flip .frame { order: 2; }
.feature.flip { grid-template-columns: 1fr 1.45fr; }
.strip-link { margin-top: 2rem; }

/* skills as planets around the core */
.orbit { position: relative; min-height: 640px; display: grid; place-items: center; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.rings ellipse { vector-effect: non-scaling-stroke; }
.core { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 0.9rem; }
.core-word { font-size: clamp(3.25rem, 9.5vw, 9.5rem); font-weight: 200; line-height: 0.92; letter-spacing: -0.055em; }
.core-list { max-width: 46ch; text-align: center; font-size: 0.9375rem; }
.planet { position: absolute; z-index: 3; display: flex; align-items: center; gap: 1rem; max-width: 300px; animation: float 7s ease-in-out infinite; }
.planet h3 { font-size: 1.125rem; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); line-height: 1.3; }
.planet p { font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.orb { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 0 0 6px rgba(255,255,255,0.025), 0 0 40px rgba(255, 77, 121, 0.18); transition: transform 400ms var(--ease); }
.orb img { width: 100%; height: 100%; object-fit: cover; }
.planet:hover .orb { transform: scale(1.12); }
.pl-1 { top: 2%; left: 4%; animation-delay: 0s; }
.pl-2 { top: 6%; right: 2%; animation-delay: -2s; flex-direction: row-reverse; text-align: right; }
.pl-3 { bottom: 4%; left: 1%; animation-delay: -4s; }
.pl-4 { bottom: 2%; right: 5%; animation-delay: -1s; flex-direction: row-reverse; text-align: right; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.orbit-note { text-align: center; margin-top: 2.5rem; }
@media (prefers-reduced-motion: reduce) { .planet { animation: none; } }

/* inner pages */
.page-hero { padding-top: clamp(8rem, 12vw, 10rem); }
.page-title { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5.5rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-lead { margin-bottom: 3.5rem; max-width: 46ch; }
.page-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts > div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.facts p:not(.label) { color: var(--ink); font-size: 0.9375rem; margin-top: 0.25rem; }
.case-hero .frame-media { aspect-ratio: 16 / 9; }
.case-nums { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.case-nums > div { padding: 1.75rem 1rem 0 0; }
.case-nums > div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.case-nums .trio-num { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }
.story { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 2.5rem; }
.story-row { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.story-row p:not(.label) { color: var(--ink); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.6; max-width: 60ch; }
.gal-block + .gal-block { margin-top: clamp(3.5rem, 6vw, 5rem); }
.gal-title { margin-bottom: 1.25rem; color: var(--ink-2); }
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; cursor: zoom-in; overflow: hidden; background: var(--bg-2); }
.gallery img { width: 100%; height: auto; transition: transform 600ms var(--ease); }
.gallery figure:hover img { transform: scale(1.02); }
.next-link { display: grid; gap: 0.75rem; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-title { font-size: clamp(2.25rem, 1.2rem + 4vw, 5rem); font-weight: 200; letter-spacing: -0.05em; line-height: 1; transition: color 200ms ease; }
.next-link:hover .next-title { color: var(--accent); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 3rem 1rem; background: rgba(0,0,0,0.92); cursor: zoom-out; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; color: var(--ink); }

/* work index */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.chip { padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip:hover { color: var(--ink); border-color: rgba(255,255,255,0.25); }
.chip[aria-pressed="true"] { background: #e9e2d6; color: #0b0b0b; border-color: #e9e2d6; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); }
.work-card { display: grid; gap: 0.8rem; align-content: start; }
.work-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-title { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.2; }
.work-card:hover .work-title { color: var(--accent); }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc { display: grid; gap: 1rem; align-content: start; padding: 2.25rem 2rem 2.5rem 0; border-bottom: 1px solid var(--line); }
.svc:not(:nth-child(3n + 1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.svc-list { display: grid; gap: 0.35rem; margin-top: 0.5rem; }
.svc-list li { font-size: 0.875rem; color: var(--ink-2); padding-left: 1rem; position: relative; }
.svc-list li::before { content: "+"; position: absolute; left: 0; color: var(--accent); }
.svc-note { margin-top: 1.25rem; }

/* about */
.about-page { align-items: end; }
.about-cut { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 98%); mask-image: linear-gradient(to bottom, #000 60%, transparent 98%); max-width: 520px; }
.about-cut img { width: 100%; height: auto; filter: grayscale(1) contrast(1.1); }
.timeline { margin-top: clamp(3rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.timeline .h3 { margin-bottom: 0.5rem; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-bottom: clamp(3rem, 5vw, 4rem); }
.tools p:not(.label) { color: var(--ink); margin-top: 0.5rem; }
.about-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; filter: grayscale(0.4) brightness(1.05); }
.about-wide figcaption { margin-top: 0.9rem; }

/* contact */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(5rem, 9vw, 8rem); }
.contact-page .page-title { font-size: clamp(2.25rem, 1.2rem + 3vw, 4rem); }
.contact-links { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.brief { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
.brief label, .brief legend { display: grid; gap: 0.5rem; font-size: 0.8125rem; color: var(--ink-2); }
.brief input:not([type="checkbox"]), .brief select, .brief textarea { width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 4px; background: #070707; color: var(--ink); font: inherit; font-size: 1rem; }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: none; border-color: var(--accent); }
.brief fieldset { border: 0; padding: 0; margin: 0; }
.brief legend { margin-bottom: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-check { display: inline-flex !important; position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; color: var(--ink-2); transition: all 200ms ease; }
.chip-check input:checked + span { background: #e9e2d6; color: #0b0b0b; border-color: #e9e2d6; }
.chip-check input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.brief button { justify-self: start; }

@media (max-width: 64em) {
  .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .frame { order: 0; }
  .orbit { min-height: 0; display: grid; gap: 1.75rem; place-items: stretch; }
  .rings { display: none; }
  .core { margin-bottom: 1.5rem; }
  .planet { position: static; animation: none; max-width: none; flex-direction: row !important; text-align: left !important; }
  .page-intro { grid-template-columns: 1fr; }
  .case-nums { grid-template-columns: repeat(3, 1fr); }
  .case-nums > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .svc:nth-child(2n) { padding-left: 2rem; border-left: 1px solid var(--line); }
  .tools { grid-template-columns: 1fr 1fr; }
  .contact-page { grid-template-columns: 1fr; }
}
@media (max-width: 47.99em) {
  .core-word { font-size: 14vw; }
  .story-row, .timeline li { grid-template-columns: 1fr; gap: 0.75rem; }
  .case-nums { grid-template-columns: 1fr 1fr; }
  .case-nums > div { border-left: 0 !important; padding-left: 0 !important; }
  .facts { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc:nth-child(2n) { padding-left: 0; border-left: 0; }
  .tools { grid-template-columns: 1fr; }
  .page-title { font-size: 8vw; }
  .contact-title { font-size: 8vw; }
}

/* ================= v4: Galgo + Mount, dotted portrait, reel ================= */
@font-face { font-family: "Galgo"; src: url("assets/fonts/Galgo.otf") format("opentype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Mount"; src: url("assets/fonts/Mount.otf") format("opentype"); font-weight: 100 900; font-display: swap; }
:root { --sans: "Mount", system-ui, sans-serif; --mono: "Mount", system-ui, sans-serif; --display: "Galgo", "Mount", sans-serif; }
body { font-weight: 400; font-synthesis: none; }
.label { letter-spacing: 0.16em; }
.h2, .h3, .hero-name, .core-word, .big-num, .trio-num, .stat-num, .next-title, .page-title, .contact-title, .footer-name, .row-title, .work-title {
  font-family: var(--display); font-weight: 500; letter-spacing: 0; }
.h2 { font-size: clamp(3rem, 1.6rem + 4.4vw, 6.5rem); line-height: 0.95; }
.about .h2, .process .h2 { font-size: clamp(2.75rem, 1.6rem + 3.2vw, 5rem); }
.h3 { font-size: clamp(2.1rem, 1.6rem + 1.4vw, 3.1rem); line-height: 1; }
.hero-name { font-size: clamp(5.5rem, 16vw, 16rem); line-height: 0.86; letter-spacing: -0.005em; }
.hero-name .soft { font-weight: 500; }
.core-word { font-size: clamp(4.5rem, 14vw, 14rem); line-height: 0.88; }
.big-num { font-size: clamp(7rem, 19vw, 19rem); line-height: 0.82; }
.trio-num { font-size: clamp(3.75rem, 2.6rem + 3vw, 5.75rem); }
.case-nums .trio-num { font-size: clamp(2.75rem, 2rem + 2vw, 4rem); }
.page-title, .contact-title { font-size: clamp(3.5rem, 1.6rem + 6vw, 8rem); line-height: 0.92; }
.contact-page .page-title { font-size: clamp(3rem, 1.6rem + 4.4vw, 6rem); }
.next-title { font-size: clamp(3.25rem, 1.6rem + 5.5vw, 7rem); }
.footer-name { font-size: clamp(2.75rem, 2rem + 2vw, 4.25rem); }
.row-title { font-size: clamp(2rem, 1.5rem + 1.4vw, 3rem); }
.work-title { font-size: clamp(2rem, 1.6rem + 1vw, 2.75rem); }
.lead { font-size: 1.125rem; }

/* dotted portrait */
.hero-portrait.dotfield { top: 4rem; width: min(600px, 44vw); aspect-ratio: 1494 / 1684; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
.dotfield canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dotfield picture { display: block; }
.dotfield .dots-fallback { width: 100%; height: auto; filter: none; transition: opacity 600ms ease; }
.dotfield.is-live .dots-fallback { opacity: 0; }
.about-cut img { filter: none; }

/* full reel on case pages */
.reel { margin-top: 3rem; max-width: 420px; }
.reel video { width: 100%; aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--line); border-radius: 6px; }
.reel figcaption { margin-top: 0.9rem; }

@media (max-width: 64em) { .hero-portrait.dotfield { width: min(560px, 64vw); } }
@media (max-width: 47.99em) {
  .hero-portrait.dotfield { width: 88vw; top: 5.5rem; }
  .hero-name { font-size: 24vw; }
  .h2, .about .h2, .process .h2 { font-size: 12vw; }
  .core-word { font-size: 20vw; }
  .page-title, .contact-title, .contact-page .page-title { font-size: 13vw; }
  .big-num { font-size: 26vw; }
}

/* posters shown whole, never cropped */
.frame-media > img.fit { object-fit: contain; background: #000; }
.send-via { margin-top: 0.1rem; }
.chip-check input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.frame-split { grid-template-rows: minmax(0, 1fr); }
.frame-split > img, .frame-split > video { min-height: 0; height: 100%; }

/* ================= v5: cinematic backlight, softer dot fade, cursor glow ================= */
.hero-portrait.dotfield { -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 90%); mask-image: linear-gradient(to bottom, #000 52%, transparent 90%); }
.hero-glow { position: absolute; z-index: 0; top: 3rem; left: 50%; width: min(820px, 64vw); aspect-ratio: 1.1; transform: translateX(-46%); pointer-events: none;
  background:
    radial-gradient(closest-side at 58% 40%, rgba(255, 77, 121, 0.34), rgba(255, 77, 121, 0.10) 55%, transparent 75%),
    radial-gradient(closest-side at 36% 62%, rgba(140, 60, 255, 0.10), transparent 70%);
  filter: blur(28px); animation: backlight 7s ease-in-out infinite; }
@keyframes backlight { 0%, 100% { opacity: 0.85; transform: translateX(-46%) scale(1); } 50% { opacity: 1; transform: translateX(-46%) scale(1.06); } }
.hero-kicker { text-shadow: 0 0 18px #000, 0 0 6px #000, 0 0 2px #000; }

.cursor-glow, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 300ms ease, width 250ms var(--ease), height 250ms var(--ease), margin 250ms var(--ease); }
.cursor-glow { width: 420px; height: 420px; margin: -210px 0 0 -210px; background: radial-gradient(closest-side, rgba(255, 77, 121, 0.16), rgba(255, 77, 121, 0.05) 50%, transparent 72%); mix-blend-mode: screen; }
.cursor-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--accent); box-shadow: 0 0 12px 3px rgba(255, 77, 121, 0.7), 0 0 30px 8px rgba(255, 77, 121, 0.35); }
.cursor-on .cursor-glow, .cursor-on .cursor-dot { opacity: 1; }
.cursor-hover .cursor-dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(255, 77, 121, 0.18); border: 1px solid rgba(255, 77, 121, 0.8); }
@media (hover: none), (pointer: coarse) { .cursor-glow, .cursor-dot { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }
@media (max-width: 47.99em) { .hero-glow { width: 120vw; top: 4rem; } }

/* ================= v6: designs are never cropped ================= */
.frame-split, .case-hero .frame-media { display: flex; justify-content: center; align-items: stretch; gap: 2px; aspect-ratio: auto; height: clamp(300px, 36vw, 560px); background: #000; grid-template-columns: none; }
.case-hero .frame-media { height: clamp(320px, 44vw, 660px); }
.frame-split > img, .frame-split > video, .case-hero .frame-media > * { flex: 0 1 auto; min-width: 0; width: auto; max-width: calc(50% - 1px); height: 100%; object-fit: contain; background: #000; }
.frame:hover .frame-media > img, .frame:hover .frame-media > video { transform: none; }
.work-media { aspect-ratio: 4 / 5; background: #0a0a0a; }
.work-media img { object-fit: contain; }
.acc-inner img { aspect-ratio: auto; height: auto; object-fit: contain; }
.strip img { width: auto; height: clamp(230px, 24vw, 340px); aspect-ratio: auto; flex: none; }
.orb img { object-fit: contain; background: #000; }

/* carousel slides, in order, swipe sideways */
.carousel-row { columns: auto; display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; scroll-snap-type: x proximity; }
.carousel-row figure { flex: none; margin: 0; scroll-snap-align: start; }
.carousel-row img { height: clamp(300px, 34vw, 480px); width: auto; }

/* stories inside a phone */
.phones { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.phone { margin: 0; padding: 9px; border-radius: 32px; background: linear-gradient(160deg, #222, #0c0c0c); border: 1px solid #2c2c2c; box-shadow: inset 0 0 0 1px #000, 0 30px 60px -32px rgba(255, 77, 121, 0.35); position: relative; cursor: zoom-in; }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 30%; height: 14px; margin-left: -15%; border-radius: 10px; background: #000; z-index: 2; }
.phone-screen { display: block; border-radius: 24px; overflow: hidden; background: #000; }
.phone-screen img { width: 100%; height: auto; display: block; }
.gallery .phone:hover img { transform: none; }

.reels { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 3rem; }
.reels .reel { margin-top: 0; flex: 0 1 340px; }

@media (max-width: 47.99em) {
  .frame-split, .case-hero .frame-media { height: 92vw; }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .carousel-row img { height: 62vw; }
}

/* ================= v7: motion everywhere ================= */
/* reels row */
.reels { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; scroll-snap-type: x proximity; }
.reels .reel { flex: 0 0 clamp(220px, 22vw, 300px); scroll-snap-align: start; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, rgba(255,77,121,0.2), var(--accent)); pointer-events: none; }

/* ticker */
.marquee { overflow: hidden; margin-top: var(--gap); padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; gap: 2.2rem; align-items: center; animation: marquee 38s linear infinite; will-change: transform; }
.marquee span { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 1.6rem + 3vw, 4.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 231, 0.42); }
.marquee span:nth-of-type(3n + 1) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--accent); font-size: 1.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* section lines draw in */
.block-head { border-top-color: transparent; position: relative; }
.block-head::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform-origin: 0 50%; transform: scaleX(1); }
.js .block-head::before { transform: scaleX(0); transition: transform 1400ms var(--ease-expo); }
.js .block-head.is-in::before { transform: scaleX(1); }

/* headlines rise word by word */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wd > span { display: inline-block; }
.js .split .wd > span { transform: translateY(105%); transition: transform 900ms var(--ease-expo); transition-delay: calc(var(--w, 0) * 45ms); }
.js .split.is-in .wd > span { transform: none; }
.js .split[data-reveal] { opacity: 1; transform: none; }

/* things that arrive one by one */
.js .stagger { opacity: 0; transform: translateY(36px) scale(0.98); transition: opacity 700ms var(--ease), transform 1000ms var(--ease-expo); transition-delay: calc(var(--s, 0) * 70ms); }
.js .stagger.is-in { opacity: 1; transform: none; }

/* scroll drift and tilt: whole cards move, the design inside is never cropped */
[data-drift] { transform: translate3d(0, var(--dy, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 500ms var(--ease); will-change: transform; }
.gallery figure { transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.gallery figure:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(255, 77, 121, 0.35); }
.gallery figure:hover img { transform: none; }
.work-card:hover .work-media img { transform: none; }
.work-media { transition: transform 600ms var(--ease), box-shadow 600ms var(--ease); }
.work-card:hover .work-media { box-shadow: 0 30px 60px -30px rgba(255, 77, 121, 0.4); }
.strip img:hover { transform: translateY(-8px) scale(1.03); }

/* magnetic buttons */
.magnet { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform 350ms var(--ease); }

/* living accents */
.dot { animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 121, 0); } 50% { box-shadow: 0 0 0 5px rgba(255, 77, 121, 0.18); } }
.arrow, .btn-line span[aria-hidden], .btn-pill span[aria-hidden] { display: inline-block; transition: transform 300ms var(--ease); }
a:hover .arrow, .btn-line:hover span[aria-hidden], .btn-pill:hover span[aria-hidden] { transform: translate(3px, -3px); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .dot { animation: none; }
  [data-drift], .magnet { transform: none !important; transition: none; }
  .js .split .wd > span, .js .stagger { transform: none; opacity: 1; transition: none; }
  .js .block-head::before { transform: scaleX(1); }
}

/* the dot portrait may fly past its box while scrolling */
.hero-portrait.dotfield canvas { overflow: visible; }

/* the fade lives on the dots now, so the box itself doesn't clip them */
.hero-portrait.dotfield { -webkit-mask-image: none; mask-image: none; }
.hero-portrait.dotfield canvas { inset: auto; }
.hero-portrait.dotfield .dots-fallback { -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 90%); mask-image: linear-gradient(to bottom, #000 52%, transparent 90%); }

/* page-wide dust, behind everything */
.dust { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* ticker: Graphic design is always the lit word */
.marquee span { color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 231, 0.38); }
.marquee span:nth-of-type(3n + 1) { color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 231, 0.38); }
.marquee span.hl { color: var(--ink); -webkit-text-stroke: 0; text-shadow: 0 0 28px rgba(255, 77, 121, 0.55), 0 0 2px rgba(255, 77, 121, 0.4); }

/* about: skills with icons */
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem); margin-top: clamp(3rem, 5vw, 4rem); }
.skill-group { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.skill-group .label { margin-bottom: 1.2rem; }
.skill-list { display: grid; gap: 0.9rem; }
.skill-list li { display: flex; align-items: center; gap: 0.9rem; color: var(--ink); font-size: 1rem; }
.skill-list img { width: 34px; height: 34px; flex: none; opacity: 0.92; transition: transform 300ms var(--ease), filter 300ms ease; }
.skill-list li:hover img { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 8px rgba(255, 77, 121, 0.6)); }
@media (max-width: 64em) { .skill-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 47.99em) { .skill-groups { grid-template-columns: 1fr; } }

/* ================= v8 ================= */
/* one wide design fills the frame */
.frame-split.single, .case-hero .frame-media.single { height: auto; display: block; }
.frame-split.single > *, .case-hero .frame-media.single > * { display: block; width: 100%; max-width: 100%; height: auto; }

/* gallery rows: small thumbnails, scroll sideways (the mouse wheel works too) */
.thumb-row { columns: auto; display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.4rem 0 1rem; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.thumb-row figure { flex: none; margin: 0; scroll-snap-align: start; border-radius: 3px; }
.thumb-row img { height: clamp(170px, 15vw, 220px); width: auto; display: block; }
.gal-block { position: relative; }
.gal-block:has(.thumb-row)::after, .gal-block:has(.carousel-row)::after { content: ""; position: absolute; right: 0; bottom: 1rem; width: 80px; height: calc(100% - 2.6rem); background: linear-gradient(90deg, transparent, var(--bg)); pointer-events: none; }
.gal-block + .gal-block { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* Instagram post mockups */
.mock-row { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: clamp(3.5rem, 6vw, 5rem); }
.ig { margin: 0; flex: 0 1 330px; }
.ig-phone { padding: 12px 10px 14px; border-radius: 34px; background: #0e0e0e; border: 1px solid #2a2a2a; box-shadow: 0 40px 80px -40px rgba(255, 77, 121, 0.35), inset 0 0 0 1px #000; }
.ig-top { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.4rem 0.6rem; font-size: 0.8125rem; color: var(--ink); }
.ig-av { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#ff4d79, #f7b733, #ff4d79); box-shadow: inset 0 0 0 2px #0e0e0e, inset 0 0 0 4px #333; }
.ig-handle { font-weight: 500; }
.ig-more { margin-left: auto; color: var(--ink-3); letter-spacing: 0.1em; }
.ig-media { position: relative; overflow: hidden; aspect-ratio: var(--ar); background: #000; border-radius: 4px; }
.ig-track { display: flex; height: 100%; transition: transform 700ms var(--ease-expo); }
.ig-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; }
.ig-count { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,0.65); font-size: 0.6875rem; color: #fff; }
.ig-actions { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 0.4rem 0.3rem; }
.ig-actions svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.ig-actions svg:last-child { margin-left: auto; }
.ig-dots { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.ig-actions { position: relative; }
.ig-dots i { width: 5px; height: 5px; border-radius: 50%; background: #555; transition: background 300ms; }
.ig-dots i.on { background: #4aa3ff; }
.ig-cap { padding: 0.2rem 0.4rem 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); max-width: none; }
.ig-cap b { color: var(--ink); font-weight: 500; }
.ig { cursor: pointer; }

/* skills orbit: planets travel the ring as you scroll; the core glows */
.orbit-glow { position: absolute; inset: 15% 25%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 77, 121, 0.16), transparent 70%); filter: blur(30px); animation: orbit-glow 12s ease-in-out infinite; pointer-events: none; }
@keyframes orbit-glow { 0%, 100% { transform: translate(-14%, -6%) scale(1); } 50% { transform: translate(14%, 8%) scale(1.15); } }
.rings ellipse { stroke-dasharray: 2 10; animation: ring-turn 40s linear infinite; }
.rings ellipse + ellipse { animation-duration: 28s; animation-direction: reverse; }
@keyframes ring-turn { to { stroke-dashoffset: -480; } }
.core-word { background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 38%, #ff8fab 48%, #fff 52%, var(--ink) 62%, var(--ink) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255, 77, 121, 0.28)); }
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: -40% 0; } }
.orbit.is-live .planet { left: 0; top: 0; right: auto; bottom: auto; animation: none; flex-direction: column !important; text-align: center !important; width: 230px; max-width: none; gap: 0.7rem; transition: opacity 300ms; will-change: transform; }
.orbit.is-live .planet p { font-size: 0.8125rem; }

/* funnel accordion: panels slide open */
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 700ms var(--ease-expo); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > .acc-inner { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 500ms ease, transform 700ms var(--ease-expo), padding 700ms var(--ease-expo); padding-bottom: 0; }
.acc-item.is-open .acc-inner { opacity: 1; transform: none; padding-bottom: 1.75rem; }
.acc-panel:not([hidden]) .acc-inner { animation: none; }
.acc-btn { transition: padding 300ms var(--ease); }
.acc-btn:hover { padding-left: 0.5rem; }
.acc-item.is-open .acc-title { color: var(--ink); }
.acc-item:not(.is-open) .acc-title { color: var(--ink-2); }
.acc-icon { border-radius: 50%; }
.acc.attn .acc-item:not(.is-open) .acc-icon { animation: plus-pulse 1.8s ease-out infinite; }
.acc.attn .acc-item:nth-child(3) .acc-icon { animation-delay: 0.3s; }
.acc.attn .acc-item:nth-child(4) .acc-icon { animation-delay: 0.6s; }
@keyframes plus-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 121, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(255, 77, 121, 0); } }
.acc-icon::before, .acc-icon::after { background: var(--accent); }

@media (max-width: 64em) {
  .orbit-glow { inset: 0; }
}
@media (max-width: 47.99em) {
  .ig { flex-basis: 100%; }
  .thumb-row img { height: 44vw; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-glow, .rings ellipse, .core-word, .acc.attn .acc-icon { animation: none !important; }
}

/* carousel rows: compact, like the thumbnail rows */
.carousel-row { gap: 0.6rem; padding-bottom: 0.9rem; overscroll-behavior-x: contain; }
.carousel-row img { height: clamp(190px, 17vw, 250px); width: auto; }
.carousel-row figure { border-radius: 3px; }
@media (max-width: 47.99em) { .carousel-row img { height: 48vw; } }

/* ================= v9 ================= */
/* enlarged view: always fits the screen, with previous / next */
.lightbox { padding: clamp(3.5rem, 7vh, 5rem) clamp(3.5rem, 6vw, 6rem); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 2 * clamp(3.5rem, 7vh, 5rem)); width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); animation: lb-in 380ms var(--ease-expo); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; background: rgba(255, 255, 255, 0.06); }
.lightbox .lb-nav:hover { background: rgba(255, 77, 121, 0.25); border-color: var(--accent); }
.lightbox .lb-prev { left: 1rem; }
.lightbox .lb-next { right: 1rem; }
.lightbox .lb-count { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-3); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; padding: 0.6rem 1rem; border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.lightbox .lb-nav { padding: 0; }

/* Google display ads at their real proportions */
.ad-wall { columns: auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.25rem; }
.ad-wall figure { margin: 0; flex: none; width: calc(var(--w) * 0.42px); max-width: 100%; }
.ad-wall img { width: 100%; height: auto; display: block; }
@media (max-width: 47.99em) { .ad-wall figure { width: calc(var(--w) * 0.3px); } }

/* one wide picture, full width (mockups) */
.wide-row { columns: auto; display: block; }
.wide-row figure { margin: 0; max-width: 1100px; }
.wide-row img { width: 100%; height: auto; display: block; }

/* ================= design at work: phone + floating posts on a brand backdrop ================= */
.showcase { position: relative; margin-top: clamp(2rem, 4vw, 3rem); height: clamp(520px, 52vw, 680px); border-radius: 8px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 35% 30%, var(--c1), var(--c2) 75%); perspective: 1400px; }
.showcase::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(0,0,0,0.35)); pointer-events: none; z-index: 0; }
.sc-light { position: absolute; width: 60%; aspect-ratio: 1; left: 8%; top: -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,0.22), transparent); filter: blur(20px); animation: sc-light 10s ease-in-out infinite; z-index: 0; }
@keyframes sc-light { 50% { transform: translate(18%, 10%) scale(1.1); } }

/* the phone */
.sc-phone { position: absolute; z-index: 3; left: 18%; top: 50%; width: clamp(220px, 21vw, 290px); aspect-ratio: 9 / 19.3; transform: translate(-0%, -50%) rotate(-6deg) translate3d(var(--px, 0px), var(--py, 0px), 0);
  border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #e9e9ee, #8d8f96 30%, #2a2b30 60%, #c9cad0); box-shadow: 0 50px 90px -30px rgba(0,0,0,0.75), 0 20px 40px -20px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.4);
  animation: sc-float 6s ease-in-out infinite; transition: transform 400ms var(--ease); }
@keyframes sc-float { 50% { margin-top: -12px; } }
.sc-island { position: absolute; z-index: 4; top: 18px; left: 50%; width: 31%; height: 22px; margin-left: -15.5%; border-radius: 20px; background: #000; }
.sc-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #fff; color: #111; display: flex; flex-direction: column; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.sc-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 2px; font-size: 11px; font-weight: 600; }
.sc-bat { width: 20px; height: 9px; border: 1.5px solid #111; border-radius: 3px; position: relative; }
.sc-bat::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: #111; border-radius: 1px; }
.sc-appbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 6px; }
.sc-logo { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 22px; margin-right: auto; letter-spacing: 0.01em; }
.showcase svg { width: 20px; height: 20px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sc-post-head { display: flex; align-items: center; gap: 7px; padding: 6px 10px; font-size: 11px; }
.sc-av { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#f9ce34, #ee2a7b, #6228d7, #f9ce34); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--c1); }
.showcase .sc-tick { width: 12px; height: 12px; fill: #3897f0; stroke: none; }
.showcase .sc-tick .sc-tick-mark { fill: none; stroke: #fff; stroke-width: 2.4; }
.sc-dots { margin-left: auto; letter-spacing: 1px; }
.sc-media { position: relative; aspect-ratio: var(--ar); background: #0b0b0b; overflow: hidden; }
.sc-media img, .sc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 700ms ease; }
.sc-media img.on, .sc-media video { opacity: 1; }
.sc-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); opacity: 0; }
.showcase .sc-pop svg { width: 70px; height: 70px; fill: #fff; stroke: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.sc-pop.go { animation: sc-pop 900ms var(--ease-expo); }
@keyframes sc-pop { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 60% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.sc-actions { display: flex; gap: 12px; padding: 8px 10px 2px; }
.sc-actions .sc-save { margin-left: auto; }
.showcase .sc-like.liked { fill: #ff3040; stroke: #ff3040; animation: sc-beat 500ms var(--ease); }
@keyframes sc-beat { 40% { transform: scale(1.3); } }
.sc-likes { padding: 2px 10px; font-size: 11px; font-weight: 700; max-width: none; color: #111; font-variant-numeric: tabular-nums; }
.sc-cap { padding: 1px 10px; font-size: 11px; line-height: 1.35; color: #111; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-time { padding: 2px 10px; font-size: 9px; color: #8e8e8e; }
.sc-nav { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 10px 6px 18px; border-top: 1px solid #efefef; }
.sc-me { width: 20px; height: 20px; border-radius: 50%; background: var(--c1); }

/* the floating posts */
.sc-cards { position: absolute; inset: 0; z-index: 2; }
.sc-card { position: absolute; margin: 0; width: clamp(150px, 15vw, 210px); aspect-ratio: var(--ar); border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 40px 70px -25px rgba(0,0,0,0.7), 0 10px 25px -10px rgba(0,0,0,0.5);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--r, 0deg)); animation: sc-card 7s ease-in-out infinite; transition: transform 500ms var(--ease); }
.sc-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes sc-card { 50% { margin-top: -14px; } }
.sc-card.c1 { left: 44%; top: 9%; --r: -4deg; animation-delay: -1s; }
.sc-card.c2 { left: 60%; top: 20%; --r: 5deg; animation-delay: -3s; z-index: 2; }
.sc-card.c3 { left: 47%; top: 46%; --r: 3deg; animation-delay: -2s; z-index: 3; }
.sc-card.c4 { left: 72%; top: 50%; --r: -6deg; animation-delay: -4.5s; }
.sc-card[style*="--ar:1500/"], .sc-card[style*="--ar:1920/"], .sc-card[style*="--ar:2400/"], .sc-card[style*="--ar:1800/"] { width: clamp(220px, 22vw, 300px); }
.showcase:hover .sc-card.c1 { --r: -8deg; }
.showcase:hover .sc-card.c2 { --r: 9deg; }
.showcase:hover .sc-card.c4 { --r: -10deg; }

@media (max-width: 47.99em) {
  .showcase { height: 480px; }
  .sc-phone { left: 6%; width: 190px; }
  .sc-card { width: 118px; }
  .sc-card.c1 { left: 52%; top: 6%; }
  .sc-card.c2 { left: 64%; top: 30%; }
  .sc-card.c3 { left: 50%; top: 56%; }
  .sc-card.c4 { display: none; }
  .sc-card[style*="--ar:1500/"], .sc-card[style*="--ar:1920/"], .sc-card[style*="--ar:2400/"], .sc-card[style*="--ar:1800/"] { width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .sc-phone, .sc-card, .sc-light { animation: none; } }
@media (max-width: 47.99em) {
  .showcase { height: 430px; }
  .sc-phone { width: 165px; left: 5%; border-radius: 34px; padding: 7px; }
  .sc-screen { border-radius: 28px; }
  .sc-island { top: 13px; height: 16px; }
  .sc-card { width: 130px; }
  .sc-card.c1 { left: 50%; top: 7%; }
  .sc-card.c2 { left: 60%; top: 34%; }
  .sc-card.c3 { left: 47%; top: 60%; }
}

/* the third "quote" is a result, set in the display face */
.quote-proof .proof-num { display: block; font-family: var(--display); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 0.95; color: var(--ink); margin-bottom: 0.4rem; }
.quotes blockquote { position: relative; }
.quotes blockquote:not(.quote-proof)::before { content: "\201C"; position: absolute; top: 0.6rem; right: 0; font-family: var(--display); font-size: 4rem; line-height: 1; color: var(--accent); opacity: 0.5; }

/* Reels page */
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.reel-card { margin: 0; }
.reel-card[hidden] { display: none; }
.reel-card video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--line); border-radius: 10px; transition: border-color 250ms ease, transform 400ms cubic-bezier(.2,.7,.2,1); }
.reel-card:hover video { border-color: var(--accent); transform: translateY(-4px); }
.reel-card figcaption { display: grid; gap: 0.35rem; margin-top: 0.9rem; }
.reel-title { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 0.6vw, 1.75rem); line-height: 1.05; }
.reels-more { margin-top: 1.75rem; }
@media (max-width: 560px) { .reel-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } .reel-title { font-size: 1.25rem; } }
