/* =========================================================
   Heartnote Talent
   Three colours: ivory, ink, teal. Everything else is a tint of them.
   ========================================================= */

:root {
  --ivory: #F3EEE6;
  --ink: #161513;
  --teal: #1F4A48;

  /* tints */
  --ivory-deep: #E9E2D6;          /* alternate section background */
  --ink-soft: #57524B;            /* body copy on ivory */
  --line: rgba(22, 21, 19, .16);
  --line-light: rgba(243, 238, 230, .22);

  --serif: "DM Serif Display", "Didot", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --section: clamp(80px, 11vw, 150px);
}

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

html { font-synthesis-weight: none; scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type scale ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.15;
}
.h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -.005em;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
p { max-width: 64ch; }
.small { font-size: .85rem; }

/* Editable placeholder marker: visible until you replace it */
.ph {
  display: inline;
  color: var(--teal);
  background: rgba(31, 74, 72, .08);
  border: 1px dashed rgba(31, 74, 72, .45);
  border-radius: 4px;
  padding: 0 .3em;
  font-size: .92em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .84rem/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .74rem; }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--teal); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--ivory { background: var(--ivory); color: var(--ink); }
.btn--ivory:hover { background: #fff; }
.btn:has(.btn__dot) { padding-right: 6px; }
.btn__dot {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .9;
}
.btn__dot svg, .round-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.round-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: transparent; color: inherit;
  border: 1px solid currentColor; cursor: pointer;
  transition: background-color .2s, color .2s;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 230, .88);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.nav__links { display: flex; gap: 28px; font-size: .82rem; font-weight: 500; }
.nav__links a, .footer a { text-decoration: none; }
.nav__links a:hover { color: var(--teal); }
.nav__logo {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  letter-spacing: .02em; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.nav__logo span { font-weight: 400; }
.nav__end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span { width: 15px; height: 1.5px; background: var(--ivory); transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  display: grid; padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--serif); font-size: 1.7rem; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}

/* ---------- 1. Hero ---------- */
.hero { padding: 8px var(--gutter) 0; max-width: 1440px; margin: 0 auto; }

/* Wordmark above the photo */
.hero__top { container-type: inline-size; padding: clamp(6px, 1vw, 14px) 0 clamp(16px, 2vw, 26px); }
.hero__mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: min(18.8cqi, 15.6rem); /* fills the column width */
  line-height: .8;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-align: center;
  max-width: none;
}
.hero__sub-mark {
  font-size: clamp(.68rem, 1.1vw, .95rem);
  font-weight: 600;
  letter-spacing: .62em;
  text-transform: uppercase;
  text-align: center;
  max-width: none;
  margin: clamp(10px, 1.2vw, 18px) auto 0;
  padding-left: .62em; /* balances the trailing letter-space so it centres */
}

/* Photo. The frame never gets wider than the photo itself, so it stays sharp. */
.hero__frame {
  position: relative;
  /* fits the first screen so both buttons are visible without scrolling */
  height: clamp(440px, calc(100svh - 365px), 760px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  padding: clamp(22px, 3.4vw, 52px);
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
}
.hero__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22,21,19,.72) 0%, rgba(22,21,19,.35) 32%, rgba(22,21,19,0) 52%);
}
.hero__content { max-width: 430px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hero__lede { margin-top: 16px; font-size: 1.02rem; color: rgba(243,238,230,.82); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* proof strip */
.proof {
  display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: clamp(24px, 5vw, 72px);
  padding: clamp(28px, 4vw, 44px) clamp(4px, 1vw, 12px) 0;
}
.proof__num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; }
.proof__label { margin-top: 8px; font-size: .88rem; color: var(--ink-soft); }
.proof__note {
  justify-self: end; max-width: 34ch; font-size: .84rem; color: var(--ink-soft);
  padding-left: 18px; border-left: 1px solid var(--teal);
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }

/* 2. Problem */
.problem { padding-top: calc(var(--section) * .8); }
.problem__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.problem__item { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.problem__item p { color: var(--ink-soft); }

/* 3. Services */
.services { background: var(--ivory-deep); }
.services__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.services__img { position: sticky; top: 100px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.services__img img { width: 100%; height: 100%; object-fit: cover; }
.services__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 56px); }
.services__list li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.services__list p { color: var(--ink-soft); font-size: .95rem; }

/* 4. Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.step { padding: 0 clamp(16px, 2vw, 28px) 0 0; display: grid; gap: 12px; align-content: start; position: relative; }
.step + .step { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; color: var(--teal); }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* 5. Why */
.why { background: var(--ivory-deep); }
.why .lede { margin-top: 18px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.why__list li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.why__list p { color: var(--ink-soft); font-size: .95rem; }
.why__list li:last-child { grid-column: 1 / -1; }

.case {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--teal); color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px);
}
.case__tag { font-size: .8rem; color: rgba(243,238,230,.7); }
.case__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin-top: 10px; }
.case__disclaimer { margin-top: 18px; font-size: .9rem; color: rgba(243,238,230,.75); padding-left: 14px; border-left: 1px solid rgba(243,238,230,.5); }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.case__grid div { padding: 18px 0; border-top: 1px solid var(--line-light); }
.case__grid dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,238,230,.6); }
.case__grid dd { margin-top: 6px; font-size: 1rem; }
.case .ph { color: #BFD6D3; background: rgba(191,214,211,.08); border-color: rgba(191,214,211,.45); }

/* 6. Content standards */
.standards__inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.standards__img { border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.standards__img img { width: 100%; height: 100%; object-fit: cover; }
.standards__text { display: grid; gap: 22px; }
.standards__text > p { color: var(--ink-soft); font-size: 1.06rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }

/* 7. Creators */
.creators { background: var(--ink); color: var(--ivory); overflow: hidden; }
.section-head--light .lede { color: rgba(243,238,230,.78); }

.gallery { position: relative; margin-bottom: clamp(48px, 7vw, 88px); }
.gallery__track {
  display: flex; gap: clamp(12px, 2vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 24px calc(50vw - clamp(120px, 14vw, 170px));
  scrollbar-width: none;
  perspective: 1400px;
  outline-offset: -4px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__card {
  position: relative; flex: 0 0 clamp(240px, 28vw, 340px);
  aspect-ratio: 7 / 9.5;
  border-radius: 26px; overflow: hidden;
  scroll-snap-align: center;
  transform-origin: center;
  will-change: transform;
  background: var(--ivory-deep);
}
.gallery__card img { width: 100%; height: 100%; object-fit: cover; }
.gallery__card figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(22,21,19,.55); color: var(--ivory);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 500;
}

.creators__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-bottom: 44px; }
.creators__cols > div { padding-top: 24px; border-top: 1px solid var(--line-light); display: grid; gap: 14px; align-content: start; }
.creators__cols p { color: rgba(243,238,230,.82); }
.ticks { display: grid; gap: 8px; color: rgba(243,238,230,.88); }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: currentColor; }

/* ---------- Forms ---------- */
.apply { background: var(--ivory-deep); }
.form-layout { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-intro { display: grid; gap: 18px; position: sticky; top: 100px; }
.form-intro > p { color: var(--ink-soft); }

.form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 600; padding: 0; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23161513' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,74,72,.15); }
.field textarea { resize: vertical; }
.field legend { margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .9rem; background: rgba(255,255,255,.35);
}
.checks input { accent-color: var(--teal); margin: 0; }
.checks label:has(input:checked) { border-color: var(--teal); background: rgba(31,74,72,.08); }
.form .btn { justify-self: start; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

.form__status:empty { display: none; }
.form__status { font-size: .95rem; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.form__status.is-error { border-color: #8a2f2f; color: #8a2f2f; }

.form-done { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--ivory); border: 1px solid var(--line); display: grid; gap: 12px; }
.form-done h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.form-done p { color: var(--ink-soft); }
.contact .form-done { background: var(--ivory-deep); }

/* 8. About */
.about__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.about__text { display: grid; gap: 20px; }
.about__text > p { color: var(--ink-soft); }
.about__text > .about__lead { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.35; color: var(--ink); }

.notes { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.notes p { font-size: .95rem; color: var(--ink-soft); }
.notes strong { color: var(--ink); font-weight: 600; }
.notes__pyramid { display: grid; justify-items: center; gap: 4px; font-family: var(--serif); font-size: .95rem; }
.notes__pyramid span { padding: 4px 0; text-align: center; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.notes__pyramid span:nth-child(1) { width: 64px; }
.notes__pyramid span:nth-child(2) { width: 96px; }
.notes__pyramid span:nth-child(3) { width: 128px; border-bottom: 0; }
.notes__pyramid .is-heart { background: var(--teal); color: var(--ivory); border-radius: 999px; border: 0; }

/* 9. Contact */
.contact { padding-top: calc(var(--section) * .6); }
.contact__list { display: grid; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; flex-wrap: wrap; }
.contact__list span { color: var(--ink-soft); }
.contact__list a { text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--teal); }
.form-intro .btn { justify-self: start; margin-top: 8px; }

/* 10. FAQ */
.faq { background: var(--ivory-deep); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 11px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); }

/* 11. Footer */
.footer { background: var(--ink); color: var(--ivory); padding: clamp(56px, 8vw, 96px) 0 32px; overflow: hidden; }
.footer .wrap { container-type: inline-size; }
.footer__mark {
  font-family: var(--serif); text-transform: uppercase; text-align: center;
  font-size: min(18.8cqi, 14.2rem); line-height: .8; letter-spacing: -.035em;
  color: rgba(243,238,230,.1); max-width: none; margin-bottom: clamp(36px, 5vw, 64px);
}
.footer__row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-light); }
.footer__name { font-family: var(--serif); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.footer__line { margin-top: 6px; color: rgba(243,238,230,.65); font-size: .9rem; }
.footer__links { display: grid; gap: 8px; font-size: .92rem; align-content: start; }
.footer__links a:hover { color: #9CC3BF; }
.footer__copy { padding-top: 24px; font-size: .82rem; color: rgba(243,238,230,.55); }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; margin-top: 10px; }
.legal .updated { margin-top: 14px; font-size: .9rem; }
.template-note {
  margin: 28px 0 8px; padding: 16px 18px; border-radius: 12px;
  border: 1px dashed rgba(31,74,72,.5); background: rgba(31,74,72,.06); color: var(--teal) !important;
  font-size: .92rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__toggle { display: flex; }
  .services__grid, .form-layout, .about__inner, .case { grid-template-columns: 1fr; }
  .services__img { position: static; aspect-ratio: 16 / 9; }
  .form-intro { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .nav__end .btn { display: none; }
  .nav__logo { font-size: 1.15rem; }
  .hero { padding-top: 4px; }
  .hero__frame { height: auto; display: block; padding: 0; }
  .hero__img { position: static; width: 100%; height: auto; aspect-ratio: 5 / 4; object-position: 58% 20%; }
  .hero__frame::before { display: none; }
  .hero__content { max-width: none; padding: 24px 20px 26px; }
  .proof { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .proof__note { grid-column: 1 / -1; justify-self: start; }
  .split, .standards__inner { grid-template-columns: 1fr; }
  .services__list, .why__list, .case__grid, .field-row, .creators__cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 0 0 0 0; border-left: 0; }
  .step + .step { padding-top: 28px; border-top: 1px solid var(--line); }
  .standards__img { max-width: 360px; }
  .gallery__track { padding-inline: calc(50vw - 120px); }
  .notes { grid-template-columns: 1fr; justify-items: start; }
  .footer__row { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.form-intro .ph { justify-self: start; }
.legal ul + p { margin-top: 12px; }

/* ---------- Buttons added for the pop-ups ---------- */
button.btn { font-family: var(--sans); }
.btn--line-light { border-color: rgba(243,238,230,.7); color: var(--ivory); background: transparent; }
.btn--line-light:hover { background: var(--ivory); color: var(--ink); }

/* Contact: two choices */
.choices { display: grid; gap: 16px; }
.choice {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 24px; row-gap: 6px;
  align-items: center; text-align: left;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--ivory-deep);
  color: var(--ink); font: inherit; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.choice__title { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; }
.choice__text { color: var(--ink-soft); grid-column: 1; }
.choice .btn__dot { grid-column: 2; grid-row: 1 / span 2; width: 52px; height: 52px; }
.choice:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.choice:hover .choice__text { color: rgba(243,238,230,.75); }
.contact { padding-top: var(--section); }

/* ---------- Pop-up (dialog) ---------- */
.modal {
  width: min(720px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0; border: 0;
  border-radius: var(--radius-lg);
  background: var(--ivory); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(22,21,19,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .28s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__inner { position: relative; padding: clamp(28px, 5vw, 52px); }
.modal__step { display: grid; gap: 18px; }
.modal__step[hidden] { display: none; }
.modal__lede { color: var(--ink-soft); font-size: 1.04rem; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
}
.modal__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.modal__close:hover { background: var(--ink); color: var(--ivory); }
.modal__points { border-top: 1px solid var(--line); }
.modal__points li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.modal__points strong { font-weight: 600; }
.modal__points span { color: var(--ink-soft); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.modal__back {
  justify-self: start; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 600 .8rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
}
.modal__back::before { content: "\2190"; margin-right: 8px; }
.modal__back:hover { color: var(--teal); }
.modal .form { margin-top: 6px; }
.modal .form-done { background: var(--ivory-deep); }
body:has(.modal[open]) { overflow: hidden; }

/* gallery: hover to centre on mouse devices */
@media (hover: hover) and (pointer: fine) { .gallery__card { cursor: pointer; } }

@media (max-width: 760px) {
  .modal { width: 100%; max-height: 92dvh; margin: 0; inset: auto 0 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal__points li { grid-template-columns: 1fr; gap: 4px; }
  .modal__close { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* Logo in the header */
.nav__logo { display: block; line-height: 0; }
.nav__logo img { height: 52px; width: auto; }
.nav { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 760px) { .nav__logo img { height: 44px; } }

/* Experience in other niches */
.case__intro { margin-top: 18px; color: rgba(243,238,230,.85); }
.case__grid--niches { grid-template-columns: 1fr; }
.case__grid--niches div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline; padding: 22px 0; }
.case__grid--niches dd { margin: 0; color: rgba(243,238,230,.8); }
.case__num { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; color: var(--ivory); margin-bottom: 6px; }
.proof { grid-template-columns: repeat(3, auto); justify-content: space-between; }
.proof__note { grid-column: 1 / -1; justify-self: start; max-width: 60ch; }
@media (max-width: 1020px) { .proof { grid-template-columns: repeat(2, auto); } .proof__note { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 760px) { .case__grid--niches div { grid-template-columns: 1fr; gap: 6px; } }

/* Creator cards: name always, details on the middle card */
.gallery__card figcaption {
  left: 12px; right: 12px; bottom: 12px;
  display: grid; gap: 0;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(22,21,19,.6);
}
.card__name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.card__more {
  display: grid; gap: 2px;
  font-size: .82rem; color: rgba(243,238,230,.8);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease, margin-top .35s ease;
}
.gallery__card.is-active .card__more { max-height: 5em; opacity: 1; margin-top: 6px; }

.creators__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.creators__apply {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 500 .95rem/1.4 var(--sans); color: var(--ivory);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(243,238,230,.45);
}
.creators__apply:hover { text-decoration-color: var(--ivory); }

/* Results in other niches: big, bold, on the page background */
.results { margin-top: clamp(64px, 9vw, 120px); }
.results__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 44px); margin: 0; }
.results__grid > div { border-top: 3px solid var(--ink); padding-top: 18px; }
.results__num {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(3.6rem, 8vw, 7.5rem); line-height: .95; letter-spacing: -.03em;
  color: var(--ink);
}
.results__grid dd { margin: 14px 0 0; font-size: 1rem; color: var(--ink-soft); max-width: 22ch; }
.results__grid strong { color: var(--ink); font-weight: 700; }
.results__note { margin-top: 28px; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .results__grid { grid-template-columns: 1fr; row-gap: 36px; } }
