/* ————————————————————————————————————————————————————————————
   CLEARWATER — Central Island Home
   A transparent Caribbean sea rendered in WebGL, with the site
   living on and beneath its surface. Designed & built by Claude.
   ———————————————————————————————————————————————————————————— */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the water column */
  --abyss: #032f3d;
  --deep: #0b7c96;
  --turquoise: #1fc4cc;
  --aqua: #a9f0e9;
  --foam: #f2fffb;
  /* the shore */
  --sand: #f6eedd;
  --sand-deep: #e9d7b8;
  --paper: #fdfaf1;
  --ink: #06323c;
  --ink-soft: #33565d;
  --coral: #ff6a52;
  --coral-deep: #c03a24;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Avenir Next", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;

  --wonk: "SOFT" 0, "WONK" 1;
  --radius: 26px;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --glass-bg: rgb(4 40 54 / 0.68);
  --glass-line: rgb(255 255 255 / 0.24);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-deep: 0 30px 80px -20px rgb(3 47 61 / 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.66;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
.hanging-print img, .photo-grid img, .bedroom-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.room-story img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: var(--wonk);
  font-weight: 460;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 6.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--turquoise); color: var(--abyss); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100%; left: 1rem; z-index: 100; background: var(--ink); color: var(--foam); padding: 0.7rem 1.2rem; border-radius: 0 0 14px 14px; text-decoration: none; transition: top 0.25s; }
.skip-link:focus { top: 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); }

/* ————— buttons ————— */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--foam);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s;
  box-shadow: 0 14px 30px -14px rgb(3 47 61 / 0.6);
}
.button:hover { transform: translateY(-2px); background: var(--abyss); box-shadow: 0 22px 40px -16px rgb(3 47 61 / 0.65); }
.button-coral { background: var(--coral); color: var(--abyss); }
.button-coral:hover { background: #ff8570; color: var(--abyss); }
.button-outline { background: transparent; color: var(--ink); border-color: currentColor; box-shadow: none; }
.button-small { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--turquoise); padding-bottom: 2px; transition: border-color 0.25s; }
.text-link:hover { border-color: var(--coral); }

/* ————— header ————— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--gutter);
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: rgb(253 250 241 / 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 rgb(6 50 60 / 0.08);
  color: var(--ink);
}
.page-sea .site-header:not(.is-scrolled) { color: var(--foam); }
.brand { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; font-family: var(--font-display); font-variation-settings: var(--wonk); }
.brand span { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; }
.brand em { font-style: italic; font-weight: 420; font-size: 0.95rem; opacity: 0.82; }
.site-header nav ul { display: flex; gap: clamp(0.9rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; opacity: 0.85; padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s; }
.site-header nav a:hover { opacity: 1; }
.site-header nav a[aria-current="page"] { opacity: 1; border-color: var(--turquoise); }
@media (max-width: 720px) {
  .site-header nav { order: 3; width: 100%; overflow-x: auto; }
  .site-header { flex-wrap: wrap; padding-block: 0.7rem; }
}

/* ————— the sea stage (home) ————— */
.sea-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--deep); }
.sea-stage .seafloor {
  position: absolute; inset: -6%;
  background: url("/assets/images/seafloor-sand-1200.jpg") center / cover;
  filter: saturate(1.35) hue-rotate(-10deg) brightness(1.04);
  animation: floor-drift 46s ease-in-out infinite alternate;
}
.sea-stage::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 22vh; z-index: 1;
  background: linear-gradient(rgb(3 47 61 / 0.5), transparent);
}
.sea-stage .light-sweep {
  position: absolute; inset: -20%;
  background:
    radial-gradient(42% 30% at 30% 20%, rgb(255 255 245 / 0.5), transparent 70%),
    radial-gradient(38% 26% at 72% 60%, rgb(220 255 250 / 0.38), transparent 70%);
  mix-blend-mode: soft-light;
  animation: sweep-drift 23s ease-in-out infinite alternate;
}
#sea-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sea-stage .depth-veil {
  position: absolute; inset: 0;
  background: linear-gradient(rgb(3 47 61 / 0), rgb(3 47 61 / 0.9));
  opacity: 0;
}
@keyframes floor-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.07) translate(-1.4%, 1.8%); } }
@keyframes sweep-drift { from { transform: translate(-3%, -2%) rotate(-2deg); } to { transform: translate(3%, 2%) rotate(2deg); } }
@keyframes veil-sink { to { opacity: 0.62; } }
@supports (animation-timeline: scroll()) {
  .sea-stage .depth-veil { animation: veil-sink linear both; animation-timeline: scroll(root); }
}
.no-webgl #sea-canvas { display: none; }
.no-webgl .sea-stage .seafloor { background-image: url("/assets/images/sea-horizon-1200.jpg"); animation: none; }

/* ————— hero ————— */
.sea-hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) 8.5rem;
  color: var(--foam);
  position: relative;
}
.sea-hero .eyebrow { color: var(--foam); text-shadow: 0 1px 3px rgb(3 47 61 / 0.65), 0 2px 18px rgb(3 47 61 / 0.5); }
.sea-hero h1 {
  font-size: clamp(3rem, 10.5vw, 8.6rem);
  font-weight: 420;
  max-width: 12ch;
  text-shadow: 0 2px 30px rgb(3 47 61 / 0.35);
}
.sea-hero h1 em { font-style: italic; font-weight: 380; color: #e4fdf8; text-shadow: 0 2px 6px rgb(3 47 61 / 0.45), 0 2px 30px rgb(3 47 61 / 0.4); }
.sea-hero .lede { color: rgb(242 255 251 / 0.92); max-width: 46ch; margin-inline: auto; text-shadow: 0 1px 14px rgb(3 47 61 / 0.45); }
.sea-hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.6rem; }
.sea-hero .button { background: var(--foam); color: var(--ink); }
.sea-hero .button:hover { background: #fff; }
.sea-hero .button-outline { background: rgb(255 255 255 / 0.08); color: var(--foam); border-color: rgb(255 255 255 / 0.55); backdrop-filter: blur(6px); }

.hero-line { display: block; overflow: clip; }
.hero-line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-line > span { animation: line-rise 1.1s var(--ease-out) both; }
  .hero-line:nth-child(2) > span { animation-delay: 0.12s; }
  .hero-line:nth-child(3) > span { animation-delay: 0.24s; }
  .sea-hero .eyebrow, .sea-hero .lede, .sea-hero .actions { animation: soft-in 1.2s var(--ease-out) 0.45s both; }
}
@keyframes line-rise { from { transform: translateY(110%) rotate(1.2deg); } }
@keyframes soft-in { from { opacity: 0; transform: translateY(14px); } }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; translate: -50% 0;
  display: grid; justify-items: center; gap: 0.5rem;
  color: rgb(242 255 251 / 0.8); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--foam), transparent); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue::after { animation: cue-drop 2.2s ease-in-out infinite; } }
@keyframes cue-drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ————— glass panels over water ————— */
.page-sea main { position: relative; z-index: 1; }
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgb(255 255 255 / 0.35);
  color: var(--foam);
}
.sea-section { padding: clamp(3rem, 8vh, 6.5rem) var(--gutter); display: grid; justify-items: center; }
.sea-section .glass { width: min(1060px, 100%); padding: clamp(1.8rem, 4vw, 3.4rem); }
.sea-section .eyebrow { color: #c9f8f1; }
.sea-section h2 { color: var(--foam); }
.sea-section p { color: rgb(242 255 251 / 0.95); }
.sea-section .text-link { border-color: #c9f8f1; }

/* booking — the calendar beneath the surface */
.booking-band .booking-head { display: grid; gap: 0.4rem; margin-bottom: 1.8rem; max-width: 56ch; }
.booking-widget-shell { position: relative; border-radius: 20px; }
.booking-widget-shell [data-guesty-widget] { min-height: 96px; border-radius: 18px; }
.booking-widget-shell [data-guesty-widget][data-state="loading"]::before {
  content: "Reading the tide charts…";
  display: grid; place-items: center; min-height: 96px;
  font-style: italic; font-family: var(--font-display); color: rgb(242 255 251 / 0.75);
}
.booking-widget-shell [data-guesty-widget][data-state="failed"] { display: none; }
.booking-fallback { font-size: 0.92rem; margin: 1rem 0 0; color: rgb(242 255 251 / 0.95); }
.booking-fallback a { color: #c9f8f1; }

.calendar-frame { margin-top: 1.6rem; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-line); background: rgb(253 250 241 / 0.92); }
.calendar-frame iframe { width: 100%; height: min(72vh, 680px); border: 0; }
.calendar-note { font-size: 0.85rem; color: rgb(242 255 251 / 0.7); margin: 0.8rem 0 0; }

/* ————— shore transition: sea → sand ————— */
.shore-break { position: relative; z-index: 1; height: clamp(6rem, 14vw, 11rem); margin-top: 2rem; pointer-events: none; }
.shore-break svg { position: absolute; inset: auto 0 -1px; width: 100%; height: 100%; }
.shore-break path { fill: var(--sand); }

/* the sand half of the home page sits on solid ground */
.shore { position: relative; z-index: 1; background: var(--sand); padding: 1rem var(--gutter) 4rem; }
.shore::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); }
.shore > * { position: relative; }

/* ————— editorial split ————— */
.editorial-split {
  display: grid; gap: 2rem; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  width: min(1160px, 100%); margin: clamp(3rem, 8vh, 5.5rem) auto;
}
.editorial-split h2 { max-width: 16ch; }

/* ————— photo line (drifting prints) ————— */
.photo-line { width: min(1240px, 100%); margin-inline: auto; }
.line-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.line-controls p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.line-controls button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.line-controls button:hover { background: var(--ink); color: var(--foam); transform: translateY(-2px); }
.rope { display: none; }
.photo-rail {
  display: flex; gap: clamp(1.2rem, 3vw, 2.4rem);
  list-style: none; margin: 0; padding: 1.5rem 0.5rem 2.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.photo-rail::-webkit-scrollbar { display: none; }
.hanging-print { flex: 0 0 min(66vw, 430px); scroll-snap-align: center; }
.hanging-print figure {
  margin: 0; padding: 0.9rem 0.9rem 1.1rem;
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid rgb(6 50 60 / 0.08);
  box-shadow: 0 18px 44px -18px rgb(6 50 60 / 0.35);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .hanging-print figure { animation: print-drift 7s ease-in-out calc(var(--drop, 1rem) / 1rem * -1s) infinite alternate; }
}
@keyframes print-drift { from { translate: 0 0; } to { translate: 0 -10px; } }
.hanging-print.is-active figure, .hanging-print figure:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 30px 60px -20px rgb(6 50 60 / 0.45); }
.hanging-print img { border-radius: 10px; }
.hanging-print figcaption { display: flex; gap: 0.7rem; align-items: baseline; padding-top: 0.8rem; font-size: 0.88rem; color: var(--ink-soft); }
.hanging-print figcaption span { font-family: var(--font-display); font-style: italic; color: var(--coral-deep); }
.peg { display: none; }

.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; width: min(1240px, 100%); margin: 0 auto 1.5rem; }
.gallery-preview, .location-teaser { width: min(1240px, 100%); margin: clamp(3rem, 8vh, 5rem) auto; }
.location-teaser {
  background: var(--abyss); color: var(--foam);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 4rem);
  background-image: linear-gradient(rgb(3 47 61 / 0.55), rgb(3 47 61 / 0.7)), url("/assets/images/lagoon-aerial-768.jpg");
  background-size: cover; background-position: center;
}
.location-teaser .eyebrow { color: var(--aqua); }
.location-teaser p { color: rgb(242 255 251 / 0.88); }
.location-teaser .button-outline { color: var(--foam); }

/* ————— sand pages (stay/gallery/location/faq/guide) ————— */
.page-sand main { padding: clamp(7rem, 16vh, 10rem) var(--gutter) 4rem; position: relative; }
.page-sand { background: linear-gradient(var(--paper), var(--sand) 40%); }
.page-sand .site-header:not(.is-scrolled) { color: var(--ink); }
.page-intro { width: min(880px, 100%); margin: 0 auto clamp(2.5rem, 6vh, 4.5rem); }
.page-intro h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }

.room-story { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1.2fr 1fr; width: min(1160px, 100%); margin: 0 auto clamp(3rem, 7vh, 5rem); }
.room-story picture { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-deep); }
.room-story-reverse > div:first-child { order: 2; }
@media (max-width: 800px) { .room-story { grid-template-columns: 1fr; } .room-story-reverse > div:first-child { order: 0; } }

.bedroom-section { width: min(1240px, 100%); margin: 0 auto clamp(3rem, 7vh, 5rem); }
.bedroom-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bedroom-grid figure { margin: 0; }
.bedroom-grid picture { border-radius: 20px; overflow: hidden; }
.bedroom-grid figcaption { font-size: 0.9rem; color: var(--ink-soft); padding-top: 0.7rem; }

.gallery-stage, .photo-index { width: min(1240px, 100%); margin: 0 auto clamp(3rem, 7vh, 5rem); }
.photo-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid picture { border-radius: 20px; overflow: hidden; }
.photo-grid figcaption { font-size: 0.9rem; color: var(--ink-soft); padding-top: 0.7rem; }

.coastal-field { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); width: min(1160px, 100%); margin: 0 auto clamp(3rem, 7vh, 5rem); }
.coastal-field article { background: var(--paper); border-radius: 20px; padding: 1.8rem; border: 1px solid rgb(6 50 60 / 0.07); }
.coastal-field span { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--coral-deep); }
.coastal-field h2 { font-size: 1.35rem; margin-top: 0.5rem; }

.location-quote { text-align: center; margin: 0 auto clamp(3rem, 7vh, 5rem); max-width: 800px; }
.location-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--deep); margin-inline: auto; }
.location-quote span { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.faq-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(240px, 1fr) 1.6fr; width: min(1160px, 100%); margin: 0 auto clamp(3rem, 7vh, 5rem); align-items: start; }
@media (max-width: 800px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-list details { background: var(--paper); border: 1px solid rgb(6 50 60 / 0.08); border-radius: 16px; margin-bottom: 0.8rem; overflow: clip; }
.faq-list summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; color: var(--coral); font-weight: 400; }
.faq-list details[open] summary::after { content: "—"; }
.faq-list details > div { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* sand-page booking band */
.page-sand .booking-band {
  width: min(1060px, 100%); margin: 0 auto;
  color: var(--foam);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.4rem);
  background: var(--abyss);
  background-image: linear-gradient(rgb(3 47 61 / 0.45), rgb(3 47 61 / 0.72)), url("/assets/images/sea-horizon-1200.jpg");
  background-size: cover; background-position: center;
}
.page-sand .booking-band .eyebrow { color: var(--aqua); }
.page-sand .booking-band p { color: rgb(242 255 251 / 0.85); }
.page-sand .booking-band h2 { color: var(--foam); }
.page-sand .booking-fallback a { color: var(--aqua); }

/* ————— guide page ————— */
.guide-article { width: min(820px, 100%); margin: 0 auto; }
.guide-article section { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.guide-article h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.guide-article pre {
  background: var(--abyss); color: var(--aqua);
  border-radius: 16px; padding: 1.3rem 1.5rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.83rem; line-height: 1.6;
}
.guide-article code { font-family: var(--font-mono); font-size: 0.9em; background: rgb(31 196 204 / 0.14); padding: 0.1em 0.35em; border-radius: 6px; }
.guide-article pre code { background: none; padding: 0; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 0; list-style: none; }
.swatch-row li { display: grid; gap: 0.4rem; font-size: 0.78rem; font-family: var(--font-mono); }
.swatch-row i { display: block; width: 84px; height: 56px; border-radius: 12px; border: 1px solid rgb(6 50 60 / 0.12); }

/* ————— reveal on scroll (IntersectionObserver-driven) ————— */
@media (prefers-reduced-motion: no-preference) {
  .reveal.io-pending { opacity: 0; transform: translateY(26px); }
  .reveal.io-visible { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
}

/* ————— footer ————— */
footer {
  position: relative; z-index: 1;
  background: var(--abyss); color: rgb(242 255 251 / 0.85);
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter);
  display: grid; gap: 1rem; justify-items: start;
}
footer .brand em, footer .brand span { color: var(--foam); }
footer div { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: var(--aqua); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .credit { font-size: 0.82rem; color: rgb(242 255 251 / 0.66); }
footer .credit a { color: rgb(242 255 251 / 0.9); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
