/*
 * GGtechUGC — one stylesheet, no build step.
 *
 * Colours come from the desk the videos are shot on: the teal accent wall,
 * the honey-wood desk, the cream wall, and the red glow of the mic (which is
 * also the dot in the logo). Every colour is a light-dark() pair, so the OS
 * setting picks the theme and the toggle only has to flip `color-scheme`.
 *
 * Layers keep specificity flat: a component rule never has to fight reset.
 */
@layer reset, tokens, base, layout, components, utilities;

/* ── Reset ─────────────────────────────────────────────────────────────── */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100svh; }
  img, picture, svg, video { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  fieldset { border: 0; padding: 0; min-inline-size: 0; }
  /* Component rules set display:flex on things main.js hides with [hidden]. */
  [hidden] { display: none !important; }
  p, h1, h2, h3, li, dd { overflow-wrap: break-word; }
}

/* ── Tokens ────────────────────────────────────────────────────────────── */
@layer tokens {
  :root {
    color-scheme: light dark;

    --bg:          light-dark(#f6f3ee, #0d1719);
    --bg-2:        light-dark(#eee8de, #102022);
    --surface:     light-dark(#ffffff, #142427);
    --surface-2:   light-dark(#f3efe8, #1a2f33);
    --line:        light-dark(#e3dccf, #22383c);
    --line-strong: light-dark(#958c7d, #58726f);   /* ≥3:1 on surfaces: input outlines */
    --text:        light-dark(#14181b, #eaf1f0);
    --muted:       light-dark(#56616a, #9fb1b2);
    --brand:       light-dark(#136470, #6fbcc5);   /* teal, for text and icons */
    --focus:       light-dark(#136470, #8fd6de);

    /* Fixed across themes: fills that carry white text. */
    --brand-fill: #1f6f7a;
    --brand-deep: #154b52;
    --rec: #ff453a;
    --rec-fill: #c62a1f;
    --honey: light-dark(#9a4f1b, #e8a468);

    --shadow-color: light-dark(rgb(23 40 44 / 0.10), rgb(0 0 0 / 0.45));

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Manrope", "Inter", system-ui, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --gutter: clamp(16px, 4vw, 32px);
    --container: 1200px;
    --header-h: 64px;
    --radius: 22px;
  }

  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"]  { color-scheme: dark; }

  /*
   * Browsers without light-dark() (pre-2024) would treat every token above as
   * invalid and paint black on transparent. Give them the light palette.
   */
  @supports not (color: light-dark(#000, #fff)) {
    :root {
      --bg: #f6f3ee; --bg-2: #eee8de; --surface: #fff; --surface-2: #f3efe8;
      --line: #e3dccf; --line-strong: #958c7d; --text: #14181b; --muted: #56616a;
      --brand: #136470; --focus: #136470; --honey: #9a4f1b;
      --shadow-color: rgb(23 40 44 / 0.10);
    }
  }
}

/* ── Base ──────────────────────────────────────────────────────────────── */
@layer base {
  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
    background: var(--bg);
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
  h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
  p  { text-wrap: pretty; }

  a { color: var(--brand); text-underline-offset: 0.2em; }

  :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 6px;
  }

  ::selection { background: color-mix(in oklab, var(--brand-fill) 30%, transparent); }
}

/* ── Layout ────────────────────────────────────────────────────────────── */
@layer layout {
  .container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
  }

  .section { padding-block: clamp(4rem, 3rem + 5vw, 6rem); }
  /* The contact panel carries its own padding; the section above already spaced it. */
  .section.contact { padding-top: 0; }

  .section__head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
  .section__head > * + * { margin-top: 0.75rem; }
  .section__head--row {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
  }
  .section__lede { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }

  .kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .kicker::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
}

/* ── Components ────────────────────────────────────────────────────────── */
@layer components {

  /* Logo: the "gg" + red recording dot from the profile picture. */
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    text-decoration: none;
  }
  .logo {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #347079, #173c42);
    color: #f3f4f6;
    font: 800 21px/1 var(--font-display);
    letter-spacing: -0.06em;
    padding-bottom: 5px;          /* optical: the descenders pull "gg" down */
  }
  .logo__dot {
    position: absolute;
    top: 9px;
    right: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rec);
    box-shadow: 0 0 6px 1px rgb(255 69 58 / 0.7);
  }
  .brand__name {
    font: 800 1.15rem/1 var(--font-display);
    letter-spacing: -0.03em;
  }
  .brand__name span { color: var(--brand); }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, translate 0.2s, box-shadow 0.2s;
  }
  .btn svg { width: 1.05em; height: 1.05em; flex: none; }
  .btn--lg { padding: 0.95rem 1.45rem; font-size: 1rem; }
  .btn--primary {
    background: var(--brand-fill);
    color: #fff;
    box-shadow: 0 6px 18px -8px rgb(31 111 122 / 0.8);
  }
  .btn--primary:hover { background: var(--brand-deep); translate: 0 -1px; }
  .btn--ghost { border-color: var(--line-strong); color: var(--text); }
  .btn--ghost:hover { background: var(--surface-2); border-color: var(--brand); }

  .icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    transition: background-color 0.2s, border-color 0.2s;
  }
  .icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
  .icon-btn svg { width: 20px; height: 20px; }

  /* The recording dot, reused in the eyebrow, viewfinder and spotlight card. */
  .rec-dot {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: var(--rec);
    box-shadow: 0 0 0 0.2em rgb(255 69 58 / 0.18);
    flex: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .rec-dot { animation: rec-blink 1.6s ease-in-out infinite; }
  }
  @keyframes rec-blink { 50% { opacity: 0.3; } }

  /* ── Header ── */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in oklab, var(--bg) 84%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  }
  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: var(--header-h);
  }
  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }

  /* Theme toggle shows the theme you'd switch TO. */
  .theme-toggle__sun { display: none; }
  :root[data-theme="dark"] .theme-toggle__sun { display: block; }
  :root[data-theme="dark"] .theme-toggle__moon { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle__sun { display: block; }
    :root:not([data-theme]) .theme-toggle__moon { display: none; }
  }

  .menu-toggle__close { display: none; }
  .site-header:has(.site-nav:popover-open) .menu-toggle__open { display: none; }
  .site-header:has(.site-nav:popover-open) .menu-toggle__close { display: block; }

  .site-nav a:not(.btn) {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
  }
  .site-nav__links a:hover { color: var(--brand); }

  .socials { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .socials a {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text);
    transition: background-color 0.2s, color 0.2s;
  }
  .socials a:hover { background: var(--surface-2); color: var(--brand); }
  .socials svg { width: 20px; height: 20px; }

  /*
   * Mobile: the nav is a popover sheet under the header (Popover API — no JS
   * needed to open or close it, Esc and click-outside work for free).
   * Desktop: the same element sits inline; author styles beat the UA's
   * `[popover]:not(:popover-open) { display: none }` because they come
   * from a later cascade origin.
   */
  @media (max-width: 959.98px) {
    .header-cta { display: none; }
    .site-nav {
      position: fixed;
      inset: var(--header-h) 0 auto 0;
      width: 100%;
      max-width: none;
      height: auto;
      margin: 0;
      padding: 1.25rem var(--gutter) 1.75rem;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: var(--bg);
      color: var(--text);
      box-shadow: 0 24px 40px -24px var(--shadow-color);
    }
    .site-nav:popover-open { display: grid; gap: 1.25rem; }
    .site-nav::backdrop {
      inset: var(--header-h) 0 0 0;
      background: rgb(8 18 20 / 0.35);
    }
    .site-nav__links { display: grid; }
    .site-nav__links a {
      display: block;
      padding: 0.8rem 0;
      border-bottom: 1px solid var(--line);
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .site-nav__cta { justify-self: start; }

    /* No Popover API (pre-2024 browsers): main.js toggles .is-open instead. */
    @supports not selector(:popover-open) {
      .site-nav { display: none; }
      .site-nav.is-open { display: grid; gap: 1.25rem; opacity: 1; translate: none; }
    }

    @media (prefers-reduced-motion: no-preference) {
      .site-nav {
        opacity: 0;
        translate: 0 -10px;
        transition: opacity 0.2s, translate 0.2s, display 0.2s allow-discrete, overlay 0.2s allow-discrete;
      }
      .site-nav:popover-open { opacity: 1; translate: 0 0; }
      @starting-style {
        .site-nav:popover-open { opacity: 0; translate: 0 -10px; }
      }
    }
  }

  @media (min-width: 960px) {
    .menu-toggle, .site-nav__cta { display: none; }
    .site-nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      position: static;
      inset: auto;
      width: auto;
      height: auto;
      margin: 0 0 0 auto;
      padding: 0;
      border: 0;
      background: none;
      color: inherit;
      overflow: visible;
    }
    .site-nav__links { display: flex; gap: 1.75rem; font-size: 0.95rem; }
    .site-nav__socials { padding-left: 1.25rem; border-left: 1px solid var(--line); }
    .site-header__actions { margin-left: 0.5rem; }
  }

  /* ── Hero ── */
  .hero {
    position: relative;
    padding-block: clamp(2.25rem, 1rem + 5vw, 5rem) clamp(3rem, 2rem + 5vw, 6rem);
    overflow: clip;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: min(70vw, 780px);
    aspect-ratio: 1;
    background: radial-gradient(closest-side, color-mix(in oklab, var(--brand-fill) 22%, transparent), transparent);
    z-index: -1;
    pointer-events: none;
  }
  .hero__grid {
    display: grid;
    gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    align-items: center;
  }
  @media (min-width: 960px) {
    .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
  }
  .hero__title {
    margin-top: 1.25rem;
    font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);
    line-height: 1.0;
    letter-spacing: -0.045em;
  }
  .hero__title em { font-style: normal; color: var(--brand); }
  .hero__lede {
    margin-top: 1.25rem;
    max-width: 34rem;
    color: var(--muted);
    font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    max-width: 34rem;
  }
  .stats dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .stats dd {
    margin-top: 0.3rem;
    font: 800 clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem)/1.1 var(--font-display);
    letter-spacing: -0.03em;
  }
  .stats dd > span:last-child {
    display: block;
    margin-top: 0.2rem;
    font: 500 0.82rem/1.3 var(--font-body);
    letter-spacing: 0;
    color: var(--muted);
  }

  /* The desk photo, framed like a camera viewfinder mid-recording. */
  .viewfinder {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 540px;
    justify-self: center;
    aspect-ratio: 4 / 5;
    max-height: 80svh;
    border-radius: 28px;
    overflow: hidden;
    background: var(--brand-deep);
    box-shadow: 0 40px 80px -30px rgb(15 42 46 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
  }
  .viewfinder picture, .viewfinder img { width: 100%; height: 100%; }
  .viewfinder img { object-fit: cover; object-position: 50% 64%; }

  .viewfinder__hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: #fff;
    font: 600 12px/1 var(--font-mono);
    letter-spacing: 0.08em;
    background:
      linear-gradient(to bottom, rgb(0 0 0 / 0.38), transparent 24%, transparent 76%, rgb(0 0 0 / 0.42)),
      linear-gradient(to right, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.14) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.14) 0 calc(66.66% + 0.5px), transparent 0),
      linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 0.14) 0 calc(33.33% + 0.5px), transparent 0 calc(66.66% - 0.5px), rgb(255 255 255 / 0.14) 0 calc(66.66% + 0.5px), transparent 0);
  }
  .corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgb(255 255 255 / 0.9);
  }
  .corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
  .corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
  .corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
  .corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
  .hud { position: absolute; text-shadow: 0 1px 2px rgb(0 0 0 / 0.5); }
  .hud--rec {
    top: 24px;
    left: 56px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px 6px 8px;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.38);
    font-size: 11px;
  }
  .hud--rec .rec-dot { width: 8px; height: 8px; box-shadow: 0 0 8px 1px rgb(255 69 58 / 0.8); }
  .hud--tc { top: 30px; right: 56px; font-variant-numeric: tabular-nums; }
  .hud--meta { bottom: 30px; left: 56px; opacity: 0.9; }
  .hud--focus {
    top: 44%;
    left: 50%;
    width: 72px;
    height: 72px;
    translate: -50% -50%;
    border: 1.5px solid rgb(255 255 255 / 0.8);
    border-radius: 8px;
  }
  @media (prefers-reduced-motion: no-preference) {
    .hud--focus { animation: focus-pulse 3.2s ease-in-out infinite; }
  }
  @keyframes focus-pulse {
    0%, 100% { scale: 1; opacity: 0.85; }
    12% { scale: 0.86; opacity: 1; }
    24% { scale: 1; }
  }

  /* ── Brands strip ── */
  .featured {
    border-block: 1px solid var(--line);
    background: var(--bg-2);
  }
  .featured__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 2rem;
    padding-block: 1.35rem;
  }
  .featured__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .featured__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
    font: 800 1.05rem/1.4 var(--font-display);
    letter-spacing: -0.02em;
    color: color-mix(in oklab, var(--text) 62%, transparent);
  }

  /* ── Deals ── */
  .deals__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
    margin: -4px;              /* room for focus rings inside the scroller */
    max-width: 100%;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  }
  .chip input { position: absolute; opacity: 0; pointer-events: none; }
  .chip:hover { border-color: var(--brand); }
  .chip:has(input:checked) { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
  .chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .chip__count {
    min-width: 1.5em;
    padding: 0.1em 0.45em;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.75rem;
    text-align: center;
  }
  .chip:has(input:checked) .chip__count { background: rgb(255 255 255 / 0.2); color: #fff; }

  .search {
    position: relative;
    flex: 1 1 220px;
    max-width: 320px;
  }
  .search svg {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    width: 18px;
    height: 18px;
    translate: 0 -50%;
    color: var(--muted);
    pointer-events: none;
  }
  .search input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
  }
  .search input:focus-visible { outline-offset: 1px; border-color: var(--brand); }
  @media (max-width: 640px) {
    .search { max-width: none; flex-basis: 100%; }
  }

  .deals__status { margin-block: 1.25rem 1rem; color: var(--muted); font-size: 0.9rem; }

  .deals__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1rem;
  }

  .deal { container: deal / inline-size; }
  .deal--spotlight { grid-column: 1 / -1; }

  /* Per-category tint for the card's top panel. */
  .deal { --tint: var(--brand); }
  .deal[data-cat="power"]   { --tint: light-dark(#a8581f, #e8a468); }
  .deal[data-cat="apple"]   { --tint: light-dark(#4b5563, #b3bdca); }
  .deal[data-cat="creator"] { --tint: light-dark(#b8322a, #ff8a80); }
  .deal[data-cat="home"]    { --tint: light-dark(#7a5a2b, #dcb680); }

  .deal__card {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: translate 0.25s, box-shadow 0.25s, border-color 0.25s;
  }
  .deal__card:hover {
    translate: 0 -3px;
    border-color: var(--line-strong);
    box-shadow: 0 22px 40px -24px var(--shadow-color);
  }

  .deal__media {
    position: relative;
    display: grid;
    place-items: center;
    height: 132px;
    color: var(--tint);
    background:
      radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--tint) 30%, transparent) 1px, transparent 0) 0 0 / 14px 14px,
      linear-gradient(160deg, color-mix(in oklab, var(--tint) 16%, var(--surface)), color-mix(in oklab, var(--tint) 6%, var(--surface)));
    border-bottom: 1px solid var(--line);
  }
  .deal__glyph { width: 52px; height: 52px; }
  .deal__new {
    position: absolute;
    top: 14px;
    left: 14px;
    display: none;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 14px -6px var(--shadow-color);
  }
  .deal--spotlight .deal__new { display: inline-flex; }

  .deal__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.15rem 1.25rem 1.3rem;
  }
  .deal__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
  }
  .deal__cat {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--tint) 12%, transparent);
    color: var(--tint);
    font-weight: 700;
  }
  .deal__date { color: var(--muted); }
  .deal__brand {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .deal__name {
    font-size: 1.3rem;
    line-height: 1.15;
  }
  .deal__blurb { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

  .deal__promo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.3rem; }
  .deal__label {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: var(--rec-fill);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
  }
  .deal__code {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: 6px;
    background: var(--surface-2);
    font: 700 0.85rem/1.3 var(--font-mono);
  }
  .deal__code svg { width: 15px; height: 15px; }
  .deal__code[data-copied] { border-color: var(--brand); color: var(--brand); }
  .deal__ends { color: var(--muted); font-size: 0.8rem; }

  .deal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-top: auto;
    padding-top: 0.9rem;
  }
  .deal__buy { padding: 0.65rem 1rem; font-size: 0.9rem; }
  .deal__video {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
  }
  .deal__video svg { width: 15px; height: 15px; color: var(--rec); }
  .deal__video:hover { color: var(--text); }

  /* A wide card (the spotlight) goes side-by-side, whatever the viewport. */
  @container deal (min-width: 620px) {
    .deal__card { grid-template-columns: minmax(240px, 40%) 1fr; grid-template-rows: none; }
    .deal__media { height: auto; min-height: 280px; border-bottom: 0; border-right: 1px solid var(--line); }
    .deal__glyph { width: 96px; height: 96px; }
    .deal__body { padding: 2rem 2.25rem; gap: 0.6rem; }
    .deal__name { font-size: clamp(1.6rem, 1.2rem + 1.4cqi, 2.3rem); }
    .deal__blurb { font-size: 1.05rem; max-width: 36rem; }
  }

  .deals__empty {
    grid-column: 1 / -1;
    padding: 3rem 1.5rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
  }
  .deals__empty button {
    margin-top: 0.75rem;
    border: 0;
    background: none;
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .disclosure {
    margin-top: 2rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.85rem;
  }

  /* Card swaps during filtering use the View Transitions API (see main.js). */
  ::view-transition-group(*) { animation-duration: 0.28s; }

  /* ── Latest videos ── */
  .work { background: var(--bg-2); border-block: 1px solid var(--line); }
  .work .btn svg { width: 16px; height: 16px; }

  .reels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(168px, 44vw, 224px);
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 4px 4px 1.25rem;
    margin-inline: -4px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  .reel { scroll-snap-align: start; }
  .reel__link {
    --tone-a: #3a7a83;
    --tone-b: #173c42;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.4rem;
    aspect-ratio: 9 / 16;
    padding: 1rem;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    background:
      repeating-linear-gradient(115deg, rgb(255 255 255 / 0.035) 0 2px, transparent 2px 14px),
      linear-gradient(165deg, var(--tone-a), var(--tone-b));
    box-shadow: 0 16px 32px -20px rgb(0 0 0 / 0.6);
    transition: translate 0.25s, box-shadow 0.25s;
  }
  .reel__link:hover { translate: 0 -4px; box-shadow: 0 26px 40px -22px rgb(0 0 0 / 0.7); }
  /* Layers inside a tile: tone gradient → thumbnail → scrim → text. */
  .reel__thumb {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .reel__link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent 55%);
  }
  .reel__link:has(.reel__thumb)::before {
    background:
      linear-gradient(to top, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.35) 50%, transparent 72%),
      linear-gradient(to bottom, rgb(0 0 0 / 0.35), transparent 22%);
  }
  .reel[data-tone="honey"] .reel__link { --tone-a: #d4904f; --tone-b: #7a3a12; }
  .reel[data-tone="ink"]   .reel__link { --tone-a: #353b44; --tone-b: #0e1114; }
  .reel[data-tone="slate"] .reel__link { --tone-a: #7890a0; --tone-b: #293843; }

  .reel__tag {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .reel__play {
    position: absolute;
    top: 42%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    translate: -50% -50%;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: scale 0.25s, background-color 0.25s;
  }
  .reel__play svg { width: 22px; height: 22px; margin-left: 3px; }
  .reel__link:hover .reel__play { scale: 1.1; background: var(--rec); }
  .reel__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    font: 800 1.05rem/1.2 var(--font-display);
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .reel__date { font-size: 0.78rem; opacity: 0.8; }

  /* ── For brands ── */
  .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
  }
  .service {
    padding: 1.6rem 1.5rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .service__num {
    display: inline-block;
    margin-bottom: 1.4rem;
    color: var(--brand);
    font: 700 0.85rem/1 var(--font-mono);
  }
  .service p { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }

  .process {
    counter-reset: step;
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
  }
  @media (min-width: 760px) {
    .process { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 1.75rem 2rem; }
  }
  .process li {
    counter-increment: step;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    row-gap: 0.15rem;
    align-items: start;
  }
  .process li::before {
    content: counter(step);
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-fill);
    color: #fff;
    font: 800 0.95rem/1 var(--font-display);
  }
  .process strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
  .process span { color: var(--muted); font-size: 0.92rem; }

  /* ── Contact: a teal panel in both themes, like the wall behind the desk. ── */
  .contact__grid {
    display: grid;
    gap: clamp(2rem, 1.5rem + 3vw, 4rem);
    padding: clamp(1.75rem, 1rem + 4vw, 4rem);
    border-radius: 32px;
    color: #eef6f6;
    background:
      radial-gradient(120% 80% at 100% 0%, rgb(255 255 255 / 0.10), transparent 60%),
      linear-gradient(150deg, #2f6f78, #173c42 70%);
    box-shadow: 0 40px 80px -40px rgb(15 42 46 / 0.6);
  }
  @media (min-width: 900px) {
    .contact__grid { grid-template-columns: 0.9fr 1.1fr; }
  }
  .contact .kicker { color: #bfe8ec; }
  .contact .section__lede { color: rgb(238 246 246 / 0.82); }
  .contact h2 { margin-top: 0.75rem; }
  .contact__intro .section__lede { margin-top: 0.75rem; }
  .contact :focus-visible { outline-color: #fff; }

  .contact__email {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
    color: #fff;
    font: 800 clamp(1.1rem, 0.95rem + 0.8vw, 1.45rem)/1.2 var(--font-display);
    letter-spacing: -0.02em;
    text-decoration-color: rgb(255 255 255 / 0.4);
    overflow-wrap: anywhere;
  }
  .contact__email svg { width: 24px; height: 24px; flex: none; }

  .socials--lg { gap: 0.5rem; margin-top: 1.5rem; }
  .socials--lg a {
    width: auto;
    height: auto;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgb(255 255 255 / 0.25);
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
  }
  .socials--lg a:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
  .socials--lg svg { width: 18px; height: 18px; }

  .form { display: grid; gap: 1rem; align-content: start; }
  .form__row { display: grid; gap: 1rem; }
  @media (min-width: 560px) {
    .form__row { grid-template-columns: 1fr 1fr; }
  }
  .field { display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; }
  .field input, .field select, .field textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgb(255 255 255 / 0.5);
    border-radius: 12px;
    background: rgb(255 255 255 / 0.09);
    color: #fff;
    font-weight: 400;
    font-size: 1rem;              /* 16px stops iOS zooming into the field */
    color-scheme: dark;
    transition: border-color 0.2s, background-color 0.2s;
  }
  .field textarea { resize: vertical; min-height: 8rem; }
  .field ::placeholder { color: rgb(255 255 255 / 0.55); }
  .field :is(input, select, textarea):hover { border-color: rgb(255 255 255 / 0.75); }
  .field :is(input, select, textarea):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
    border-color: transparent;
    background: rgb(255 255 255 / 0.14);
  }
  .field :is(input, textarea):user-invalid { border-color: #ffb4ad; }
  .form .btn--primary { justify-self: start; background: #fff; color: var(--brand-deep); box-shadow: none; }
  .form .btn--primary:hover { background: #e3f1f2; }
  .form .btn--primary[disabled] { opacity: 0.7; cursor: progress; }
  .form__status { min-height: 1.5em; font-weight: 600; }
  .form__status a { color: #fff; }

  /* ── Footer ── */
  .site-footer { padding-block: 3rem calc(3rem + env(safe-area-inset-bottom)); }
  .site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
  }
  .site-footer__fine {
    flex-basis: 100%;
    max-width: 60rem;
    color: var(--muted);
    font-size: 0.82rem;
  }

  /* ── 404 / thank-you pages ── */
  .page-message__head { margin-top: 3rem; }
  .page-message__title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); }
  .page-message__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

  /* ── Scroll-in reveal: CSS scroll-driven animations, no JS observer. ── */
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .section__head, .service, .process, .contact__grid {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 55%;
      }
    }
  }
  @keyframes reveal {
    from { opacity: 0; translate: 0 28px; }
  }
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
  .skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: var(--brand-fill);
    color: #fff;
    font-weight: 600;
    translate: 0 -200%;
    transition: translate 0.2s;
  }
  .skip-link:focus { translate: 0 0; }
}
