/* ══════════════════════════════════════
   goodordertherapy.com — William W. Lorey
   ══════════════════════════════════════ */

:root {
  --color-page:           #e8e4df;
  --color-surface:        #f7f6f4;
  --color-inner:          #ffffff;
  --color-text:           #2a2a2a;
  --color-text-secondary: #777777;
  --color-text-muted:     #999999;
  --color-border-light:   #d4cfc9;
  --color-accent:         #8b3a3a;
  --color-accent-dark:    #7a3232;
  --color-chiffon:        #f5f2ec;
  --color-vellum:         #e5dfd5;
  --color-fog:            #d8d2c8;
  --color-bark:           #5e5650;
  --color-peat:           #3f3a35;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', monospace;

  --max-width-page:    760px;
  --max-width-reading: 620px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background: var(--color-surface);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

/* ---- Typography ---- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1.25rem; }

a {
  color: var(--color-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover { color: var(--color-accent); }

[id] { scroll-margin-top: 6rem; }

em {
  font-style: italic;
  color: var(--color-accent);
}

strong { font-weight: 600; }

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

.site-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  padding: 0 1.25rem 0 1rem;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background-color 0.25s ease, border-bottom-color 0.25s ease;
}

.site-nav--over-hero {
  background: rgb(13, 17, 38);
  border-bottom-color: transparent;
}

.site-nav--over-hero .brand-mark__name {
  color: var(--color-surface);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: filter 0.15s;
}

.site-nav__brand:hover {
  filter: brightness(0.88);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
}

.brand-mark__wave {
  display: block;
  width: 86px;
  height: auto;
  border: 3.25px solid var(--color-accent);
  border-radius: 7px;
  padding: 0.37rem 0 0.2rem;
  background: var(--color-vellum);
  box-sizing: content-box;
  box-shadow: inset 0 0 4px 0 rgba(139, 58, 58, 0.34);
}

.brand-mark__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--color-peat);
  white-space: nowrap;
  -webkit-text-stroke: 0.45px currentColor;
  transition: color 0.25s ease;
}

@media (max-width: 640px) {
  .site-nav { height: 68px; padding: 0 1rem 0 0.75rem; }
  .brand-mark { gap: 0.26rem; }
  .brand-mark__wave {
    width: 68px;
    border-width: 2.4px;
    border-radius: 5px;
    padding: 0.3rem 0 0.16rem;
  }
  .brand-mark__name { font-size: 1.05rem; -webkit-text-stroke: 0.35px currentColor; }
}

.site-nav__cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-surface);
  background: var(--color-accent);
  padding: 0.5rem 1rem;
  border: 4px solid var(--color-fog);
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--color-bark);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.site-nav__cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-surface);
}

@media (max-width: 640px) {
  .site-nav { padding: 0 1rem; }
  .site-nav__cta {
    font-size: 0.7rem;
    padding: 0.45rem 0.7rem;
  }
}

/* ---- Page layout ---- */

.page {
  max-width: var(--max-width-page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Hero (fullscreen) ---- */

.hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem 5rem;
  position: relative;
  isolation: isolate;
  color: #f3ece2;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.75) 100%),
    url('hero-bg.webp') center/cover no-repeat,
    #0b0d1a;
}

.hero__content {
  max-width: 780px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
  color: #f3ece2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #f3ece2;
  position: relative;
  -webkit-text-stroke: 2px currentColor;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.1em;
  height: 0.32em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'><path d='M0 8 Q 12 2 24 8 T 48 8 T 72 8 T 96 8 T 120 8'/><path d='M0 8 Q 8 14 16 8 T 32 8 T 48 8 T 64 8 T 80 8 T 96 8 T 112 8' opacity='0.65'/></svg>") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'><path d='M0 8 Q 12 2 24 8 T 48 8 T 72 8 T 96 8 T 120 8'/><path d='M0 8 Q 8 14 16 8 T 32 8 T 48 8 T 64 8 T 80 8 T 96 8 T 112 8' opacity='0.65'/></svg>") center/100% 100% no-repeat;
}

.hero__lead {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.55;
  max-width: var(--max-width-reading);
  margin: 0 auto 2.5rem;
  color: #e6dfd3;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.cta-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #d7cfc2;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
  z-index: 1;
}

.hero__scroll-icon {
  animation: hero-scroll-bob 2.4s ease-in-out infinite;
}

.hero__scroll:hover {
  opacity: 1;
  color: #e9b27a;
}

.hero__scroll-icon {
  width: 18px;
  height: 18px;
  display: block;
}

@keyframes hero-scroll-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll { animation: none; }
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 4px solid var(--color-fog);
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--color-bark);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.cta-button:hover {
  background: var(--color-accent-dark);
  color: var(--color-surface);
}

.cta-button--soft {
  background: transparent;
  color: var(--color-accent);
}

.cta-button--soft:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

.cta-transitional {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cta-transitional:hover {
  color: var(--color-accent);
}

.hero .cta-transitional {
  font-size: 0.75rem;
  color: var(--color-peat);
  background: var(--color-fog);
  border: 1px solid rgba(63, 58, 53, 0.18);
  padding: 0.45rem 1rem;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hero .cta-transitional:hover {
  color: var(--color-peat);
  background: #c0b8ab;
  border-color: rgba(63, 58, 53, 0.3);
}

@media (max-width: 640px) {
  .hero { padding: 5rem 1.25rem 4rem; }
  .cta-button { padding: 0.9rem 1.75rem; }
}

/* ---- Promise ---- */

.promise {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
}

.promise__questions {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.promise__questions li {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 0 0 2rem;
  color: var(--color-text);
}

.promise__questions li:last-child {
  margin-bottom: 0;
}

.promise__sep {
  color: var(--color-accent);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 1.5rem;
  padding-left: 1.5rem;
  margin: 1.25rem 0 2rem;
  text-align: center;
}

.promise__bridge {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
  text-align: left;
}

.promise__bridge::first-letter {
  font-family: var(--font-display);
  font-size: 3.6rem;
  float: left;
  line-height: 0.9;
  padding: 0.35rem 0.65rem 0 0;
  color: var(--color-accent);
}

.promise__close {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 1.25rem auto 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
  text-align: center;
  color: var(--color-peat);
}

.promise__close::after {
  content: "";
  display: block;
  width: 90%;
  height: 24px;
  margin: 0.1rem auto 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' fill='none' stroke='%235e5650' stroke-width='2' stroke-linecap='round'><path d='M0 12 Q 25 24 50 12 T 100 12'/></svg>");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 100px 24px;
}

@media (max-width: 640px) {
  .promise__questions li { font-size: 1.25rem; }
  .promise__close { font-size: 1.3rem; }
}

/* ---- Proof ---- */

.proof {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  padding: 3rem 0;
}

.proof p { margin: 0 0 1.25rem; }

.proof__heading {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.proof__split {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.proof__photo-frame {
  flex-shrink: 0;
  padding: 8px;
  background: var(--color-border-light);
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--color-bark);
}

.proof__headshot {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: cover;
}

.proof__body p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .proof__split {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .proof__headshot {
    width: 180px;
    height: 180px;
  }
}

.proof__credentials {
  font-family: var(--font-mono);
  font-size: 0.91rem;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  margin-top: 1.5rem !important;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.4em;
  row-gap: 0.1em;
}

.proof__credentials__dash {
  grid-column: 1;
  grid-row: 1;
}

.proof__credentials__name {
  grid-column: 2;
  grid-row: 1;
}

.proof__credentials__loc {
  grid-column: 2;
  grid-row: 2;
}

.endorsement {
  margin: 2rem 0 0;
  padding: 1.75rem 1.5rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
}

.endorsement blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-style: normal;
  color: var(--color-text);
}

.endorsement blockquote p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.endorsement figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.endorsement figcaption a {
  color: var(--color-text-secondary);
}

.pt-seal-outer {
  position: relative;
  width: 146px;
  height: 46px;
  margin: 2.5rem auto 0;
}

.pt-seal-wrapper {
  width: 146px !important;
  height: 46px !important;
  margin: 0 !important;
}

.pt-seal-link {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* ---- Plan ---- */

.plan {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
}

.plan h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.plan__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}

.plan__steps li {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem 4.5rem;
  background: var(--color-surface);
  border-radius: 4px;
}

.plan__num {
  position: absolute;
  left: 1.25rem;
  top: 0.94rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
}

.plan__steps h3 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.plan__steps p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.plan__agreement {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  text-align: left;
}

.plan__agreement li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.95rem;
}

.plan__agreement li:last-child {
  border-bottom: 1px solid var(--color-border-light);
}

.plan__cta { margin-top: 1.5rem; }

/* ---- FOMO (full-bleed dark band) ---- */

.fomo {
  margin: 4rem calc(50% - 50vw);
  padding: 5rem 1.5rem;
  width: 100vw;
  background: rgb(13, 17, 38);
  color: var(--color-surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fomo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-surface);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  -webkit-mask:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600' fill='none' stroke='black' stroke-linecap='round'><path d='M-40 300 Q 80 40 200 300 T 440 300 T 680 300 T 920 300 T 1160 300 T 1400 300 T 1640 300' stroke-width='12'/><path d='M-40 300 Q 60 560 160 300 T 360 300 T 560 300 T 760 300 T 960 300 T 1160 300 T 1360 300 T 1560 300 T 1760 300' stroke-width='10' opacity='0.75'/><path d='M-40 300 Q 120 100 280 300 T 600 300 T 920 300 T 1240 300 T 1560 300 T 1880 300' stroke-width='9' opacity='0.55'/></svg>") center/auto 100% no-repeat,
    linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600' fill='none' stroke='black' stroke-linecap='round'><path d='M-40 300 Q 80 40 200 300 T 440 300 T 680 300 T 920 300 T 1160 300 T 1400 300 T 1640 300' stroke-width='12'/><path d='M-40 300 Q 60 560 160 300 T 360 300 T 560 300 T 760 300 T 960 300 T 1160 300 T 1360 300 T 1560 300 T 1760 300' stroke-width='10' opacity='0.75'/><path d='M-40 300 Q 120 100 280 300 T 600 300 T 920 300 T 1240 300 T 1560 300 T 1880 300' stroke-width='9' opacity='0.55'/></svg>") center/auto 100% no-repeat,
    linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
          mask-composite: intersect;
}

.fomo__inner {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.fomo__beat {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-surface);
  margin: 0 0 2.25rem;
}

.fomo h2.fomo__beat {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.fomo p.fomo__beat {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  opacity: 0.9;
}

.fomo__bridge {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.3;
  color: var(--color-surface);
  opacity: 0.9;
  margin: 2.5rem auto;
}

.fomo__bridge-pivot {
  display: block;
  width: fit-content;
  margin: 0.2em auto 0;
  padding-bottom: 0.7em;
  font-style: italic;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 18' preserveAspectRatio='none'><path d='M4 13 Q 120 -10 236 13' stroke='%238b3a3a' stroke-width='4.2' stroke-linecap='butt' fill='none' vector-effect='non-scaling-stroke'/></svg>");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 0.55em;
}

.fomo .cta-button {
  margin-top: 0.5rem;
  background: #d8d2c8;
  color: var(--color-peat);
  border-color: #d8d2c8;
}

.fomo .cta-button:hover {
  background: #c0b8ab;
  color: var(--color-peat);
  border-color: #c0b8ab;
}

@media (max-width: 640px) {
  .fomo { padding: 4rem 1.25rem; }
  .fomo__beat { margin-bottom: 1.75rem; }
}

/* ---- FAQ ---- */

.faq {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  padding: 3rem 0;
}

.faq h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
  padding: 1.25rem 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--color-border-light);
}

.faq-item summary {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-text-secondary);
}

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

.faq-item[open] summary {
  text-decoration: none;
}

.faq-item > p {
  color: var(--color-text-secondary);
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.faq-item > p a {
  color: var(--color-text-secondary);
}

/* ---- Pill grid (FAQ specializations) ---- */

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.pill--surface {
  background: var(--color-text);
  color: var(--color-surface);
}

.pill--outline {
  background: transparent;
  border: 1px solid var(--color-peat);
  color: var(--color-text);
}

/* ---- Modality carousel ---- */

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.carousel__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track .modality-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  min-height: 280px;
}

.carousel__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-inner);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.carousel__arrow:hover:not(:disabled) {
  border-color: var(--color-bark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.carousel__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel__arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-tab-strip { display: none; }

.modality-card {
  background: var(--color-inner);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  padding: 2rem;
}

.modality-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--color-peat);
}

.modality-card h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.modality-card__full-name {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.modality-card p:last-child {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.modality-card__useful-for {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

@media (max-width: 640px) {
  .carousel-tab-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    gap: 0;
  }

  .carousel-tab-strip::-webkit-scrollbar { display: none; }

  .carousel-tab-strip__tab {
    flex-shrink: 0;
    padding: 0.4rem 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .carousel-tab-strip__tab:hover {
    color: var(--color-text-secondary);
  }

  .carousel-tab-strip__tab--active {
    color: var(--color-text);
    border-bottom-color: var(--color-peat);
  }

  .carousel { margin-top: 0; }
  .carousel__arrow { display: none; }
  .carousel__track .modality-card { flex: 0 0 calc(100vw - 4rem); }
}

/* ---- Contact ---- */

.contact {
  max-width: var(--max-width-reading);
  margin: 3rem auto 1rem;
  padding: 2.5rem;
  background: var(--color-inner);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
}

.contact__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 2rem;
}

.contact-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 0.25rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  user-select: none;
}

.contact-form__checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--color-border-light);
  border-radius: 3px;
  background: var(--color-inner);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.contact-form__checkbox input[type="checkbox"]:hover {
  border-color: var(--color-accent);
}

.contact-form__checkbox input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.contact-form__checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  width: 6px;
  height: 11px;
  border: solid var(--color-surface);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact-form__checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.contact-form__checkbox span {
  flex: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--color-text-secondary);
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--color-chiffon);
  border: 1px solid var(--color-border-light);
  border-radius: 3px;
  color: var(--color-text);
  width: 100%;
  transition: border-color 0.15s;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  margin-top: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 1px solid var(--color-bark);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-form__submit:hover:not(:disabled) {
  background: var(--color-accent-dark);
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact-form__status {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
}

.contact-form__status p { margin: 0; }

.contact-form__status--error {
  border-left-color: #b85a5a;
}

.contact__direct,
.contact__address {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
  margin-bottom: 0;
}

.contact__direct + .contact__address {
  margin-top: 0.35rem;
}

.contact__direct a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.site-footer {
  max-width: var(--max-width-page);
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem 3rem;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.site-footer__links a:hover { color: var(--color-accent); }

.site-footer__disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: var(--max-width-reading);
  margin: 0 auto 0.75rem;
}

.site-footer__disclaimer a {
  color: var(--color-text-muted);
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin: 0;
}
