/* ==========================================================
   テルミーケア コシバ — Design System
   ========================================================== */

:root {
  /* Colors */
  --ivory: #F7F1EC;
  --ivory-deep: #EFE6DE;
  --paper: #FBF7F3;
  --rose-50: #F5E9E6;
  --rose-100: #E8CFC9;
  --rose-300: #C89B94;
  --rose-500: #B07A72;
  --rose-700: #8A5A5A;
  --ink: #3A2E2A;
  --ink-soft: #6B5A54;
  --ink-mute: #9B8B85;
  --line: #E6DAD1;
  --line-soft: #EFE6DE;
  --leaf: #7B8A6E;

  /* Type */
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* Sizes */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}
a:hover { opacity: .65; }

/* =====================  Layout  ===================== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-narrow { max-width: 880px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(72px, 12vw, 140px) 0; }
.section-tight { padding: clamp(48px, 8vw, 96px) 0; }

/* =====================  Type utilities  ===================== */
.serif { font-family: var(--serif); font-weight: 300; }
.eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--rose-500);
  text-transform: uppercase;
  display: inline-block;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--rose-300);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0;
}
h2.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  margin-top: 14px;
  margin-bottom: 40px;
  letter-spacing: 0.12em;
}
h3 { font-size: clamp(18px, 2.2vw, 22px); letter-spacing: 0.1em; }

.lead {
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.2;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* =====================  Header  ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 247, 243, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 218, 209, 0.5);
  transition: background .3s ease;
}
.site-header.at-top {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.at-top.on-dark { color: #fff; }
.site-header.at-top.on-dark .brand-sub { color: rgba(255,255,255,0.75); }
.site-header.at-top.on-dark .nav a { color: rgba(255,255,255,0.9); }
.site-header.at-top.on-dark .cta-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.24em;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.nav a { color: var(--ink-soft); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.cta-ghost {
  border: 1px solid var(--rose-300);
  color: var(--rose-700);
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.24em;
  font-family: var(--serif);
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}
.cta-ghost:hover { background: var(--rose-50); }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  margin: 5px 0;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .cta-ghost { padding: 8px 14px; font-size: 11px; }
}

/* Mobile menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  padding: 80px var(--gutter) 40px;
  display: none;
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.16em;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent; border: none;
  font-size: 24px; cursor: pointer;
  color: var(--ink);
}

/* =====================  Hero  ===================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(58,46,42,0.28) 0%,
    rgba(58,46,42,0.05) 30%,
    rgba(58,46,42,0.15) 70%,
    rgba(58,46,42,0.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(60px, 10vh, 120px);
  color: #fff;
}
.hero-eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.7);
  vertical-align: middle;
  margin-right: 14px;
  margin-bottom: 3px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 5.4vw, 62px);
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: #fff;
  margin: 0 0 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.hero-title span { display: inline-block; }
.hero-title .sep {
  display: inline-block;
  color: rgba(255,255,255,0.6);
  margin: 0 4px;
  font-weight: 200;
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 2;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.28em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--rose-700);
  color: #fff;
  border-color: var(--rose-700);
}
.btn-primary:hover { background: var(--rose-500); border-color: var(--rose-500); opacity: 1; }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); opacity: 1; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.75);
  font-size: 10px;
  letter-spacing: 0.32em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding-bottom: 60px;
}
.hero-scroll::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-24px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(24px); opacity: 0; }
}

/* =====================  Intro (about clinic)  ===================== */
.intro {
  background: var(--paper);
  text-align: center;
}
.intro-copy {
  font-family: var(--serif);
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 2.4;
  letter-spacing: 0.14em;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto;
}
.intro-copy p { margin: 0 0 1.6em; }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-sign {
  margin-top: 48px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--rose-500);
}

/* Divider ornaments */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--rose-300);
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--rose-100);
}
.ornament svg { display: block; }

/* =====================  Four modes  ===================== */
.modes {
  background: var(--ivory);
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mode-card {
  background: var(--ivory);
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background .4s ease;
}
.mode-card:hover { background: var(--paper); }
.mode-symbol {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-500);
  margin-bottom: 20px;
}
.mode-jp {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.32em;
  color: var(--ink);
  margin-bottom: 8px;
}
.mode-en {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.44em;
  color: var(--rose-500);
  margin-bottom: 20px;
}
.mode-desc {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .modes-grid { grid-template-columns: 1fr; }
}

/* =====================  Checklist  ===================== */
.checklist-section {
  background: var(--paper);
  position: relative;
}
.checklist-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}
.checklist-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--rose-50), var(--ivory-deep));
  position: relative;
  overflow: hidden;
}
.checklist-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(200,155,148,0.06) 8px 9px);
}
.placeholder-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: "SF Mono", "Monaco", "Menlo", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rose-500);
  opacity: 0.7;
  text-align: center;
  padding: 12px 20px;
  border: 1px dashed rgba(176,122,114,0.4);
  background: rgba(251,247,243,0.7);
}
.checklist ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
.checklist li {
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 18px 0 18px 44px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 18px; height: 18px;
  border: 1px solid var(--rose-300);
  transform: translateY(-50%);
  background: var(--paper);
}
.checklist li::after {
  content: "✓";
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-58%);
  color: var(--rose-500);
  font-size: 14px;
  font-family: var(--serif);
}
.checklist-note {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}
@media (max-width: 780px) {
  .checklist-inner { grid-template-columns: 1fr; }
  .checklist-visual { aspect-ratio: 16/10; max-height: 320px; }
}

/* =====================  Menu preview  ===================== */
.menu-preview {
  background: var(--ivory);
}
.menu-list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
}
.menu-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.menu-row:first-child { border-top: 1px solid var(--line); }
.menu-tag {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--rose-500);
  padding-top: 6px;
}
.menu-body h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.menu-body h3 .en {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--rose-500);
  margin-left: 16px;
  vertical-align: middle;
}
.menu-body p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0;
  max-width: 560px;
}
.menu-price {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.menu-price .yen { font-size: 12px; margin-left: 4px; color: var(--ink-soft); }
.menu-price small { display: block; font-size: 10px; letter-spacing: 0.24em; color: var(--ink-mute); margin-top: 4px; text-align: right; }

@media (max-width: 680px) {
  .menu-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .menu-price { text-align: left; }
  .menu-price small { text-align: left; }
}

.menu-cta { margin-top: 60px; text-align: center; }

/* =====================  Practitioner / About  ===================== */
.about {
  background: var(--paper);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
}
.about-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--ivory-deep), var(--rose-50));
  position: relative;
  overflow: hidden;
}
.about-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(200,155,148,0.06) 8px 9px);
}
.about-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.badge {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 8px 14px;
  border: 1px solid var(--rose-300);
  color: var(--rose-700);
  background: var(--paper);
}
.about-body h2 { text-align: left; }
.about-body .lead { margin-top: 24px; }
.about-quote {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 32px;
  padding-left: 20px;
  border-left: 2px solid var(--rose-300);
}
@media (max-width: 780px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4/5; max-height: 480px; }
}

/* =====================  Terumee info  ===================== */
.terumee {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--rose-50) 100%);
  text-align: center;
}
.terumee-copy {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.terumee-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 72px;
}
.tfeat {
  padding: 32px 20px;
  border-top: 1px solid var(--rose-100);
}
.tfeat-num {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--rose-500);
  margin-bottom: 12px;
}
.tfeat h4 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.tfeat p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 680px) { .terumee-features { grid-template-columns: 1fr; gap: 24px; } }

/* =====================  Midwife services  ===================== */
.midwife {
  background: var(--paper);
}
.midwife-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.mw-card {
  padding: 40px 28px;
  background: var(--ivory);
  border-top: 2px solid var(--rose-300);
  display: flex;
  flex-direction: column;
}
.mw-card .num {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--rose-500);
  margin-bottom: 20px;
}
.mw-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  line-height: 1.6;
}
.mw-card p {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) { .midwife-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .midwife-grid { grid-template-columns: 1fr; } }

/* =====================  Favorites (things I love) ===================== */
.favorites {
  background: var(--paper);
}
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.fav-card {
  display: flex;
  flex-direction: column;
}
.fav-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--rose-50), var(--ivory-deep));
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.fav-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(200,155,148,0.06) 8px 9px);
}
.fav-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  color: var(--ink);
}
.fav-card .en {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--rose-500);
  margin-bottom: 14px;
}
.fav-card p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) { .favorites-grid { grid-template-columns: 1fr; gap: 32px; } }

/* =====================  Blog / Shop split  ===================== */
.dual {
  background: var(--paper);
}
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-top: 40px;
}
.dual-card {
  background: var(--ivory);
  padding: 48px;
  display: flex;
  flex-direction: column;
}
.dual-card h3 {
  font-size: 22px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.dual-card .en {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--rose-500);
  margin-bottom: 24px;
}
.dual-card p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.dual-visual {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--rose-50), var(--ivory-deep));
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.dual-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(200,155,148,0.06) 8px 9px);
}
.dual-link {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--rose-700);
  padding-top: 8px;
  border-top: 1px solid var(--rose-100);
  display: inline-block;
}
.dual-link::after { content: " →"; }
@media (max-width: 680px) { .dual-grid { grid-template-columns: 1fr; } }

/* =====================  Access CTA  ===================== */
.access {
  background: var(--ink);
  color: var(--paper);
}
.access .container { text-align: center; }
.access .eyebrow { color: var(--rose-100); }
.access .eyebrow::before { background: var(--rose-300); }
.access h2 {
  color: var(--paper);
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 14px 0 32px;
  letter-spacing: 0.16em;
}
.access p {
  color: rgba(247,241,236,0.7);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.12em;
  max-width: 520px;
  margin: 0 auto 48px;
}
.access-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(247,241,236,0.15);
  text-align: left;
}
.ainfo-label {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--rose-100);
  margin-bottom: 12px;
}
.ainfo-value {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--paper);
}
.access .btn-primary { background: var(--rose-300); border-color: var(--rose-300); color: var(--ink); }
.access .btn-primary:hover { background: var(--rose-100); border-color: var(--rose-100); }
.access .btn-secondary { color: var(--paper); border-color: rgba(247,241,236,0.5); }
.access .btn-secondary:hover { background: rgba(247,241,236,0.08); }

@media (max-width: 680px) { .access-info { grid-template-columns: 1fr; gap: 28px; } }

/* =====================  Footer  ===================== */
.site-footer {
  background: var(--ivory-deep);
  padding: 72px 0 32px;
  color: var(--ink-soft);
  font-size: 12px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand-mark { color: var(--ink); font-size: 20px; }
.footer-brand p { margin: 20px 0 0; line-height: 1.9; letter-spacing: 0.08em; }
.footer-col h5 {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--rose-500);
  margin: 0 0 20px;
  font-weight: 400;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; letter-spacing: 0.1em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.footer-socials { display: flex; gap: 20px; }
@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

/* =====================  Fade-in animation on scroll  ===================== */
/* Default: visible. JS opts in to the hidden state via .js-reveal-on,
   so pages remain readable even if JS fails to load. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease, transform .9s ease;
}
.js-reveal-on .reveal { opacity: 0; transform: translateY(24px); }
.js-reveal-on .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js-reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
