/* abegailsmith.com. Tokens and rules come from DESIGN.md (v2).
   Direction: editorial magazine meets her For You page. */

:root {
  /* Brand */
  --milk: #fffefe;
  --linen: #f7efe8;
  --blush: #f3e6dc;
  --oat: #ead6c6;
  --taupe: #9a7b6c;
  --clay: #6b5047;
  --merlot: #4c2027;
  --cocoa: #311618;
  --deep-wine: #3b010b;
  --espresso: #180c07;
  --butter-gold: #f6c945;
  --cream: #f6ece4;
  --driftwood: #c9b2a4;
  --wall: #ebeae8; /* the studio wall in the hero photo, shown while it loads */

  /* Semantic (light) */
  --bg: var(--milk);
  --surface: var(--milk);
  --surface-alt: var(--linen);
  --text: var(--espresso);
  --text-muted: var(--clay);
  --border: var(--oat);
  --border-strong: var(--taupe);
  --rule: rgba(154, 123, 108, 0.32);
  --cream-line: rgba(246, 236, 228, 0.16);
  --accent: var(--merlot);
  --accent-hover: var(--cocoa);
  --on-accent: var(--milk);
  --accent-soft: var(--blush);
  --band: var(--deep-wine);
  --on-band: var(--cream);
  --pop: var(--butter-gold);
  --on-pop: var(--deep-wine);
  --focus: var(--merlot);

  /* Type */
  --font-display: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --font-body: "Libre Caslon Text", Georgia, serif;

  /* Shape, elevation */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(24, 12, 7, 0.06), 0 2px 8px rgba(24, 12, 7, 0.06);
  --shadow-md: 0 8px 28px rgba(24, 12, 7, 0.1);
  --shadow-lg: 0 24px 60px rgba(24, 12, 7, 0.14);

  /* Motion */
  --fast: 120ms;
  --base: 200ms;
  --slow: 320ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --gutter: 24px;
  --header-h: 72px;
  --section-y: 112px;
}

@media (max-width: 639px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
    --section-y: 72px;
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--pop);
  color: var(--on-pop);
}

h1, h2, h3, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3, .band-line {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-hover);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 14px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--on-accent);
}

.container {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

/* ---------- Type ---------- */

.display-xl,
.display-l,
.heading-1,
.heading-2,
.heading-3,
.hero-statement,
.chips li,
.tile-brand,
.invite-title,
.eyebrow,
.btn,
.wordmark,
.nav-links a,
.node,
.index-list li,
.cl-label,
.cl-value,
.footer-wordmark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32; /* only affects the Inter fallback */
}

/* Headings are lowercase. Body copy and brand names keep their own case. */
.display-xl,
.display-l,
.heading-1,
.heading-2 {
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: lowercase;
}

.display-xl { font-size: 80px; }
.display-l { font-size: 64px; }
.heading-1 { font-size: 40px; }
.heading-2 { font-size: 30px; letter-spacing: -0.04em; }

.heading-3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

@media (max-width: 639px) {
  .display-xl { font-size: 52px; }
  .display-l { font-size: 44px; }
  .heading-1 { font-size: 32px; }
  .heading-2 { font-size: 26px; }
}

/* Libre Caslon italic is the accent voice, also inside headlines. */
.display-xl em,
.display-l em,
.heading-1 em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.accent-italic {
  font-style: italic;
  font-size: 21px;
  line-height: 1.3;
}

.body-lg {
  font-size: 19px;
  line-height: 1.6;
}

/* Butter Gold marker stroke behind key words. */
.highlight {
  font-weight: 500;
  background: linear-gradient(var(--pop), var(--pop)) no-repeat 0 100% / 100% 0.42em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.06em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}

/* ---------- Header (unchanged) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.75px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--base) var(--ease), background-color var(--fast) var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .nav-toggle {
    display: block;
  }

  .js .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .js .nav-menu.is-open {
    display: flex;
  }

  .js .nav-links {
    flex-direction: column;
  }

  .js .nav-links a {
    width: 100%;
    font-size: 17px;
    min-height: 48px;
  }

  /* Without JavaScript, the links simply wrap under the wordmark. */
  html:not(.js) .nav {
    flex-wrap: wrap;
    padding-block: 8px;
  }

  html:not(.js) .nav-menu,
  html:not(.js) .nav-links {
    flex-wrap: wrap;
  }
}

/* ---------- Hero ----------
   Quiet and premium: a two-tone statement (a muted lead, then the key phrase at
   full strength over a fine gold underline) beside her portrait. The portrait
   is framed like a video in a feed: a frosted action rail with her TikTok and
   Instagram on the right, and a caption card with her handle and what she
   creates for. No bold, no outlined type. */

.hero {
  padding-block: 48px 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 37.5vw, 480px);
  grid-template-areas: "copy photo";
  align-items: center;
  column-gap: clamp(40px, 3.75vw, 48px);
}

.hero-photo {
  grid-area: photo;
  position: relative;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: inherit;
  overflow: hidden;
  background: var(--wall);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cropped from lower in the photo so there's little empty wall above her head */
  object-position: 50% 62%;
}

/* Frosted glass, shared by the rail buttons and the caption card */
.rail-icon,
.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 254, 254, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow-md);
}

/* Action rail: TikTok and Instagram, like the icon rail on a TikTok video */
.hero-rail {
  position: absolute;
  z-index: 2;
  top: 42%;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}

.rail-btn:hover {
  color: var(--text);
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  color: var(--text);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), transform var(--slow) var(--ease-enter);
}

.rail-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-icon .fill {
  fill: currentColor;
  stroke: none;
}

.rail-btn:hover .rail-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: scale(1.06);
}

.rail-btn:focus-visible {
  outline: none;
}

.rail-btn:focus-visible .rail-icon {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.rail-label,
.hero-handle {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32;
}

.rail-label {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* Caption card: her handle and what she creates for */
.hero-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 14px 14px;
  border-radius: var(--r-lg);
}

.hero-handle {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-card .eyebrow {
  margin-bottom: 8px;
  font-size: 10.5px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-copy {
  grid-area: copy;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero-statement {
  font-size: clamp(40px, 6.4vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  text-wrap: balance;
}

.hero-lead {
  color: var(--text-muted);
}

.hero-key {
  color: var(--text);
  background: linear-gradient(var(--pop), var(--pop)) no-repeat 0 92% / 100% 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Each word rises out of its own little mask on load. */
.sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.sw > span {
  display: inline-block;
}

.hero-body {
  max-width: 40ch;
  margin-top: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
}

@media (max-width: 899px) and (min-width: 640px) {
  .hero {
    padding-block: 40px 64px;
  }

  /* A shorter photo: the rail moves to the top so it never meets the card. */
  .hero-rail {
    top: 16px;
    transform: none;
  }

  .hero-card .chips {
    gap: 4px;
  }

  .hero-card .chips li {
    padding: 0 8px;
  }
}

/* Tablets and phones: a compact caption, just the handle and the tags */
@media (max-width: 899px) {
  .hero-handle {
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 14px;
  }

  .hero-card .eyebrow {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .chips li {
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* Phones: the portrait runs edge to edge, the words are centred on a rounded
   sheet that slides up over it, and the caption card sits just above the sheet. */
@media (max-width: 639px) {
  .hero {
    padding: 0;
  }

  .hero-inner {
    display: block;
    width: 100%;
  }

  .hero-photo {
    border-radius: 0;
    box-shadow: none;
  }

  .hero-rail {
    top: 34%;
    right: 12px;
    gap: 12px;
  }

  .rail-icon {
    width: 48px;
    height: 48px;
  }

  .hero-card {
    left: 0;
    right: 0;
    bottom: calc(96px + 12px);
    margin-inline: auto;
    max-width: calc(100% - 2 * var(--gutter));
    padding: 10px 12px 12px;
    border-radius: 14px;
    text-align: center;
  }

  .hero-card .chips {
    justify-content: center;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    margin-top: -96px;
    padding: 28px var(--gutter) 32px;
    background: var(--bg);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    box-shadow: 0 -12px 32px rgba(24, 12, 7, 0.08);
    text-align: center;
  }

  .hero-eyebrow {
    margin-bottom: 14px;
  }

  .hero-body {
    margin: 16px auto 0;
    font-size: 17px;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-secondary {
    display: none;
  }
}

/* ---------- Deep Wine band ---------- */

.band {
  padding-block: 30px;
  background: var(--band);
  color: var(--on-band);
}

.band-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.band-rule {
  flex: 1 1 0;
  min-width: 16px;
  height: 1px;
  background: rgba(246, 201, 69, 0.55);
}

.band-rule-left {
  transform-origin: 100% 50%;
}

.band-rule-right {
  transform-origin: 0 50%;
}

.band-line {
  flex: 0 1 auto;
  text-align: center;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
}

.type-word {
  white-space: nowrap;
}

.type-char {
  display: inline-block;
}

@media (max-width: 639px) {
  .band {
    padding-block: 22px;
  }

  .band-inner {
    justify-content: center;
  }

  /* On phones the line keeps the whole width; the rules would only be stubs. */
  .band-rule {
    display: none;
  }

  .band-line {
    font-size: 21px;
  }
}

/* Line icons in the contact list */
.cl-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cl-icon .fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Brands marquee ---------- */

.brands {
  background: var(--surface-alt);
  padding-block: 36px 44px;
}

.brands-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 24px;
  padding-inline: 56px; /* keeps the title clear of the pause button */
  text-align: center;
}

.marquee-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.marquee-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.marquee-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.marquee-toggle .icon-play,
.marquee-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.marquee-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

.marquee-viewport {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-ltr 70s linear infinite;
}

.marquee:hover .marquee-track,
.marquee.is-paused .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.marquee-set img {
  width: auto;
  height: var(--h);
}

@keyframes marquee-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 639px) {
  .brands {
    padding-block: 28px 32px;
  }

  .brands-head {
    margin-bottom: 18px;
  }

  .marquee-track {
    animation-duration: 55s;
  }

  .marquee-set {
    gap: 44px;
    padding-right: 44px;
  }

  .marquee-set img {
    height: calc(var(--h) * 0.72);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--surface-alt);
}

/* Gadgets sit on Deep Wine. */
.section-wine {
  background: var(--band);
  color: var(--on-band);
  --focus: var(--pop);
  --tile-caption-bg: var(--cocoa);
  --tile-formats: var(--driftwood);
}

.section-wine .section-title em {
  color: var(--pop);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 44px;
}

.count {
  display: inline-block;
  margin-left: 0.25em;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.42em;
  letter-spacing: 0;
  vertical-align: top;
  color: var(--text-muted);
}

.section-note {
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
}

.section-wine .count,
.section-wine .section-note {
  color: var(--driftwood);
}

@media (max-width: 639px) {
  .section-head {
    margin-bottom: 28px;
  }
}

/* ---------- Video tiles ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

@media (max-width: 899px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
}

.tile-card {
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--tile-caption-bg, var(--surface-alt));
  box-shadow: var(--shadow-sm);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease);
}

.section-wine .tile-card {
  box-shadow: none;
  outline: 1px solid var(--cream-line);
  outline-offset: -1px;
}

.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tile-card:has(:focus-visible),
.tile-card.is-playing {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.tile-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--espresso);
}

.tile-media {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tile-media:focus-visible {
  outline: none;
}

.tile-frame img,
.tile-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.tile-frame img {
  transition: transform 600ms var(--ease-enter);
}

.tile-media:hover img {
  transform: scale(1.045);
}

.tile-frame video {
  object-fit: contain;
  background: var(--espresso);
}

.tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: var(--r-pill);
  background: rgba(24, 12, 7, 0.55);
  color: var(--milk);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--base) var(--ease), transform var(--slow) var(--ease-enter);
}

.tile-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: currentColor;
}

.tile-media:hover .tile-play,
.tile-media:focus-visible .tile-play {
  background: var(--accent);
  transform: scale(1.1);
}

.tag-new {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--pop);
  color: var(--on-pop);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.tile-caption {
  padding: 14px 16px 18px;
}

/* Brand names keep their own capitals. */
.tile-brand {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tile-formats {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tile-formats, var(--text-muted));
}

/* "your brand here?" invitation tile at the end of the tech grid */
.tile-invite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--slow) var(--ease), border-color var(--slow) var(--ease);
}

.tile-invite:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--text);
}

.invite-plus {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: auto;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  transition: transform var(--slow) var(--ease-enter);
}

.invite-plus svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.tile-invite:hover .invite-plus {
  transform: rotate(90deg);
}

.invite-title {
  margin-top: 24px;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.invite-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
}

.invite-link {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 639px) {
  .tile-caption {
    padding: 12px 12px 14px;
  }

  .tile-brand {
    font-size: 18px;
  }

  .tile-formats {
    font-size: 12px;
  }

  .tile-play {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }

  .tile-play svg {
    width: 22px;
    height: 22px;
  }

  .tile-invite {
    padding: 16px;
  }

  .invite-plus {
    width: 48px;
    height: 48px;
  }

  .invite-title {
    font-size: 24px;
  }

  .invite-text {
    font-size: 14px;
  }
}

/* ---------- What brands say ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
}

.quote:nth-child(2) {
  margin-top: 72px;
}

.quote figure {
  padding: 36px 40px 32px;
  background: var(--surface-alt);
  border-radius: var(--r-lg);
}

.quote figure::before {
  content: "\201C";
  display: block;
  height: 40px;
  font-family: var(--font-body);
  font-size: 80px;
  line-height: 0.9;
  color: var(--accent);
}

.quote blockquote p {
  font-size: 20px;
  line-height: 1.6;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.quote-logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.who {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.who-name {
  font-size: 16px;
}

.who-role {
  font-size: 14px;
  color: var(--text-muted);
}

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

  .quote:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 639px) {
  .quote figure {
    padding: 28px 24px 24px;
  }

  .quote blockquote p {
    font-size: 18px;
  }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 72px;
}

.about-visual {
  display: block;
}

.about-visual img {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--r-sm);
}

.about-lead {
  margin-top: 16px;
  font-size: 21px;
  line-height: 1.4;
  color: var(--text-muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin-top: 28px;
}

.facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
  line-height: 1.5;
}

.facts svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-close {
  max-width: 52ch;
  margin-top: 24px;
  font-weight: 700;
}

@media (max-width: 899px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

/* ---------- Services + content: an editorial index ---------- */

.index-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 88px;
}

.index .heading-1 {
  margin-bottom: 24px;
}

.index-list {
  border-bottom: 1px solid var(--border);
}

.index-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.idx {
  min-width: 22px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--text-muted);
}

@media (max-width: 899px) {
  .index-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .index-list li {
    padding: 13px 0;
    font-size: 20px;
  }
}

/* ---------- Why work with me ---------- */

.why {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 40px 88px;
}

.why-head {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.why-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}

.why-list li:first-child {
  padding-top: 8px;
  border-top: 0;
}

.why-num {
  grid-row: span 2;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}

.why-list p {
  grid-column: 2;
  max-width: 52ch;
  margin-top: 12px;
}

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

  .why-head {
    position: static;
  }
}

@media (max-width: 639px) {
  .why-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    padding: 24px 0;
  }

  .why-num {
    font-size: 30px;
  }
}

/* ---------- Process timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.timeline li {
  position: relative;
}

/* Connector from each step to the next */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 60px;
  right: -20px;
  height: 1.5px;
  background: var(--border-strong);
  transform-origin: 0 50%;
}

.node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 18px;
  font-weight: 500;
}

.timeline .heading-3 {
  margin-top: 22px;
}

.timeline p {
  margin-top: 10px;
  font-size: 16px;
}

@media (max-width: 899px) and (min-width: 640px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .timeline li:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 639px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .timeline li {
    min-height: 48px;
    padding-left: 68px;
  }

  .node {
    position: absolute;
    top: 0;
    left: 0;
  }

  .timeline li:not(:last-child)::after {
    top: 60px;
    bottom: -16px;
    left: 23px;
    right: auto;
    width: 1.5px;
    height: auto;
    transform-origin: 50% 0;
  }

  .timeline .heading-3 {
    margin-top: 13px;
  }
}

/* ---------- Closing: contact ---------- */

.closing {
  padding-block: 120px 88px;
  background: var(--band);
  color: var(--on-band);
  --focus: var(--pop);
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 48px 72px;
}

.closing .display-xl {
  color: var(--cream);
}

.closing .display-xl em {
  color: var(--pop);
}

.rates {
  max-width: 50ch;
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--driftwood);
}

.contact-list {
  border-bottom: 1px solid var(--cream-line);
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 4px;
  border-top: 1px solid var(--cream-line);
  color: var(--cream);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--cream);
}

.cl-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 1.5px solid rgba(246, 201, 69, 0.55);
  border-radius: var(--r-pill);
  color: var(--pop);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.contact-list a:hover .cl-icon {
  background: var(--pop);
  border-color: var(--pop);
  color: var(--on-pop);
}

.cl-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.cl-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--driftwood);
}

.cl-value {
  font-size: 20px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.cl-arrow {
  font-family: var(--font-display);
  font-size: 20px;
  transition: transform var(--base) var(--ease);
}

.contact-list a:hover .cl-arrow {
  transform: translateX(4px);
}

@media (max-width: 899px) {
  .closing-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .closing {
    padding-block: 80px 56px;
  }

  .rates {
    font-size: 17px;
  }

  .rates br {
    display: none;
  }

  .cl-value {
    font-size: 17px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  overflow: hidden;
  padding-top: 8px;
  background: var(--band);
  color: var(--driftwood);
  font-size: 13px;
  --focus: var(--pop);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-top: 8px;
  border-top: 1px solid var(--cream-line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--cream);
}

.footer-links a:hover {
  color: var(--pop);
}

/* A giant tone-on-tone signature */
.footer-wordmark {
  margin-top: 12px;
  padding-bottom: 1.5vw;
  text-align: center;
  white-space: nowrap;
  font-size: 16.5vw;
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--merlot);
  -webkit-user-select: none;
  user-select: none;
}

/* ---------- Simple text pages (privacy, terms) ---------- */

.page {
  max-width: 68ch;
  padding-block: 64px var(--section-y);
}

.page h1 {
  margin-bottom: 12px;
}

.page .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.page h2 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.page p + p {
  margin-top: 16px;
}

/* =========================================================
   Motion
   - .motion is set in <head> only when the visitor hasn't asked for reduced
     motion. The hero plays on page load with CSS alone.
   - .reveal-ready is set by main.js, which reveals things as they scroll into
     view. Without it (no JavaScript, reduced motion), everything is visible.
   ========================================================= */

@keyframes word-up {
  from { transform: translateY(110%); }
  to { transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheet-up {
  from { transform: translateY(64px); }
  to { transform: none; }
}

@keyframes photo-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@keyframes photo-settle {
  from { transform: scale(1.12); }
  to { transform: none; }
}

@keyframes underline {
  from { background-size: 0% 0.06em; }
  to { background-size: 100% 0.06em; }
}

@keyframes marker {
  from { background-size: 0% 0.42em; }
  to { background-size: 100% 0.42em; }
}

@keyframes char-up {
  from { opacity: 0; transform: translateY(0.45em); }
  to { opacity: 1; transform: none; }
}

/* Hero, on load: the portrait settles in, the statement rises word by word,
   the gold underline draws under the key phrase and the card floats up. */
.motion .hero-photo { animation: photo-in 1100ms var(--ease-enter) 60ms both; }
.motion .hero-frame img { animation: photo-settle 1900ms var(--ease-enter) 60ms both; }
.motion .hero-card { animation: rise 900ms var(--ease-enter) 900ms both; }
.motion .hero-rail li { animation: rise 700ms var(--ease-enter) both; animation-delay: calc(1150ms + var(--i, 0) * 110ms); }
.motion .chips li { animation: rise 700ms var(--ease-enter) both; animation-delay: calc(1050ms + var(--i, 0) * 70ms); }
.motion .hero-eyebrow { animation: rise 700ms var(--ease-enter) 150ms both; }
.motion .sw > span { animation: word-up 900ms var(--ease-enter) both; animation-delay: calc(250ms + var(--i) * 55ms); }
.motion .hero-key { animation: underline 1100ms var(--ease-enter) 1000ms both; }
.motion .hero-body { animation: rise 800ms var(--ease-enter) 650ms both; }
.motion .hero-actions { animation: rise 800ms var(--ease-enter) 760ms both; }
.motion .hero-note { animation: rise 800ms var(--ease-enter) 860ms both; }

@media (max-width: 639px) {
  .motion .hero-copy { animation: sheet-up 1000ms var(--ease-enter) 200ms both; }
}

/* Band: the line types in letter by letter, then the gold rules draw outward. */
.reveal-ready .band .type-char { opacity: 0; }

.reveal-ready .band.is-in .type-char {
  animation: char-up 450ms var(--ease-enter) both;
  animation-delay: calc(250ms + var(--c) * 34ms);
}

.reveal-ready .band .band-rule { transform: scaleX(0); }

.reveal-ready .band.is-in .band-rule {
  transform: none;
  transition: transform 1200ms var(--ease-enter) 900ms;
}

/* Scroll reveals. main.js adds data-reveal and a stagger index (--i). */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms var(--ease-enter), transform 800ms var(--ease-enter);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* The about collage opens like a curtain. */
.reveal-ready [data-reveal="curtain"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0 round var(--r-sm));
  transition: clip-path 1200ms var(--ease-enter);
}

.reveal-ready [data-reveal="curtain"].is-in {
  clip-path: inset(0 0 0 0 round var(--r-sm));
}

/* The Caslon italic word in a title arrives a beat later. */
.reveal-ready .section-head[data-reveal] em,
.reveal-ready .why-head[data-reveal] em,
.reveal-ready .closing-copy[data-reveal] em {
  display: inline-block;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 800ms var(--ease-enter) 280ms, transform 800ms var(--ease-enter) 280ms;
}

.reveal-ready .section-head[data-reveal].is-in em,
.reveal-ready .why-head[data-reveal].is-in em,
.reveal-ready .closing-copy[data-reveal].is-in em {
  opacity: 1;
  transform: none;
}

/* Process: each connector draws toward the next step. */
.reveal-ready .timeline li[data-reveal]::after {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-enter) calc(var(--i, 0) * 90ms + 450ms);
}

@media (max-width: 639px) {
  .reveal-ready .timeline li[data-reveal]::after {
    transform: scaleY(0);
  }
}

.reveal-ready .timeline li[data-reveal].is-in::after {
  transform: none;
}

/* Gold markers draw in once their block is on screen. */
.reveal-ready [data-reveal] .highlight {
  background-size: 0% 0.42em;
  transition: background-size 900ms var(--ease-enter) 600ms;
}

.reveal-ready [data-reveal].is-in .highlight {
  background-size: 100% 0.42em;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .tile-card:hover,
  .tile-media:hover img,
  .tile-media:hover .tile-play,
  .tile-invite:hover .invite-plus {
    transform: none;
  }

  /* The logos sit still in a centered row instead of moving. */
  .marquee-track {
    width: auto;
    justify-content: center;
  }

  .marquee-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 48px;
    padding: 0 var(--gutter);
  }

  .marquee-set + .marquee-set,
  .marquee-set .dup,
  .marquee-toggle {
    display: none;
  }
}
