/* ═══════════════════════════════════════════════════════════
   EKSPERT ECOMMERCE — style.css
   Warm gallery minimalism · Fraunces + Inter · coral accent
   ═══════════════════════════════════════════════════════════ */

/* ─────────────── DESIGN TOKENS ─────────────── */
:root {
  --bg-primary: #FAF6F0;   /* warm ivory */
  --bg-elevated: #FFFFFF;
  --bg-deep: #2B2725;      /* warm charcoal — dark sections */
  --text-primary: #2B2725;
  --text-muted: #8A8178;
  --accent: #F2665E;       /* warm coral — the single pop color */
  --accent-soft: #FBD5CE;
  --line: #E7DFD5;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);       /* ~power3.out */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);       /* ~expo.out  */

  --space-section: clamp(6rem, 14vh, 11rem);
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

/* ─────────────── RESET / BASE ─────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* NO scroll-behavior:smooth here — it breaks ScrollTrigger refresh
   measurements and double-smooths with Lenis. Lenis owns smoothing. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden turns body into a scroll container and
     breaks ScrollTrigger's pin measurements */
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ol, ul { list-style: none; }
em { font-style: italic; }

::selection { background: var(--accent-soft); color: var(--text-primary); }

/* Visible focus states everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────── FILM GRAIN (single element) ─────────────── */
.grain {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
  will-change: transform;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.5%); }
  50%  { transform: translate(1.5%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ─────────────── CUSTOM CURSOR ─────────────── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none; /* enabled via JS on fine pointers only */
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--accent);
  opacity: 0.5;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s;
}
body.cursor-active .cursor-ring { width: 52px; height: 52px; opacity: 0.9; }
@media (pointer: fine) {
  body.has-custom-cursor .cursor-dot,
  body.has-custom-cursor .cursor-ring { display: block; }
}

/* ─────────────── TYPE UTILITIES ─────────────── */
.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.label-on-dark { color: rgba(250, 246, 240, 0.6); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 1.2rem;
}

/* Kinetic word reveal: JS wraps words in .kw > .kw-inner */
.kw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;   /* protect serif descenders from clipping */
  margin-bottom: -0.08em;
}
.kw-inner { display: inline-block; will-change: transform; }

/* ─────────────── HEADER ─────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--pad-x);
  mix-blend-mode: normal;
  transition: transform 0.5s var(--ease-out);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.4s;
}
.wordmark em { font-weight: 300; }
.header-cta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 99px;
  transition: background 0.35s var(--ease-out), color 0.35s, border-color 0.35s;
}
.header-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* After scrolling past hero the header inverts to dark-on-light */
body.header-dark .wordmark,
body.header-dark .header-cta { color: var(--text-primary); }
body.header-dark .header-cta { border-color: var(--line); }
body.header-dark .header-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─────────────── BUTTONS (double-label hover) ─────────────── */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s;
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 1.05rem 2.4rem;
  box-shadow: 0 10px 30px -12px rgba(242, 102, 94, 0.55);
}
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 16px 40px -12px rgba(242, 102, 94, 0.65); }
.btn-label {
  display: block;
  position: relative;
  overflow: hidden;
  height: 1.5em;
}
.btn-label span {
  display: block;
  height: 1.5em;
  line-height: 1.5em;
  transition: transform 0.45s var(--ease-expo);
}
.btn:hover .btn-label span { transform: translateY(-100%); }

/* ─────────────── HERO ─────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform;
  isolation: isolate; /* keeps the z-index:-1 poster fallback inside */
}
.hero-video,
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster-fallback {
  background-size: cover;
  background-position: center;
  z-index: -1; /* sits behind the video; visible only if video fails */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(30, 25, 22, 0.72) 0%, rgba(30, 25, 22, 0.25) 45%, rgba(30, 25, 22, 0.18) 100%);
  transition: opacity 0.4s;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x) clamp(6rem, 14vh, 9rem);
  max-width: 1100px;
}
.hero-label { color: rgba(250, 246, 240, 0.65); margin-bottom: 1.4rem; }
.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #FAF6F0;
}
.hero-subline {
  margin-top: 1.75rem;
  max-width: 44ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(250, 246, 240, 0.82);
}
.hero-actions { margin-top: 2.5rem; }
.scroll-cue {
  position: absolute;
  right: var(--pad-x);
  bottom: 2.2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(250, 246, 240, 0.6);
  animation: breathe 3.2s ease-in-out infinite;
}
.scroll-cue-line {
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(to bottom, transparent, rgba(250,246,240,0.7));
}
@keyframes breathe {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(6px); }
}

/* ─────────────── STATS STRIP ─────────────── */
.stats {
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: var(--bg-primary);
  position: relative;
  z-index: 3; /* rides over the parallaxing hero */
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1300px;
  margin: 0 auto;
}
.stat {
  padding: 0.4rem 2rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-caption {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 22ch;
}

/* ─────────────── MISSION ─────────────── */
.mission {
  padding: var(--space-section) var(--pad-x);
  max-width: 1200px;
  margin: 0 auto;
}
.mission .label { margin-bottom: 2.2rem; }
.mission-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.mission-statement .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.mission-statement .line > .line-inner { display: block; will-change: transform; }
.accent-line { color: var(--accent); }

/* ─────────────── PILLARS ─────────────── */
.pillars {
  padding: var(--space-section) var(--pad-x);
  max-width: 1400px;
  margin: 0 auto;
}
.section-head { max-width: 760px; margin-bottom: clamp(3rem, 6vh, 5rem); }
.pillar-grid {
  display: grid;
  /* 4 services — 2×2 on desktop, single column below 1024px */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.pillar-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(2rem, 3.5vw, 3rem);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  will-change: transform;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(43, 39, 37, 0.22);
}
.pillar-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
}
.pillar-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
  margin: 1.1rem 0 0.9rem;
}
.pillar-text { color: var(--text-muted); font-size: 0.98rem; max-width: 34ch; }
.card-underline {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-expo);
}
.pillar-card:hover .card-underline { transform: scaleX(1); }

/* ─────────────── STORY (pinned scrub) ─────────────── */
.story { background: var(--bg-primary); }
.story-pin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 100vh;
  padding: clamp(3rem, 8vh, 6rem) var(--pad-x);
  max-width: 1500px;
  margin: 0 auto;
}
.story-media {
  position: relative;
  isolation: isolate;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
  box-shadow: 0 30px 80px -30px rgba(43, 39, 37, 0.35);
}
.story-video,
.story-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-poster-fallback {
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.story-copy { max-width: 34rem; }
.story-paragraphs { margin-top: 2rem; display: grid; gap: 1.4rem; }
.story-p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 65ch;
}
.story-p.accent-p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  line-height: 1.4;
  color: var(--text-primary);
}
.story-signature {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}

/* ─────────────── PROCESS ─────────────── */
.process {
  padding: var(--space-section) var(--pad-x);
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  counter-reset: step;
}
.process-step { position: relative; padding-top: 2rem; border-top: 1px solid var(--line); }
.process-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 3.5rem; height: 1px;
  background: var(--accent);
}
.step-number {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0.9rem 0 0.8rem;
  letter-spacing: -0.01em;
}
.step-text { color: var(--text-muted); font-size: 0.98rem; max-width: 36ch; }

/* ─────────────── FEATURED WORK ─────────────── */
.work {
  padding: var(--space-section) var(--pad-x) calc(var(--space-section) * 1.2);
  max-width: 1400px;
  margin: 0 auto;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.work-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -24px rgba(43, 39, 37, 0.22);
}
.work-card:hover .card-underline { transform: scaleX(1); }
.work-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  margin: 0.9rem 0 0.7rem;
  letter-spacing: -0.01em;
}
.work-before-after {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.work-before-after .after { color: var(--text-primary); font-weight: 500; }
.work-arrow { color: var(--accent); }

/* ─────────────── FINAL CTA ─────────────── */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  color: #FAF6F0;
  padding: calc(var(--space-section) * 1.15) var(--pad-x);
  border-radius: 24px 24px 0 0;
}
.cta-media { position: absolute; inset: 0; isolation: isolate; }
.cta-video,
.cta-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-poster-fallback {
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  /* warm dark overlay keeps text ≥ WCAG AA over the video */
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bg-deep) 78%, transparent) 0%,
    color-mix(in srgb, var(--bg-deep) 62%, transparent) 55%,
    color-mix(in srgb, var(--bg-deep) 85%, transparent) 100%);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .cta-overlay { background: rgba(30, 25, 22, 0.72); }
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.cta-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 1.4rem;
}
.cta-subline {
  margin: 1.8rem auto 0;
  max-width: 48ch;
  color: rgba(250, 246, 240, 0.78);
}

/* ── Contact form ── */
.contact-form {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  text-align: left;
  display: grid;
  gap: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.form-field { display: grid; gap: 0.45rem; position: relative; }
.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250, 246, 240, 0.6);
}
.form-field .optional { text-transform: none; letter-spacing: 0.02em; opacity: 0.7; }
.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250, 246, 240, 0.3);
  border-radius: 0;
  padding: 0.65rem 0.1rem;
  font: inherit;
  font-size: 1.05rem;
  color: #FAF6F0;
  transition: border-color 0.35s var(--ease-out);
  caret-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 3.2rem; }
.form-field input::placeholder { color: rgba(250, 246, 240, 0.35); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.form-field.invalid input,
.form-field.invalid textarea { border-bottom-color: var(--accent); }
.field-error {
  min-height: 1.1em;
  font-size: 0.8rem;
  color: var(--accent-soft);
}
.btn-submit { justify-self: center; margin-top: 0.5rem; }
.form-status {
  text-align: center;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--accent-soft);
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
  background: var(--bg-deep);
  color: rgba(250, 246, 240, 0.75);
  padding: 3.5rem var(--pad-x) 3rem;
  border-top: 1px solid rgba(250, 246, 240, 0.08);
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: #FAF6F0;
}
.footer-wordmark em { font-weight: 300; }
.footer-email {
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.footer-email:hover { color: var(--accent); border-color: var(--accent); }
.footer-social { display: flex; gap: 0.4rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  transition: color 0.3s, background 0.3s;
}
.footer-social a:hover { color: var(--accent); background: rgba(250, 246, 240, 0.06); }
.footer-copy { font-size: 0.8rem; opacity: 0.55; margin-left: auto; }
.back-to-top {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 0.4rem; /* ≥44px tap target with line-height */
  min-height: 44px;
  transition: color 0.3s;
}
.back-to-top:hover { color: var(--accent); }

/* ─────────────── THEME PANEL ─────────────── */
.theme-toggle {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 200;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(43, 39, 37, 0.3);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.theme-toggle:hover { transform: scale(1.08); box-shadow: 0 14px 36px -12px rgba(43, 39, 37, 0.4); }
.theme-panel {
  position: fixed;
  left: 1.2rem;
  bottom: 5.4rem;
  z-index: 200;
  width: min(320px, calc(100vw - 2.4rem));
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 30px 70px -25px rgba(43, 39, 37, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}
.theme-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.theme-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.theme-close {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s;
}
.theme-close:hover { background: var(--bg-primary); color: var(--text-primary); }
.theme-controls { display: grid; gap: 0.85rem; }
.theme-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  cursor: pointer;
}
.theme-control input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: 44px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  padding: 2px;
  cursor: pointer;
}
.theme-control input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.theme-control input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
.theme-control input[type="color"]::-moz-color-swatch { border: none; border-radius: 6px; }
.theme-reset {
  margin-top: 1.2rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.theme-reset:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─────────────── SCROLL-REVEAL INITIAL STATES (JS adds .anim-ready) ─────────────── */
body.anim-ready [data-reveal] { opacity: 0; transform: translateY(26px); }
body.anim-ready [data-pillar],
body.anim-ready [data-step],
body.anim-ready .work-card { opacity: 0; transform: translateY(40px); }
body.anim-ready [data-story-p] { opacity: 0.12; }

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 0; }
  .stat:nth-child(3) { border-left: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .story-pin { grid-template-columns: 1fr; align-items: start; min-height: 0; }
  .story-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); padding: 1.4rem 0 0.4rem; }
  .stat:first-child { border-top: none; padding-top: 0.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .footer-copy { margin-left: 0; }
  .wordmark { white-space: nowrap; font-size: 1rem; }
  .header-cta { white-space: nowrap; font-size: 0.68rem; padding: 0.55rem 0.9rem; }
  /* Theme panel becomes a bottom sheet */
  .theme-panel {
    left: 0; right: 0; bottom: 0;
    width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 1.6rem 1.4rem 2.2rem;
    transform: translateY(100%);
  }
  .theme-panel.open { transform: translateY(0); }
}

/* ─────────────── REDUCED MOTION ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .grain { animation: none; }
  .scroll-cue { animation: none; opacity: 0.6; }
  body.anim-ready [data-reveal],
  body.anim-ready [data-pillar],
  body.anim-ready [data-step],
  body.anim-ready .work-card { opacity: 1; transform: none; }
  body.anim-ready [data-story-p] { opacity: 1; }
}
