/* ============================================================
   Motion Ads Portfolio — "Ink & Paper" design system v3
   Warm editorial / print-magazine aesthetic.
   Fonts: Fraunces (display serif) / Inter (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --paper: #f6f1e6;
  --paper-2: #efe6d3;
  --paper-3: #e6d9bd;
  --ink: #1c1712;
  --ink-2: #262019;
  --ink-soft: #4a4038;
  --ink-muted: #7c7266;
  --line: rgba(28, 23, 18, 0.14);
  --line-strong: rgba(28, 23, 18, 0.3);
  --line-on-dark: rgba(246, 241, 230, 0.2);
  --line-on-dark-strong: rgba(246, 241, 230, 0.4);
  --paper-on-dark: #f6f1e6;
  --muted-on-dark: rgba(246, 241, 230, 0.66);
  --rust: #c1502e;
  --rust-deep: #9c3d21;
  --forest: #37503e;
  --gold: #a9822f;
  --r: 3px;
  --shadow-lift: 8px 8px 0 var(--ink);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #080b0a;
  --paper-2: #0e1311;
  --paper-3: #151d19;
  --ink: #f4f6ee;
  --ink-2: #e7ece3;
  --ink-soft: #c8cec7;
  --ink-muted: #929b94;
  --line: rgba(205, 255, 45, 0.15);
  --line-strong: rgba(205, 255, 45, 0.34);
  --rust: #cdff2d;
  --rust-deep: #a7d61f;
  --forest: #8dbb2b;
  --gold: #d5ef79;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  transition: background-color 220ms ease, color 220ms ease;
}

::selection {
  background: var(--rust);
  color: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- texture + progress ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  animation: grain-shift 9s steps(6) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(2%, 2%); }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0%;
  height: 2px;
  background: var(--rust);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  transition: background 260ms ease, border-color 260ms ease, padding 260ms ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.7), rgba(10, 8, 6, 0));
}

.site-header.is-scrolled {
  padding-block: 12px;
  border-bottom-color: var(--line);
  background: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--paper-on-dark);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 220ms ease;
}

.site-header.is-scrolled .brand {
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: var(--r);
  background: var(--rust);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--paper);
}

.site-header nav {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 22px;
}

.site-header nav a {
  position: relative;
  padding-bottom: 3px;
  color: rgba(246, 241, 230, 0.82);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header nav a:hover {
  color: var(--rust);
}

.site-header nav a:hover::after {
  right: 0;
}

.site-header.is-scrolled nav a {
  color: var(--ink-soft);
}

.site-header.is-scrolled nav a:hover {
  color: var(--rust);
}

.header-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.68rem;
}

.theme-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(246, 241, 230, 0.42);
  border-radius: 50%;
  background: rgba(8, 11, 10, 0.36);
  color: var(--paper-on-dark);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--rust);
  background: var(--rust);
  color: #080b0a;
}

.site-header.is-scrolled .theme-toggle {
  border-color: var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
}

html[data-theme="dark"] .site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 11, 10, 0.94);
}

html[data-theme="dark"] .site-header.is-scrolled .brand,
html[data-theme="dark"] .site-header.is-scrolled nav a {
  color: var(--ink);
}

html[data-theme="dark"] .gallery-toolbar {
  background: rgba(8, 11, 10, 0.92);
}

html[data-theme="dark"] .filter-button.is-active {
  border-color: var(--rust);
  background: var(--rust);
  color: #080b0a;
}

html[data-theme="dark"] .video-card {
  background: var(--paper-2);
}

html[data-theme="dark"] .gallery-load-more {
  border-color: var(--rust);
  background: var(--rust);
  color: #080b0a;
  box-shadow: 5px 5px 0 var(--ink);
}

html[data-theme="dark"] .reel-section,
html[data-theme="dark"] .contact {
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(205, 255, 45, 0.09), transparent 60%),
    #080b0a;
  color: #f4f6ee;
}

html[data-theme="dark"] .service-link-grid > a,
html[data-theme="dark"] .campaign-card,
html[data-theme="dark"] .case-study,
html[data-theme="dark"] .image-tile,
html[data-theme="dark"] .niche-grid article,
html[data-theme="dark"] .timeline li,
html[data-theme="dark"] .home-faq-list details,
html[data-theme="dark"] .conversion-video-grid article {
  border-color: rgba(205, 255, 45, 0.2);
  background: #0e1311;
  color: #f4f6ee;
}

html[data-theme="dark"] .service-link-grid > a:hover,
html[data-theme="dark"] .campaign-card:hover,
html[data-theme="dark"] .case-study:hover,
html[data-theme="dark"] .image-tile:hover,
html[data-theme="dark"] .niche-grid article:hover,
html[data-theme="dark"] .timeline li:hover,
html[data-theme="dark"] .home-faq-list details:hover,
html[data-theme="dark"] .home-faq-list details[open] {
  border-color: #cdff2d;
  box-shadow: 6px 6px 0 rgba(205, 255, 45, 0.18);
}

html[data-theme="dark"] .image-tile figcaption {
  border-color: rgba(205, 255, 45, 0.24);
  background: rgba(8, 11, 10, 0.9);
  color: #f4f6ee;
}

html[data-theme="dark"] .service-link-grid h3,
html[data-theme="dark"] .campaign-card h3,
html[data-theme="dark"] .case-study h3,
html[data-theme="dark"] .niche-grid h3,
html[data-theme="dark"] .timeline h3,
html[data-theme="dark"] .home-faq-list summary,
html[data-theme="dark"] .conversion-video-grid h3,
html[data-theme="dark"] .image-tile strong {
  color: #f4f6ee;
}

html[data-theme="dark"] .service-link-grid p,
html[data-theme="dark"] .campaign-card p,
html[data-theme="dark"] .case-study dd,
html[data-theme="dark"] .niche-grid p,
html[data-theme="dark"] .timeline p,
html[data-theme="dark"] .home-faq-list details p,
html[data-theme="dark"] .conversion-video-grid p {
  color: #b8c1ba;
}

html[data-theme="dark"] .niche-grid .chip,
html[data-theme="dark"] .timeline span,
html[data-theme="dark"] .service-link-grid span,
html[data-theme="dark"] .campaign-card .section-label,
html[data-theme="dark"] .image-tile span {
  border-color: rgba(205, 255, 45, 0.34);
  color: #cdff2d;
}

html[data-theme="dark"] .project-form {
  border-color: rgba(205, 255, 45, 0.34);
  background: #0e1311;
}

html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea {
  border-color: rgba(205, 255, 45, 0.24);
  background: #151d19;
  color: #f4f6ee;
}

html[data-theme="dark"] .form-field input::placeholder,
html[data-theme="dark"] .form-field textarea::placeholder {
  color: #89938b;
}

/* ---------- buttons ---------- */

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button.primary {
  border-color: var(--rust);
  background: var(--rust);
  color: var(--paper);
}

.button.primary:hover {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
  box-shadow: 4px 4px 0 var(--ink);
}

.button.ghost {
  border-color: var(--line-strong);
  background: rgba(28, 23, 18, 0.02);
}

.button.ghost:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.hero-actions .button.ghost {
  border-color: rgba(246, 241, 230, 0.5);
  background: rgba(28, 23, 18, 0.32);
  color: var(--paper-on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-actions .button.ghost:hover {
  border-color: var(--paper-on-dark);
  background: rgba(28, 23, 18, 0.5);
  box-shadow: 4px 4px 0 rgba(246, 241, 230, 0.35);
}

/* ---------- type ---------- */

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

.eyebrow,
.section-label,
.project-type {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reel-copy h2,
.section-heading h1,
.section-heading h2,
.contact h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.contact h2 {
  font-style: italic;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  max-height: 1060px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -4%;
  background: var(--slide-poster) center / cover no-repeat;
  filter: blur(30px) saturate(1.05) brightness(0.6);
  opacity: 0;
  transform: scale(1.06);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.02);
}

.hero-slide.is-active .hero-slide-video {
  animation: hero-drift 14s ease-out both;
}

@keyframes hero-drift {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

.hero-slide.is-portrait::before {
  opacity: 0.6;
}

.hero-slide.is-portrait .hero-slide-video {
  inset: 8% clamp(42px, 8vw, 150px) 8% auto;
  width: min(34vw, 440px);
  height: 84%;
  border: 1px solid rgba(246, 241, 230, 0.28);
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: 14px 14px 0 rgba(28, 23, 18, 0.55);
  animation: none;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 12, 9, 0.92) 0%, rgba(15, 12, 9, 0.66) 32%, rgba(15, 12, 9, 0.1) 70%),
    linear-gradient(0deg, rgba(15, 12, 9, 0.96) 0%, rgba(15, 12, 9, 0.08) 46%),
    linear-gradient(180deg, rgba(15, 12, 9, 0.56) 0%, transparent 22%);
}

.hero-frame {
  display: none;
}

.hero-content {
  position: absolute;
  left: clamp(22px, 5vw, 72px);
  bottom: clamp(158px, 19vh, 230px);
  z-index: 3;
  width: min(780px, 64vw);
}

.hero-offer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(246, 241, 230, 0.4);
  border-radius: var(--r);
  background: rgba(28, 23, 18, 0.3);
  color: var(--paper-on-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-offer::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 8px var(--rust);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.hero-slide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: rgba(246, 241, 230, 0.68);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-slide-meta span:first-child {
  color: var(--rust);
}

.hero-slide-meta span + span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-slide-meta span + span::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(246, 241, 230, 0.34);
}

.hero-funnel-title {
  max-width: 950px;
  min-height: 1.88em;
  margin-top: 20px;
  color: var(--paper-on-dark);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.2vw, 6.3rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
}

.hero-funnel-title.is-entering,
.hero-copy.is-entering {
  animation: hero-message-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-message-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  max-width: 650px;
  min-height: 3.2em;
  margin-top: 18px;
  color: rgba(246, 241, 230, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: rgba(246, 241, 230, 0.66);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-proof-row span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
}

.hero-live-caption {
  position: absolute;
  left: calc(100% + clamp(36px, 7vw, 110px));
  bottom: 2px;
  width: min(320px, 26vw);
  padding-left: 18px;
  border-left: 1px solid rgba(246, 241, 230, 0.28);
}

.hero-live-caption .hero-slide-meta {
  margin-top: 0;
}

#hero-title {
  margin-top: 8px;
  color: var(--paper-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.05;
}

#hero-slide-description {
  margin-top: 8px;
  color: rgba(246, 241, 230, 0.62);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ---------- hero carousel ui ---------- */

.hero-carousel-ui {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: 34px;
  left: clamp(22px, 5vw, 72px);
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px);
  align-items: end;
}

.hero-controls {
  display: flex;
  gap: 1px;
  border: 1px solid rgba(246, 241, 230, 0.3);
  border-radius: var(--r);
  background: rgba(15, 12, 9, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-control {
  display: inline-flex;
  min-width: 44px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid rgba(246, 241, 230, 0.16);
  background: transparent;
  color: var(--paper-on-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.hero-control:last-child {
  border-right: 0;
}

.hero-control:hover,
.hero-control:focus-visible {
  background: var(--rust);
  color: var(--paper);
  outline: 0;
}

.hero-play-glyph {
  width: 12px;
  height: 14px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 8px, currentColor 8px 11px);
}

.hero-carousel:not(.is-playing) .hero-play-glyph {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  background: none;
}

.hero-audio-glyph {
  position: relative;
  width: 15px;
  height: 14px;
  flex: 0 0 auto;
}

.hero-audio-glyph::before {
  content: "";
  position: absolute;
  inset: 4px 8px 4px 0;
  border: 1px solid currentColor;
  border-right: 0;
  box-shadow: 5px 0 0 -1px currentColor;
}

.hero-audio-control:not(.is-audible) .hero-audio-glyph::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 1px;
  left: -1px;
  top: 7px;
  background: currentColor;
  transform: rotate(-45deg);
}

.hero-slide-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hero-slide-tab {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-content: center;
  padding: 10px 12px 12px;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(246, 241, 230, 0.2);
  background: transparent;
  color: rgba(246, 241, 230, 0.5);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

.hero-slide-tab span,
.hero-slide-tab strong {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-slide-tab span {
  color: var(--rust);
}

.hero-slide-tab strong {
  font-weight: 600;
  text-transform: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.hero-slide-tab i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(246, 241, 230, 0.14);
}

.hero-slide-tab i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rust);
  transform: scaleX(var(--hero-progress, 0));
  transform-origin: left;
  transition: transform 100ms linear;
}

.hero-slide-tab:hover,
.hero-slide-tab:focus-visible,
.hero-slide-tab.is-active {
  color: var(--paper-on-dark);
  outline: 0;
}

/* ---------- ticker ---------- */

/* ---------- funnel proof ---------- */

.funnel-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.funnel-proof > div {
  min-width: 0;
  padding: 32px clamp(22px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.funnel-proof > div:last-child {
  border-right: 0;
}

.proof-index,
.funnel-steps article > span {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.funnel-proof strong {
  display: block;
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
}

.funnel-proof p {
  max-width: 360px;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
}

.ticker div {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ticker 32s linear infinite;
}

.ticker span {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 14px 16px 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::after {
  content: "✦";
  color: var(--rust);
  font-size: 0.85em;
}

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

/* ---------- sections ---------- */

.section,
.reel-section {
  padding: clamp(84px, 10vw, 148px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 48px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: clamp(24px, 5vw, 70px);
  max-width: none;
  align-items: end;
}

.reel-copy p:not(.section-label),
.split-heading > p,
.campaign-card p,
.niche-grid p,
.timeline p,
.contact p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- services grid ---------- */

.product-photo-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(500px, 0.9fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 5vw, 72px) clamp(20px, 5vw, 72px);
  border-block: 1px solid rgba(205, 255, 45, 0.32);
  background:
    linear-gradient(110deg, rgba(205, 255, 45, 0.11), transparent 42%),
    #080b0a;
  color: #f4f6ee;
}

.product-photo-offer h2 {
  max-width: 760px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 4.4rem);
  font-weight: 600;
  line-height: 0.98;
}

.product-photo-offer .section-label {
  color: #cdff2d;
}

.offer-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid rgba(205, 255, 45, 0.24);
}

.offer-facts > div {
  min-width: 0;
  padding: 8px 22px;
  border-right: 1px solid rgba(205, 255, 45, 0.24);
}

.offer-facts dt {
  color: #cdff2d;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer-facts dd {
  margin: 10px 0 0;
  color: #f4f6ee;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.funnel-offer {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.funnel-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line-strong);
}

.funnel-steps article {
  min-height: 260px;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line-strong);
}

.funnel-steps article:last-child {
  border-right: 0;
}

.funnel-steps h3 {
  max-width: 340px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.04;
}

.funnel-steps p {
  max-width: 360px;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.funnel-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
}

.funnel-cta-row p {
  color: var(--ink-muted);
}

.funnel-cta-row strong {
  color: var(--ink);
}

.seo-services {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.service-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-link-grid > a {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.service-link-grid > a:hover {
  transform: translate(-5px, -5px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.service-link-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.4) sepia(0.06) contrast(1.02);
  transition: filter 480ms ease, transform 480ms ease;
}

.service-link-grid > a:hover img {
  transform: scale(1.03);
  filter: grayscale(0) sepia(0);
}

.service-link-grid span,
.service-link-grid h3,
.service-link-grid p {
  display: block;
  margin-right: 22px;
  margin-left: 22px;
}

.service-link-grid span {
  margin-top: 20px;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-link-grid h3 {
  margin-top: 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.service-link-grid p {
  margin-top: 10px;
  margin-bottom: 24px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 200ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

/* ---------- reel (dark statement section) ---------- */

.reel-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.44fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
  min-height: 0;
  background: var(--ink);
  color: var(--paper-on-dark);
  border-bottom: 1px solid var(--line);
}

.reel-copy {
  position: sticky;
  top: 110px;
  padding-top: 8px;
}

.reel-overline {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.reel-overline > span {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 0.8;
  color: rgba(246, 241, 230, 0.16);
}

.reel-overline > p {
  padding-bottom: 6px;
}

.reel-section .section-label {
  color: var(--rust);
}

.reel-section .reel-copy p:not(.section-label) {
  color: var(--muted-on-dark);
}

.reel-copy p:not(.section-label) {
  margin-top: 18px;
  max-width: 560px;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.metric-row span,
.chip {
  border: 1px solid rgba(246, 241, 230, 0.28);
  border-radius: var(--r);
  padding: 8px 14px;
  color: var(--paper-on-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 241, 230, 0.22);
  border-radius: var(--r);
  background: #050403;
}

.reel-stage::before,
.reel-stage::after {
  content: none;
}

.reel-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050403;
}

.reel-stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-top: 1px solid rgba(246, 241, 230, 0.16);
  color: var(--muted-on-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- video gallery ---------- */

.video-gallery {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.curated-gallery {
  background:
    radial-gradient(720px 400px at 4% 4%, rgba(205, 255, 45, 0.06), transparent 70%),
    var(--paper);
}

.curated-gallery .video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.curated-gallery .video-card h3 {
  font-size: clamp(1.18rem, 1.7vw, 1.5rem);
}

.archive-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.archive-cta span,
.archive-cta strong {
  display: block;
}

.archive-cta span {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-cta strong {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.1;
}

/* ---------- mini case studies ---------- */

.case-studies {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.case-study-list {
  display: grid;
  gap: 24px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.case-study:hover {
  transform: translate(-4px, -4px);
  border-color: var(--rust);
  box-shadow: 7px 7px 0 rgba(205, 255, 45, 0.12);
}

.case-study:nth-child(even) .case-study-media {
  order: 2;
}

.case-study-media {
  position: relative;
  min-width: 0;
  background: #050705;
}

.case-study-media video {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.case-study-media > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(205, 255, 45, 0.34);
  background: rgba(8, 11, 10, 0.84);
  color: #cdff2d;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.case-study-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}

.case-number {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-study h3 {
  max-width: 700px;
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 3.8rem);
  font-weight: 600;
  line-height: 0.98;
}

.case-study dl {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.case-study dl > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.case-study dt {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study dd {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.gallery-toolbar {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.filter-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.filter-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.gallery-count {
  margin-bottom: 20px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.video-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  animation: card-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-card:hover {
  transform: translate(-5px, -5px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.video-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.video-media::before {
  content: "";
  position: absolute;
  inset: -6%;
  background: var(--card-poster) center / cover no-repeat;
  filter: blur(24px) saturate(0.9) brightness(0.65);
  opacity: 0;
  transform: scale(1.08);
}

.video-media.portrait-media::before {
  opacity: 0.5;
}

.video-media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}

.video-media.portrait-media video {
  object-fit: contain;
  background: transparent;
}

.video-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(246, 241, 230, 0.5);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23c1502e'/%3E%3C/svg%3E") 56% 50% / 20px no-repeat,
    rgba(15, 12, 9, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 240ms ease, transform 240ms ease;
}

.video-card:hover .video-media::after {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-media.has-played::after {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.video-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.video-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.video-card-meta span {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-card-meta b {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
}

.video-card h3 {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.video-card p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.video-card small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.gallery-load-more {
  min-width: min(100%, 320px);
  min-height: 58px;
  border: 2px solid var(--paper-on-dark);
  background: var(--paper-on-dark);
  color: #080a09;
  box-shadow: 5px 5px 0 var(--rust);
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-load-more span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--rust);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1;
}

.gallery-load-more:hover {
  border-color: var(--rust);
  background: var(--rust);
  color: #fff;
  box-shadow: 5px 5px 0 var(--paper-on-dark);
}

.gallery-load-more:hover span {
  background: #fff;
  color: var(--rust);
}

.gallery-actions [hidden] {
  display: none;
}

.work-page {
  min-height: 100vh;
}

.work-page main {
  padding-top: 64px;
}

.work-gallery {
  min-height: 100vh;
  padding-top: clamp(28px, 4vw, 58px);
}

.work-gallery .section-heading {
  max-width: none;
  margin-bottom: 26px;
}

.work-preview-rail {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 10px;
  height: clamp(180px, 19vw, 290px);
  margin-bottom: 20px;
}

.work-preview-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--ink);
  isolation: isolate;
}

.work-preview-card::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(4, 7, 6, 0.9), transparent);
  pointer-events: none;
}

.work-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.work-preview-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.work-preview-card > span {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  z-index: 2;
  color: rgba(246, 241, 230, 0.76);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.work-preview-card strong {
  display: block;
  margin-bottom: 3px;
  color: #cdff2d;
  font-size: 0.68rem;
}

.work-preview-jump {
  position: absolute;
  right: 50%;
  bottom: -17px;
  z-index: 4;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--rust);
  border-radius: 50%;
  background: var(--rust);
  color: #080b0a;
  font-size: 1rem;
  transform: translateX(50%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-preview-jump:hover {
  box-shadow: 0 0 0 5px rgba(205, 255, 45, 0.15);
  transform: translateX(50%) translateY(3px);
}

.gallery-contact {
  display: grid;
  justify-items: start;
  gap: 22px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.gallery-contact h2 {
  max-width: 920px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: 0.96;
}

.work-floating-cta {
  position: fixed;
  right: clamp(16px, 3vw, 38px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto 34px;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 8px 9px 8px 18px;
  border: 1px solid #cdff2d;
  border-radius: 8px;
  background: #0a0e0c;
  box-shadow: 0 12px 30px rgba(8, 11, 10, 0.24);
  color: #f4f6ee;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms ease;
}

.work-floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.work-floating-cta:hover {
  box-shadow: 0 16px 34px rgba(8, 11, 10, 0.34), 0 0 0 4px rgba(205, 255, 45, 0.16);
}

.work-floating-cta > span:first-child {
  color: #aeb8b0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-floating-cta strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-floating-cta-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #cdff2d;
  color: #080b0a;
  font-size: 1rem;
}

.has-open-dialog {
  overflow: hidden;
}

.work-contact-dialog {
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(205, 255, 45, 0.55);
  border-radius: 8px;
  background: #0a0e0c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  color: #f4f6ee;
}

.work-contact-dialog::backdrop {
  background: rgba(6, 9, 8, 0.78);
  backdrop-filter: blur(5px);
}

.work-contact-dialog[open] {
  animation: work-dialog-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.work-dialog-intro {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(32px, 5vw, 66px);
}

.work-dialog-intro h2 {
  max-width: 540px;
  color: #f4f6ee;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.94;
}

.work-dialog-intro > p {
  max-width: 560px;
  color: #aeb8b0;
  line-height: 1.65;
}

.work-dialog-steps {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.work-dialog-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid rgba(246, 241, 230, 0.14);
  color: #dce2dc;
  font-size: 0.84rem;
}

.work-dialog-steps li:last-child {
  border-bottom: 1px solid rgba(246, 241, 230, 0.14);
}

.work-dialog-steps span {
  color: #cdff2d;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.work-dialog-email {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-dialog-email a {
  color: #cdff2d;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-dialog-form {
  width: 100%;
  max-width: none;
  align-content: center;
  padding: clamp(32px, 5vw, 66px);
  border: 0;
  border-left: 1px solid rgba(205, 255, 45, 0.24);
  background: #0e1311;
}

.work-dialog-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px auto;
  place-items: center;
  border: 1px solid rgba(246, 241, 230, 0.24);
  border-radius: 6px;
  background: #151d19;
  color: #f4f6ee;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.work-dialog-close:hover,
.work-dialog-close:focus-visible {
  border-color: #cdff2d;
  color: #cdff2d;
}

@keyframes work-dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .work-floating-cta {
    right: 14px;
    bottom: 14px;
    grid-template-columns: auto 34px;
    min-height: 54px;
    padding-left: 16px;
  }

  .work-floating-cta > span:first-child {
    display: none;
  }

  .work-contact-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .work-dialog-layout {
    grid-template-columns: 1fr;
  }

  .work-dialog-intro,
  .work-dialog-form {
    padding: 34px 22px;
  }

  .work-dialog-intro {
    padding-top: 58px;
  }

  .work-dialog-intro h2 {
    font-size: 2.7rem;
  }

  .work-dialog-form {
    border-top: 1px solid rgba(205, 255, 45, 0.24);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-floating-cta,
  .work-contact-dialog[open] {
    animation: none;
    transition: none;
  }
}

/* ---------- campaign system ---------- */

.campaign-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr 0.72fr;
  gap: 18px;
}

.campaign-card {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.campaign-card:hover {
  transform: translate(-5px, -5px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.campaign-card img,
.campaign-card video {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: var(--ink);
}

.campaign-card img {
  filter: grayscale(0.4) sepia(0.06) contrast(1.02);
  transition: filter 480ms ease;
}

.campaign-card:hover img {
  filter: grayscale(0) sepia(0);
}

.campaign-card.feature-card img {
  aspect-ratio: 16 / 12;
}

.campaign-card.mini-video video {
  aspect-ratio: 9 / 16;
}

.campaign-card div {
  padding: 24px;
}

.campaign-card h3,
.niche-grid h3,
.timeline h3,
.image-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
}

.campaign-card p {
  margin-top: 12px;
}

/* ---------- image design ---------- */

.image-design {
  background: var(--paper-2);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.image-wall {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.62fr;
  gap: 18px;
  align-items: stretch;
}

.image-tile {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.image-tile:hover {
  transform: translate(-5px, -5px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.image-tile.wide {
  grid-row: span 2;
  min-height: 760px;
}

.image-tile.phone {
  grid-row: span 2;
}

.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) sepia(0.06) contrast(1.02);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 480ms ease;
}

.image-tile:hover img {
  transform: scale(1.04);
  filter: grayscale(0) sepia(0);
}

.image-tile figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(246, 241, 230, 0.88);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.image-tile figcaption strong {
  margin-top: 4px;
  font-size: 1.15rem;
}

.image-tile span {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- niches ---------- */

.niches {
  background: var(--paper);
}

.niches .section-label {
  color: var(--rust);
}

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

.niche-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 390px;
  padding: 16px 16px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  overflow: hidden;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.niche-grid article:hover {
  transform: translate(-5px, -5px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.niche-grid h3 {
  margin-top: 12px;
  padding-inline: 8px;
}

.niche-grid p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding-inline: 8px;
}

.niche-grid h3,
.niche-grid .chip {
  position: relative;
  z-index: 1;
}

.niche-grid .chip {
  margin-left: 8px;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.niche-image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
  filter: grayscale(0.4) sepia(0.06) contrast(1.02);
  transition: filter 480ms ease;
}

.niche-grid article:hover .niche-image {
  filter: grayscale(0) sepia(0);
}

.chip {
  display: inline-flex;
  width: max-content;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  padding: 7px 12px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- process ---------- */

.process {
  background: var(--paper-2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  min-height: 330px;
  padding: 16px 16px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  overflow: hidden;
  transition: border-color 220ms ease;
}

.timeline li:hover {
  border-color: var(--ink);
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid rgba(193, 80, 46, 0.4);
  border-radius: 50%;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.timeline h3 {
  font-size: 1.35rem;
}

.timeline p {
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.timeline h3,
.timeline span,
.timeline p {
  position: relative;
  z-index: 1;
  padding-inline: 8px;
}

.timeline span {
  margin-left: 8px;
  padding-inline: 0;
}

.process-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
  filter: grayscale(0.35) sepia(0.06) contrast(1.02);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

.timeline li:hover .process-image {
  transform: scale(1.02);
  filter: grayscale(0) sepia(0);
}

/* ---------- personal introduction ---------- */

.personal-intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(205, 255, 45, 0.08), transparent 42%),
    var(--paper-2);
}

.personal-portrait {
  position: relative;
  max-width: 560px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #080b0a;
}

.personal-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid transparent;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(205, 255, 45, 0.16);
}

.personal-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.personal-portrait > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  padding: 13px 15px;
  border: 1px solid rgba(205, 255, 45, 0.32);
  background: rgba(8, 11, 10, 0.84);
  color: #cdff2d;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.personal-copy {
  max-width: 780px;
}

.personal-copy h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 0.92;
}

.personal-copy > p:not(.section-label) {
  max-width: 680px;
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.personal-copy .personal-lead {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.18;
}

.personal-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.personal-trust span {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */

.seo-faq {
  background: var(--paper);
}

.seo-faq .section-label {
  color: var(--rust);
}

.home-faq-list {
  max-width: 1120px;
  margin-left: auto;
  counter-reset: faq;
  display: grid;
  gap: 10px;
}

.home-faq-list details {
  counter-increment: faq;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fffdf6;
  transition: border-color 180ms ease;
}

.home-faq-list details:hover {
  border-color: var(--line-strong);
}

.home-faq-list details[open] {
  border-color: var(--ink);
}

.home-faq-list summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 62px 22px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::before {
  content: counter(faq, decimal-leading-zero);
  flex: 0 0 auto;
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.home-faq-list summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink) 0 0) center / 11px 1.5px no-repeat,
    linear-gradient(var(--ink) 0 0) center / 1.5px 11px no-repeat;
  transform: translateY(-50%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease;
}

.home-faq-list details[open] summary::after {
  background: linear-gradient(var(--rust) 0 0) center / 11px 1.5px no-repeat;
  border-color: var(--rust);
  transform: translateY(-50%) rotate(180deg);
}

.home-faq-list details p {
  max-width: 840px;
  padding: 0 22px 24px 60px;
}

/* ---------- contact (dark statement section) ---------- */

.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  margin: 0;
  padding: clamp(72px, 9vw, 130px) clamp(24px, 6vw, 92px);
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(193, 80, 46, 0.18), transparent 60%),
    var(--ink);
  color: var(--paper-on-dark);
}

.contact .section-label {
  color: var(--rust);
}

.contact p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted-on-dark);
}

.contact-copy {
  align-self: start;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-direct span {
  color: var(--muted-on-dark);
}

.contact-direct a {
  color: var(--paper-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-underline-offset: 5px;
}

.project-form {
  display: grid;
  width: min(100%, 560px);
  gap: 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line-on-dark-strong);
  background: rgba(246, 241, 230, 0.04);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--paper-on-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-on-dark);
  border-radius: 0;
  background: rgba(246, 241, 230, 0.08);
  color: var(--paper-on-dark);
  font: inherit;
  line-height: 1.4;
}

.form-field textarea {
  min-height: 104px;
  resize: vertical;
}

.form-field select {
  color-scheme: light;
}

.form-field select option {
  background: #fff;
  color: #101410;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(246, 241, 230, 0.42);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--rust);
  outline: 1px solid var(--rust);
  outline-offset: 0;
}

.project-form .button {
  width: 100%;
}

.project-form .form-note {
  margin-top: 0;
  color: var(--muted-on-dark);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

/* ---------- footer ---------- */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px) 34px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

footer a {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- responsive ---------- */

@media (max-width: 1440px) {
  .hero-funnel-title {
    font-size: clamp(2.8rem, 6vw, 5.8rem);
  }
}

@media (max-width: 1120px) {
  .hero-content {
    width: min(760px, 72vw);
  }

  .hero-slide.is-portrait .hero-slide-video {
    right: 5vw;
    width: min(38vw, 400px);
  }

  .hero-control-text {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .reel-section,
  .split-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-live-caption {
    display: none;
  }

  .reel-copy {
    position: static;
  }

  .campaign-grid,
  .video-grid,
  .image-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curated-gallery .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-photo-offer {
    grid-template-columns: 1fr;
  }

  .offer-facts {
    max-width: 760px;
  }

  .case-study {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-tile.wide,
  .image-tile.phone {
    grid-row: auto;
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header.is-scrolled {
    background: transparent;
    border-bottom-color: transparent;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
  }

  .site-header nav a {
    font-size: 0.62rem;
  }

  .site-header nav a:nth-child(1),
  .site-header nav a:nth-child(4) {
    display: none;
  }

  .hero {
    height: 100svh;
    min-height: 580px;
    max-height: none;
  }

  .hero-slide.is-portrait .hero-slide-video {
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    object-position: center top;
    box-shadow: none;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(15, 12, 9, 0.88) 0%, rgba(15, 12, 9, 0.4) 68%, rgba(15, 12, 9, 0.12)),
      linear-gradient(0deg, rgba(15, 12, 9, 0.98) 0%, rgba(15, 12, 9, 0.18) 66%),
      linear-gradient(180deg, rgba(15, 12, 9, 0.54), transparent 24%);
  }

  .hero-content {
    left: 20px;
    bottom: 168px;
    width: calc(100% - 40px);
  }

  .hero-funnel-title {
    max-width: 780px;
    min-height: 2.82em;
    font-size: clamp(2.5rem, 10.5vw, 4rem);
  }

  .reel-copy h2,
  .section-heading h1,
  .section-heading h2,
  .contact h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-copy {
    max-width: min(560px, 88%);
    min-height: 3.2em;
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-carousel-ui {
    right: 20px;
    bottom: 18px;
    left: 20px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-controls {
    justify-content: flex-start;
    width: max-content;
  }

  .hero-slide-tab {
    min-height: 26px;
    padding: 0 6px 10px;
  }

  .hero-slide-tab strong {
    display: none;
  }

  .hero-slide-tab span {
    font-size: 0.58rem;
  }

  .campaign-grid,
  .video-grid,
  .curated-gallery .video-grid,
  .image-wall,
  .niche-grid,
  .service-link-grid,
  .timeline,
  .funnel-proof,
  .funnel-steps {
    grid-template-columns: 1fr;
  }

  .offer-facts {
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(205, 255, 45, 0.24);
    border-left: 0;
  }

  .offer-facts > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(205, 255, 45, 0.24);
  }

  .offer-facts dd {
    margin-top: 0;
  }

  .case-study,
  .personal-intro {
    grid-template-columns: 1fr;
  }

  .case-study:nth-child(even) .case-study-media {
    order: 0;
  }

  .case-study-media video {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .personal-portrait {
    width: min(100%, 520px);
  }

  .archive-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .funnel-proof > div,
  .funnel-steps article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .funnel-proof > div:last-child,
  .funnel-steps article:last-child {
    border-bottom: 0;
  }

  .funnel-cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .reel-stage {
    min-height: 0;
  }

  .reel-stage video {
    width: 100%;
  }

  .gallery-toolbar {
    top: 10px;
  }

  .work-page main {
    padding-top: 62px;
  }

  .work-gallery {
    padding-top: 20px;
  }

  .work-gallery .section-heading {
    gap: 14px;
    margin-bottom: 18px;
  }

  .work-gallery .split-heading > p {
    max-width: 620px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .work-preview-rail {
    grid-template-columns: 1.25fr 1fr 1fr;
    height: 148px;
    margin-bottom: 18px;
  }

  .work-preview-card > span {
    right: 9px;
    bottom: 9px;
    left: 9px;
    font-size: 0.52rem;
  }

  .work-preview-card strong {
    font-size: 0.58rem;
  }

  .contact .button {
    width: 100%;
  }

  .project-form {
    width: 100%;
  }

  .home-faq-list details p {
    padding-left: 22px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding-inline: 14px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .site-header nav {
    gap: 12px;
  }

  .site-header nav a:nth-child(3) {
    display: none;
  }

  .brand {
    white-space: normal;
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .hero-offer {
    max-width: 100%;
    padding: 7px 12px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .hero-funnel-title {
    min-height: 3.76em;
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .product-photo-offer {
    padding-block: 38px;
  }

  .product-photo-offer h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .product-photo-offer .button,
  .archive-cta .button {
    width: 100%;
  }

  .case-study-copy {
    padding: 28px 20px;
  }

  .case-study h3 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .case-study dl > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .personal-copy h2 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .reel-copy h2,
  .section-heading h1,
  .section-heading h2,
  .contact h2 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .work-gallery {
    padding-right: 14px;
    padding-left: 14px;
  }

  .work-gallery .section-label {
    font-size: 0.58rem;
    line-height: 1.4;
  }

  .work-gallery .section-heading h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 0.98;
  }

  .work-gallery .split-heading > p {
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .work-preview-rail {
    gap: 6px;
    height: 124px;
  }

  .work-preview-card > span {
    right: 7px;
    bottom: 7px;
    left: 7px;
    font-size: 0.46rem;
    letter-spacing: 0.05em;
  }

  .work-preview-card strong {
    font-size: 0.52rem;
  }

  .work-preview-jump {
    bottom: -14px;
    width: 30px;
    height: 30px;
  }

  .work-gallery .gallery-toolbar {
    margin-top: 0;
  }

  .hero-slide-meta {
    margin-top: 15px;
    font-size: 0.6rem;
  }

  .hero-slide-meta span + span::before {
    width: 18px;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 0.92rem;
  }

  .hero-proof-row {
    display: none;
  }

  .hero-actions .button {
    min-height: 46px;
    padding: 0 16px;
    font-size: 0.68rem;
  }

  .reel-stage-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-height: 650px) {
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    bottom: 140px;
  }

  .hero-copy {
    display: none;
  }

  .hero-actions {
    margin-top: 16px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Outreach funnel subpage
   ============================================================ */

.conversion-hero {
  position: relative;
  min-height: 760px;
  height: 94svh;
  max-height: 1040px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper-on-dark);
}

.conversion-hero-video,
.conversion-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.conversion-hero-video {
  z-index: 0;
  object-fit: cover;
  object-position: center;
}

.conversion-hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 12, 9, 0.96) 0%, rgba(15, 12, 9, 0.76) 42%, rgba(15, 12, 9, 0.16) 76%),
    linear-gradient(0deg, rgba(15, 12, 9, 0.9) 0%, transparent 55%),
    linear-gradient(180deg, rgba(15, 12, 9, 0.54), transparent 24%);
}

.conversion-hero-content {
  position: absolute;
  left: clamp(22px, 6vw, 92px);
  bottom: clamp(84px, 13vh, 150px);
  z-index: 2;
  width: min(840px, 68vw);
}

.conversion-hero h1 {
  max-width: 920px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7.3rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 8px 44px rgba(0, 0, 0, 0.42);
}

.conversion-hero-content > p:not(.hero-offer) {
  max-width: 660px;
  margin-top: 22px;
  color: rgba(246, 241, 230, 0.78);
  font-size: 1.08rem;
  line-height: 1.65;
}

.conversion-scroll {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: 38px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(246, 241, 230, 0.72);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.conversion-scroll span {
  color: var(--rust);
  font-size: 1rem;
}

.conversion-proof {
  background: var(--paper);
}

.conversion-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.conversion-video-grid article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fffdf6;
}

.conversion-video-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  object-fit: cover;
}

.conversion-video-grid article:nth-child(2) video {
  object-fit: contain;
}

.conversion-video-grid article > div {
  padding: 24px;
}

.conversion-video-grid span {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.conversion-video-grid h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
}

.conversion-video-grid p {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.conversion-process {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.conversion-process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line-strong);
  list-style: none;
}

.conversion-process-list li {
  min-height: 220px;
  padding: clamp(26px, 3vw, 40px);
  border-right: 1px solid var(--line-strong);
}

.conversion-process-list li:last-child {
  border-right: 0;
}

.conversion-process-list span {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.conversion-process-list strong {
  display: block;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
}

.conversion-process-list p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.funnel-footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 980px) {
  .conversion-video-grid {
    grid-template-columns: 1fr;
  }

  .conversion-video-grid article {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  }

  .conversion-video-grid video {
    height: 100%;
    aspect-ratio: auto;
  }

  .conversion-process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conversion-process-list li:nth-child(2) {
    border-right: 0;
  }

  .conversion-process-list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-strong);
  }
}

@media (max-width: 680px) {
  .conversion-hero {
    height: 100svh;
    min-height: 680px;
  }

  .conversion-hero-shade {
    background:
      linear-gradient(90deg, rgba(15, 12, 9, 0.87), rgba(15, 12, 9, 0.34)),
      linear-gradient(0deg, rgba(15, 12, 9, 0.98) 0%, rgba(15, 12, 9, 0.2) 76%),
      linear-gradient(180deg, rgba(15, 12, 9, 0.6), transparent 25%);
  }

  .conversion-hero-content {
    left: 20px;
    bottom: 72px;
    width: calc(100% - 40px);
  }

  .conversion-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .conversion-hero-content > p:not(.hero-offer) {
    font-size: 0.95rem;
  }

  .conversion-scroll {
    display: none;
  }

  .conversion-video-grid article {
    display: block;
  }

  .conversion-video-grid video {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .conversion-process-list {
    grid-template-columns: 1fr;
  }

  .conversion-process-list li,
  .conversion-process-list li:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .conversion-process-list li:last-child {
    border-bottom: 0;
  }

  .funnel-footer-links {
    flex-wrap: wrap;
  }
}
