/* KashiLook — site styles
   Palette: aubergine ink on porcelain, rose for actions, mint for "available" / "at home". */

:root {
  --ink: #261A2E;
  --ink-soft: #5E5066;
  --paper: #FAF8FB;
  --white: #FFFFFF;
  --mist: #F1EBF3;
  --line: #E1D7E4;
  --rose: #B8325E;
  --rose-deep: #962448;
  --rose-tint: #F8E3EA;
  --mint: #CFE8DC;
  --mint-ink: #1F5A44;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 26px;
  --radius: 14px;
  --pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.lede { font-size: clamp(1.08rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 36em; }

/* ---------- Buttons & links ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--pill); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); color: var(--white); }
.btn-primary:hover { background: var(--rose-deep); }
.btn-quiet { border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--mint); }

.text-link {
  color: var(--rose); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--rose-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
  view-transition-name: site-header;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.45rem/1 var(--font-display); letter-spacing: -0.04em;
  text-decoration: none; color: var(--ink);
}
.brand-glint { stroke: var(--rose); }
.brand-light { color: var(--paper); }
.brand-light .brand-glint { stroke: #E46A92; }

.site-nav ul { display: flex; gap: 6px; }
.site-nav a {
  position: relative; display: block; padding: 10px 14px;
  font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color .2s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--rose); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; margin-inline: auto;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after { transform: translateY(7px); }
[data-open] .nav-toggle-bars { background: transparent; }
[data-open] .nav-toggle-bars::before { transform: rotate(45deg); }
[data-open] .nav-toggle-bars::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  [data-open] .site-nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { left: 0; right: auto; width: 24px; bottom: -1px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-top: clamp(16px, 3vw, 32px); }
.section-mist { background: var(--mist); }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { margin-top: 14px; color: var(--ink-soft); }
.section-head .text-link { display: inline-block; margin-top: 20px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.page-head h1 { max-width: 16em; }
.page-head .lede { margin-top: 20px; }
.page-head-center { text-align: center; min-height: 50vh; display: grid; align-items: center; }
.page-head-center h1, .page-head-center .lede { margin-inline: auto; }
.page-head-center .actions { justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-title { font-size: clamp(2.7rem, 6.4vw, 4.6rem); line-height: 1; }
.hero .lede { margin-top: 24px; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: .95rem; color: var(--ink-soft); }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mint-ink); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* The booking demo: queue dissolves, a slot is chosen, booking confirmed.
   Default styles are the END state, so reduced-motion users see the result. */
.booking-demo {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(38, 26, 46, .35);
  border: 1px solid var(--line);
  max-width: 440px; width: 100%; justify-self: center;
}
.demo-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.demo-service { font: 650 1.15rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.demo-day { font-size: .9rem; color: var(--ink-soft); }
.demo-label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.demo-queue { padding-block: 18px; border-bottom: 1px dashed var(--line); }
.queue-heads { display: flex; gap: 8px; height: 34px; }
.queue-heads span { position: relative; width: 24px; height: 34px; opacity: .14; }
.queue-heads span::before, .queue-heads span::after { content: ""; position: absolute; left: 50%; translate: -50% 0; background: var(--ink-soft); }
.queue-heads span::before { top: 0; width: 13px; height: 13px; border-radius: 50%; }
.queue-heads span::after { bottom: 0; width: 24px; height: 17px; border-radius: 12px 12px 4px 4px; }
.queue-wait {
  margin-top: 10px; font-size: .95rem; color: var(--ink-soft); opacity: .6;
  text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px;
}
.demo-slots { padding-top: 18px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  padding: 10px 0; text-align: center; border-radius: 10px;
  background: var(--mint); color: var(--mint-ink);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.slot.is-taken { background: var(--mist); color: #A99BAE; text-decoration: line-through; }
.slot-pick { background: var(--rose); color: var(--white); box-shadow: 0 0 0 4px var(--rose-tint); }
.demo-confirm {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); font-size: .95rem; font-weight: 500;
}
.demo-confirm svg { flex: none; color: var(--rose); }

@media (prefers-reduced-motion: no-preference) {
  .booking-demo { animation: demo-in .7s var(--ease) .1s both; }
  .queue-heads span { animation: head-leave .5s var(--ease) both; }
  .queue-heads span:nth-child(1) { animation-delay: .9s; }
  .queue-heads span:nth-child(2) { animation-delay: 1.0s; }
  .queue-heads span:nth-child(3) { animation-delay: 1.1s; }
  .queue-heads span:nth-child(4) { animation-delay: 1.2s; }
  .queue-heads span:nth-child(5) { animation-delay: 1.3s; }
  .queue-heads span:nth-child(6) { animation-delay: 1.4s; }
  .queue-wait { animation: strike .5s var(--ease) 1.6s both; }
  .slot-pick { animation: pick .55s var(--ease) 2.2s both; }
  .demo-confirm { animation: confirm-in .6s var(--ease) 2.7s both; }
  .pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint-ink);
    animation: pulse 2.4s ease-out 3.2s infinite;
  }
}
@keyframes demo-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes head-leave { from { opacity: 1; transform: none; } to { opacity: .14; transform: translateY(4px) scale(.9); } }
@keyframes strike { from { opacity: 1; text-decoration-color: transparent; } }
@keyframes pick {
  0% { background: var(--mint); color: var(--mint-ink); box-shadow: 0 0 0 0 var(--rose-tint); }
  55% { transform: scale(1.08); }
  100% { transform: none; }
}
@keyframes confirm-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes pulse { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.6); } }

/* ---------- Two ways ---------- */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.way { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); }
.way-salon { background: var(--mist); }
.way-home { background: var(--mint); }
.way-icon { width: 44px; height: 44px; margin-bottom: 28px; }
.way-salon .way-icon { color: var(--rose); }
.way-home .way-icon { color: var(--mint-ink); }
.way h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.way > p { margin-top: 12px; color: var(--ink-soft); max-width: 30em; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg) scale(.8); transform-origin: center;
}
.way-salon .ticks li::before { color: var(--rose); }
.way-home .ticks li::before { color: var(--mint-ink); }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; padding: 12px 20px; border-radius: var(--pill);
  background: var(--white); border: 1px solid var(--line);
  font: 600 clamp(1rem, 1.4vw, 1.15rem)/1.2 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps { display: grid; gap: clamp(24px, 3vw, 40px); counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 18px;
  font: 600 2.4rem/1 var(--font-display); color: var(--rose);
}
.steps-home li::before { color: var(--mint-ink); }
.steps p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 960px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-3, .steps-4 { grid-template-columns: 1fr; } }

/* ---------- Partner band ---------- */
.band { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 112px); }
.band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px);
}
.section-mist + .band { background: var(--mist); padding-top: 0; }
.band p { margin-top: 12px; color: #CDBFD3; max-width: 34em; }

/* ---------- Services rate card ---------- */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 24px; font-size: .95rem; color: var(--ink-soft); }
.legend .tag + .tag, .legend .tag:nth-of-type(2) { margin-left: 14px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--pill);
  font-size: .8rem; font-weight: 600; line-height: 1.4;
}
.tag-salon { background: var(--mist); color: var(--ink); border: 1px solid var(--line); }
.tag-home { background: var(--mint); color: var(--mint-ink); border: 1px solid transparent; }

.ratecard-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.ratecard-index { position: sticky; top: 100px; }
.ratecard-index a {
  display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line);
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ratecard-index a:hover, .ratecard-index a.is-active { color: var(--ink); border-left-color: var(--rose); }
.rate-group { padding-bottom: 48px; }
.rate-group + .rate-group { padding-top: 48px; border-top: 1px solid var(--line); }
.rate-group > p { margin-top: 8px; color: var(--ink-soft); }
.rate-list { margin-top: 20px; }
.rate-row { display: flex; align-items: baseline; gap: 12px; padding-block: 12px; }
.rate-name { font-weight: 500; }
.rate-fill { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.rate-tags { display: flex; gap: 6px; flex: none; }
.fine-print { font-size: .95rem; color: var(--ink-soft); padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .ratecard-layout { grid-template-columns: minmax(0, 1fr); }
  .ratecard-index { position: static; min-width: 0; }
  .ratecard-index ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .ratecard-index a { white-space: nowrap; border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 14px; }
  .ratecard-index a:hover, .ratecard-index a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}
@media (max-width: 480px) {
  .rate-row { flex-wrap: wrap; gap: 6px 12px; }
  .rate-fill { display: none; }
  .rate-name { flex: 1 1 100%; }
}

/* ---------- How it works ---------- */
.switch {
  display: inline-flex; padding: 5px; margin-bottom: 40px;
  background: var(--mist); border-radius: var(--pill); position: relative;
}
.switch-option {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  padding: 12px 22px; border-radius: var(--pill);
  font: 600 1rem/1 var(--font-body); color: var(--ink-soft);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.switch-option[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.switch-option[data-flow="home"][aria-pressed="true"] { background: var(--mint-ink); }
[data-flows]:not(.is-js) .switch { display: none; }
[data-flows]:not(.is-js) .flow + .flow { margin-top: 56px; }
.is-js .flow-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.flow-title { margin-bottom: 28px; font-size: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .is-js .flow:not([hidden]) li { animation: step-in .45s var(--ease) both; }
  .is-js .flow:not([hidden]) li:nth-child(2) { animation-delay: .06s; }
  .is-js .flow:not([hidden]) li:nth-child(3) { animation-delay: .12s; }
  .is-js .flow:not([hidden]) li:nth-child(4) { animation-delay: .18s; }
}
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); color: var(--rose); }
.faq-body { padding-bottom: 22px; color: var(--ink-soft); max-width: 38em; }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .35s var(--ease), content-visibility .35s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* ---------- For salons ---------- */
.benefits { margin: 0; border-top: 1px solid var(--line); }
.benefit { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.benefit dt { font: 650 1.2rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.benefit dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .benefit { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose p { font-size: 1.15rem; line-height: 1.7; max-width: 34em; }
.prose p + p { margin-top: 1.1em; }
.about-figure { margin: 0; }
.about-figure .ghat { width: 100%; height: auto; aspect-ratio: 5 / 5.4; border-radius: 220px 220px var(--radius) var(--radius); }
.about-figure figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); }
.values { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.values dt { font: 650 1.35rem/1.2 var(--font-display); letter-spacing: -0.01em; padding-top: 20px; border-top: 2px solid var(--ink); }
.values dd { margin: 10px 0 0; color: var(--ink-soft); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 420px; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.contact-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--mist); display: flex; flex-direction: column; align-items: flex-start; }
.contact-card-partner { background: var(--rose-tint); }
.contact-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.contact-card p { margin: 12px 0 28px; color: var(--ink-soft); max-width: 28em; }
.contact-card .btn { margin-top: auto; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 16px 56px; margin-top: 40px; }
.contact-meta span { display: block; font-size: .9rem; color: var(--ink-soft); }
.contact-meta a { font-weight: 600; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CDBFD3; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-about p { margin-top: 16px; max-width: 26em; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a, .footer-contact a { color: var(--paper); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact p { margin-bottom: 6px; }
.footer-contact a { font-weight: 600; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
main.page { view-transition-name: page; }
::view-transition-old(page) { animation: page-out .2s var(--ease) both; }
::view-transition-new(page) { animation: page-in .4s var(--ease) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
