/*
  Cloudmission
  Radius system: panels 32px, cards and media 20px, buttons and tabs full pill.
  One accent (sky blue) used everywhere; one neutral family (cool grey).
  Z-index scale: header 10, mobile menu 11, skip link 20.
*/

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #fcfcfd;
  --panel: #eff2f5;
  --panel-strong: #e4e9ee;
  --ink: #111418;
  --muted: #545d68;
  --line: #d9dfe5;
  --accent: #5cc8ff;
  --accent-hover: #3fb9f7;
  --on-accent: #0a1720;
  --dark: #121820;
  --dark-2: #1b232d;
  --on-dark: #eef2f6;
  --on-dark-muted: #a7b2bf;
  --error: #b42318;
  --shadow: 0 18px 50px -24px rgb(17 40 64 / 0.28);

  --r-panel: 32px;
  --r-card: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1116;
    --panel: #161c23;
    --panel-strong: #1f2730;
    --ink: #eef2f6;
    --muted: #a3aebb;
    --line: #2a333e;
    --dark: #05080b;
    --dark-2: #121921;
    --error: #ff8a80;
    --shadow: 0 18px 50px -24px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
/* Colour panels run almost edge to edge; their content stays at container width. */
.bleed { padding: 0 12px; }
.panel-inner { max-width: 1272px; margin: 0 auto; }
@media (max-width: 767px) { .container, .bleed { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  /* --mx/--my: magnetic offset set by JS on fine pointers */
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--press, 1));
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease);
}
.btn:active { --press: 0.98; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-arrow {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--on-accent); color: var(--accent);
  font-size: 1.05rem;
  transform: translate(var(--ax, 0px), var(--ay, 0px)) rotate(var(--ar, 0deg));
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-arrow { --ar: 45deg; }

.btn-link {
  font-weight: 600; text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.btn-link:hover { background-size: 40% 2px; }

.icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 1.2rem; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease), opacity 0.2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

/* Header: floating pill */
.site-header {
  position: sticky; top: 0; z-index: 10;
  padding-top: 12px;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 32px;
  height: 64px; padding: 0 8px 0 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s;
}
.site-header.is-scrolled .header-inner { box-shadow: var(--shadow); border-color: transparent; }
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  letter-spacing: -0.04em; text-decoration: none;
}
.logo-mark { display: block; width: 44px; height: 44px; flex: none; }
.logo-mark img { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .logo-mark img { transition: transform 0.5s var(--ease); }
  .wordmark:hover .logo-mark img { transform: translate(2px, -3px); }
}
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.menu-toggle {
  display: none; margin-left: auto;
  align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font: 600 0.95rem var(--font-body); cursor: pointer;
}
.menu-toggle i { font-size: 1.2rem; }
.mobile-menu {
  pointer-events: auto;
  position: absolute; left: 16px; right: 16px; top: 84px; z-index: 11;
  display: grid; gap: 4px; padding: 12px 20px 24px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
}
.mobile-menu a:not(.btn) {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  text-decoration: none; padding: 10px 0;
}
.mobile-menu .btn { justify-self: start; margin-top: 12px; }
.mobile-menu[hidden] { display: none; }

@media (max-width: 899px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Hero */
.hero { padding: 12px 0 0; }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--panel);
  border-radius: var(--r-panel);
  min-height: calc(100dvh - 200px);
  padding: 56px 24px 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero-illustration { display: block; width: 168px; height: 168px; margin-bottom: 20px; }
.hero-illustration img { width: 100%; height: 100%; }
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 5.25rem);
  line-height: 1.02; letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 24px; max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted);
}
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; }

/* Floating badges: outer span follows the pointer (--px/--py on the panel), inner span floats. */
/* Badges stay around the content, not out at the edges of a wide panel */
.hero-badges { position: absolute; inset: 0 max(0px, calc((100% - 1320px) / 2)); z-index: -1; pointer-events: none; }
.float-badge {
  position: absolute;
  transform: translate3d(calc(var(--px, 0) * var(--depth) * 1px), calc(var(--py, 0) * var(--depth) * 1px), 0);
  transition: transform 0.9s var(--ease);
}
.float-badge > span {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: var(--r-card);
  font-size: 2rem;
  transform: rotate(var(--r));
  box-shadow: var(--shadow);
}
.float-badge:nth-child(1) { left: 9%; top: 22%; }
.float-badge:nth-child(2) { left: 14%; bottom: 16%; }
.float-badge:nth-child(3) { right: 10%; top: 18%; }
.float-badge:nth-child(4) { right: 13%; bottom: 20%; }
.badge-accent > span { background: var(--accent); color: var(--on-accent); }
.badge-light > span { background: var(--bg); color: var(--ink); }
.badge-dark > span { background: var(--ink); color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .float-badge > span { animation: float var(--dur, 7s) ease-in-out infinite alternate; }
}
@keyframes float {
  from { transform: translateY(-7px) rotate(var(--r)); }
  to { transform: translateY(7px) rotate(calc(var(--r) * -0.4)); }
}
@media (max-width: 1023px) {
  .float-badge:nth-child(2), .float-badge:nth-child(4) { display: none; }
  .float-badge > span { width: 60px; height: 60px; font-size: 1.6rem; }
  .float-badge:nth-child(1) { left: 5%; top: 12%; }
  .float-badge:nth-child(3) { right: 5%; top: 14%; }
}

/* Headline words slide up on load (JS wraps each word) */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-title.is-split .w > span { transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 70ms + 120ms); }
  .hero-title.is-split.is-in .w > span { transform: none; }
}

@media (max-width: 767px) {
  .hero-panel { min-height: 0; padding: 40px 20px 56px; border-radius: 24px; }
  .hero-title br { display: none; }
  .hero-illustration { width: 136px; height: 136px; }
  .hero-badges { display: none; }
}

/* Showcase: full-bleed image that opens up while it scrolls into view */
.showcase { padding-top: 24px; --inset: max(24px, calc((100vw - 1320px) / 2 + 24px)); }
.showcase-frame {
  height: min(78vh, 62vw);
  clip-path: inset(0 var(--inset) round var(--r-panel));
  overflow: hidden;
}
.showcase-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .showcase-frame { animation: showcase-open linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .showcase-frame img { animation: showcase-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes showcase-open {
  from { clip-path: inset(0 var(--inset) round var(--r-panel)); }
  to { clip-path: inset(0 0 round 0); }
}
@keyframes showcase-zoom {
  from { transform: scale(1.18); }
  to { transform: scale(1); }
}
@media (max-width: 767px) {
  .showcase { --inset: 16px; }
  .showcase-frame { height: 62vw; min-height: 260px; }
}

/* Stack marquee */
.stack { padding: 72px 0 8px; }
.stack-inner { display: grid; gap: 24px; }
.stack-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.025em; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 12px; width: max-content;
  list-style: none; margin: 0; padding: 0;
}
.marquee-track li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 600; white-space: nowrap;
}
.marquee-track i { font-size: 1.25rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .marquee.is-ready .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 767px) {
  .stack { padding-top: 56px; }
  .stack-inner { gap: 16px; }
}

/* Generic section */
.section { padding: 112px 0 0; }
.h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
.lead { margin-top: 20px; max-width: 56ch; font-size: 1.15rem; color: var(--muted); }

/* Ambition */
.ambition-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist i { font-size: 1.4rem; color: var(--ink); flex: none; margin-top: 1px; }
.contact-card {
  margin-top: 40px; display: flex; gap: 18px; align-items: center;
  padding: 20px 24px; border-radius: var(--r-card);
  background: var(--panel); max-width: 520px;
}
.monogram {
  flex: none; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 999px;
  /* Fixed light disc so the dark-line logo reads in both themes */
  background: #fcfcfd; box-shadow: 0 0 0 1px var(--line);
}
.monogram img { width: 40px; height: 40px; }
.contact-card-title { font-weight: 600; line-height: 1.4; }
.contact-card-link { display: inline-block; margin-top: 4px; color: var(--muted); text-underline-offset: 3px; }
.contact-card-link:hover { color: var(--ink); }
.ambition-media { margin: 0; }
.ambition-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%;
  border-radius: var(--r-card); box-shadow: var(--shadow);
}
@media (max-width: 899px) {
  .ambition-grid { grid-template-columns: 1fr; gap: 48px; }
  .ambition-media { order: -1; }
  .ambition-media img { aspect-ratio: 4 / 3; }
}

/* Dark panel (reasons) */
.dark-panel {
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--r-panel);
  padding: 88px 64px;
}
.dark-panel .lead { color: var(--on-dark-muted); }
.reasons {
  margin-top: 56px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}
.reason {
  grid-column: span 2;
  position: relative; isolation: isolate;
  background: var(--dark-2); border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
/* Spotlight that follows the pointer (--sx/--sy set by JS) */
.reason::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none;
}
.reason:hover::before { opacity: 1; }
.reason-accent::before { background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgb(255 255 255 / 0.45), transparent 60%); }
.reason-photo::before { z-index: 1; mix-blend-mode: screen; }
.reason i { font-size: 1.8rem; color: var(--accent); margin-bottom: 18px; }
.reason h3 { font-size: 1.45rem; line-height: 1.15; }
.reason p { color: var(--on-dark-muted); }
.reason-photo { grid-column: span 4; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.reason-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.reason-photo .reason-body { padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.reason-accent { background: var(--accent); color: var(--on-accent); }
.reason-accent i { color: var(--on-accent); }
.reason-accent p { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
@media (max-width: 1023px) {
  .dark-panel { padding: 64px 32px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .reason, .reason-photo { grid-column: span 1; }
  .reason-photo { grid-column: span 2; }
}
@media (max-width: 767px) {
  .dark-panel { padding: 48px 20px; border-radius: 24px; }
  .reasons { grid-template-columns: 1fr; }
  .reason, .reason-photo { grid-column: span 1; }
  .reason-photo { grid-template-columns: 1fr; }
  .reason-photo img { aspect-ratio: 16 / 10; min-height: 0; }
}

/* Steps carousel */
.steps-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.carousel-controls { display: flex; gap: 10px; flex: none; }
.carousel {
  list-style: none; margin: 48px 0 0; padding: 0 0 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%);
  gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .carousel { cursor: grab; } }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.carousel.is-dragging .step { pointer-events: none; }
/* Scroll position of the carousel, driven by a named scroll timeline */
.steps { timeline-scope: --steps; }
.carousel { scroll-timeline: --steps inline; }
.steps-progress { display: none; }
@supports (animation-timeline: scroll()) {
  .steps-progress { display: block; height: 3px; margin-top: 28px; border-radius: 999px; background: var(--line); overflow: hidden; }
  .steps-progress span {
    display: block; height: 100%; background: var(--ink); border-radius: inherit;
    transform-origin: left; animation: progress-grow linear both; animation-timeline: --steps;
  }
}
@keyframes progress-grow { from { transform: scaleX(0.18); } to { transform: scaleX(1); } }
.step {
  scroll-snap-align: start;
  background: var(--panel); border-radius: var(--r-card);
  padding: 32px; min-height: 320px;
  display: flex; flex-direction: column;
  transition: background-color 0.3s var(--ease);
}
.step:hover { background: var(--panel-strong); }
.step i {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--bg); font-size: 1.6rem; margin-bottom: auto;
}
.step h3 { margin-top: 48px; font-size: 1.6rem; line-height: 1.1; }
.step p { margin-top: 12px; color: var(--muted); }
@media (max-width: 767px) {
  .steps-head { align-items: flex-start; flex-direction: column; }
  .carousel { grid-auto-columns: 84%; gap: 12px; }
  .step { min-height: 280px; padding: 24px; }
}

/* Result tabs */
.result-title { margin: 0 auto; text-align: center; }
.tabs {
  margin: 32px auto 0; width: max-content; max-width: 100%;
  display: flex; gap: 6px; padding: 6px;
  border-radius: 999px; background: var(--panel);
  overflow-x: auto; scrollbar-width: none;
}
.tabs button {
  position: relative; overflow: hidden;
  border: 0; background: transparent; color: var(--muted);
  padding: 12px 22px; border-radius: 999px;
  font: 600 1rem var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
/* Autoplay progress inside the active tab; JS listens for animationend */
.tab-progress {
  position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px;
  border-radius: 999px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; opacity: 0;
}
.tabs.is-autoplay [aria-selected="true"] .tab-progress { opacity: 1; animation: tab-progress var(--tab-duration, 7s) linear forwards; }
.tabs.is-paused .tab-progress { animation-play-state: paused; }
@keyframes tab-progress { to { transform: scaleX(1); } }
.result-stage { position: relative; margin-top: 48px; }
.result-media { margin: 0; position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--r-card); }
.result-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.result-media img.is-active { opacity: 1; transform: none; }
.result-card {
  position: relative;
  width: min(520px, calc(100% - 48px));
  margin: -120px 48px 0 auto;
  background: var(--bg); border-radius: var(--r-card);
  padding: 36px; box-shadow: var(--shadow);
}
.result-card h3 { font-size: 1.8rem; line-height: 1.1; }
.result-card p { margin-top: 14px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  [role="tabpanel"]:not([hidden]) { animation: panel-in 0.45s var(--ease); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 767px) {
  .tabs { width: 100%; }
  .result-media { aspect-ratio: 4 / 3; }
  .result-card { width: auto; margin: -48px 12px 0; padding: 24px; }
}

/* Contact */
.contact { padding-bottom: 112px; }
.contact-panel {
  background: var(--panel); border-radius: var(--r-panel);
  padding: 72px 64px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-mail {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-underline-offset: 4px;
}
.contact-mail i { font-size: 1.3rem; }
.form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: 400 1rem/1.5 var(--font-body);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-help { font-size: 0.9rem; color: var(--muted); }
.field-error { font-size: 0.9rem; color: var(--error); font-weight: 600; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.is-error { color: var(--error); }
.form-status a { color: inherit; text-underline-offset: 3px; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.75; }
.btn[aria-busy="true"] .btn-arrow i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn[aria-busy="true"] .btn-arrow i { animation: none; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-note a { color: inherit; text-underline-offset: 3px; }
.form-note a:hover { color: var(--ink); }
@media (max-width: 899px) {
  .contact-panel { padding: 48px 20px; border-radius: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding-bottom: 72px; }
}

/* Sent confirmation dialog */
.sent-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 40px 36px 36px; border: 0; border-radius: var(--r-panel);
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow);
  text-align: center;
}
.sent-dialog::backdrop { background: rgb(10 16 22 / 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sent-icon {
  display: inline-grid; place-items: center;
  width: 72px; height: 72px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 2rem;
}
.sent-title { margin-top: 20px; font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; }
.sent-text { margin: 14px auto 0; max-width: 34ch; color: var(--muted); }
.sent-note { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.sent-dialog form { margin-top: 28px; display: flex; justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .sent-dialog[open] { animation: sent-in 0.5s var(--ease); }
  .sent-dialog[open]::backdrop { animation: fade-in 0.4s ease; }
  .sent-dialog[open] .sent-icon i { animation: fly 0.9s var(--ease) 0.15s both; }
}
@keyframes sent-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fly { from { transform: translate(-14px, 14px) scale(0.6); opacity: 0; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; }
.footer-note { color: var(--muted); margin-top: 4px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 767px) {
  .section { padding-top: 80px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
}

/* Legal pages */
.legal { padding: 72px 0 112px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.legal-meta { margin-top: 16px; color: var(--muted); }
.legal h2 { margin-top: 56px; font-size: 1.6rem; line-height: 1.15; }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { text-underline-offset: 3px; }
.legal-note { margin-top: 20px; padding: 20px 24px; border-radius: var(--r-card); background: var(--panel); }
@media (max-width: 767px) { .legal { padding: 48px 0 72px; } }

/* Reveal on scroll (only when JS has marked the page ready) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
