/* ============================================================
   Rainey Dental Partners — Swiss-editorial rebuild
   Reference language: thisisstudiox.com — monochrome, type-led,
   giant sans headlines with compressed-serif italic inflections,
   parenthetical section labels, hairlines, fluid space, pills.
   Committed single theme: warm paper, ink, one dark section.
   ============================================================ */

:root {
  --paper: #fafaf7;
  --bone: #eae7db;
  --ink: #1a1a18;
  --mute: #6f6f68;
  --line: #dbd9d0;
  --accent: #8f7e63;       /* warm stone-bronze */
  --accent-deep: #6f6149;  /* stone, dark enough for small text */
  --dark: #161614;
  --dark-text: #f4f3ee;
  --dark-mute: #9a9a92;
  --dark-line: #33332f;
  /* marble: generated veining, no image files */
  --marble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.013' numOctaves='5' seed='8'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.54 0 0 0 0 0.51 0 0 0 0 0.46 0 0 0 0.9 -0.28'/%3E%3C/filter%3E%3Crect width='1600' height='1000' fill='%23ece8df'/%3E%3Crect width='1600' height='1000' filter='url(%23v)' opacity='0.45'/%3E%3C/svg%3E");
  /* white marble: bright stone, whisper veining */
  --marble-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.011' numOctaves='5' seed='21'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.62 0 0 0 0 0.59 0 0 0 0 0.54 0 0 0 0.85 -0.32'/%3E%3C/filter%3E%3Crect width='1600' height='1000' fill='%23f8f6f1'/%3E%3Crect width='1600' height='1000' filter='url(%23v)' opacity='0.3'/%3E%3C/svg%3E");
  /* black marble: same stone, lights out */
  --marble-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.012' numOctaves='5' seed='14'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.82 0 0 0 0 0.79 0 0 0 0 0.72 0 0 0 0.9 -0.32'/%3E%3C/filter%3E%3Crect width='1600' height='1000' fill='%23141210'/%3E%3Crect width='1600' height='1000' filter='url(%23v)' opacity='0.28'/%3E%3C/svg%3E");
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Didot", "Times New Roman", serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --space: clamp(4rem, 10vw, 10rem);
  --space-s: clamp(2.5rem, 6vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- the two type voices ---------- */
/* The serif is upright by default; italic is reserved for the big
   display sizes where it stays legible. */

em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-title em, .headline em, .final-title em { font-style: italic; }

.paren {
  color: var(--accent-deep);
  font-size: 0.62em;
  vertical-align: 0.28em;
  margin-right: 0.35em;
  white-space: nowrap;
}

::selection { background: rgba(143, 126, 99, 0.28); }

/* ---------- buttons & links ---------- */

.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.pill:hover { transform: scale(1.04); background: var(--accent-deep); border-color: var(--accent-deep); }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.pill-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill-paper:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.link-arrow {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
  white-space: nowrap;
}

.link-arrow::after { content: "\2197"; margin-left: 0.4em; font-size: 0.85em; color: var(--accent); }
.link-arrow:hover { opacity: 0.6; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.55rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}

.nav-brand img { height: 2.4rem; width: auto; display: block; }

@media (max-width: 800px) {
  .nav-brand img { height: 1.8rem; }
}

.nav-brand sup { font-size: 0.55em; font-weight: 400; }

.nav-links { display: flex; gap: 1.8rem; }

.nav-links a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--ink); }

.nav .pill { padding: 0.5em 1.3em; font-size: 0.9rem; }

/* ---------- mobile menu ---------- */

.nav-menu-btn {
  display: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.45em 1.2em;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 18; /* beneath the nav bar so Menu/Close stays tappable */
  background: var(--paper);
  padding: 6rem var(--gutter) 2.5rem;
  display: none;
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu-links { display: grid; gap: 1.5rem; justify-items: start; }

.mobile-menu-links a {
  font-family: var(--serif);
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu-links a.mobile-menu-pill {
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-top: 1.2rem;
  color: var(--paper); /* beats the menu's ink link color; text stays visible on the ink pill */
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav > .pill { display: none; } /* the CTA lives inside the menu on phones */
  .nav-menu-btn { display: inline-block; }
  .nav-brand { font-size: 0.9rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(2.5rem, 6vh, 5rem);
  padding: 8.5rem var(--gutter) clamp(1.5rem, 3vh, 2.4rem);
  color: var(--dark-text);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--dark); /* elegant fallback if the video ever fails */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* darker on the left where the headline lives, and along the base for the meta row;
   the dog on the right stays clear */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 10, 0.72), rgba(14, 12, 10, 0.34) 52%, rgba(14, 12, 10, 0.06)),
    linear-gradient(0deg, rgba(14, 12, 10, 0.66), transparent 38%);
}

.hero-title {
  position: relative;
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-title em { letter-spacing: -0.01em; color: #d9c294; }

.hero-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  border-top: 1px solid rgba(244, 243, 238, 0.28);
  padding-top: 1.5rem;
}

.hero-meta {
  font-size: 1.15rem;
  line-height: 1.45;
  color: rgba(244, 243, 238, 0.82);
  max-width: 30rem;
}

.hero-meta em { color: #d9c294; }

.hero-actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

.hero .pill { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero .pill:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper); }
.hero .link-arrow { color: var(--dark-text); }

@media (max-width: 700px) {
  /* portrait crop: keep the dog (right of frame) in the shot */
  .hero-video { object-position: 68% center; }
  .hero { padding-top: 6.5rem; gap: 1.8rem; }
}

/* ---------- trust strip ---------- */

.strip {
  position: relative;
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8f6f1 var(--marble-white) center / cover;
  overflow: hidden;
}

/* the label holds the left edge; logos blur out behind it before they reach the text */
.strip-label {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 4rem 0 var(--gutter);
  background: linear-gradient(90deg, #f8f6f1 72%, rgba(248, 246, 241, 0.88) 87%, rgba(248, 246, 241, 0));
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.7;
}

/* seamless marquee: track holds two copies of the set, slides half its width */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.logo-track {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  padding-right: 5rem;
  animation: logo-scroll 44s linear infinite;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-track li { display: flex; align-items: center; }

.logo-track img {
  display: block;
  height: auto;
  width: auto;
  max-height: 3.1rem;
  max-width: 12rem;
  object-fit: contain;
  /* every mark rendered solid black: one ink, one neighborhood */
  filter: brightness(0);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-track img:hover { opacity: 1; }

/* stacked/square marks read small: give them height */
.logo-track img.logo-lg { max-height: 4.1rem; }

/* wide wordmarks (Loop, Drangsholt) are width-capped: give them room */
.logo-track img.logo-wide { max-width: 16rem; max-height: 3.4rem; }

@media (max-width: 700px) {
  .strip { display: grid; gap: 2rem; padding: 3.2rem 0; }
  .strip-label {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    justify-content: center;
    text-align: center;
    padding: 0 var(--gutter);
  }
  .logo-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  /* minimal on phones: smaller marks, more air between them */
  .logo-track { gap: 3.2rem; padding-right: 3.2rem; }
  .logo-track img { max-height: 1.9rem; max-width: 8rem; }
  .logo-track img.logo-lg { max-height: 2.4rem; }
  .logo-track img.logo-wide { max-width: 9.5rem; max-height: 2rem; }
}

/* ---------- sections ---------- */

.section { padding: var(--space) var(--gutter); }

/* the price follows the film closely */
#price { padding-top: clamp(2rem, 4vw, 3.5rem); }

/* The Reveal sits on the cream marble photograph: text over the white left,
   stone and the gold toothbrush holding the right and base.
   Fixed attachment = the marble holds still while the page scrolls over it. */
#reveal {
  background: #faf9f5 url("assets/m/e13cf4f449.webp") center bottom / cover no-repeat;
  background-attachment: fixed;
}

/* iOS and most touch browsers don't support fixed backgrounds; scroll normally there */
@media (hover: none), (max-width: 700px) {
  #reveal { background-attachment: scroll; }
}

/* phones get the clean marble gradient; larger screens keep the toothbrush slab */
@media (max-width: 700px) {
  #reveal {
    background-image: url("assets/m/b93439e912.webp");
    background-position: center;
  }
}

.section-hairline { border-top: 1px solid var(--line); }

.headline {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}

.section-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem var(--space-s);
  align-items: start;
}

@media (max-width: 800px) {
  .section-cols { grid-template-columns: 1fr; }
}

.col-prose { display: grid; gap: 1.1rem; max-width: 34rem; font-size: 1.15rem; }

.col-aside { display: grid; gap: 1.4rem; justify-items: start; }

.aside-kicker {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.2;
}

/* ---------- the film ---------- */

.film { padding: 0 var(--gutter) var(--space); }

.film-media { position: relative; }

.film-video, .film-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bone);
}

.film-placeholder {
  position: absolute;
  inset: 0 0 auto 0;
  display: grid;
  place-items: center;
  background: var(--bone) var(--marble) center / cover;
}

.film-placeholder span {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--accent-deep);
}

.film-caption {
  padding-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--mute);
}

.film-caption .paren { font-size: 0.95em; vertical-align: baseline; }

/* ---------- the designs: center-stage scroller ---------- */

.showcase { padding-left: 0; padding-right: 0; }

.showcase .headline { padding: 0 var(--gutter); }

.showcase-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.showcase-scroller::-webkit-scrollbar { display: none; }

.showcase-scroller:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.showcase-track {
  list-style: none;
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  padding: 0.5rem 14%;
  width: max-content;
}

.showcase-track li {
  flex: 0 0 auto;
  width: min(72vw, 56rem);
  scroll-snap-align: center;
  opacity: 0.4;
  transform: scale(0.965);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.showcase-track li.is-center { opacity: 1; transform: none; }

.showcase-track figure { display: grid; gap: 0.7rem; }

.showcase-track img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -32px rgba(26, 26, 24, 0.45);
}

.showcase-track figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-align: center;
}

.showcase-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  padding: 2rem var(--gutter) 0;
}

.showcase-nav { display: flex; align-items: center; gap: 1.5rem; }

.showcase-btn {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.showcase-btn:hover { background: var(--ink); color: var(--paper); }

.showcase-count {
  font-size: 0.85rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}


@media (max-width: 700px) {
  .showcase-track li { width: 84vw; }
  .showcase-track { padding: 0.5rem 8vw; }
  .showcase-controls { padding-top: 1.4rem; }
}

/* ---------- the work (dark) ---------- */

.section-dark {
  background: var(--dark);
  color: var(--dark-text);
}

.section-dark .paren { color: var(--dark-mute); }

.work-rows { list-style: none; border-top: 1px solid var(--dark-line); }

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--dark-line);
}

.work-name {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

a.work-name:hover { color: #d9c294; }

a.work-media { display: block; transition: opacity 0.3s ease; }

a.work-media:hover { opacity: 0.82; }

.work-type { color: var(--dark-mute); font-size: 0.95rem; }

.work-media {
  aspect-ratio: 16 / 9;
  max-width: 14rem;
  width: 100%;
  background: #222220;
  display: grid;
  place-items: center;
  border: 1px solid var(--dark-line);
  overflow: hidden;
}

.work-media::after {
  content: attr(data-placeholder);
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--dark-mute);
}

.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; }

.work-row .link-arrow { color: var(--dark-text); }

/* mobile: the before/after is the centerpiece — full-width, in the flow */
@media (max-width: 800px) {
  .work-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2rem 0;
  }
  .work-media {
    max-width: none;
    width: 100%;
    margin: 0.6rem 0 0.4rem;
  }
}

.work-note {
  margin-top: 2rem;
  color: var(--dark-mute);
  font-family: var(--serif);
  font-size: 1.25rem;
}

/* ---------- price table ---------- */

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--ink);
}

.price-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 1.05rem;
  table-layout: fixed; /* four equal columns: symmetry over auto-sizing */
}

.price-table th, .price-table td {
  padding: 1.5rem 1.4rem 1.5rem 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  transition: background 0.3s ease, color 0.3s ease;
}

/* column headers: loud and unmissable */
.price-table thead th {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
  border-bottom: 2px solid var(--ink);
}

.price-table thead th:nth-child(2), .price-table thead th:nth-child(3) { color: var(--mute); }

/* row labels: same voice as the column headers */
.price-table tbody th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: transform 0.3s ease;
}

.price-table td:last-child, .price-table thead th:last-child {
  font-weight: 600;
  color: var(--ink);
  background: rgba(143, 126, 99, 0.09);
  padding-left: 1.2rem;
  font-size: 1.1rem;
}

.price-table td:not(:last-child) { color: var(--mute); }

/* hover: the row wakes up, our column glows a little warmer */
.price-table tbody tr:hover th,
.price-table tbody tr:hover td { background: rgba(234, 231, 219, 0.55); }

.price-table tbody tr:hover th { transform: translateX(6px); }

.price-table tbody tr:hover td:last-child {
  background: rgba(143, 126, 99, 0.2);
  color: var(--accent-deep);
}

.fine { margin-top: 1.6rem; color: var(--mute); max-width: 40rem; }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2.5rem var(--space-s);
}

.steps li {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}

.step-no { font-size: 0.85rem; font-weight: 500; color: var(--accent-deep); }

.steps h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.steps p { color: var(--mute); }

/* ---------- the procedure: glass cards on black marble ---------- */

.procedure {
  /* solid marble wall, held still while the page scrolls over it */
  background:
    linear-gradient(rgba(14, 12, 10, 0.45), rgba(14, 12, 10, 0.6)),
    var(--dark) url("assets/m/ea400c7550.webp") center / cover no-repeat;
  background-attachment: fixed, fixed;
  color: var(--dark-text);
}

/* touch browsers don't support fixed backgrounds; scroll normally there */
@media (hover: none), (max-width: 700px) {
  .procedure { background-attachment: scroll, scroll; }
}

.procedure .paren { color: var(--accent); }

.procedure .steps { gap: 1.8rem; }

.procedure .steps li {
  display: block;
  border: 1px solid rgba(244, 243, 238, 0.14);
  border-top: 1px solid rgba(244, 243, 238, 0.14);
  background: rgba(244, 243, 238, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2.2rem 2rem 2.5rem;
  transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1), background 0.45s ease,
    border-color 0.45s ease, opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* staggered entrance: each card arrives a beat after the last */
.procedure .steps li.reveal:nth-child(2) { transition-delay: 0.14s; }
.procedure .steps li.reveal:nth-child(3) { transition-delay: 0.28s; }
.procedure .steps li.reveal:hover { transition-delay: 0s; }

.procedure .steps li:hover {
  transform: translateY(-9px);
  background: rgba(244, 243, 238, 0.1);
  border-color: rgba(217, 194, 148, 0.45);
}

.procedure .step-no {
  display: block;
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 1;
  color: rgba(217, 194, 148, 0.5);
  margin-bottom: 1.3rem;
  transition: color 0.45s ease;
}

.procedure .steps li:hover .step-no { color: #d9c294; }

.procedure .steps h3 { color: var(--dark-text); }

.procedure .steps p { color: var(--dark-mute); }

@media (prefers-reduced-motion: reduce) {
  .procedure .steps li, .procedure .steps li:hover { transform: none; transition-delay: 0s; }
}

/* ---------- quote: full-screen, written by the scroll ---------- */

.quote-section {
  height: 240vh; /* the runway that drives the writing effect */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bone) var(--marble) center / cover;
}

.quote-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
}

.big-quote {
  max-width: 56rem;
  display: grid;
  gap: 1.8rem;
  text-align: center;
  justify-items: center;
}

.big-quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.35;
  text-wrap: balance;
}

.qw { opacity: 0.13; transition: opacity 0.2s linear; }
.qw.on { opacity: 1; }

.big-quote cite { font-style: normal; color: var(--accent-deep); font-size: 0.95rem; }

.quote-cite { opacity: 0; transition: opacity 0.5s ease; }
.quote-cite.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .quote-section { height: auto; padding: var(--space) 0; }
  .quote-sticky { position: static; height: auto; }
  .qw, .quote-cite { opacity: 1; }
}

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--ink); max-width: 52rem; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 3rem 1.4rem 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p { padding: 0 0 1.6rem; max-width: 38rem; color: var(--mute); font-size: 1.1rem; }

/* ---------- final cta ---------- */

.final {
  background: var(--dark);
  color: var(--dark-text);
  padding-bottom: var(--space);
}

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--dark-line);
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-mute);
  white-space: nowrap;
  padding: 0.35em 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.final-inner {
  padding: var(--space) var(--gutter) 0;
  display: grid;
  gap: 1.6rem;
  justify-items: start;
}

.final-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 18ch;
  text-wrap: balance;
}

.final-sub {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--dark-mute);
}

/* ---------- footer ---------- */

.footer {
  background: var(--dark);
  color: var(--dark-mute);
  padding: var(--space-s) var(--gutter) 2.5rem;
  border-top: 1px solid var(--dark-line);
  display: grid;
  gap: 3rem;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.footer-brand { color: var(--dark-text); font-weight: 600; }

.footer-brand img { height: 1.6rem; width: auto; display: block; opacity: 0.9; }

.footer-brand sup { font-size: 0.55em; font-weight: 400; }

.footer-block { display: grid; gap: 0.5rem; justify-items: start; }

.footer-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

.footer .link-arrow { color: var(--dark-text); }

.footer-fine { font-size: 0.85rem; }

/* ---------- booking page (/schedule) ---------- */

.booking {
  min-height: 100svh;
  background:
    linear-gradient(rgba(14, 12, 10, 0.5), rgba(14, 12, 10, 0.2) 60%),
    var(--dark) url("assets/m/ea400c7550.webp") center / cover no-repeat;
  color: var(--dark-text);
  display: grid;
  place-items: center;
  padding: 7.5rem var(--gutter) 3rem;
}

.booking-inner {
  width: min(58rem, 100%);
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  text-align: center;
}

.booking-paren {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1.05rem;
}

.booking-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}

.booking-title em { font-style: italic; }

.booking-sub {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--dark-mute);
  max-width: 34rem;
}

.booking-panel {
  width: 100%;
  margin-top: 0.6rem;
  background: rgba(22, 22, 20, 0.92);
  border: 1px solid var(--dark-line);
  box-shadow: 0 0 0 1px rgba(143, 126, 99, 0.28), 0 0 0 8px rgba(20, 18, 16, 0.6);
  padding: clamp(0.6rem, 1.5vw, 1.2rem);
}

.calendly-inline-widget { width: 100%; height: 640px; }

.booking .link-arrow { color: var(--dark-text); font-size: 0.85rem; }

.booking-fine {
  font-size: 0.9rem;
  color: var(--dark-mute);
  max-width: 44rem;
}

.booking-nav-back { color: var(--dark-mute); }

/* ---------- content pages (the Stuff section) ---------- */

.page-hero { padding: 8.5rem var(--gutter) 2.5rem; }

.page-hero .headline { margin-bottom: 1.2rem; }

.page-sub {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--mute);
  max-width: 42rem;
}

.article { padding: 1rem var(--gutter) var(--space); max-width: 52rem; }

.article > * + * { margin-top: 1rem; }

.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; font-weight: 500; margin-top: 2.6rem; }

.article h3 { font-size: 1.3rem; font-weight: 500; margin-top: 2rem; }

.article p, .article li { color: #45453f; font-size: 1.08rem; line-height: 1.7; max-width: 65ch; }

.article ul, .article ol { padding-left: 1.4rem; }

.article img { max-width: 100%; height: auto; border: 1px solid var(--line); margin: 1.6rem 0; }

.article table { display: block; max-width: 100%; overflow-x: auto; }

.article pre { max-width: 100%; overflow-x: auto; }

.article video { max-width: 100%; height: auto; }

.article a { color: inherit; }

.article blockquote { border-left: 2px solid var(--accent); padding-left: 1.3rem; font-family: var(--serif); font-size: 1.25rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 2.6rem 2rem;
  padding: 0 var(--gutter) var(--space);
}

.card { border-top: 1px solid var(--ink); padding-top: 1rem; display: grid; gap: 0.7rem; align-content: start; }

.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--line); }

.card h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; }

.card p { color: var(--mute); font-size: 0.98rem; }

.card .link-arrow { justify-self: start; }

.card-kicker { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- mobile typography scale ----------
   Phones get deliberately quieter type: the imagery talks, the text whispers.
   One consolidated scale so the whole build feels intentional on mobile. */
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .hero-title { font-size: 1.95rem; line-height: 1.14; }
  .hero-meta { font-size: 1rem; }
  .headline { font-size: 1.6rem; }
  .aside-kicker { font-size: 1.4rem; }
  .col-prose { font-size: 1.02rem; }
  .work-name { font-size: 1.2rem; }
  .steps h3 { font-size: 1.2rem; }
  .big-quote p { font-size: 1.3rem; line-height: 1.45; }
  .final-title { font-size: 1.9rem; }
  .final-sub { font-size: 1.1rem; }
  .page-sub { font-size: 1.1rem; }
  .booking-title { font-size: 1.9rem; }
  .booking-sub { font-size: 1.05rem; }
  .article p, .article li { font-size: 1rem; }
  .article h2 { font-size: 1.35rem; }
  .faq summary { font-size: 1.1rem; }
  .film-placeholder span { font-size: 1.1rem; }
  .card h3 { font-size: 1.15rem; }

  /* pricing: the grid becomes stacked criterion blocks.
     Each row reads: criterion heading, then the three providers with
     their answers, ours highlighted. No sideways scrolling, ever. */
  .table-wrap { overflow: visible; border-top: none; }
  .price-table { min-width: 0; table-layout: auto; display: block; }
  .price-table thead { display: none; }
  .price-table tbody { display: block; }
  .price-table tbody tr {
    display: block;
    margin-bottom: 2.2rem;
    border: none;
  }
  .price-table tbody th {
    display: block;
    padding: 0 0 0.7rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--ink);
  }
  .price-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.2rem;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    text-align: right;
  }
  .price-table tbody td::before {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
    text-align: left;
    flex-shrink: 0;
  }
  .price-table tbody td:nth-child(2)::before { content: "The $50,000 people"; }
  .price-table tbody td:nth-child(3)::before { content: "The template mill"; }
  .price-table tbody td:nth-child(4)::before { content: "Rainey"; color: var(--accent-deep); }
  .price-table tbody td:last-child {
    background: rgba(143, 126, 99, 0.12);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    font-size: 1rem;
  }
  /* hover states are a desktop conversation */
  .price-table tbody tr:hover th,
  .price-table tbody tr:hover td { background: transparent; }
  .price-table tbody tr:hover td:last-child { background: rgba(143, 126, 99, 0.12); color: var(--ink); }
  .price-table tbody tr:hover th { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .logo-track li[aria-hidden="true"] { display: none; }
  .pill:hover { transform: none; }
}
