/* Second Take by Unit 813: landing page */

@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Variable.woff2") format("woff2"), local("Satoshi Variable");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Display";
  src: url("fonts/SourceSerif4-Display-Regular.woff2") format("woff2"), local("Source Serif 4 48pt"), local("Source Serif 4");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif Display";
  src: url("fonts/SourceSerif4-Display-Medium.woff2") format("woff2"), local("Source Serif 4 48pt Medium");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Unit 813 palette */
  --paper: #f2efeb;   /* limewash */
  --ink: #2b2b2b;     /* formwork */
  --oxide: #6c3439;   /* the one accent */
  --quarry: #ada8a2;
  --soft: rgb(43 43 43 / 0.66);
  --tint: rgb(43 43 43 / 0.06);

  --sans: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Source Serif Display", "Source Serif 4", Georgia, "Times New Roman", serif;

  /* type scale */
  --t-display: clamp(2.5rem, 1.35rem + 4.9vw, 5.25rem);
  --t-h2: clamp(2rem, 1.3rem + 2.9vw, 3.75rem);
  --t-h3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --t-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;

  /* spacing rhythm, 8px base */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1.25rem, 0.3rem + 4vw, 5rem);
  --radius: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);

  --ease: cubic-bezier(0.45, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, .num, .brand-name {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); line-height: 1.02; }
h2 { font-size: var(--t-h2); line-height: 1.06; }
h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.015em; }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--soft); text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(80rem + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section); }

.skip {
  position: absolute; left: var(--s2); top: -4rem; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; border-radius: 0.5rem; text-decoration: none;
}
.skip:focus { top: var(--s2); }

:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; border-radius: 4px; }

/* Header */

.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  transition: box-shadow 300ms var(--ease);
}
.top.is-stuck { box-shadow: 0 1px 0 rgb(43 43 43 / 0.1); }
.top-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem;
}

.brand { display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none; }
.brand-name { font-size: 1.625rem; line-height: 1; }
.brand-by { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--soft); font-weight: 300; }
.brand-by b { font-weight: 700; letter-spacing: 0.06em; }

/* Buttons and links */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.0625rem; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    inset 0 -1px 0 rgb(0 0 0 / 0.35),
    0 1px 2px rgb(43 43 43 / 0.35),
    0 10px 24px -10px rgb(43 43 43 / 0.45);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn:hover { background: #3a3939; transform: translateY(-1px); }
.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.4), 0 1px 1px rgb(43 43 43 / 0.2);
}
.btn-small { min-height: 2.75rem; padding: 0 1.25rem; font-size: 0.9375rem; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 2px rgb(43 43 43 / 0.3); }
.btn-small .short { display: none; }
.btn-large { min-height: 4rem; padding: 0 2.25rem; font-size: 1.1875rem; }
.btn-light {
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.12), 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 24px -10px rgb(0 0 0 / 0.5);
}
.btn-light:hover { background: #fff; }

.link {
  font-size: 1rem; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  text-decoration-color: rgb(43 43 43 / 0.35);
  transition: color 200ms var(--ease), text-decoration-color 200ms var(--ease);
  padding-block: 0.75rem;
}
.link:hover { color: var(--oxide); text-decoration-color: currentColor; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); }

/* Video frames */

.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1c1c1c;
  aspect-ratio: 960 / 506;
  transform: translateZ(0);
}
.frame video { width: 100%; height: 100%; object-fit: cover; }

/* Hero */

.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) 0; }
.hero h1 { max-width: 21ch; }
.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6);
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.hero-row .lead { max-width: 36rem; }
.hero-row .actions { flex-direction: column; align-items: flex-start; gap: var(--s1); flex: none; }
.hero-frame {
  margin-top: clamp(2rem, 1rem + 3.5vw, 4rem);
  box-shadow: 0 30px 60px -30px rgb(43 43 43 / 0.45);
}

/* Two-column sections */

.split {
  display: grid; grid-template-columns: 5fr 6fr; column-gap: clamp(2rem, 8vw, 8rem); row-gap: var(--s5);
  align-items: start;
}
.narrow { max-width: 18ch; }

/* Problem */

.points { display: grid; gap: var(--s4); padding-top: 0.5rem; }
.points p { font-size: var(--t-lead); line-height: 1.5; color: var(--soft); max-width: 34rem; }
.points strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.25rem; }

/* Steps */

.steps { padding-top: 0; }
.rows { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.row {
  display: grid; grid-template-columns: 5fr 4fr 2fr; column-gap: clamp(2rem, 5vw, 5rem);
  align-items: baseline;
}
.row h3 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 3rem); letter-spacing: -0.02em; line-height: 1.05; }
.row p { color: var(--soft); max-width: 30rem; font-size: var(--t-lead); line-height: 1.5; }
.part { font-size: var(--t-body) !important; color: var(--ink) !important; font-weight: 500; }
.part span { display: block; color: var(--soft); font-weight: 400; }

/* Work gallery */

.work { background: var(--ink); color: var(--paper); }
.work .lead { color: var(--quarry); }
.work-head {
  display: grid; grid-template-columns: 7fr 4fr; column-gap: clamp(2rem, 8vw, 8rem); row-gap: var(--s3);
  align-items: end;
}
.gallery {
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 2rem + 3vw, 4.5rem) clamp(1.25rem, 0.5rem + 2vw, 2rem);
}
.gallery .frame { background: #1c1c1c; box-shadow: 0 0 0 1px rgb(242 239 235 / 0.06); }
figcaption { margin-top: var(--s3); }
figcaption h3 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); }
figcaption p { margin-top: 0.375rem; color: var(--quarry); }

figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.sound {
  display: inline-flex; align-items: center; gap: 0.625rem; flex: none;
  min-height: 2.75rem; padding: 0 1.125rem 0 1rem;
  border: 0; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 0.9375rem/1 var(--sans);
  cursor: pointer;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.sound:hover { background: #fff; transform: translateY(-1px); }
.sound svg { width: 0.75rem; height: 0.75rem; fill: currentColor; flex: none; }
.sound span { color: var(--soft); font-variant-numeric: tabular-nums; }
figure.is-full .sound { display: none; }

/* Plans */

.plan-grid {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  display: grid; grid-template-columns: 3fr 3fr 4fr; column-gap: clamp(2rem, 5vw, 5rem); row-gap: var(--s6);
  align-items: start;
}
.num {
  font-size: clamp(6.5rem, 3rem + 13vw, 13rem);
  line-height: 0.82; letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
  margin-left: -0.04em;
}
.plan h3 { margin-top: var(--s3); }
.plan p:not(.num) { margin-top: var(--s1); color: var(--soft); max-width: 16rem; }
.both { padding-top: 0.75rem; }
.both h3 { font-family: var(--sans); font-size: var(--t-body); font-weight: 600; letter-spacing: 0; line-height: 1.55; }
.both ul { margin-top: var(--s2); display: grid; gap: 0.75rem; }
.both li { position: relative; padding-left: 1.5rem; color: var(--soft); }
.both li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 0.75rem; height: 1.5px; background: var(--ink);
}

/* Starter: the one place the accent is used as a surface */

.starter-wrap { padding-top: 0; }
.starter {
  background: var(--oxide); color: var(--paper);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 1rem + 5vw, 5.5rem);
  display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.starter h2 { max-width: 14ch; }
.starter .lead { color: rgb(242 239 235 / 0.82); margin-top: var(--s3); max-width: 32rem; }
.starter .lead + .lead { margin-top: var(--s2); color: var(--paper); }
.starter .btn { margin-top: var(--s5); }
.four { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.5rem, 1vw, 0.875rem); }
.four img {
  width: 100%; border-radius: calc(var(--radius) * 0.6);
  box-shadow: 0 12px 28px -14px rgb(0 0 0 / 0.6);
}

/* Episode form */

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.episode-wrap { padding-top: 0; }
.episode {
  background: var(--ink); color: var(--paper);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 1rem + 5vw, 5.5rem);
  display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.episode h2 { max-width: 17ch; }
.episode .lead { color: var(--quarry); margin-top: var(--s3); max-width: 32rem; }
.episode-form { display: grid; gap: 0.75rem; justify-items: start; }
.episode-form input {
  width: 100%; min-height: 3.75rem; padding: 0 1.25rem;
  border: 0; border-radius: calc(var(--radius) * 0.6);
  background: rgb(242 239 235 / 0.08); color: var(--paper);
  font: 400 1.0625rem/1.2 var(--sans);
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.episode-form input::placeholder { color: rgb(242 239 235 / 0.6); opacity: 1; }
.episode-form input:hover { background: rgb(242 239 235 / 0.11); }
.episode-form input:focus-visible { outline: none; background: rgb(242 239 235 / 0.12); box-shadow: 0 0 0 2px var(--paper); }
.episode-form .btn { margin-top: 0.5rem; border: 0; cursor: pointer; font-family: var(--sans); }
.episode-form .btn:focus-visible { outline-color: var(--paper); }
.form-note { color: var(--paper); font-size: var(--t-small); margin-top: 0.25rem; }

/* FAQ */

.faq { padding-top: 0; }
.qa { display: grid; gap: var(--s1); }
details { border-radius: var(--radius); transition: background-color 300ms var(--ease); }
details[open] { background: var(--tint); }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 1.25rem 1.5rem;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); font-weight: 500; line-height: 1.3;
  border-radius: var(--radius);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 0.875rem; height: 0.875rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 300ms var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 3.5rem 1.5rem 1.5rem; color: var(--soft); max-width: 40rem; }

/* Close */

.close { padding-top: 0; text-align: center; }
.close h2 { font-size: var(--t-display); line-height: 1.02; max-width: 17ch; margin-inline: auto; }
.close .lead { margin: var(--s4) auto 0; max-width: 32rem; }
.close .actions { margin-top: var(--s5); flex-direction: column; gap: var(--s2); }

/* Footer */

.foot { background: var(--ink); color: var(--paper); padding-block: var(--s6); }
.foot-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.foot .brand-name { font-size: 2rem; }
.foot .brand-by { color: var(--quarry); }
.foot p { font-size: var(--t-small); color: var(--quarry); text-align: right; }

/* Motion: one quiet reveal, eased both ways */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .sound, .link, .episode-form input, summary::after, details { transition: none; }
}

/* Tablet */

@media (max-width: 960px) {
  .split, .work-head { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 1fr; row-gap: var(--s2); }
  .row h3 { grid-column: 1 / -1; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .both { grid-column: 1 / -1; padding-top: 0; }
  .starter, .episode { grid-template-columns: 1fr; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-row .actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s4); }
}

/* Phone */

@media (max-width: 640px) {
  .top-row { min-height: 4rem; }
  .brand-name { font-size: 1.5rem; }
  .btn-small .long { display: none; }
  .btn-small .short { display: inline; }
  .hero-row .actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--s1); }
  .hero-row .actions .link, .close .actions .link { text-align: center; }
  .hero-row .btn, .starter .btn, .close .btn, .episode-form .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .part span { display: inline; }
  .part span::after { content: ": "; }
  .plan-grid { column-gap: var(--s3); }
  summary { padding: 1.125rem 1.125rem; }
  details p { padding: 0 1.125rem 1.25rem; }
  .starter, .episode { margin-inline: calc(var(--gutter) * -0.4); }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot p { text-align: left; }
}

/* Booking calendar in the closing block */
.booking { margin: var(--s5) auto 0; max-width: 62rem; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgb(43 43 43 / 0.08), 0 18px 40px -24px rgb(43 43 43 / 0.35); }
.booking iframe { display: block; width: 100%; height: 640px; border: 0; }
.close .actions { margin-top: var(--s3); }
@media (max-width: 720px) { .booking iframe { height: 980px; } .booking { margin-inline: calc(var(--gutter) * -0.4); } }

/* v6: form in the hero, promo slot, privacy page */
.hero-row { align-items: flex-start; }
.hero-form { flex: none; width: min(100%, 26rem); display: grid; gap: var(--s1); justify-items: start; }
.hero-form .episode-form { width: 100%; }
.episode-form-light input { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(43 43 43 / 0.14); }
.episode-form-light input::placeholder { color: var(--soft); }
.episode-form-light input:hover { background: #fff; box-shadow: inset 0 0 0 1px rgb(43 43 43 / 0.3); }
.episode-form-light input:focus-visible { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.episode-form-light .btn { width: 100%; }
.episode-form-light .form-note { color: var(--ink); }
.form-why { font-size: var(--t-small); color: var(--soft); }
.link-light { color: var(--paper); text-decoration-color: rgb(242 239 235 / 0.4); display: inline-block; margin-top: var(--s2); }
.link-light:hover { color: #fff; }
.work { margin-top: var(--section); }
.promo-frame { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--tint); box-shadow: inset 0 0 0 1px rgb(43 43 43 / 0.12); }
.slot-label { text-align: center; font-family: var(--serif); font-size: var(--t-h3); color: var(--soft); }
.slot-label span { font-family: var(--sans); font-size: var(--t-small); }
.faq { padding-top: var(--section); }
.foot p a { color: var(--paper); }
.legal { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--section); }
.legal h1 { font-size: var(--t-h2); }
.legal .body { margin-top: var(--s5); max-width: 40rem; display: grid; gap: var(--s3); }
.legal h2 { font-size: var(--t-h3); margin-top: var(--s2); }
.legal p { color: var(--soft); }
@media (max-width: 960px) { .hero-form { width: 100%; max-width: 32rem; } }
@media (max-width: 640px) { .hero-form { max-width: none; justify-items: stretch; } .hero-form .link { text-align: center; } }
