/* ==========================================================================
   The Nail Studio — styles
   Palette is named after the nude shades on our own shade fan.
   ========================================================================== */

:root {
  --bone: #F6F2EE;       /* lightest ground */
  --chalk: #ECE4DD;      /* second light ground */
  --nude: #D3BCAE;       /* testimonial band */
  --mink: #715B4C;       /* small details on light grounds */
  --cocoa: #2B2320;      /* dark sections */
  --ink: #1D1816;        /* text, footer */
  --on-dark: #EDE5DE;
  --on-dark-muted: #B9AA9F;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
  --col-gap: clamp(16px, 2.4vw, 40px);
  --section-y: clamp(84px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* per-section context, overridden by .section--* */
  --fg: var(--ink);
  --muted: var(--mink);
  --line: rgba(29, 24, 22, .16);
  --line-strong: rgba(29, 24, 22, .55);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

p { margin: 0 0 1em; }

em { font-style: italic; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

/* --------------------------------------------------------------------------
   Sections & shared type
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section-y); color: var(--fg); }

.section--bone  { background: var(--bone); }
.section--chalk { background: var(--chalk); }
.section--nude  { background: var(--nude); --muted: #4A3A31; --line: rgba(29, 24, 22, .22); }
.section--cocoa {
  background: var(--cocoa);
  --fg: var(--on-dark);
  --muted: var(--on-dark-muted);
  --line: rgba(237, 229, 222, .16);
  --line-strong: rgba(237, 229, 222, .45);
}

.eyebrow {
  display: flex; align-items: baseline; gap: .8em;
  margin: 0 0 28px;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.45em; letter-spacing: 0; text-transform: none;
  color: var(--fg);
}

.h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  line-height: 1.04; letter-spacing: -.015em;
  text-wrap: balance;
}

/* Lookbook captions: shape + shade for every photo */
.fig {
  display: flex; gap: .7em; align-items: baseline;
  margin: 14px 0 0;
  font-size: .8rem; letter-spacing: .02em; line-height: 1.4;
  color: var(--muted);
}
.fig span {
  flex: none;
  font-family: var(--serif); font-style: italic; font-size: 1.15em;
  color: var(--fg);
}
.fig--on-photo { color: rgba(246, 242, 238, .88); margin: 0; }
.fig--on-photo span { color: var(--bone); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--light:hover { background: transparent; color: var(--bone); }

.link { font-size: .92rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ink);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid {
  background: rgba(246, 242, 238, .94);
  box-shadow: 0 1px 0 rgba(29, 24, 22, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.nav__brand {
  font-size: .8rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none;
}

.nav__links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav__links a {
  font-size: .9rem; letter-spacing: .02em; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
  padding-bottom: 2px;
}
.nav__links a:hover { background-size: 100% 1px; }

.nav__cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.nav__toggle {
  display: none;
  background: none; border: 0; padding: 10px 0; color: inherit; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}

.nav__sheet {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px var(--gutter) 32px;
  background: var(--bone);
  border-top: 1px solid rgba(29, 24, 22, .1);
}
.nav__sheet a {
  font-family: var(--serif); font-size: 2rem; line-height: 1.3; text-decoration: none;
}
.nav__sheet .nav__sheet-cta {
  margin-top: 18px; font-family: var(--sans); font-size: .8rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-self: flex-start; align-items: center; min-height: 48px; padding: 0 24px;
  border: 1px solid currentColor; border-radius: 999px;
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open { background: var(--bone); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: max(620px, 100vh);
  min-height: max(620px, 100svh);
  overflow: hidden;
  background: var(--cocoa);
  color: var(--bone);
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(29, 24, 22, .8) 0%,
    rgba(29, 24, 22, .6) 28%,
    rgba(29, 24, 22, .3) 46%,
    rgba(29, 24, 22, 0) 66%);
}

.hero__content { position: relative; width: 100%; padding-bottom: clamp(24px, 3.5vw, 44px); }

.hero__top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.hero__meta {
  margin: 0;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(246, 242, 238, .88);
}

.hero__mast {
  margin: 10px 0 26px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.4rem, 11.4vw, 13.5rem);
  line-height: .9; letter-spacing: -.025em;
  white-space: nowrap;
}

.hero__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 20px 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 242, 238, .3);
}
.hero__lede { margin: 0; max-width: 42ch; color: rgba(246, 242, 238, .92); }
.hero__status {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(246, 242, 238, .88);
}
.hero__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

@media (max-width: 860px) {
  .hero__top { flex-direction: column; gap: 8px; }
  .hero__row { grid-template-columns: 1fr; gap: 18px; }
  .hero__row .btn { justify-self: start; }
  .hero__media img { object-position: 80% 40%; }
  .hero__media::after {
    background: linear-gradient(to top,
      rgba(29, 24, 22, .82) 0%, rgba(29, 24, 22, .55) 40%, rgba(29, 24, 22, 0) 72%);
  }
}

/* Load-in: the photo settles, then the type */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: settle 2.4s var(--ease) both; }
  .hero__content > * { animation: rise 1.1s var(--ease) both; }
  .hero__top  { animation-delay: .5s !important; }
  .hero__mast { animation-delay: .65s !important; }
  .hero__row  { animation-delay: .85s !important; }
}
@media (max-width: 600px) {
  .hero__mast { line-height: .92; margin-bottom: 22px; }
  .hero__mast span { display: block; }
}

@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   N°1 Founder
   -------------------------------------------------------------------------- */

.founder__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); align-items: end;
}
.founder__eyebrow { grid-column: 1 / -1; margin-bottom: clamp(40px, 5vw, 64px); }

.founder__portrait { grid-column: 1 / span 3; margin: 0; }
.founder__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }

.founder__quote { grid-column: 5 / span 8; margin: 0; }
.founder__quote p {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.15vw, 3rem);
  line-height: 1.2; letter-spacing: -.01em;
  text-indent: -.42em;
  text-wrap: pretty;
}
.founder__quote footer {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.founder__name { font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.founder__role { font-size: .95rem; color: var(--muted); }

@media (max-width: 860px) {
  .founder__portrait { grid-column: 1 / span 7; margin-bottom: 40px; }
  .founder__quote { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   N°2 About
   -------------------------------------------------------------------------- */

.about__title { max-width: 17ch; margin-bottom: clamp(48px, 7vw, 104px); }

.about__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); align-items: end;
}
.about__photo { grid-column: 1 / span 6; margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }

.about__text { grid-column: 8 / span 5; padding-bottom: 36px; }
.about__lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; }
.about__text p:not(.about__lead) { color: var(--muted); }

.about__facts { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.about__facts li {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
}

@media (max-width: 860px) {
  .about__photo { grid-column: 1 / -1; }
  .about__text { grid-column: 1 / -1; padding: 40px 0 0; }
}

/* --------------------------------------------------------------------------
   N°3 Stats
   -------------------------------------------------------------------------- */

.stats { padding-block: clamp(72px, 9vw, 128px); }

.stats__list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; border-top: 1px solid var(--line-strong);
}
.stats__item { padding: 36px clamp(16px, 2.2vw, 32px) 0 0; }
.stats__item + .stats__item { padding-left: clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--line); }

.stats__num {
  margin-bottom: 22px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 6.2vw, 6rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
}
.stats__colon { font-style: italic; color: var(--muted); padding: 0 .04em; }
.stats__unit {
  margin-left: .35em;
  font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.stats__item dd { margin: 0; max-width: 25ch; font-size: .95rem; color: var(--muted); }

@media (max-width: 860px) {
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .stats__item, .stats__item + .stats__item {
    padding: 28px 16px 36px 0; border-left: 0; border-top: 1px solid var(--line-strong);
  }
  .stats__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   N°4 Services — a printed menu, not cards
   -------------------------------------------------------------------------- */

.services__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.services__note { max-width: 36ch; margin: 0; font-size: .92rem; color: var(--muted); }

.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }

.menu__row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 110px 130px;
  grid-template-areas: "thumb body time price";
  align-items: center; gap: 0 clamp(20px, 3vw, 48px);
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.menu__thumb { grid-area: thumb; width: 104px; aspect-ratio: 4 / 5; object-fit: cover; }
.menu__body { grid-area: body; }
.menu__name {
  margin: 0 0 6px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.1;
}
.menu__aka { font-style: italic; font-size: .62em; color: var(--muted); }
.menu__desc { margin: 0; max-width: 54ch; font-size: .95rem; color: var(--muted); }
.menu__time {
  grid-area: time; margin: 0;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.menu__price {
  grid-area: price; margin: 0; text-align: right;
  font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-variant-numeric: lining-nums tabular-nums;
}
.menu__from {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-right: .3em;
}

@media (max-width: 720px) {
  .menu__row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas: "thumb body body" "thumb time price";
    align-items: start; gap: 10px 18px;
  }
  .menu__thumb { width: 84px; }
  .menu__time, .menu__price { align-self: end; }
}

/* --------------------------------------------------------------------------
   Full-bleed photo break
   -------------------------------------------------------------------------- */

.break { position: relative; margin: 0; height: clamp(440px, 88vh, 980px); overflow: hidden; background: #8f978a; }
.break img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.break::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(29, 24, 22, .45), rgba(29, 24, 22, 0));
}
.break__fig { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 3vw, 36px); }

/* --------------------------------------------------------------------------
   N°5 Team — a staggered row of portraits
   -------------------------------------------------------------------------- */

.team__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); align-items: end;
}
.team__head .eyebrow { grid-column: 1 / -1; }
.team__head .h2 { grid-column: 1 / span 7; }
.team__intro { grid-column: 9 / span 4; margin: 0; color: var(--muted); font-size: .98rem; }

.team__list {
  list-style: none; margin: clamp(56px, 7vw, 104px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--col-gap);
  align-items: start;
}
.person:nth-child(even) { margin-top: clamp(40px, 6vw, 104px); }
.person img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) sepia(.14) contrast(1.02);
}
.person__name { margin: 20px 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.15; }
.person__role { margin: 0 0 12px; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.person__ask { margin: 0; font-size: .95rem; color: var(--fg); opacity: .86; max-width: 26ch; }

@media (max-width: 960px) {
  .team__head .h2 { grid-column: 1 / -1; }
  .team__intro { grid-column: 1 / span 9; margin-top: 24px; }
  .team__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .team__intro { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   N°6 Spec list
   -------------------------------------------------------------------------- */

.spec__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); align-items: start;
}
.spec__main { grid-column: 1 / span 7; }
.spec__photo { grid-column: 9 / span 4; margin: 0; position: sticky; top: 108px; }
.spec__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 70%; }

.spec__list { margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--line-strong); }
.spec__row {
  display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 2.6fr); gap: 8px 32px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.spec__row dt {
  padding-top: 4px;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.spec__row dd { margin: 0; }
.spec__row dd a { text-decoration-color: var(--line-strong); }

.hours { border-collapse: collapse; }
.hours th { padding: 3px 36px 3px 0; text-align: left; font-weight: 400; white-space: nowrap; }
.hours td { padding: 3px 0; font-variant-numeric: tabular-nums; }
.hours__note { margin-left: .5em; font-family: var(--serif); font-style: italic; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.hours tr.is-today th::after {
  content: "today"; margin-left: .6em;
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted);
}

.spec__plain { list-style: none; margin: 0; padding: 0; }
.spec__plain li { break-inside: avoid; padding: 2px 0 2px 1.3em; position: relative; }
.spec__plain li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }

@media (max-width: 960px) {
  .spec__main { grid-column: 1 / -1; }
  .spec__photo { grid-column: 1 / span 6; position: static; margin-top: 56px; }
}
@media (max-width: 600px) {
  .spec__row { grid-template-columns: 1fr; }
  .hours__note { display: block; margin-left: 0; }
  .spec__photo { grid-column: 1 / span 9; }
}

/* --------------------------------------------------------------------------
   N°7 Testimonial on a colour band
   -------------------------------------------------------------------------- */

.testimonial__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.testimonial__quote { margin: 0; }
.testimonial__quote p {
  max-width: 25ch; margin: 12px auto 44px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.9rem, 3.8vw, 3.5rem); line-height: 1.16; letter-spacing: -.01em;
  text-wrap: balance;
}
.testimonial__quote footer { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.testimonial__name { font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.testimonial__meta { font-size: .95rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   N°8 Contact
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); align-items: end;
}
.contact__main { grid-column: 1 / span 7; }
.contact__title { max-width: 13ch; margin-bottom: clamp(44px, 6vw, 72px); }

.contact__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--col-gap);
  padding-top: 28px; border-top: 1px solid var(--line-strong);
}
.contact__block { font-style: normal; overflow-wrap: anywhere; }
.contact__block p { margin: 0 0 10px; }
.contact__block a { text-decoration-color: var(--line-strong); }
.contact__block a:hover { text-decoration-color: currentColor; }
.contact__label {
  margin: 0 0 12px;
  font-size: .76rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.contact__small { font-size: .9rem; color: var(--muted); }
.contact__btn { margin-top: 48px; }

.contact__photo { grid-column: 9 / span 4; margin: 0; }
.contact__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

@media (max-width: 960px) {
  .contact__main { grid-column: 1 / -1; }
  .contact__photo { grid-column: 1 / span 7; margin-top: 64px; }
}
@media (max-width: 560px) {
  .contact__cols { grid-template-columns: 1fr; }
  .contact__photo { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 7vw, 88px) 36px; border-top: 1px solid rgba(237, 229, 222, .08); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer__mark { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.015em; }
.footer__meta { text-align: right; font-size: .9rem; color: var(--on-dark-muted); }
.footer__meta p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; margin: 12px 0; }
.footer__links a { color: var(--on-dark); text-decoration-color: rgba(237, 229, 222, .35); }
.footer__links a:hover { text-decoration-color: currentColor; }
.footer__small { font-size: .8rem; }

@media (max-width: 640px) {
  .footer__meta { text-align: left; }
  .footer__links { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is running)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Privacy policy page
   ========================================================================== */

.policy-head { padding-top: calc(76px + clamp(48px, 7vw, 96px)); padding-bottom: clamp(48px, 6vw, 80px); background: var(--bone); }
.policy-head__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); align-items: end;
}
.policy-head__text { grid-column: 1 / span 7; }
.policy-head__title {
  margin: 0 0 28px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem); line-height: .95; letter-spacing: -.025em;
}
.policy-head__lead { max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); margin-bottom: 28px; }
.policy-head__dates { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: .9rem; }
.policy-head__dates dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.policy-head__dates div { display: flex; gap: 10px; align-items: baseline; }
.policy-head__dates dd { margin: 0; }
.policy-head__photo { grid-column: 9 / span 4; margin: 0; }
.policy-head__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }

.policy { background: var(--chalk); }
.policy__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); align-items: start;
}

.toc { grid-column: 1 / span 3; position: sticky; top: 108px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 12px; padding: 10px 0; font-size: .9rem; text-decoration: none; color: var(--muted); transition: color .25s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--fg); }
.toc a:hover, .toc a.is-current { color: var(--fg); }

.policy__body { grid-column: 5 / span 8; max-width: 70ch; }
.policy__section { padding-bottom: clamp(40px, 5vw, 60px); margin-bottom: clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); scroll-margin-top: 104px; }
.policy__section:last-child { border-bottom: 0; margin-bottom: 0; }
.policy__section h2 {
  display: flex; gap: .6em; align-items: baseline;
  margin: 0 0 22px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em;
}
.policy__section h2 span { font-style: italic; font-size: .55em; color: var(--muted); }
.policy__section h3 { margin: 28px 0 8px; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.policy__section ul { margin: 0 0 1em; padding-left: 1.2em; }
.policy__section li { margin-bottom: .4em; }
.policy__section li::marker { color: var(--muted); }
.policy__section a { text-decoration-color: var(--line-strong); }
.policy__section a:hover { text-decoration-color: currentColor; }

.table-scroll { overflow-x: auto; margin: 20px 0 8px; }
.cookie-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.cookie-table th, .cookie-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cookie-table thead th { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }
.cookie-table code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; }

.optout { list-style: none !important; padding: 0 !important; margin: 20px 0 !important; border-top: 1px solid var(--line-strong); }
.optout li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 14px 0; margin: 0 !important; border-bottom: 1px solid var(--line); }
.optout strong { font-weight: 500; }
.optout span { grid-column: 1; font-size: .9rem; color: var(--muted); }
.optout a { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 960px) {
  .policy-head__text { grid-column: 1 / -1; }
  .policy-head__photo { grid-column: 1 / span 7; margin-top: 48px; }
  .toc { grid-column: 1 / -1; position: static; margin-bottom: 56px; }
  .toc ol { columns: 2; column-gap: var(--col-gap); }
  .toc li { break-inside: avoid; }
  .policy__body { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .toc ol { columns: 1; }
  .policy-head__photo { grid-column: 1 / -1; }
  .optout li { grid-template-columns: 1fr; }
  .optout a { grid-column: 1; grid-row: auto; margin-top: 6px; }
}
