/* ============ Design tokens ============ */
:root {
  --bg: #F7F3EE;          /* cream */
  --surface: #EFE7DF;     /* sand band */
  --card: #FFFDFB;
  --ink: #2E2422;         /* warm dark brown */
  --ink-soft: #66574F;
  --accent: #7A4E4E;      /* mauve */
  --accent-hover: #633D3D;
  --highlight: #7A4E4E;   /* italic accents, numbers */
  --on-accent: #FFFFFF;
  --line: #E0D5CA;
  --input-border: #9C8B80;
  --dark: #2E2422;
  --on-dark: #F7F3EE;
  --on-dark-soft: #CDBFB5;
  --success: #3F6B4E;
  --error: #A33A3A;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.section { padding-block: 72px; scroll-margin-top: var(--header-h); }
.section-tight { padding-block: 16px 24px; }
.section-surface { background: var(--surface); }
@media (min-width: 960px) {
  .section { padding-block: 112px; }
  .section-tight { padding-block: 24px 32px; }
}

.eyebrow {
  font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); margin-top: 12px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-sub { color: var(--ink-soft); margin-top: 16px; max-width: 52ch; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
/* Logo lettering is a transparent mask (img/logo-mask.png), filled with the brand colour */
.logo-mark {
  display: block; height: 44px; aspect-ratio: 871 / 273; background-color: var(--accent);
  -webkit-mask: url("img/logo-mask.png") center / contain no-repeat;
  mask: url("img/logo-mask.png") center / contain no-repeat;
  transition: background-color .2s var(--ease);
}
.logo:hover .logo-mark { background-color: var(--accent-hover); }
@media (forced-colors: active) { .logo-mark { background-color: CanvasText; } }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a { position: relative; display: inline-block; padding-block: 10px; text-decoration: none; font-size: .9375rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  min-width: 42px; min-height: 38px; border: 0; border-radius: 999px; background: transparent;
  font: 600 .75rem var(--sans); letter-spacing: .08em; color: var(--ink-soft); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.menu-toggle { display: none; }

@media (max-width: 899px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px 20px 28px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.75rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}
@media (max-width: 559px) {
  .header-cta { display: none; }
  .logo-mark { height: 36px; }
}

/* ============ Hero ============ */
.hero { padding-block: 24px 56px; }
.hero-grid { display: grid; gap: 32px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(2.9rem, 1.6rem + 5.5vw, 5.75rem); line-height: 1; }
.hero h1 em { font-style: italic; color: var(--highlight); }
.hero-lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-meta { display: flex; gap: 36px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 2.25rem; font-weight: 400; line-height: 1; margin-bottom: 4px; }
.hero-meta span { font-size: .8125rem; color: var(--ink-soft); }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }

@media (min-width: 960px) {
  .hero { padding-block: 32px 64px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .hero-text { padding-bottom: 8px; }
  .hero-media { aspect-ratio: auto; height: min(80vh, 760px); }
}

/* ============ Philosophy quote ============ */
.quote-card { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 56px 24px; text-align: center; }
.quote-card blockquote {
  margin: 20px auto 0; max-width: 34ch;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); line-height: 1.3;
}
.quote-card blockquote span { display: block; }
@media (min-width: 768px) { .quote-card { padding: 88px 48px; } }

/* ============ About ============ */
.about-grid { display: grid; gap: 40px; }
.about-media { position: relative; margin: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--card); border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 12px 32px -14px rgba(46, 36, 34, .35);
}
.about-badge strong { display: block; font-family: var(--serif); font-size: 2.25rem; font-weight: 400; line-height: 1; }
.about-badge span { font-size: .8125rem; color: var(--ink-soft); }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-text h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-top: -4px; }
.about-text p:not(.eyebrow):not(.about-sign) { color: var(--ink-soft); max-width: 60ch; }
.about-sign { font-family: var(--serif); font-style: italic; font-size: 1.6rem; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.brands li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .8125rem; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
}

/* ============ Process ============ */
.process-grid { display: grid; gap: 40px; }
.process-media { margin: 0; }
.process-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.steps { list-style: none; padding: 0; margin: 32px 0 0; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-size: 1.25rem; color: var(--highlight); line-height: 1.6; }
.step h3 { font-size: 1.625rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .9375rem; }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .process-media img { aspect-ratio: 4 / 5; }
}

/* ============ Treatments ============ */
.t-layout { display: grid; gap: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 500 .9375rem var(--sans); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (min-width: 960px) {
  .t-layout { grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
  .tabs { flex-direction: column; position: sticky; top: calc(var(--header-h) + 24px); }
  .tab { text-align: left; border-radius: 12px; min-height: 52px; font-size: 1rem; }
}

.t-panel { animation: panelIn .35s var(--ease); }
.t-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.t-intro { color: var(--ink-soft); max-width: 62ch; padding-bottom: 8px; }
.t-list { list-style: none; margin: 0; padding: 0; }
.t-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.t-item h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.75rem); }
.t-price { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; line-height: 1.2; text-align: right; }
.t-price small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .8125rem; color: var(--ink-soft); }
.t-desc { grid-column: 1 / -1; color: var(--ink-soft); font-size: .9375rem; max-width: 62ch; }
.t-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 2px 0 0; }
.t-tags li { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink-soft); }
.t-note { grid-column: 1 / -1; font-size: .8125rem; font-weight: 600; color: var(--highlight); }
.t-book {
  grid-column: 1 / -1; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none;
  font: 600 .875rem var(--sans); color: var(--accent); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.t-book:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.t-addons { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.t-addons h3 { font-size: 1.5rem; margin-bottom: 4px; }
.t-addon { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.t-addon:last-child { border-bottom: 0; padding-bottom: 0; }
.t-addon-name { font-weight: 600; }
.t-addon-desc { display: block; font-size: .875rem; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.t-addon-price { font-family: var(--serif); font-size: 1.3rem; white-space: nowrap; }

/* ============ Before / after gallery ============ */
/* Justified rows: every photo in a row gets the same height, widths follow each photo's shape (--r = width/height) */
.ba-grid { --h: 120px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; list-style: none; margin: 0 auto; padding: 0; }
.results-head { margin-inline: auto; text-align: center; }
.results-head .section-sub { margin-inline: auto; }
@media (min-width: 560px) { .ba-grid { --h: 170px; gap: 14px; } }
@media (min-width: 960px) { .ba-grid { --h: 200px; gap: 16px; } }
.ba-item { flex: var(--r) 1 calc(var(--r) * var(--h)); max-width: calc(var(--r) * var(--h) * 1.2); min-width: 0; }
.ba-open {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--card);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 1px 0 var(--line);
}
.ba-open img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform .5s var(--ease); }
.ba-open:hover img { transform: scale(1.02); }
.ba-zoom {
  position: absolute; right: 8px; top: 8px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--card) 90%, transparent); color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
.ba-open:hover .ba-zoom { transform: scale(1.08); }
.ba-zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ba-caption { margin-top: 10px; font-size: .9375rem; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(20, 16, 15, .94); color: #F7F3EE;
}
.lightbox[open] { animation: lbIn .25s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-inner { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 64px 16px 24px; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-figure figcaption { font-size: .9375rem; text-align: center; }
.lb-count { margin-left: 10px; opacity: .65; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(247, 243, 238, .25); border-radius: 50%; background: rgba(20, 16, 15, .5);
  color: #F7F3EE; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lb-btn:hover { background: rgba(247, 243, 238, .14); border-color: rgba(247, 243, 238, .6); }
.lb-btn:focus-visible { outline: 2px solid #F7F3EE; outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-inner { padding: 64px 12px 88px; }
  .lb-figure img { max-height: calc(100dvh - 200px); }
}

/* ============ Contact ============ */
.contact { background: var(--dark); color: var(--on-dark); }
.contact .eyebrow { color: var(--on-dark-soft); }
.contact-grid { display: grid; gap: 40px; }
.contact-lead { color: var(--on-dark-soft); margin-top: 16px; max-width: 44ch; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; }
.c-label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 2px; }
.c-value { font-size: 1.0625rem; }
a.c-value { display: inline-block; padding-block: 10px; margin-block: -10px; color: var(--on-dark); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-dark) 35%, transparent); text-underline-offset: 4px; transition: text-decoration-color .2s var(--ease); }
a.c-value:hover { text-decoration-color: var(--on-dark); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; } }

.form-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px; }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .875rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--input-border); border-radius: var(--radius-sm); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232E2422' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.hint { font-size: .8125rem; color: var(--ink-soft); }
.addons-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; animation: panelIn .3s var(--ease); }
.addons-field[hidden] { display: none; }
.addons-field legend { padding: 0; margin-bottom: 8px; font-size: .875rem; font-weight: 600; }
.addon-opt {
  display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 8px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.addon-opt:hover { border-color: var(--input-border); }
.addon-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.addon-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.addon-text { font-size: .9375rem; font-weight: 600; }
.addon-desc { display: block; font-size: .8125rem; font-weight: 400; color: var(--ink-soft); }
.addon-price { margin-left: auto; font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }
.error-msg { display: none; font-size: .8125rem; color: var(--error); }
.field.has-error .input { border-color: var(--error); }
.field.has-error .error-msg { display: block; }
.field-check { margin-bottom: 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem !important; font-weight: 400 !important; color: var(--ink-soft); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: .9375rem; min-height: 1.5em; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* ============ Footer ============ */
.site-footer { background: var(--dark); color: var(--on-dark-soft); border-top: 1px solid color-mix(in srgb, var(--on-dark) 12%, transparent); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; padding-block: 28px; font-size: .875rem; }
.footer-legal { display: grid; gap: 4px; }
.footer-legal p + p { font-size: .8125rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-inner a, .footer-inner .link-btn { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.footer-inner a:hover, .footer-inner .link-btn:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }

/* Text-style button (opens dialogs) */
.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer; text-underline-offset: 4px;
}
.privacy-link { min-height: 32px; margin-top: 4px; font-size: .8125rem; color: var(--ink-soft); text-decoration: underline; }
.privacy-link:hover { color: var(--ink); }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-bottom: 16px; }

/* Privacy dialog */
.modal {
  width: min(680px, calc(100vw - 32px)); max-height: min(85dvh, 860px); padding: 0;
  border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5);
}
.modal::backdrop { background: rgba(46, 36, 34, .55); }
.modal[open] { animation: lbIn .25s var(--ease); }
.modal-card { position: relative; padding: 32px 24px 28px; }
@media (min-width: 768px) { .modal-card { padding: 44px 48px 40px; } }
.modal h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem); margin-right: 48px; margin-bottom: 8px; }
.privacy-body h3 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; margin: 22px 0 6px; line-height: 1.4; }
.privacy-body p { color: var(--ink-soft); font-size: .9375rem; margin-top: 14px; }
/* "Message sent" dialog */
.modal-sent { width: min(440px, calc(100vw - 32px)); text-align: center; }
.modal-sent .modal-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 28px 32px; }
.modal-sent h2 { margin: 6px 0 0; }
.modal-sent p { color: var(--ink-soft); max-width: 32ch; }
.modal-sent .btn { margin-top: 10px; min-width: 160px; }
.sent-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.sent-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modal[open] .sent-icon { animation: sentPop .45s var(--ease) .1s both; }
@keyframes sentPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal[open] .sent-icon { animation: none; } }

.modal-close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s var(--ease);
}
.modal-close:hover { background: var(--surface); }
.modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ============ Scroll reveal ============ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .t-panel { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
