:root {
  --bg: #f5f3ed;
  --surface: #fafaf7;
  --surface-2: #efede6;
  --fg: #20211e;
  --muted: #74756d;
  --line: #deded5;
  --dark: #262622;
  --accent: #c0714d;
  --accent-soft: #f4e6dc;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--dark);
  color: #f5f3ed;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--fg); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.85rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; margin-right: auto; }
.brand span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 28px; font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: var(--fg); border-bottom-color: var(--accent); }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) clamp(16px, 6vw, 80px); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) clamp(16px, 6vw, 80px) clamp(56px, 8vw, 96px); }
.lede { margin-top: 22px; font-size: 1.08rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-size: 0.88rem; color: var(--muted); }
.hero-facts b { color: var(--fg); font-weight: 600; }
.hero-center { text-align: center; }
.hero-center .lede { margin-inline: auto; }
.hero-center .hero-actions, .hero-center .hero-facts { justify-content: center; }
.hero-strip { display: grid; grid-template-columns: 1.6fr 0.9fr 0.9fr 1.6fr; gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.hero-strip a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); height: clamp(180px, 26vw, 340px); }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; }

/* Use cases */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.case h3 { margin-bottom: 10px; }
.case p { color: var(--muted); font-size: 0.95rem; }
.case-link { display: inline-block; margin-top: 16px; font-size: 0.88rem; color: var(--accent); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.case-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-more { background: var(--accent-soft); }

/* Work gallery */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #f5f3ed; }
.work-grid { columns: 250px 4; column-gap: 24px; }
.film {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 32px;
}
.film[hidden] { display: none; }
.film:focus-visible .film-frame { outline: 2px solid var(--accent); outline-offset: 4px; }
.film-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.film-vertical .film-frame { aspect-ratio: 9 / 16; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.film:hover .film-frame img { transform: scale(1.03); }
.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  background: rgba(250, 250, 247, 0.9);
}
.film-play::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 19px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--dark);
}
.film-time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(32, 33, 30, 0.72);
  color: #f5f3ed;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.film-meta { display: flex; flex-direction: column; gap: 4px; }
.film-story { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.film-title { font-family: var(--serif); font-size: 1.35rem; }
.film-summary { color: var(--muted); font-size: 0.92rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.steps span { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }
.price { position: relative; }
.price .amount { font-family: var(--serif); font-size: 3rem; color: var(--fg); line-height: 1; margin-bottom: 6px; }
.price .per { font-size: 0.88rem; margin-bottom: 20px; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.price li { padding-left: 20px; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 10px; height: 1px; background: var(--accent); }
.featured { border-color: var(--dark); box-shadow: inset 0 0 0 1px var(--dark); }
.tag { position: absolute; top: -12px; left: 28px; padding: 2px 12px; border-radius: 999px; background: var(--dark); color: #f5f3ed !important; font-size: 0.72rem; letter-spacing: 0.06em; }
.note { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--muted); }
.faq details p a { color: var(--accent); }

/* CTA */
.cta { text-align: center; background: var(--dark); color: #f5f3ed; }
.cta h2 { color: #f5f3ed; }
.cta p { max-width: 540px; margin: 16px auto 32px; color: #c9c8bf; }
.cta .btn { background: #f5f3ed; color: var(--dark); }
.cta .btn:hover { background: #fff; }

/* Footer */
.footer {
  padding: 40px clamp(16px, 6vw, 80px);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-note { flex-basis: 100%; margin-top: 8px; }

/* Document pages (about, terms, privacy, refunds) */
.doc { max-width: 780px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) 16px clamp(64px, 10vw, 112px); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.7rem; margin: 44px 0 14px; }
.doc p, .doc li { color: #3e3f3a; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 14px 0 0; display: grid; gap: 10px; }
.doc strong { color: var(--fg); }
.doc a { color: var(--accent); }
.doc-date { color: var(--muted) !important; font-size: 0.9rem; margin-bottom: 32px; }
.doc-figure { margin: 32px 0 8px; border-radius: var(--radius); overflow: hidden; }
.doc-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.doc-table { width: 100%; border-collapse: collapse; margin: 28px 0 8px; font-size: 0.95rem; }
.doc-table th, .doc-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.doc-table td:last-child { width: 38%; color: var(--fg); font-weight: 600; }

/* Player */
.player { width: min(1100px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius); background: #000; color: var(--fg); overflow: visible; }
.player.player-vertical { width: min(420px, calc(100vw - 32px)); }
.player.player-vertical video { max-height: calc(100vh - 140px); object-fit: contain; }
.player::backdrop { background: rgba(32, 33, 30, 0.78); backdrop-filter: blur(3px); }
.player video { width: 100%; border-radius: var(--radius) var(--radius) 0 0; background: #000; }
.player-title { padding: 14px 18px; font-family: var(--serif); font-size: 1.25rem; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.player-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 247, 0.6);
  background: transparent;
  color: #fafaf7;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip a:nth-child(n+3) { display: none; }
}
