/* ================================================================
   Upward design system (editorial redesign)
   Tokens, base type, layout, buttons, header, menu, footer, motion.
   Loaded by every redesigned public page. admin.html keeps the old
   style.css/pages.css and is not affected by anything in this file.
================================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/outfit-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('../fonts/outfit-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Accent only: single italic words inside display type. */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ink:          #0d2145;   /* navy: headlines, body ink */
  --ink-2:        #3d4f6e;   /* secondary text (7:1 on paper) */
  --ink-3:        #576b8e;   /* captions, meta (4.9:1 on paper) */
  --night:        #081530;   /* dark sections */
  --night-2:      #102449;
  --teal:         #0bbdd4;   /* the one action colour */
  --teal-strong:  #08a6bb;
  --teal-ink:     #06788a;   /* teal text on light (4.6:1) */
  --teal-wash:    #dff6f9;
  --emerald:      #1fc45e;   /* savings / guarantee / WhatsApp only */
  --emerald-ink:  #0f7a38;
  --emerald-wash: #ddf7e6;

  /* Surfaces */
  --paper:   #f3f6f8;
  --paper-2: #e8eef2;
  --white:   #ffffff;
  --line:        rgba(13, 33, 69, 0.12);
  --line-strong: rgba(13, 33, 69, 0.26);
  --line-night:  rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif:   'Instrument Serif', 'Times New Roman', serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

  --fs-mega:  clamp(3.4rem, 1.1rem + 9.6vw, 11.5rem);
  --fs-h1:    clamp(2.9rem, 1.3rem + 6.4vw, 8rem);
  --fs-h2:    clamp(2.3rem, 1.2rem + 4.4vw, 5.75rem);
  --fs-h3:    clamp(1.35rem, 1.05rem + 1vw, 2rem);
  --fs-lead:  clamp(1.075rem, 0.98rem + 0.42vw, 1.375rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.72rem;

  /* Layout */
  --maxw:    1440px;
  --gutter:  clamp(1rem, 0.4rem + 2.8vw, 3.5rem);
  --section: clamp(5.5rem, 3.6rem + 7.5vw, 11.5rem);
  --radius:    1.25rem;
  --radius-lg: 2rem;
  --header-h:  4.75rem;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur:        0.9s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--teal); color: var(--night); }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; border-radius: 4px; }
.on-night :focus-visible, .menu-overlay :focus-visible, .site-footer :focus-visible { outline-color: var(--teal); }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--ink); color: var(--white); padding: 0.75rem 1.25rem; border-radius: 999px;
  font: 600 var(--fs-small) var(--font-display);
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: inherit;
  text-wrap: balance;
}
.display { font-size: var(--fs-mega); line-height: 0.86; letter-spacing: -0.055em; }
.h1 { font-size: var(--fs-h1); line-height: 0.9;  letter-spacing: -0.05em; }
.h2 { font-size: var(--fs-h2); line-height: 0.95; letter-spacing: -0.045em; }
.h3 { font-size: var(--fs-h3); line-height: 1.1;  letter-spacing: -0.025em; }
/* Italic serif accent word inside display type (HOBRO-style pairing). */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.accent-teal    { color: var(--teal-ink); }
.accent-emerald { color: var(--emerald-ink); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 38ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }

/* Mono micro-label, e.g. "(02) What we clean" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .idx { color: var(--teal-ink); }
.eyebrow::before {
  content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--teal); flex: none;
}
.eyebrow--plain::before { display: none; }
.on-night .eyebrow { color: rgba(255, 255, 255, 0.66); }
.on-night .eyebrow .idx { color: var(--teal); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.on-night { background: var(--night); color: var(--white); }
.on-night .muted, .on-night .lead { color: rgba(255, 255, 255, 0.72); }
.on-white { background: var(--white); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-night .rule { background: var(--line-night); }

/* Section head: label + giant title on the left, short intro on the right */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head__intro { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; max-width: 34ch; }
.on-night .sec-head__intro { color: rgba(255, 255, 255, 0.72); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; }
  .sec-head__intro { justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-chip: rgba(255, 255, 255, 0.16);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.85rem;
  min-height: 3.4rem; padding: 0.35rem 0.4rem 0.35rem 1.5rem;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--font-display); letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.btn::before { /* fill sweep on hover */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--night-2));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn__chip {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--btn-chip);
  transition: transform 0.55s var(--ease-out);
}
.btn__chip svg { width: 1.05rem; height: 1.05rem; }
.btn:hover .btn__chip { transform: rotate(-45deg); }
.btn--primary { --btn-bg: var(--teal); --btn-fg: var(--night); --btn-chip: rgba(8, 21, 48, 0.12); --btn-hover: #2fd0e4; }
.btn--light   { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-chip: var(--paper-2); --btn-hover: var(--teal-wash); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-chip: var(--paper-2); --btn-hover: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.on-night .btn--ghost { --btn-fg: var(--white); --btn-chip: rgba(255, 255, 255, 0.12); --btn-hover: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); }
.btn--sm { min-height: 2.75rem; padding-left: 1.15rem; font-size: 0.9375rem; gap: 0.6rem; }
.btn--sm .btn__chip { width: 2.05rem; height: 2.05rem; }
.btn--plain { padding-right: 1.5rem; }

/* Underline link with arrow */
.link {
  display: inline-block; /* inline-flex + gap padded any inline child, e.g. a live review count */
  font: 600 0.9375rem/1.2 var(--font-display); color: var(--teal-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 0.2rem;
  transition: background-size 0.5s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }
.link svg, .link img { display: inline-block; vertical-align: -0.15em; margin-left: 0.4rem; }
.on-night .link { color: var(--teal); }

/* Price / info chip */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  font: 600 0.8125rem/1 var(--font-display);
  background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip--teal    { background: var(--teal-wash); color: var(--teal-ink); box-shadow: none; }
.chip--emerald { background: var(--emerald-wash); color: var(--emerald-ink); box-shadow: none; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--night); color: rgba(255, 255, 255, 0.86);
  font: 500 0.8125rem/1.35 var(--font-display);
  text-align: center;
  padding: 0.6rem var(--gutter);
}
.announce strong { color: var(--teal); font-weight: 600; }
.announce a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 640px) { .announce { font-size: 0.75rem; padding-block: 0.5rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  height: var(--header-h);
  transition: transform 0.5s var(--ease-out), background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(243, 246, 248, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
}
.site-logo img { height: 2.6rem; width: auto; }
.site-nav { justify-self: center; display: none; gap: 0.25rem; }
.site-nav__link {
  position: relative; padding: 0.55rem 0.9rem; border-radius: 999px;
  font: 500 0.9375rem/1 var(--font-display); color: var(--ink-2);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.site-nav__link:hover { color: var(--ink); background: rgba(13, 33, 69, 0.05); }
.site-nav__link[aria-current="page"] { color: var(--ink); }
.site-nav__link[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 0.15rem; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--teal);
}
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.icon-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink);
  transition: background-color 0.25s ease;
}
.icon-btn:hover { background: var(--white); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
.menu-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: grid; place-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }
.site-header .btn--book { display: none; }
@media (min-width: 560px) { .site-header .btn--book { display: inline-flex; } }
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- Full-screen menu (mobile) ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 880;
  background: var(--night); color: var(--white);
  padding: calc(var(--menu-top, var(--header-h)) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-inout), visibility 0s linear 0.7s;
}
.menu-overlay.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease-inout); }
.menu-overlay__links a {
  display: flex; align-items: baseline; gap: 1rem;
  padding-block: 0.6rem; border-bottom: 1px solid var(--line-night);
  font: 600 clamp(2.4rem, 11vw, 4rem)/1 var(--font-display); letter-spacing: -0.045em;
}
.menu-overlay__links a span { font: 500 var(--fs-micro) var(--font-mono); letter-spacing: 0.14em; color: var(--teal); }
.menu-overlay__foot { display: grid; gap: 1.25rem; }
.menu-overlay__foot p { color: rgba(255, 255, 255, 0.66); font-size: var(--fs-small); }
.menu-overlay__foot p a { color: var(--white); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .site-logo img { filter: brightness(0) invert(1); }
body.menu-open .icon-btn { color: var(--white); box-shadow: inset 0 0 0 1px var(--line-night); }
body.menu-open .menu-btn { background: var(--white); color: var(--ink); }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--lg { border-radius: var(--radius-lg); }
/* Scale-in parallax target (GSAP sets transform; CSS keeps a safe default) */
[data-parallax] img { transform-origin: center; } /* will-change is set by site.js only while ScrollTrigger drives it */

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.72); padding-top: clamp(4rem, 3rem + 4vw, 7rem); overflow: hidden; }
.footer-top { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.footer-brand img { height: 2.75rem; width: auto; filter: brightness(0) invert(1); }
.footer-tagline { margin-top: 1.25rem; max-width: 30ch; font-size: var(--fs-small); }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.footer-social a {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-night); color: var(--white);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { background: var(--teal); color: var(--night); }
.footer-col h2, .footer-col h4 { font: 500 var(--fs-micro) var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.1rem; }
.footer-col li + li { margin-top: 0.55rem; }
.footer-col a, .footer-contact a { color: rgba(255, 255, 255, 0.86); transition: color 0.2s ease; font-size: 0.9375rem; }
.footer-col a:hover, .footer-contact a:hover { color: var(--teal); }
.footer-contact p { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; }
.footer-contact p + p { margin-top: 0.6rem; }
.footer-contact svg { flex: none; color: var(--teal); }
.footer-wordmark {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  font: 700 clamp(4.25rem, 20.5vw, 19rem)/0.8 var(--font-display);
  letter-spacing: -0.07em;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  padding-bottom: clamp(1rem, 2vw, 2rem);
  margin-left: -0.04em; /* optical: tracking leaves the last letter short of the edge */
}
.footer-wordmark span { display: inline-block; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  /* Bottom room so the floating WhatsApp button never sits on the credit line. */
  padding-block: 1.5rem 6rem; border-top: 1px solid var(--line-night);
  font-size: 0.8125rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 1.25rem; }
.aphyx-credit { font: 500 var(--fs-micro) var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
/* Underlined: inside a line of text, colour alone does not mark a link (WCAG 1.4.1). */
.aphyx-credit a { color: var(--emerald); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.aphyx-credit a:hover { text-decoration-thickness: 2px; }
/* Two columns on tablets (four squeezed link columns wrapped every label), four from 1024px. */
@media (min-width: 600px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- Floating WhatsApp ---------- */
.floating-wa {
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); z-index: 850;
  display: flex; align-items: center; gap: 0;
  height: 3.5rem; padding: 0 1rem; border-radius: 999px;
  background: var(--emerald-ink); color: var(--white); /* 4.9:1 for the icon and label */
  box-shadow: 0 14px 34px -12px rgba(15, 122, 56, 0.65);
  font: 600 0.9375rem/1 var(--font-display);
  /* site.js sets --wa-lift while the cookie banner covers this corner. */
  translate: 0 calc(-1 * var(--wa-lift, 0px));
  transition: transform 0.4s var(--ease-out), gap 0.4s var(--ease-out), translate 0.5s var(--ease-out);
}
.floating-wa svg { width: 1.5rem; height: 1.5rem; flex: none; }
.floating-wa__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.5s var(--ease-out); }
.floating-wa:hover { transform: translateY(-2px); gap: 0.6rem; }
.floating-wa:hover .floating-wa__label { max-width: 12rem; }

/* ---------- FAQ (numbered accordion) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: grid; grid-template-columns: 3.5rem 1fr 2.5rem; align-items: center; gap: 1rem;
  padding: 1.6rem 0; text-align: left;
  font: 500 clamp(1.15rem, 1rem + 0.6vw, 1.6rem)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink);
}
.faq-q .faq-num { font: 500 var(--fs-micro) var(--font-mono); letter-spacing: 0.12em; color: var(--teal-ink); }
.faq-q .faq-sign {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong);
  position: relative; justify-self: end; transition: background-color 0.3s ease, transform 0.5s var(--ease-out);
}
.faq-q .faq-sign::before, .faq-q .faq-sign::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor;
}
.faq-q .faq-sign::after { transform: rotate(90deg); transition: transform 0.4s var(--ease-out); }
.faq-q[aria-expanded="true"] .faq-sign { background: var(--teal); box-shadow: none; }
.faq-q[aria-expanded="true"] .faq-sign::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.55s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-ready .faq-a { grid-template-rows: 0fr; }
.faq-ready .faq-a > div { visibility: hidden; transition: visibility 0s linear 0.55s; }
.faq-ready .faq-a.is-open > div { visibility: visible; transition: none; }
.faq-a p { padding: 0 2.5rem 1.75rem 4.5rem; color: var(--ink-2); max-width: 70ch; }
.faq-ready .faq-a.is-open { grid-template-rows: 1fr; }
@media (max-width: 640px) {
  .faq-q { grid-template-columns: 2.25rem 1fr 2.25rem; }
  .faq-a p { padding-left: 3.25rem; padding-right: 0; }
}

/* ---------- First-screen intro ---------- */
/* First-screen intro runs on CSS alone, from the first frame: it never waits for
   a script, and moves (no fade) so the headline and copy count as painted
   immediately for LCP. Below-the-fold sections use the JS reveals. */
@media (prefers-reduced-motion: no-preference) {
  .intro { animation: intro-rise 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
}
@keyframes intro-rise { from { transform: translateY(1.75rem); } to { transform: none; } }

/* ---------- Reveal system ----------
   Only hidden once site.js has confirmed it can reveal them (html.has-motion),
   so nothing stays invisible if a script fails. */
.has-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.has-motion [data-reveal].is-in { opacity: 1; transform: none; }
.has-motion [data-reveal="fade"] { transform: none; }
/* Word-mask headline reveal (words wrapped by site.js) */
.has-motion [data-split]:not(.is-split) { visibility: hidden; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.1em 0; margin: 0 -0.08em -0.1em 0; }
.w > span { display: inline-block; }
.has-motion [data-split] .w > span { transform: translateY(108%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms + var(--d, 0) * 1ms); }
.has-motion [data-split].is-in .w > span { transform: none; }

/* ---------- Custom cursor (fine pointers only, set up by site.js) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--teal); mix-blend-mode: multiply;
  display: grid; place-items: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background-color 0.3s ease;
}
.cursor span { font: 600 0.75rem var(--font-display); color: var(--night); opacity: 0; transition: opacity 0.2s ease; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(11, 189, 212, 0.35); }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--teal); mix-blend-mode: normal; }
.cursor.is-view span { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .has-motion [data-reveal], .has-motion [data-split] .w > span { opacity: 1; transform: none; }
  .cursor { display: none; }
}
