/* ON Clinic — warm, soft design system
   Tokens follow design-system/on-clinic/MASTER.md, re-tuned to a warm palette. */

:root {
  /* color */
  --bg: #FBF6EF;
  --bg-alt: #F4EBE0;
  --card: #FFFDFA;
  --fg: #3A2E28;
  --fg-muted: #6B5A50;
  --primary: #B85C38;        /* terracotta — white text 4.54:1 */
  --primary-hover: #A34E2D;
  --primary-text: #9A4A2A;   /* on --bg 5.77:1 */
  --primary-soft: #F3DCCF;
  --sage: #7E9070;
  --sage-text: #5F6E52;      /* on --bg 5.09:1 */
  --sage-soft: #E4EADC;
  --honey: #E0A64B;
  --honey-soft: #F8E7C7;
  --border: #E9DDD0;
  --ring: #B85C38;
  --shadow-sm: 0 1px 2px rgba(58, 46, 40, .06), 0 2px 8px rgba(58, 46, 40, .05);
  --shadow-md: 0 4px 12px rgba(58, 46, 40, .08), 0 12px 32px rgba(58, 46, 40, .08);
  --shadow-lg: 0 12px 28px rgba(58, 46, 40, .12), 0 30px 60px rgba(58, 46, 40, .10);

  /* type */
  --font-serif: "Lora", "Noto Serif KR", Georgia, serif;
  --font-sans: "Nunito Sans", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* space (spacious scale) */
  --s-1: .5rem; --s-2: .75rem; --s-3: 1rem; --s-4: 1.5rem; --s-5: 2rem;
  --s-6: 3rem; --s-7: 4rem; --s-8: 6rem;

  /* radius */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 120ms; --dur-ui: 200ms; --dur-reveal: 500ms;

  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
p + p { margin-top: var(--s-3); }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 2.5rem; height: 2.5rem; }
.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; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -100%; z-index: 100; background: var(--fg); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.orb-1 { width: 42vw; height: 42vw; left: -12vw; top: -8vw; background: var(--primary-soft); animation: drift 38s linear infinite alternate; }
.orb-2 { width: 36vw; height: 36vw; right: -10vw; top: 22vh; background: var(--honey-soft); animation: drift 46s linear infinite alternate-reverse; }
.orb-3 { width: 34vw; height: 34vw; left: 30vw; bottom: -14vw; background: var(--sage-soft); animation: drift 52s linear infinite alternate; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .7rem 1.35rem;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease,
              box-shadow var(--dur-ui) ease, transform var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: scale(.97); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-md); }
.btn-secondary { --btn-bg: var(--sage-soft); --btn-fg: var(--sage-text); }
.btn-secondary:hover { background: #d9e2cf; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--primary-text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--card); border-color: var(--primary-soft); }
.btn-light { --btn-bg: var(--card); --btn-fg: var(--primary-text); }
.btn-light:hover { background: #fff; box-shadow: var(--shadow-md); }
.btn-lg { padding: .95rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; min-height: 40px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid var(--border); background: var(--card); color: var(--fg); cursor: pointer;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--primary-soft); border-color: var(--primary-soft); }
.icon-btn:active { transform: scale(.94); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 20px rgba(58,46,40,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--fg); }
.brand-mark { width: 40px; height: 40px; color: var(--primary); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; letter-spacing: .01em; }
.brand-sub { font-size: .72rem; color: var(--fg-muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-desktop { display: none; gap: .25rem; }
.nav-desktop a {
  position: relative; text-decoration: none; font-weight: 600; color: var(--fg-muted); padding: .55rem .85rem; border-radius: var(--r-pill);
  transition: color var(--dur-ui) ease, background-color var(--dur-ui) ease;
}
.nav-desktop a:hover { color: var(--primary-text); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: none; border: 1.5px solid var(--border); border-radius: var(--r-pill); padding: 3px; background: var(--card); }
.lang-btn {
  border: 0; background: transparent; color: var(--fg-muted); font: 600 .82rem/1 var(--font-sans);
  padding: .5rem .7rem; border-radius: var(--r-pill); cursor: pointer; min-height: 32px;
  transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease;
}
.lang-btn:hover { color: var(--fg); }
.lang-btn[aria-pressed="true"] { background: var(--fg); color: #fff; }
.menu-toggle {
  display: inline-grid; gap: 5px; place-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--card); cursor: pointer;
}
.menu-bar { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .lang-switch { display: inline-flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 899px) { .header-actions .btn-sm span { display: none; } .header-actions .btn-sm { padding-inline: .8rem; } }

/* ---------- drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(58,46,40,.35);
  opacity: 1; transition: opacity var(--dur-ui) ease;
}
.drawer-backdrop[hidden] { display: block; opacity: 0; pointer-events: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(84vw, 360px);
  background: var(--bg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1.5rem;
  transform: translateX(0);
  transition: transform 400ms var(--ease-drawer), visibility 0s;
  visibility: visible;
}
.drawer[data-closed] { transform: translateX(105%); visibility: hidden; transition: transform 320ms var(--ease-drawer), visibility 0s 320ms; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.drawer-nav { display: flex; flex-direction: column; margin-top: .5rem; }
.drawer-nav a {
  text-decoration: none; font-family: var(--font-serif); font-size: 1.45rem; padding: .85rem .5rem;
  border-bottom: 1px solid var(--border); color: var(--fg);
}
.drawer-foot { margin-top: auto; display: grid; gap: 1rem; }
.lang-switch-drawer { display: inline-flex; justify-self: start; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5rem, 9vw, 8rem); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-7); } }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-text); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.hero h1 { margin-top: var(--s-3); }
.hero h1 em, .hero h1 span.accent { font-style: italic; color: var(--primary-text); }
.lead { margin-top: var(--s-4); font-size: 1.15rem; color: var(--fg-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s-5); }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: var(--s-5); font-size: .92rem; color: var(--fg-muted); font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: .4rem; }
.trust .icon { color: var(--sage-text); }
.hero-visual { position: relative; }
.hero-photo {
  border-radius: 46% 54% 52% 48% / 42% 46% 54% 58%;
  overflow: hidden; aspect-ratio: 9 / 10; box-shadow: var(--shadow-lg);
  outline: 10px solid color-mix(in srgb, var(--card) 70%, transparent);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -.5rem; bottom: 8%; display: flex; align-items: center; gap: .8rem;
  background: var(--card); border-radius: var(--r-md); padding: .85rem 1.1rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.hero-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); }
.hero-card strong { display: block; font-size: .95rem; }
.hero-card small { color: var(--fg-muted); font-size: .8rem; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

/* hero entrance — one-time, load */
.hero-in { opacity: 0; transform: translateY(14px); animation: hero-in 600ms var(--ease-out) forwards; animation-delay: calc(80ms + var(--i, 0) * 70ms); }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
.float-card { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- about ---------- */
.about { background: var(--bg-alt); }
.about-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); } }
.about-visual { position: relative; }
.about-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -.5rem; top: 8%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .8rem 1.1rem; box-shadow: var(--shadow-md); text-align: center; line-height: 1.2;
}
.about-badge strong { display: block; font-family: var(--font-serif); font-size: 1.8rem; color: var(--primary-text); }
.about-badge span { font-size: .8rem; color: var(--fg-muted); }
.caption { font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-text); margin-bottom: var(--s-2); }
.about-copy h2 + p { margin-top: var(--s-4); color: var(--fg-muted); font-size: 1.05rem; }
.feature-list { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--card); color: var(--primary-text); box-shadow: var(--shadow-sm); }
.feature-list h3 { font-size: 1.1rem; }
.feature-list p { color: var(--fg-muted); margin-top: .2rem; }

/* ---------- section head ---------- */
.section-head { max-width: 640px; margin-bottom: var(--s-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-sub { margin-top: var(--s-3); color: var(--fg-muted); font-size: 1.05rem; }

/* ---------- services cards ---------- */
.card-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--s-5); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-text); margin-bottom: var(--s-3); }
.card p { color: var(--fg-muted); margin-top: .5rem; }
.card-cta { background: var(--sage-soft); border-color: transparent; display: flex; flex-direction: column; }
.card-cta .btn { margin-top: auto; align-self: flex-start; padding-top: .8rem; padding-bottom: .8rem; margin-top: var(--s-4); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
}

/* ---------- techniques ---------- */
.techniques { background: var(--bg-alt); }
.tech-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .tech-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.tech-list { counter-reset: tech; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.tech-list li {
  counter-increment: tech; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start;
  padding: 1rem 1.1rem; background: var(--card); border-radius: var(--r-md); border: 1px solid var(--border);
}
.tech-list li::before {
  content: counter(tech, decimal-leading-zero); font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--primary-text);
  padding-top: .1rem;
}
.tech-list h3 { font-size: 1.05rem; }
.tech-list p { color: var(--fg-muted); font-size: .95rem; margin-top: .15rem; }
.tech-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.tech-photo { margin: 0; overflow: hidden; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.tech-photo img { width: 100%; height: 100%; object-fit: cover; }
.tech-photo-a { aspect-ratio: 4 / 5; }
.tech-photo-b { aspect-ratio: 4 / 5; translate: 0 -2.5rem; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 60px; }

/* ---------- testimonials ---------- */
.rating { display: inline-flex; align-items: center; gap: .6rem; margin-top: var(--s-3); color: var(--fg-muted); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--honey); stroke: none; }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--r-xl); }
.carousel-track { display: flex; transition: transform 450ms var(--ease-in-out); }
.slide { flex: 0 0 100%; padding: 2px; }
.slide blockquote {
  margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm); min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4);
  position: relative;
}
.slide blockquote::before {
  content: "\201C"; position: absolute; top: .4rem; left: 1.4rem; font-family: var(--font-serif); font-size: 6rem; line-height: 1;
  color: var(--primary-soft);
}
.slide p { font-family: var(--font-serif); font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); line-height: 1.45; position: relative; }
.slide footer { display: flex; align-items: center; gap: .75rem; color: var(--fg-muted); font-weight: 600; }
.slide cite { font-style: normal; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-text); font-weight: 700; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: var(--s-4); }
.dots { display: flex; gap: .5rem; padding-inline: .5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; padding: 0; transition: background-color var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out); }
.dot[aria-selected="true"] { background: var(--primary); transform: scale(1.25); }
.dot::before { content: ""; display: block; width: 44px; height: 44px; margin: -16px; }
.icon-play { display: none; }
#pauseSlide[aria-pressed="true"] .icon-pause { display: none; }
#pauseSlide[aria-pressed="true"] .icon-play { display: block; }

/* ---------- accessibility band ---------- */
.access { padding-block: 0; }
.access-inner {
  display: grid; gap: var(--s-4); background: var(--sage-soft); border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 900px) { .access-inner { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.access-inner .caption { color: var(--sage-text); }
.access-inner p { color: var(--fg-muted); margin-top: .5rem; }
.access-list { display: grid; gap: .6rem; }
.access-list li { display: flex; align-items: center; gap: .6rem; background: var(--card); border-radius: var(--r-md); padding: .8rem 1rem; font-weight: 600; }
.access-list .icon { color: var(--sage-text); }

/* ---------- location ---------- */
.loc-grid { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .loc-grid { grid-template-columns: 1fr 1fr 1.2fr; } }
.loc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.loc-card h3 { margin-bottom: var(--s-3); }
.loc-address strong { font-size: 1.15rem; }
.tbd { color: var(--fg-muted); }
.loc-notes { display: grid; gap: .6rem; margin: var(--s-4) 0; color: var(--fg-muted); }
.loc-notes li { display: flex; align-items: center; gap: .6rem; }
.loc-notes .icon { color: var(--primary-text); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .55rem 0; border-bottom: 1px solid var(--border); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed td, .hours .closed th { color: var(--fg-muted); }
.hours tr.today th, .hours tr.today td { color: var(--primary-text); font-weight: 700; }
.hours-note { margin-top: var(--s-3); font-size: .9rem; color: var(--fg-muted); }
.loc-map { border-radius: var(--r-lg); overflow: hidden; min-height: 280px; background: var(--bg-alt); border: 1px dashed var(--border); }
.map-placeholder { height: 100%; min-height: 280px; display: grid; place-content: center; text-align: center; gap: .75rem; padding: var(--s-5); color: var(--fg-muted); }
.map-placeholder .icon { color: var(--primary); margin-inline: auto; }
.map-placeholder strong { color: var(--fg); font-size: 1.1rem; }
.loc-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding-top: 0; }
.cta-inner {
  display: grid; gap: var(--s-4); align-items: center; padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--primary) 0%, #C97350 60%, #D48A62 100%); color: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-inner::after { content: ""; position: absolute; right: -8%; top: -40%; width: 45%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); }
@media (min-width: 800px) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-inner h2 { color: #fff; }
.cta-inner p { margin-top: .5rem; color: rgba(255,255,255,.88); font-size: 1.05rem; }
.cta-inner .btn { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--fg); color: #EFE4D8; padding-block: var(--s-6) var(--s-4); margin-top: var(--s-2); }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr .8fr 1.2fr; } }
.site-footer .brand-name { color: #fff; }
.footer-tag { color: #D9C3AE; margin-top: .25rem; }
.footer-loc { margin-top: .75rem; color: #EFE4D8; }
.footer-loc a { color: #E7B77A; }
.footer-nav { display: grid; gap: .5rem; align-content: start; }
.footer-nav a { color: #EFE4D8; text-decoration: none; }
.footer-nav a:hover { color: #E7B77A; }
.footer-a11y { font-size: .92rem; color: #D9C3AE; }
.footer-a11y strong { color: #EFE4D8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-5); padding-top: var(--s-4); font-size: .9rem; color: #D9C3AE; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal[data-visible] { opacity: 1; transform: none; }
.no-js .reveal, .no-io .reveal { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .float-card { animation: none; }
  .hero-in { animation: hero-fade 300ms ease forwards; transform: none; }
  @keyframes hero-fade { to { opacity: 1; } }
  .reveal { transform: none; transition: opacity 250ms ease; }
  .card:hover { transform: none; }
  .carousel-track { transition: none; }
  .drawer, .drawer[data-closed] { transition: transform 1ms linear, visibility 0s; }
}

/* small-screen refinements */
@media (max-width: 520px) { .brand-sub { display: none; } }
@media (min-width: 900px) { .tech-photo-a, .tech-photo-b { aspect-ratio: 3 / 4; } }
