/* ============================================================
   Aurevon Studio: shared site styles
   Tokens, base, nav, buttons, pills, plans, FAQ, guide list, closing
   field, footer and player. Page sheets add their own sections.
   Faces come from fonts.css. The system is recorded in DESIGN.md.
   ============================================================ */

:root {
  --paper: #ffffff;
  --band: #f4f3f0;
  --ink: #16120e;
  --ink-2: #48423b;
  --muted: #736b62;
  --line: #e6e2dc;
  --line-strong: #d4cec6;

  --night: #16120e;
  --night-2: #221d18;
  --night-line: #3a332c;
  --night-ink: #f5f2ed;
  --night-dim: #b1a89e;

  --orange: #ff5b1f;
  --orange-ink: #c2410c;              /* orange that passes as text on white */
  --orange-soft: #fff0e8;
  --done: #2f8f53;
  --brand-grad: linear-gradient(115deg, #ff3d00, #ff7a1a 48%, #ffb52e);

  --font: "General Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-display: clamp(3rem, 1.6rem + 5.6vw, 6rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(96px, 7rem + 4vw, 168px);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-band: clamp(20px, 2.4vw, 32px);   /* inset ink bands and the closing field */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 1px 2px rgb(22 18 14 / 0.04), 0 8px 24px -8px rgb(22 18 14 / 0.10);
  --shadow-lift: 0 2px 4px rgb(22 18 14 / 0.05), 0 22px 48px -18px rgb(22 18 14 / 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
  caret-color: var(--orange);
}
::selection { background: var(--orange); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: var(--fs-sm);
}
.skip:focus { top: 14px; }

h2.h2 {
  font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04;
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2e2721; }
.btn-dark .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--ink); }
.btn-sm { height: 42px; padding: 0 20px; font-size: var(--fs-sm); }
.btn:active { transform: translateY(1px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 500; text-decoration: none; color: var(--ink);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover span { text-decoration: underline; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 1.0625rem; }
.brand-badge {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-grad);
}
.brand-badge img { width: 19px; height: auto; }
.nav-links { display: flex; gap: 30px; margin-right: auto; }
.nav-links a { text-decoration: none; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 880px) { .nav-links { display: none; } .nav-inner { justify-content: space-between; } }

/* ---------- section heads and pills ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(48px, 7vw, 120px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { max-width: 36ch; }
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill-done { background: #e8f5ec; color: #1f6b3a; }
.pill-orange { background: var(--orange-soft); color: var(--orange-ink); }
.pill-dark { background: var(--ink); color: var(--paper); }
.pill svg { width: 13px; height: 13px; }

/* ---------- pricing ---------- */
.pricing { background: var(--band); padding-block: var(--section); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; row-gap: 0; }
.plan {
  background: var(--paper); border-radius: var(--radius); padding: 32px 30px 30px;
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; box-shadow: var(--shadow-soft); position: relative;
}
.plan h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.plan-for { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.plan-price { margin-top: 26px; font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 0.45em; vertical-align: 0.9em; margin-right: 2px; letter-spacing: 0; color: var(--muted); }
.plan ul { margin: 28px 0 32px; display: grid; gap: 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--orange-ink); }
.plan .btn { align-self: end; justify-content: center; width: 100%; }
.plan.is-featured { background: var(--night); color: var(--night-ink); box-shadow: var(--shadow-lift); }
.plan.is-featured .plan-for, .plan.is-featured .plan-price small { color: var(--night-dim); }
.plan.is-featured ul { color: #d9d2c9; }
.plan.is-featured li svg { color: var(--orange); }
.plan.is-featured .btn-dark { background: var(--orange); color: var(--ink); }
.plan.is-featured .btn-dark:hover { background: #ff7a45; }
.plan-head { align-self: start; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; min-height: 28px; }
.pricing-foot { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; font-size: var(--fs-sm); color: var(--ink-2); }
.pricing-foot p { max-width: 58ch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } .plan { margin-bottom: 20px; } }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); }
.faq-grid { display: grid; grid-template-columns: 1fr minmax(0, 680px); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-grid .lead { margin-top: 20px; max-width: 30ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--orange-ink); }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding-bottom: 26px; color: var(--ink-2); max-width: 56ch; }
.faq-body a { color: var(--orange-ink); font-weight: 500; }
@media (max-width: 960px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- guides ---------- */
.guides { background: var(--band); padding-block: var(--section); }
.guide-list { border-top: 1px solid var(--line-strong); }
.guide-list a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 24px; gap: 12px 40px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none;
}
.guide-list h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; }
.guide-list p { font-size: var(--fs-sm); color: var(--ink-2); }
.guide-list svg { width: 20px; height: 20px; color: var(--muted); transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out); align-self: center; }
.guide-list a:hover h3 { color: var(--orange-ink); }
.guide-list a:hover svg { transform: translateX(4px); color: var(--ink); }
.guides-all { margin-top: 32px; }
@media (max-width: 760px) { .guide-list a { grid-template-columns: 1fr 24px; } .guide-list p { grid-column: 1; } .guide-list svg { grid-row: 1 / span 2; grid-column: 2; } }

/* ---------- close ---------- */
.close { padding: clamp(20px, 2vw, 28px) clamp(8px, 1.4vw, 20px) 0; }
.close-inner {
  background: var(--orange); color: var(--ink); border-radius: var(--radius-band);
  padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 96px);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
}
.close h2 { font-size: var(--fs-display); font-weight: 500; letter-spacing: -0.04em; line-height: 0.98; max-width: 11ch; }
.close p { margin-top: 24px; font-size: var(--fs-lead); max-width: 34ch; color: #3a1a08; }
.close-actions { display: grid; gap: 16px; justify-items: start; }
.close-actions a.mail { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.close p a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.close p a:hover { color: var(--ink); }
.close .btn-dark .dot { background: var(--paper); }
@media (max-width: 880px) { .close-inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--night-dim); margin-top: clamp(20px, 2vw, 28px); padding: clamp(64px, 7vw, 96px) 0 32px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer .brand { color: var(--night-ink); }
.footer-about p { margin-top: 18px; max-width: 30ch; }
.footer h3 { font-size: var(--fs-sm); font-weight: 500; color: var(--night-ink); margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--night-ink); text-decoration: underline; }
.footer-bottom { margin-top: clamp(56px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); }
/* one line of footer for the pages that sit outside the main site (trade, onboarding) */
.footer-min { padding: 40px 0; }
.footer-min .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; font-size: var(--fs-sm); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--gutter); }
.player[hidden] { display: none; }
.player-backdrop { position: absolute; inset: 0; background: rgb(22 18 14 / 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.player-frame { position: relative; width: min(1100px, 100%); }
.player-media { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.player-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; color: var(--night-ink); }
.player-bar h2 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; }
.player-close { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--night-ink); cursor: pointer; font-size: var(--fs-sm); }
.player-close:hover { border-color: var(--night-ink); }
@media (prefers-reduced-motion: no-preference) {
  .player:not([hidden]) .player-frame { animation: pop 0.5s var(--ease-out) both; }
}
@keyframes pop { from { transform: translateY(16px) scale(0.98); } to { transform: none; } }

/* the close at page scale, for every page except the homepage */
.close.compact { margin-top: clamp(72px, 8vw, 120px); }
.close.compact h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; line-height: 1.04; max-width: 16ch; }
.film-think + .close.compact, .contact-page + .close.compact { margin-top: 0; }

/* ---------- film cards (film, partners and reel pages) ---------- */
.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) 24px; }
@media (max-width: 760px) { .film-grid { grid-template-columns: 1fr; } }
.film-card .clip-play { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: var(--radius); position: relative; }
.film-card .clip-media { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--band); box-shadow: var(--shadow-soft); }
.film-card .clip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.film-card .clip-play:hover .clip-media img { transform: scale(1.03); }
.film-card .clip-btn {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px 0 12px; border-radius: 999px; background: rgb(22 18 14 / 0.82); color: #fff;
  font-size: var(--fs-xs); font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.film-card .clip-btn svg { width: 16px; height: 16px; }
.film-card .clip-play:hover .clip-btn, .film-card .clip-play:focus-visible .clip-btn { background: var(--orange); color: var(--ink); }
.film-card h3 { margin-top: 16px; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; }
.film-card p { margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }

/* visible to screen readers only (keeps heading order without changing the design) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

/* ---------- production objects: the slate, the agreement, process artifacts ----------
   Shared by the homepage, the film page, the reel and the trade page. */
.slate { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.slate-clapper {
  height: 34px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 22px, var(--paper) 22px 44px);
  border-bottom: 1px solid var(--ink);
}
.slate-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.slate-top :is(h2, h3) { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.slate dl { display: grid; grid-template-columns: 8.5rem 1fr; }
.slate dt, .slate dd { padding: 15px 26px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.slate dt { color: var(--muted); padding-right: 0; }
.slate dd { color: var(--ink); font-weight: 500; }
.slate dl > :nth-last-child(-n + 2) { border-bottom: 0; }
.slate dd .num { font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .slate dl { grid-template-columns: 1fr; }
  .slate dt { padding-bottom: 0; border-bottom: 0; }
  .slate dd { padding-top: 4px; } }
.artifact {
  order: -1; margin-bottom: 26px; min-height: 230px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 20px; font-size: var(--fs-xs); display: flex; flex-direction: column; gap: 12px;
}
.artifact-title { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.01em; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.checklist li:first-child { border-top: 0; }
.tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #2f8f53; color: #fff; transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out); flex: none; }
.js-artifacts .artifact:not(.is-live) .tick { background: var(--line); color: transparent; }
.tick svg { width: 11px; height: 11px; }
.is-live li:nth-child(2) .tick { transition-delay: 0.15s; }
.is-live li:nth-child(3) .tick { transition-delay: 0.3s; }
.script-lines { display: grid; gap: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.script-lines p { padding: 10px 12px; background: var(--band); border-radius: 8px; }
.script-lines em { font-style: normal; color: var(--muted); font-family: var(--mono); font-size: 11px; margin-right: 6px; }
.artifact-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 12px; color: var(--muted); font-size: 12px; }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.frames span { aspect-ratio: 16 / 10; border-radius: 6px; background: var(--band); position: relative; overflow: hidden; }
.frames span img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frames span::after { content: attr(data-n); position: absolute; left: 6px; top: 4px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.frames span.done::after { left: 4px; top: 4px; padding: 0 4px; border-radius: 4px; background: rgb(22 18 14 / 0.7); color: #f5f2ed; }
.frames span.done { background: #2a241f; }
.bar { height: 6px; border-radius: 99px; background: var(--band); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--orange); border-radius: inherit; transform-origin: left center; transform: scaleX(0.5); transition: transform 1.6s var(--ease-out); }
.js-artifacts .artifact:not(.is-live) .bar i { transform: scaleX(0.12); }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.files li:first-child { border-top: 0; }
.files svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.files li span { margin-left: auto; color: var(--muted); }
@media (max-width: 600px) { .artifact { min-height: 0; } }
.agreement { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.agreement-head { padding: 18px 28px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.clause { padding: 26px 28px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.25rem 1fr; gap: 4px 12px; }
.clause-mark { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; margin-top: 1px; }
.clause-mark svg { width: 14px; height: 14px; }
.clause h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.clause p { color: var(--ink-2); font-size: var(--fs-body); }
.signoff { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 26px 28px 24px; }
.signoff div { border-top: 1px solid var(--ink); padding-top: 8px; font-size: var(--fs-xs); color: var(--muted); }

/* clauses with several paragraphs keep the text column */
.clause > :not(.clause-mark) { grid-column: 2; }
.clause p + p { margin-top: 10px; }
