/* Motion kit base styles. Re-skin a client by overriding the variables in their theme block. */

@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-latin-wght-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #16181b;
  --muted: #5d636b;
  --line: rgba(22, 24, 27, 0.12);
  --accent: #e8622c;
  --accent-ink: #ffffff;
  --dark: #121417;
  --dark-ink: #f3f1ec;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-weight: 800;
  --display-tracking: -0.03em;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.02;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2rem, 5.2vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 36em; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .lead, .section-dark .muted { color: color-mix(in srgb, var(--dark-ink) 70%, transparent); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px var(--accent); }
.btn-ghost { border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Header */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
}
.motion-off .scroll-progress { display: none; }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform 0.4s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-dark:not(.is-scrolled) { color: #fff; }
.brand { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 3.6vw, 1.15rem); letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 0.85rem; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav a { text-decoration: none; opacity: 0.8; }
.nav a:hover { opacity: 1; }
.nav .btn { padding: 0.65em 1.15em; opacity: 1; }
@media (max-width: 799px) { .nav { display: none; } }
.nav .btn { white-space: nowrap; }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: flex-end; overflow: clip; padding: 120px 0 clamp(48px, 8vw, 96px); }
.hero-media { position: absolute; inset: 0; z-index: 0; transform-origin: 50% 40%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: var(--hero-shade, linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55))); }
.hero-copy { position: relative; z-index: 1; }
@media (max-width: 799px) { .hero { padding-bottom: 104px; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2rem; font-size: 0.9rem; opacity: 0.85; }
.hero-badges span::before { content: '\2713'; margin-right: 0.5em; color: var(--accent); font-weight: 700; }

/* Marquee */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); white-space: nowrap; }
.marquee-row { display: inline-flex; gap: 48px; padding-right: 48px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: var(--display-tracking); will-change: transform; }
.marquee-row span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-row span::after { content: '\2726'; color: var(--accent); font-size: 0.6em; }
.motion-off .marquee { white-space: normal; }

/* Cards grid */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 34px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.35); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.2rem; }
.card .icon svg { width: 24px; height: 24px; }
.section-head { display: grid; gap: 12px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }

/* Pinned steps */
.steps { min-height: 100svh; display: flex; align-items: center; }
.steps-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps-layout { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }
.steps-stage { position: relative; display: grid; }
.motion-on .steps-stage > [data-step] { grid-area: 1 / 1; }
@media (max-width: 799px) { .steps-stage { gap: 20px; } .motion-on .steps-stage > [data-step] { grid-area: auto; } }
.step { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(26px, 3vw, 44px); border: 1px solid var(--line); }
.step .muted { color: var(--muted); }
.step-num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: var(--accent); margin-bottom: 0.4rem; }
.steps-rail { display: none; }
@media (min-width: 800px) {
  .steps-rail { display: flex; gap: 14px; margin-top: 28px; align-items: center; }
  .motion-off .steps-stage { gap: 20px; }
  .motion-off .steps-rail { display: none; }
}
.step-dot { width: 40px; height: 4px; border-radius: 4px; background: color-mix(in srgb, currentColor 22%, transparent); transition: background-color 0.3s ease; }
.step-dot.is-active { background: var(--accent); }

/* Horizontal gallery */
.hscroll { overflow: hidden; }
.hscroll-intro { padding-top: clamp(90px, 10vw, 130px); }
.hscroll-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 32px var(--gutter) clamp(60px, 8vw, 100px); width: max-content; will-change: transform; }
.motion-off .hscroll-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
.project { width: clamp(270px, 38vw, 520px); flex: 0 0 auto; scroll-snap-align: start; }
.project-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.card-art { position: absolute; inset: 0; transform-origin: 50% 50%; }
.project figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 0.95rem; }
.project figcaption strong { font-weight: 600; }

/* Before / after */
.compare { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; --pos: 50%; user-select: none; }
.compare-layer { position: absolute; inset: 0; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 20px rgba(0,0,0,0.3); }
.compare-handle::after { content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-label { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.compare-label.before { left: 16px; }
.compare-label.after { right: 16px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 28px; }
.stat-num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; letter-spacing: var(--display-tracking); }
.stat-label { color: var(--muted); margin-top: 8px; }
.section-dark .stat-label { color: color-mix(in srgb, var(--dark-ink) 65%, transparent); }

/* Reviews */
.review { display: flex; flex-direction: column; gap: 16px; }
.stars { color: #f5b301; letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 1.05rem; }
.review cite { font-style: normal; font-weight: 600; font-size: 0.95rem; }
.review cite span { display: block; font-weight: 400; color: var(--muted); }

/* Contact / quote */
.quote-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.form { display: grid; gap: 14px; background: var(--surface); color: var(--ink); padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 0.85em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .btn { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.contact-lines { display: grid; gap: 14px; margin-top: 1.6rem; font-size: 1.05rem; }
.contact-lines a { text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer { padding: 48px 0 110px; font-size: 0.9rem; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.demo-note { opacity: 0.7; }
@media (min-width: 800px) { .site-footer { padding-bottom: 48px; } }

/* Always-visible call bar on phones */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
  display: flex; gap: 10px;
}
.callbar a { flex: 1; justify-content: center; padding: 0.9em 1em; }
.callbar .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
@media (min-width: 800px) { .callbar { display: none; } }

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

/* Story scenes (data-scene): full-screen pinned artwork with captions */
.scene { height: 100svh; position: relative; overflow: hidden; background: var(--scene-bg, #0f1720); }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-ui { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.scene-captions { position: absolute; left: var(--gutter); top: clamp(88px, 14vh, 140px); width: min(440px, calc(100% - 2 * var(--gutter))); display: grid; }
.scene-caption {
  grid-area: 1 / 1; opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  color: var(--scene-ink, #fff);
  background: var(--scene-panel, rgba(12, 18, 26, 0.5));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}
.scene-caption.is-active { opacity: 1; transform: none; }
.scene-caption .eyebrow { color: var(--scene-accent, var(--accent)); margin-bottom: 0.6rem; }
.scene-caption h2 { font-size: clamp(1.9rem, 4.4vw, 3.6rem); margin-bottom: 0.3em; }
.scene-caption p { font-size: clamp(1rem, 1.4vw, 1.15rem); opacity: 0.88; max-width: 30em; margin: 0; }
.scene-steps { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.scene-steps span { width: 4px; height: 34px; border-radius: 4px; background: rgba(255,255,255,0.28); transition: background-color 0.3s ease; }
.scene-steps span.is-active { background: var(--scene-accent, var(--accent)); }
.scene-hint { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--scene-ink, #fff); opacity: 0.7; }
@media (min-width: 800px) { .scene-hint { bottom: 32px; } }
@media (max-width: 799px) {
  .scene-captions { top: 84px; }
  .scene-caption p { font-size: 0.95rem; }
  .scene-steps { top: auto; bottom: 96px; right: auto; left: var(--gutter); transform: none; grid-auto-flow: column; }
  .scene-steps span { width: 26px; height: 4px; }
}
/* Reduced motion: finished picture, captions listed under it */
.scene-static { height: auto; }
.scene-static .scene-svg { position: relative; height: 75svh; }
.scene-static .scene-ui { position: relative; padding: 24px 0 40px; }
.scene-static .scene-captions { position: relative; top: auto; left: auto; margin: 0 auto; width: min(100% - 2 * var(--gutter), var(--max)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.scene-static .scene-caption { opacity: 1; transform: none; grid-area: auto; }
.scene-static .scene-hint, .scene-static .scene-steps { display: none; }
