/* Johnny's Pool Services
   Palette taken from the pool itself: deep water, glass mosaic, a glint of sun,
   sandstone coping and a touch of balau timber. */
:root {
  --abyss: #04303f;
  --abyss-2: #073c4d;
  --mosaic: #16a9c2;
  --mosaic-deep: #0b7f98;
  --glint: #bff4f7;
  --coping: #e9ecea;
  --coping-2: #dde2e0;
  --balau: #a4623b;
  --ink: #062530;
  --ink-soft: #35535c;
  --white: #f7fcfc;

  --font: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  /* perfect-fourth scale from a 17px body */
  --t-sm: 0.875rem;
  --t-body: 1.0625rem;
  --t-md: 1.4rem;
  --t-lg: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem);
  --t-xl: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem);
  --t-hero: min(clamp(3.1rem, 1.2rem + 7.4vw, 8.6rem), 13.5vh);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-variation-settings: 'opsz' 16;
  color: var(--ink);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; font-variation-settings: 'opsz' 96; line-height: 1.02; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mosaic); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--glint); color: var(--abyss); padding: .6rem 1rem; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.4rem;
  border-radius: 14px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, border-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-small { min-height: 42px; padding: 0 1rem; font-size: .9375rem; border-radius: 12px; }
.btn-light { background: var(--glint); color: var(--abyss); }
.btn-ghost { color: var(--white); border-color: rgba(247, 252, 252, .45); background: rgba(4, 48, 63, .18); backdrop-filter: blur(6px); }
.btn-dark { background: var(--abyss); color: var(--white); }
.btn-outline { color: var(--abyss); border-color: rgba(4, 48, 63, .35); background: transparent; }
@media (hover: hover) {
  .btn-light:hover { background: #fff; }
  .btn-ghost:hover { border-color: var(--white); background: rgba(4, 48, 63, .35); }
  .btn-dark:hover { background: var(--abyss-2); }
  .btn-outline:hover { border-color: var(--abyss); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--gutter);
  color: var(--white);
  transition: background-color .35s, backdrop-filter .35s, box-shadow .35s;
}
.site-header.is-solid { background: rgba(4, 48, 63, .82); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(191, 244, 247, .08); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-weight: 700; font-size: 1.125rem; line-height: 1.05; letter-spacing: -.01em; }
.brand-name span { display: block; font-weight: 450; font-size: .85rem; color: var(--glint); letter-spacing: 0; }
.nav { display: flex; gap: 1.75rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96rem; opacity: .85; padding: .4rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease-out), opacity .2s; }
@media (hover: hover) { .nav a:hover { opacity: 1; background-size: 100% 1.5px; } }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 520px) {
  .brand-name span { display: none; }
  .site-header .btn-small { padding: 0 .85rem; font-size: .875rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: #0b5b70; color: var(--white);
  touch-action: pan-y;
  padding-top: calc(var(--header-h) + 1.5rem);
}
.hero-water { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-water.no-webgl { background: radial-gradient(120% 90% at 60% 30%, #43bfd3, #0b6f88 60%, var(--abyss)); }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 48, 63, .55) 0%, rgba(4, 48, 63, 0) 22%),
    linear-gradient(0deg, rgba(4, 48, 63, .88) 0%, rgba(4, 48, 63, .35) 38%, rgba(4, 48, 63, 0) 62%);
}
.hero-inner { position: relative; padding: 0 var(--gutter) clamp(3rem, 9vh, 6.5rem); max-width: 1100px; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero-title {
  font-size: var(--t-hero); line-height: .9; letter-spacing: -.045em;
  font-variation-settings: 'opsz' 96, 'wdth' 88; font-weight: 720;
  text-shadow: 0 2px 30px rgba(4, 48, 63, .35);
}
.hero-kicker {
  display: block; margin-bottom: 1.1rem;
  font-size: clamp(1rem, .9rem + .35vw, 1.25rem); font-weight: 600; letter-spacing: 0; line-height: 1.3;
  font-variation-settings: 'opsz' 24, 'wdth' 100; color: var(--glint); text-shadow: none;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lede { max-width: 34rem; margin-top: 1.6rem; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.5; color: rgba(247, 252, 252, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-hint {
  position: absolute; right: var(--gutter); bottom: clamp(3rem, 9vh, 6.5rem);
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--t-sm); color: rgba(247, 252, 252, .75); pointer-events: none;
}
.hint-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; animation: ripple 2.6s var(--ease-out) infinite; }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(191, 244, 247, .6); } 100% { box-shadow: 0 0 0 16px rgba(191, 244, 247, 0); } }
@media (max-width: 860px), (hover: none) { .hero-hint { display: none; } }

/* The single orchestrated moment: the headline surfaces from the water. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: surface 1.3s var(--ease-out) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
  .hero-title .line:nth-child(3) > span { animation-delay: .24s; }
  .hero-lede, .hero-actions { animation: settle 1s var(--ease-out) .55s both; }
  .hero-actions { animation-delay: .68s; }
}
@keyframes surface {
  0% { transform: translateY(95%) skewY(4deg); filter: blur(10px); opacity: 0; }
  60% { filter: blur(0); opacity: 1; }
  100% { transform: none; filter: none; opacity: 1; }
}
@keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- services + 3D tour ---------- */
.services { background: var(--abyss); color: var(--white); padding-top: clamp(5rem, 12vh, 9rem); overflow: clip; }
.services-head { padding: 0 var(--gutter); max-width: 62rem; }
.services-head h2 { font-size: var(--t-xl); letter-spacing: -.035em; }
.services-head p { margin-top: 1.25rem; max-width: 36rem; color: rgba(247, 252, 252, .75); font-size: 1.125rem; }

.tour { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); margin-top: clamp(2.5rem, 6vh, 4.5rem); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--header-h) + 8px) 0 16px var(--gutter); }
.stage-canvas {
  position: relative; width: 100%; height: 100%;
  border-radius: 22px; overflow: hidden;
  background: var(--abyss) url('../assets/work/balau-deck-plunge-pool-1600.jpg') center / cover no-repeat;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(191, 244, 247, .08);
}
.stage-canvas canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.stage-canvas.is-ready canvas { opacity: 1; }
.stage-canvas::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(4, 30, 40, .38) 100%);
}
.stage-caption {
  position: absolute; left: calc(var(--gutter) + 18px); bottom: 34px;
  padding: .45rem .8rem; border-radius: 10px;
  background: rgba(4, 48, 63, .66); backdrop-filter: blur(10px);
  font-size: var(--t-sm); font-weight: 600; color: var(--white);
}

.svc-list { padding: 0 var(--gutter) 30vh clamp(1.5rem, 4vw, 4.5rem); }
.svc {
  min-height: 88vh; display: flex; flex-direction: column; justify-content: center;
  max-width: 30rem;
  opacity: .32; transition: opacity .5s var(--ease-out);
}
.svc.is-active { opacity: 1; }
.svc h3 { font-size: var(--t-lg); letter-spacing: -.03em; }
.svc p { margin-top: 1rem; color: rgba(247, 252, 252, .82); line-height: 1.6; }
.svc ul { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.svc li { display: flex; align-items: baseline; gap: .7rem; color: rgba(247, 252, 252, .9); }
.svc li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--mosaic); transform: translateY(-1px); }
.svc-link {
  align-self: flex-start; margin-top: 1.8rem; padding: .35rem 0;
  color: var(--glint); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid rgba(191, 244, 247, .4); transition: border-color .2s;
}
@media (hover: hover) { .svc-link:hover { border-color: var(--glint); } }

@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .stage { top: var(--header-h); height: 46svh; padding: 0 var(--gutter) 12px; z-index: 2; background: var(--abyss); }
  .stage-canvas { border-radius: 16px; }
  .stage-caption { left: calc(var(--gutter) + 12px); bottom: 24px; }
  .svc-list { padding: 1rem var(--gutter) 20vh; }
  .svc { min-height: 62svh; justify-content: flex-start; padding-top: 2.5rem; }
}

/* ---------- our work ---------- */
.work { background: var(--abyss-2); color: var(--white); padding: clamp(5rem, 12vh, 8.5rem) var(--gutter); }
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; }
.work-head h2 { font-size: var(--t-xl); letter-spacing: -.035em; }
.work-head p { max-width: 30rem; color: rgba(247, 252, 252, .75); font-size: 1.0625rem; }
.work-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem); margin-top: clamp(2.5rem, 6vh, 4rem);
}
.work-item { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.w-a1 { grid-column: span 8; } .w-a2 { grid-column: span 4; }
.w-b1 { grid-column: span 4; } .w-b2 { grid-column: span 8; }
.w-c1 { grid-column: span 7; } .w-c2 { grid-column: span 5; }
.work-open {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 16px; overflow: hidden; background: var(--abyss);
}
.work-open img {
  display: block; width: 100%; height: clamp(240px, 34vw, 540px); object-fit: cover;
  transition: transform .8s var(--ease-out), filter .4s;
}
.w-c1 .work-open img, .w-c2 .work-open img { height: clamp(220px, 28vw, 420px); }
@media (hover: hover) { .work-open:hover img { transform: scale(1.035); } }
.work-item figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-top: .8rem; }
.work-title { font-weight: 600; }
.work-tag { color: var(--glint); font-size: var(--t-sm); }
@media (max-width: 800px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item { grid-column: auto !important; }
  .work-open img, .w-c1 .work-open img, .w-c2 .work-open img { height: auto; aspect-ratio: 4 / 3; }
}

.lightbox {
  width: min(1200px, 100vw - 2rem); max-height: calc(100vh - 2rem); padding: 0; border: 0;
  background: transparent; color: var(--white); overflow: visible;
}
.lightbox::backdrop { background: rgba(2, 20, 27, .88); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox-img { display: block; max-width: 100%; max-height: calc(100vh - 9rem); margin: 0 auto; border-radius: 14px; object-fit: contain; }
.lightbox-caption { text-align: center; margin-top: .9rem; font-weight: 600; }
.lightbox-controls { display: flex; justify-content: center; gap: .6rem; margin-top: .9rem; }
.lb-btn {
  min-height: 44px; padding: 0 1.1rem; border-radius: 12px; cursor: pointer;
  font: 600 .95rem/1 var(--font); color: var(--white);
  background: rgba(247, 252, 252, .08); border: 1.5px solid rgba(247, 252, 252, .3);
}
@media (hover: hover) { .lb-btn:hover { border-color: var(--white); } }

/* ---------- process ---------- */
.process { background: var(--coping); padding: clamp(5rem, 12vh, 8.5rem) var(--gutter); }
.process h2 { font-size: var(--t-xl); letter-spacing: -.035em; color: var(--abyss); }
.steps {
  list-style: none; margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 4.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -.04em;
  font-variation-settings: 'opsz' 96, 'wdth' 80;
  color: var(--mosaic-deep);
}
/* the water line joining the steps */
.steps li::after {
  content: ''; position: absolute; top: 1.7rem; left: 3rem; right: -1.5rem; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(11, 127, 152, .35) 0 10px, transparent 10px 16px);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--t-md); letter-spacing: -.02em; color: var(--abyss); }
.steps p { margin-top: .6rem; color: var(--ink-soft); max-width: 22rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--coping); padding: 0 var(--gutter) clamp(5rem, 12vh, 8.5rem); }
.faq h2 { font-size: var(--t-xl); letter-spacing: -.035em; color: var(--abyss); }
.faq-list { margin-top: clamp(2rem, 5vh, 3rem); max-width: 52rem; border-top: 1.5px solid rgba(4, 48, 63, .14); }
.faq-item { border-bottom: 1.5px solid rgba(4, 48, 63, .14); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.15rem; color: var(--abyss);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--mosaic-deep); border-bottom: 2px solid var(--mosaic-deep);
  transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-item p { padding: 0 0 1.4rem; max-width: 42rem; color: var(--ink-soft); line-height: 1.65; }

/* ---------- local band ---------- */
.local {
  position: relative; overflow: hidden;
  background: var(--mosaic-deep); color: var(--white);
  padding: clamp(4.5rem, 11vh, 8rem) var(--gutter);
}
/* mosaic tiles, fading out */
.local::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--mosaic-deep) 30%, rgba(11, 127, 152, 0) 85%),
    repeating-linear-gradient(0deg, rgba(4, 48, 63, .35) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(90deg, rgba(4, 48, 63, .35) 0 2px, transparent 2px 26px),
    linear-gradient(135deg, #1bb4cc, #0a6d86);
}
.local-inner { position: relative; max-width: 44rem; }
.local h2 { font-size: var(--t-xl); letter-spacing: -.035em; }
.local p { margin-top: 1.25rem; font-size: 1.125rem; color: rgba(247, 252, 252, .88); max-width: 34rem; }
.local-inner { max-width: 62rem; }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 2.25rem; }
.area-group h3 { font-size: 1.15rem; letter-spacing: -.01em; color: var(--glint); }
.area-group ul { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.area-group li { padding: .35rem .75rem; border-radius: 999px; background: rgba(4, 48, 63, .38); font-size: .95rem; }
.local .areas-note { margin-top: 1.75rem; font-size: 1rem; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact {
  background: var(--coping); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5rem, 12vh, 8.5rem) var(--gutter);
}
.contact h2 { font-size: var(--t-xl); letter-spacing: -.035em; color: var(--abyss); }
.big-phone {
  display: inline-block; margin-top: 1.5rem;
  font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5rem); line-height: 1; letter-spacing: -.04em;
  font-variation-settings: 'opsz' 96, 'wdth' 85;
  color: var(--mosaic-deep); text-decoration: none;
}
@media (hover: hover) { .big-phone:hover { color: var(--abyss); } }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.contact-list a { font-weight: 500; text-decoration-color: rgba(4, 48, 63, .3); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-note { margin-top: 2rem; color: var(--ink-soft); }
.social-link {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-top: 1.4rem;
  border-radius: 50%; background: var(--abyss); color: var(--white);
  transition: background-color .2s, transform .25s var(--ease-out);
}
.social-link:active { transform: scale(.94); }
@media (hover: hover) { .social-link:hover { background: #1877f2; } }
.social-link-footer { width: 40px; height: 40px; margin-top: 0; background: rgba(247, 252, 252, .1); }
.form-privacy { margin-top: 1rem; font-size: .875rem; color: var(--ink-soft); }
.form-privacy a { color: var(--mosaic-deep); }

.quote-form { background: var(--white); border-radius: 22px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: 0 1px 0 rgba(4, 48, 63, .06), 0 24px 60px -32px rgba(4, 48, 63, .35); }
.quote-form h3 { font-size: var(--t-md); color: var(--abyss); }
.form-intro { margin-top: .5rem; color: var(--ink-soft); font-size: .96rem; }
.field { display: grid; gap: .4rem; margin-top: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border-radius: 12px;
  border: 1.5px solid var(--coping-2); background: #fbfdfd;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mosaic); box-shadow: 0 0 0 4px rgba(22, 169, 194, .18); }
.field [aria-invalid="true"] { border-color: #b2432b; }
.form-error { margin-top: 1rem; color: #b2432b; font-weight: 600; font-size: .95rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } .form-actions .btn { flex: 1 1 100%; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--abyss); color: rgba(247, 252, 252, .8);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem;
  padding: 3rem var(--gutter) calc(3rem + env(safe-area-inset-bottom));
  font-size: .95rem;
}
.footer-brand { display: flex; align-items: center; gap: .9rem; margin-right: auto; }
.footer-brand p { line-height: 1.35; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer-links a { text-decoration: none; }
@media (hover: hover) { .footer-links a:hover { color: var(--glint); } }
.footer-links { align-items: center; }
.footer-legal {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(191, 244, 247, .12);
  font-size: .875rem; color: rgba(247, 252, 252, .62);
}
.legal-links { display: flex; gap: 1.4rem; }
.legal-links a, .credit a { color: rgba(247, 252, 252, .85); text-underline-offset: 3px; }
.credit { margin-left: auto; }
@media (hover: hover) { .legal-links a:hover, .credit a:hover { color: var(--glint); } }
@media (max-width: 640px) { .credit { margin-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- legal pages ---------- */
.legal-page { background: var(--coping); color: var(--ink); }
.legal-page .site-header { position: sticky; background: var(--abyss); }
.legal-main { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) var(--gutter) 5rem; }
.legal-main h1 { font-size: var(--t-xl); letter-spacing: -.035em; color: var(--abyss); }
.legal-main .updated { margin-top: .75rem; color: var(--ink-soft); }
.legal-main h2 { margin-top: 2.6rem; font-size: var(--t-md); letter-spacing: -.02em; color: var(--abyss); }
.legal-main p, .legal-main li { margin-top: .8rem; line-height: 1.7; }
.legal-main ul { padding-left: 1.2rem; }
.legal-main a { color: var(--mosaic-deep); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-main dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin-top: 1rem; }
.legal-main dt { font-weight: 600; }
.legal-main dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .legal-main dl { grid-template-columns: 1fr; } .legal-main dd { margin-bottom: .6rem; } }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--mosaic-deep); font-weight: 600; }
