/* belowthevideo.com - company site. Colours and fonts are set here only. */

@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --green: #10231D;        /* cellar green: hero, model, apply, footer */
  --green-raised: #173027; /* panels on green */
  --ivory: #F2EDE1;        /* page */
  --paper: #FAF7F0;        /* alternate sections */
  --ink: #1A201C;
  --muted: #5A625B;
  --brass: #B38F4F;        /* buttons, keylines */
  --brass-light: #D6BA82;  /* text and lines on green */
  --brass-deep: #7C5F27;   /* text on ivory */
  --leaf: #2B8335;         /* highlighted words in the studio statement */
  --rule: #D8CFBB;
  --rule-dark: rgba(242, 237, 225, 0.2);
  --on-dark: #F2EDE1;
  --on-dark-muted: #B9C2B8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section-space: clamp(72px, 10vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ivory); color: var(--ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

h2, .section-title {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  text-wrap: balance;
}
h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.35rem;
  line-height: 1.25;
  font-variation-settings: "SOFT" 40, "WONK" 0;
}
.lede { margin-top: 20px; color: var(--muted); max-width: 34ch; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  padding: 18px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-brass { background: var(--brass); color: var(--green); }
.btn-brass:hover { background: var(--brass-light); }
.btn-small { padding: 12px 20px; font-size: 1rem; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.text-link { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- dark surfaces ---------- */
.dark { background: var(--green); color: var(--on-dark); }
.dark .lede { color: var(--on-dark-muted); }

/* ---------- hero ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; font-weight: 440; letter-spacing: -0.005em; font-variation-settings: "SOFT" 40, "WONK" 0; white-space: nowrap; }
.mark { width: 26px; height: auto; color: var(--brass-light); flex: none; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 1rem; }
.nav-links a { text-decoration: none; color: var(--on-dark-muted); }
.nav-links a:hover { color: var(--on-dark); }

.hero-body { padding-top: clamp(12px, 3vw, 36px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-title { font-family: var(--font-display); font-weight: 300; font-variation-settings: "SOFT" 40, "WONK" 0; }
.hero-title > span, .frame > span, .player > span { display: block; }

/* The video. The first half of the headline plays inside it. */
.frame {
  position: relative;
  min-height: clamp(210px, 36vh, 380px);
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) clamp(40px, 4.5vw, 60px);
  border: 1px solid var(--brass);
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(214, 186, 130, 0.13), transparent 55%),
    var(--green-raised);
}
.frame-line { font-size: clamp(2.5rem, 6.4vw, 5.5rem); line-height: 1.02; letter-spacing: -0.025em; }
.player { position: absolute; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: 16px; display: flex !important; align-items: center; gap: 16px; }
.player-bar { flex: 1; height: 2px; background: var(--rule-dark); }
.player-progress { display: block; height: 100%; width: 33%; background: var(--brass-light); transform-origin: left center; animation: play 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.player-time { font-family: var(--font-text); font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--on-dark-muted); letter-spacing: 0.01em; }

/* Below the video. The second half sits where the description goes. */
.below-line {
  margin-top: clamp(22px, 3vw, 36px);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.85rem, 4.5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--brass-light);
  animation: settle 0.9s ease 0.5s both;
}
.hero-lower { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; margin-top: clamp(24px, 3vw, 40px); }
.hero-sub { max-width: 52ch; color: var(--on-dark-muted); font-size: 1.1875rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; justify-content: flex-end; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule-dark); }
.hero-facts li { padding: 18px 24px 0 0; font-size: 1rem; color: var(--on-dark); }
.hero-facts li + li { padding-left: 24px; border-left: 1px solid var(--rule-dark); }

@keyframes play { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes settle { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: var(--section-space); }
.section-paper { background: var(--paper); }
.section-title { margin-bottom: clamp(36px, 5vw, 64px); max-width: 22ch; }

/* Heading on the left, content on the right. */
.ledger { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }
.ledger-head { min-width: 0; }

.points > div, .terms > div { padding-block: 24px; border-top: 1px solid var(--rule); }
.points > div:last-child, .terms > div:last-child { border-bottom: 1px solid var(--rule); }
.points dt, .terms dt { font-family: var(--font-display); font-size: 1.35rem; font-weight: 420; line-height: 1.25; font-variation-settings: "SOFT" 40, "WONK" 0; }
.points dd, .terms dd { margin-top: 6px; color: var(--muted); max-width: 56ch; }
.dark .terms > div { border-color: var(--rule-dark); }
.dark .terms dd { color: var(--on-dark-muted); }
.dark .terms dt { color: var(--brass-light); }
.terms > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4px 32px; align-items: baseline; }
.terms dd { margin-top: 0; }

/* Who does what: a short list next to a long one. */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(40px, 7vw, 112px); }
.split-col h3 { color: var(--brass-deep); margin-bottom: 8px; }
.split-col-ours { border-left: 1px solid var(--rule); padding-left: clamp(24px, 5vw, 72px); }
.plain-list li { padding-block: 13px; border-bottom: 1px solid var(--rule); }
.split .plain-list li { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 340; line-height: 1.25; font-variation-settings: "SOFT" 40, "WONK" 0; }

/* What we make */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.product-lead { padding-top: 22px; border-top: 2px solid var(--ink); }
.product-lead h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 340; letter-spacing: -0.015em; line-height: 1.1; }
.product-lead p { margin-top: 12px; color: var(--muted); max-width: 30ch; }
.product-also { grid-column: 1 / -1; margin-top: 48px; }
.product-also h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 400; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }

/* How it works: a real sequence, so it is numbered. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(28px, 4vw, 64px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.step-num { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(3.2rem, 6vw, 5rem); line-height: 1; color: var(--brass-deep); font-variation-settings: "SOFT" 40, "WONK" 0; }
.steps h3 { margin-top: 20px; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 34ch; }

.studio-text { margin-top: 5px; padding-top: 5px; font-family: var(--font-display); font-weight: 320; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; max-width: 32ch; font-variation-settings: "SOFT" 40, "WONK" 0; }
.studio-text strong { font-weight: 600; color: var(--leaf); }
.statement { font-family: var(--font-display); font-weight: 320; font-size: clamp(1.6rem, 3.3vw, 2.75rem); line-height: 1.2; letter-spacing: -0.015em; max-width: 26ch; font-variation-settings: "SOFT" 40, "WONK" 0; text-wrap: balance; }

/* ---------- fields (calculator and application) ---------- */
.field { display: block; }
.field > span { display: block; font-size: 0.9375rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 0 10px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--brass); padding-bottom: 9px; }
.field ::placeholder { color: inherit; opacity: 0.45; }

.calc-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px clamp(24px, 4vw, 48px); align-items: end; }
.calc-fields input { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.calc-result { background: var(--green); color: var(--on-dark); padding: clamp(28px, 4vw, 44px); border: 1px solid var(--brass); }
.calc-label { font-size: 0.9375rem; color: var(--on-dark-muted); }
.calc-figure { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 4.75rem); line-height: 1.05; letter-spacing: -0.03em; margin-top: 8px; color: var(--brass-light); font-variant-numeric: tabular-nums; font-variation-settings: "SOFT" 40, "WONK" 0; overflow-wrap: anywhere; }
.calc-copies { margin-top: 6px; font-size: 1.1875rem; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule-dark); font-size: 0.9375rem; font-style: italic; color: var(--on-dark-muted); }

/* Benchmarks beside the calculator: published figures, each with its source. */
.bench { display: grid; gap: 28px; align-content: start; }
.bench-sub { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.bench-rows { margin-top: 14px; }
.bench-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 10px; border-top: 1px solid var(--rule); }
.bench-rows > div:last-child { border-bottom: 1px solid var(--rule); }
.bench-rows dt { font-size: 1rem; }
.bench-rows dd { font-family: var(--font-display); font-size: 1.2rem; font-weight: 420; color: var(--brass-deep); font-variant-numeric: tabular-nums; white-space: nowrap; font-variation-settings: "SOFT" 40, "WONK" 0; }
.bench-note { color: var(--muted); }

/* The "i" behind the result label: what the figure includes, on hover, focus or tap. */
.calc-label { position: relative; }
.info {
  display: inline-grid; place-items: center;
  position: relative;
  width: 13px; height: 13px; margin-left: 3px; padding: 0;
  font: italic 500 0.5625rem/1 var(--font-text);
  color: var(--brass-light); background: transparent;
  border: 1px solid var(--brass-light); border-radius: 50%;
  cursor: pointer; vertical-align: top; top: 1px;
}
.info::after { content: ""; position: absolute; inset: -12px; } /* a finger-sized target around the small mark */
.info:hover, .info[aria-expanded="true"] { background: var(--brass-light); color: var(--green); }
.info-tip {
  display: none;
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 2;
  max-width: 30ch; padding: 12px 14px;
  background: var(--ivory); color: var(--ink);
  font-size: 0.9375rem; line-height: 1.45;
  border: 1px solid var(--brass);
}
.info:hover + .info-tip, .info:focus-visible + .info-tip, .info[aria-expanded="true"] + .info-tip { display: block; }

/* Estimate on wide screens: two rows that line up across the columns.
   Heading beside the inputs, the benchmark table beside the result. */
.estimate .lede { max-width: none; }
@media (min-width: 861px) {
  .estimate > .ledger-head { grid-column: 1; grid-row: 1; }
  .estimate > .bench { grid-column: 1; grid-row: 2; }
  .estimate > .calc-fields { grid-column: 2; grid-row: 1; align-self: stretch; align-content: space-between; }
  .estimate > .calc-result { grid-column: 2; grid-row: 2; align-self: stretch; display: flex; flex-direction: column; }
  .estimate .calc-copies { margin-bottom: 24px; }
  .estimate .calc-note { margin-top: auto; }
}

/* ---------- fit ---------- */
.fit-list li { padding-block: 18px; border-top: 1px solid var(--rule); font-size: 1.1875rem; }
.fit-list li:last-child { border-bottom: 1px solid var(--rule); }
.fit-not { margin-top: 24px; color: var(--muted); font-style: italic; }

/* ---------- questions ---------- */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding-block: 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.3;
  font-variation-settings: "SOFT" 40, "WONK" 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-text); font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--brass-deep); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 60ch; }

/* ---------- apply ---------- */
.apply-form { display: grid; gap: 26px; }
.dark .field > span { color: var(--on-dark-muted); }
.dark .field input, .dark .field textarea { border-bottom-color: var(--rule-dark); }
.dark .field input:focus-visible, .dark .field textarea:focus-visible { border-bottom-color: var(--brass-light); }
.apply-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9375rem; color: var(--on-dark-muted); }
.form-error { padding: 14px 16px; border: 1px solid var(--brass-light); color: var(--on-dark); font-size: 1rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom: 2px solid var(--brass-light); }
.apply-done { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--brass); background: var(--green-raised); }
.apply-done h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 340; color: var(--brass-light); }
.apply-done p { margin-top: 12px; color: var(--on-dark-muted); }
.apply-done:focus { outline: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule-dark); font-size: 1rem; color: var(--on-dark-muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(40px, 7vw, 112px); padding-block: 48px; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--on-dark); font-variation-settings: "SOFT" 40, "WONK" 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-links a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer-links a:hover { color: var(--on-dark); }
.footer-copy { grid-column: 1 / -1; font-size: 0.9375rem; }
.footer-disclaimer { grid-column: 1 / -1; font-size: 0.9375rem; }

/* ---------- legal pages ---------- */
.legal-nav { border-bottom: 1px solid var(--rule-dark); }
.legal { max-width: 720px; padding-block: clamp(48px, 8vw, 96px); }
.legal h1 { font-family: var(--font-display); font-weight: 320; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; font-variation-settings: "SOFT" 40, "WONK" 0; }
.legal h2 { font-size: 1.5rem; font-weight: 420; margin-top: 48px; letter-spacing: 0; }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li { margin-top: 6px; }
.legal a { text-underline-offset: 4px; }
.legal .updated { color: var(--muted); font-style: italic; }

/* ---------- about page ---------- */
.nav-links a[aria-current="page"] { color: var(--on-dark); }
/* One centered reading column, 680px of text. The title and the story share its left edge. */
.about-col { max-width: calc(680px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.about-open { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }
.about-open h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "SOFT" 40, "WONK" 0; }

/* The story: a heading per chapter, wide gaps between paragraphs. */
.story { padding-block: clamp(56px, 8vw, 104px); }
.story p { line-height: 1.65; text-wrap: pretty; }
.story p + p { margin-top: 32px; }
.story h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-top: 72px; margin-bottom: 28px; }
.story .story-lede {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--brass);
  font-family: var(--font-display);
  font-weight: 320;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  text-wrap: balance;
}
/* The line a chapter ends on. */
.story .story-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 320;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--brass-deep);
  font-variation-settings: "SOFT" 40, "WONK" 0;
}
.story-close { margin-top: 72px; border-top: 1px solid var(--rule); }
.story-close .btn { margin-top: 32px; }

/* ---------- small screens ---------- */
/* Five nav links need about 960px; below that only the wordmark and Apply stay. */
.nav-links a { white-space: nowrap; }
@media (max-width: 980px) {
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .ledger, .split, .footer-inner, .hero-lower { grid-template-columns: minmax(0, 1fr); }
  .lede { max-width: none; }
  .hero-actions { justify-content: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .split-col-ours { border-left: 0; padding-left: 0; margin-top: 44px; }
  .terms > div { grid-template-columns: minmax(0, 1fr); }
  .products { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .product-also { margin-top: 12px; }
}
@media (max-width: 620px) {
  body { font-size: 1.0625rem; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts li { padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
  .hero-facts li + li { padding-left: 0; border-left: 0; }
  .calc-fields { grid-template-columns: minmax(0, 1fr); }
  .wordmark { font-size: 1.05rem; }
  .btn { padding: 16px 22px; }
  .btn-small { padding: 11px 16px; }
  .story p + p { margin-top: 26px; }
  .story h2 { margin-top: 56px; margin-bottom: 22px; }
  .story-close { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .player-progress, .below-line { animation: none; }
  .btn, .faq summary::after { transition: none; }
}
