/* ==========================================================================
   svenvfx — Creator Awards Gallery
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #eceef1;
  --ink: #111215;
  --ink-2: #50535c;
  --ink-3: #5b5e68;
  --line: rgba(17, 18, 21, 0.09);
  --line-strong: rgba(17, 18, 21, 0.16);

  /* YouTube crimson — calibrated to >= 5.2:1 contrast against white */
  --red: #d6131e;
  --red-hover: #b80f19;

  /* Reserved for top milestone plaque transformation */
  --gold-hi: #f7ebc4;
  --gold-mid: #dec070;
  --gold-lo: #caa145;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-ambient: 0 2px 10px rgba(17, 18, 21, 0.04), 0 18px 40px -16px rgba(17, 18, 21, 0.09);
  --shadow-hover: 0 6px 18px rgba(17, 18, 21, 0.07), 0 24px 48px -18px rgba(17, 18, 21, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: min(1160px, 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scrollbar-color: rgba(17, 18, 21, 0.22) transparent;
  scrollbar-width: thin;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  caret-color: var(--red);
  overflow-x: clip;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(17, 18, 21, 0.2);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(17, 18, 21, 0.36); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Skip link */
.skip {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 16px; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 64px;
  padding-inline: 24px;
  background: rgba(246, 246, 247, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.28s ease, background-color 0.28s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
}

.nav__inner {
  width: var(--wrap);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.wordmark span {
  font-weight: 400;
  color: var(--ink-2);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}

@media (min-width: 760px) {
  .nav__links { display: flex; }
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.btn--sm {
  min-height: 36px;
  padding: 0 15px;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn--red {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(17, 18, 21, 0.14), 0 10px 24px -10px rgba(17, 18, 21, 0.22);
}
.btn--red:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 18, 21, 0.18), 0 14px 28px -10px rgba(17, 18, 21, 0.28);
}
.btn--red:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(17, 18, 21, 0.04);
}
.btn--ghost:hover {
  border-color: rgba(17, 18, 21, 0.32);
  background: #ffffff;
  transform: translateY(-1px);
}
.btn--ghost:active { transform: translateY(0); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.actions--center { justify-content: center; }

.link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.link:hover { text-decoration-color: var(--ink); }

/* ==========================================================================
   Typography
   ========================================================================== */

.display {
  margin: 0;
  font-size: clamp(2.35rem, 4.7vw, 4.15rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.display--cta {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  text-align: center;
}

.h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lede {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ==========================================================================
   Stage — Hero + Scroll-Pinned Plaque Gallery
   ========================================================================== */

.stage {
  position: relative;
  background:
    radial-gradient(1200px 640px at 78% 28%, #ffffff 0%, rgba(255, 255, 255, 0) 68%),
    var(--bg);
}

.stage__sticky {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 84px 24px 0;
}

.stage__grid {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.stage__copy {
  display: contents;
}

.step[data-step="0"] {
  order: 1;
}

.stage__object {
  position: relative;
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1400px;
}

.stage__object::before {
  content: '';
  position: absolute;
  width: min(112%, 460px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -52%, 0) scale(calc(0.9 + var(--gold, 0) * 0.12));
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(222, 192, 112, 0.28) 0%,
    rgba(247, 235, 196, 0.14) 44%,
    rgba(202, 161, 69, 0) 70%
  );
  opacity: calc(var(--gold, 0) * 0.88);
  pointer-events: none;
  z-index: 0;
}

.strip {
  order: 3;
}

.step[data-step="1"] { order: 4; }
.step[data-step="2"] { order: 5; }
.step[data-step="3"] { order: 6; }
.step[data-step="4"] { order: 7; }

.step__num {
  margin: 0;
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.036em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}

.step__text {
  margin: 12px 0 0;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--ink-2);
}

/* Mobile stack for milestones 1-4 below the client strip */
@media (max-width: 959px) {
  .stage__sticky {
    padding-bottom: 36px;
    gap: 22px;
  }

  .stage__grid {
    display: contents;
  }

  .stage__sticky > .strip,
  .stage__object,
  .step {
    width: var(--wrap);
    margin-inline: auto;
  }

  .strip {
    margin-top: 2px;
  }

  .step[data-step="1"],
  .step[data-step="2"],
  .step[data-step="3"],
  .step[data-step="4"] {
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }
  .step[data-step="4"] {
    border-bottom: 1px solid var(--line);
  }
  .step[data-step="4"] .actions {
    display: none;
  }

  .stage .ticks,
  .stage .scrollhint {
    display: none;
  }
}

/* Desktop scroll-pinned gallery stage */
@media (min-width: 960px) {
  .stage {
    height: 270vh;
  }

  .stage__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 540px;
    padding: 76px 24px 18px;
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 14px;
  }

  .stage__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }

  .stage__copy {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    order: 0;
  }

  .stage__object {
    order: 0;
  }

  .strip {
    order: 0;
  }

  .step {
    grid-area: 1 / 1;
    order: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 16px, 0);
  }

  .step.is-leaving {
    transition:
      opacity 0.44s var(--ease-out),
      transform 0.56s var(--ease-out),
      visibility 0.44s;
  }

  .step.is-passed {
    transform: translate3d(0, -14px, 0);
  }

  .step.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 0.44s var(--ease-out),
      transform 0.56s var(--ease-out),
      visibility 0.44s;
  }

  .step__num {
    font-size: clamp(2.4rem, 4.1vw, 3.65rem);
  }

  .step__text {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    margin-top: 16px;
  }

  /* Milestone rail ticks */
  .ticks {
    grid-area: 2 / 1;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
  }

  .ticks button {
    display: block;
    width: 24px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
    cursor: pointer;
    position: relative;
    transition:
      width 0.36s var(--ease-out),
      background-color 0.28s ease;
  }

  /* Invisible 36px touch target around the 4px rail */
  .ticks button::after {
    content: '';
    position: absolute;
    inset: -14px -4px;
  }

  .ticks button:hover {
    background: rgba(17, 18, 21, 0.38);
  }

  .ticks button.is-active {
    width: 44px;
    background: var(--ink);
  }
}

/* Compact desktop height adjustment for short landscape screens */
@media (min-width: 960px) and (max-height: 700px) {
  .stage__sticky {
    padding: 64px 24px 12px;
    gap: 10px;
  }
  .plaque {
    width: min(100%, 336px);
  }
  .ticks {
    margin-top: 16px;
  }
}

/* ==========================================================================
   Silver / Gold Play Button Plaque — Physical Raster Hardware + Live Readout
   ========================================================================== */

.plaque {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --scale: 1;
  --sheen-x: -16%;
  --sheen-y: -16%;
  --gold: 0;
  --sweep: -8%;
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  aspect-ratio: 717 / 789;
  user-select: none;
  transform:
    translate3d(0, var(--lift), 0)
    rotateX(var(--rx))
    rotateY(var(--ry))
    scale(var(--scale));
  transform-style: preserve-3d;
  filter: drop-shadow(
    0 18px 34px color-mix(in srgb, rgba(168, 126, 36, 0.22) calc(var(--gold, 0) * 100%), rgba(17, 18, 21, 0.14))
  );
}

.plaque__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  display: block;
}

.plaque__plate--silver {
  z-index: 0;
}

.plaque__plate--gold {
  z-index: 1;
  opacity: 0;
  will-change: opacity;
}

.plaque.is-plating .plaque__plate--gold {
  opacity: 1;
  -webkit-mask-image: linear-gradient(
    98deg,
    #000 calc(var(--sweep, -8%) - 7%),
    rgba(0, 0, 0, 0.82) calc(var(--sweep, -8%) - 2.5%),
    rgba(0, 0, 0, 0.36) calc(var(--sweep, -8%) + 2.5%),
    rgba(0, 0, 0, 0) calc(var(--sweep, -8%) + 7%)
  );
  mask-image: linear-gradient(
    98deg,
    #000 calc(var(--sweep, -8%) - 7%),
    rgba(0, 0, 0, 0.82) calc(var(--sweep, -8%) - 2.5%),
    rgba(0, 0, 0, 0.36) calc(var(--sweep, -8%) + 2.5%),
    rgba(0, 0, 0, 0) calc(var(--sweep, -8%) + 7%)
  );
}

.plaque.is-gold:not(.is-plating) .plaque__plate--gold {
  opacity: 1;
}

/* Specular studio highlight — GPU translate3d only, masked to plaque silhouette */
.plaque__sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: url('assets/plaque-silver.png');
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url('assets/plaque-silver.png');
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.plaque__sheen::after {
  content: '';
  position: absolute;
  width: 220%;
  height: 220%;
  top: -60%;
  left: -60%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.14) 26%,
    rgba(255, 255, 255, 0) 54%
  );
  transform: translate3d(var(--sheen-x), var(--sheen-y), 0);
  mix-blend-mode: soft-light;
}

.plaque__trigger {
  position: absolute;
  inset: 2% 2.5%;
  z-index: 4;
  padding: 0;
  border: 0;
  border-radius: 13% / 12%;
  background: transparent;
  cursor: pointer;
}

.plaque__trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.engrave {
  position: absolute;
  inset: 38% 12% 11.5% 12%;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.engrave__core {
  width: 100%;
  display: grid;
  gap: 6px;
}

.engrave__fig {
  position: relative;
  min-height: 1.15em;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, #1c1405 calc(var(--gold, 0) * 100%), #111215);
  display: grid;
  place-items: center;
}

.fig {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}

.fig.is-on {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Multi-cycle mechanical rolling digit drum */
.digit-slot {
  display: inline-block;
  overflow: hidden;
  height: 1.08em;
  line-height: 1.08;
  vertical-align: bottom;
}

.digit-strip {
  display: flex;
  flex-direction: column;
  text-align: center;
  transform: translate3d(0, calc(var(--from, 0) * -2%), 0);
  transition: transform 0.01s linear 0.36s;
  will-change: transform;
}

.fig.is-on .digit-strip {
  transform: translate3d(0, calc(var(--to, 20) * -2%), 0);
  transition: transform var(--dur, 1.8s) cubic-bezier(0.08, 0.92, 0.16, 1) var(--delay, 0ms);
}

.digit-strip span {
  display: block;
  height: 1.08em;
  line-height: 1.08;
}

.digit-static {
  display: inline-block;
}

.engrave__label {
  position: relative;
  min-height: 1.4em;
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, #3d2e0f calc(var(--gold, 0) * 100%), #22252b);
}

.lab {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.35s var(--ease-out), transform 0.42s var(--ease-out);
}

.lab.is-on {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.engrave__foot {
  align-self: end;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #4b3914 calc(var(--gold, 0) * 100%), #2c2f37);
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .plaque.is-gold .engrave__fig   { color: #1c1405; }
  .plaque.is-gold .engrave__label { color: #3d2e0f; }
  .plaque.is-gold .engrave__foot  { color: #4b3914; }
}

.plaque-shadow {
  width: min(74%, 320px);
  height: 16px;
  margin-top: 10px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, rgba(168, 128, 38, 0.22) calc(var(--gold, 0) * 100%), rgba(17, 18, 21, 0.16)) 0%,
    rgba(17, 18, 21, 0) 72%
  );
  pointer-events: none;
}

@media (max-width: 520px) {
  .plaque {
    max-width: 310px;
  }
}

/* ==========================================================================
   Verified Clients Strip — Left-to-Right Marquee
   ========================================================================== */

.strip {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip__label {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  padding: 4px 20px 4px 0;
}
.strip__label::after {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 0;
  width: 1px;
  background: var(--line);
}
.strip__label strong {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.strip__label span {
  font-size: 0.75rem;
  color: var(--ink-3);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  will-change: transform;
}

.client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.client:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.client img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

.client__name {
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.client__check {
  width: 14px;
  height: 14px;
  color: var(--ink-2);
  flex-shrink: 0;
}

.client__subs {
  font-size: 0.75rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 680px) {
  .strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }
  .strip__label {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 0;
  }
  .strip__label::after { display: none; }
}

.scrollhint {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: opacity 0.35s ease;
}

.scrollhint span {
  width: 14px;
  height: 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  position: relative;
}

.scrollhint span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 5px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--ink);
  animation: scroll-dot 1.8s var(--ease-std) infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(7px); opacity: 0.15; }
  100% { transform: translateY(0); opacity: 0; }
}

.scrollhint.is-hidden { opacity: 0; }

/* ==========================================================================
   Sections — Generous Gallery Rhythm
   ========================================================================== */

.section {
  padding: 88px 24px;
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Work Section
   ========================================================================== */

.work {
  background: var(--surface);
}

.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* Segmented control with sliding white pill */
.seg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }

.seg__pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(17, 18, 21, 0.1), 0 1px 1px rgba(17, 18, 21, 0.04);
  transition: transform 0.36s var(--ease-std), width 0.36s var(--ease-std);
  pointer-events: none;
}

.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 8px 16px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.seg button[aria-selected="true"],
.seg button:hover {
  color: var(--ink);
}

@media (max-width: 480px) {
  .seg {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    justify-content: space-between;
  }
  .seg button {
    padding: 8px 10px;
    font-size: 0.8125rem;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
  transition: opacity 0.14s ease, transform 0.16s var(--ease-std);
}

.grid.is-switching {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
}

@keyframes tile-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.grid.is-entering .tile {
  animation: tile-enter 0.36s var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 5) * 32ms);
}

.grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid[data-kind="shorts"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 14px;
}

.grid[data-kind="shorts"] .tile__media {
  aspect-ratio: 9 / 16;
}

.grid[data-kind="shorts"] .tile__media img {
  transform: scale(1.06);
}

.grid[data-kind="shorts"] .tile:hover .tile__media img {
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .grid,
  .grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid[data-kind="shorts"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .grid,
  .grid[data-count="4"] {
    grid-template-columns: 1fr;
  }
  .grid[data-kind="shorts"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tile__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.25s ease;
}

.tile:hover .tile__media,
.tile:focus-visible .tile__media {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.tile:hover .tile__media img {
  transform: scale(1.03);
}

.tile__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(17, 18, 21, 0.22);
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease, color 0.2s ease;
}

.tile:hover .tile__play {
  transform: scale(1.08);
  background: var(--red);
  color: #ffffff;
}

.tile__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.tile__title {
  margin: 0;
  font-size: 0.96875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile__sub {
  margin: 3px 0 0;
  font-size: 0.84375rem;
  color: var(--ink-2);
}

.work__more {
  margin: 32px 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */

.reviews {
  background: var(--bg);
}

.feature-quote {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-ambient);
}

.feature-quote blockquote {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.feature-quote .who {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quotes {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .quotes { grid-template-columns: 1fr; }
}

.quote {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.quote blockquote {
  margin: 0;
  font-size: 0.96875rem;
  line-height: 1.55;
  color: var(--ink);
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.who img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

.feature-quote .who img {
  width: 48px;
  height: 48px;
}

.who > span:first-of-type {
  display: flex;
  flex-direction: column;
  line-height: 1.38;
  min-width: 0;
}

.who strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.who small {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.score {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.78125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  flex-shrink: 0;
}

/* ==========================================================================
   Services & About Section
   ========================================================================== */

.services {
  background: var(--surface);
}

.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 860px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.about__me {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about__me img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.about__me p {
  margin: 0;
  max-width: 40ch;
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.svc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

@media (max-width: 580px) {
  .svc { grid-template-columns: 1fr; }
}

.svc li {
  padding: 20px 18px 20px 0;
  border-bottom: 1px solid var(--line);
}

.svc h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.svc p {
  margin: 6px 0 0;
  font-size: 0.90625rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.tools {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.tools span {
  display: inline-block;
  margin-right: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
  background: var(--bg);
  text-align: center;
}

.contact {
  list-style: none;
  margin: clamp(32px, 5vw, 48px) auto 0;
  padding: 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .contact { grid-template-columns: 1fr; }
}

.contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  background: transparent;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.22s ease;
}

.contact li + li a {
  border-left: 1px solid var(--line);
}

@media (max-width: 720px) {
  .contact li + li a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

.contact a:hover {
  background: rgba(17, 18, 21, 0.025);
}

.contact a:hover strong {
  color: var(--red);
}

.contact .i {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.contact span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.38;
}

.contact strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.contact small {
  font-size: 0.8125rem;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Footer & Cinema Billing Block
   ========================================================================== */

.foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 36px 24px 44px;
}

.credits {
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84375rem;
  color: var(--ink-2);
  line-height: 1.7;
}

.credits span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 12px;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.social a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--bg);
}

.social svg {
  width: 16px;
  height: 16px;
}

.foot__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* ==========================================================================
   Dialog / Lightbox Player
   ========================================================================== */

.player {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 32px 80px rgba(17, 18, 21, 0.34);
  overflow: visible;
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.965);
  transition:
    opacity 0.24s var(--ease-out),
    transform 0.28s var(--ease-out);
}

.player.is-open {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.player.is-vertical {
  width: min(410px, calc(100vw - 32px));
}

.player::backdrop {
  background: rgba(17, 18, 21, 0);
  backdrop-filter: blur(0px);
  transition:
    background-color 0.24s var(--ease-out),
    backdrop-filter 0.24s var(--ease-out);
}

.player.is-open::backdrop {
  background: rgba(17, 18, 21, 0.72);
  backdrop-filter: blur(8px);
}

.player__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0e11;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  overflow: hidden;
}

.player.is-vertical .player__frame {
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 140px);
}

.player__frame iframe,
.player__frame img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player__frame img {
  object-fit: contain;
  background: #111215;
}

.player__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 22px;
}

.player__bar > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player__bar strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.player__bar small {
  font-size: 0.84375rem;
  color: var(--ink-2);
}

.player__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(17, 18, 21, 0.2);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease;
}

.player__close:hover {
  transform: scale(1.06);
  background: var(--bg);
}

.player__close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .player__close {
    top: 10px;
    right: 10px;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage { height: auto !important; }
  .stage__sticky {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 84px 24px 36px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
  }
  .stage__grid { display: contents !important; }
  .stage__sticky > .strip,
  .stage__object,
  .step {
    position: static !important;
    width: var(--wrap) !important;
    margin-inline: auto !important;
  }
  .step {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  .step[data-step="1"],
  .step[data-step="2"],
  .step[data-step="3"],
  .step[data-step="4"] {
    padding: 20px 0 !important;
    border-top: 1px solid var(--line) !important;
  }
  .step[data-step="4"] { border-bottom: 1px solid var(--line) !important; }
  .stage .ticks, .stage .scrollhint { display: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { transform: none !important; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .scrollhint span::after { animation: none; }
  .digit-strip, .fig.is-on .digit-strip { transition: none !important; }
  .player[open], .player[open]::backdrop { transition: none !important; }
  .player[open] { opacity: 1 !important; transform: none !important; }
  .player[open]::backdrop { background: rgba(17, 18, 21, 0.72) !important; backdrop-filter: blur(8px) !important; }
  .grid, .grid.is-switching { transition: none !important; opacity: 1 !important; transform: none !important; }
  .grid.is-entering .tile { animation: none !important; }
  .plaque.is-gold .plaque__plate--gold { opacity: 1; -webkit-mask-image: none; mask-image: none; }
  .step, .fig, .lab, .plaque, .plaque__plate--gold, .stage__object::before, .tile__media, .tile__media img {
    transition: none !important;
  }
}
