/* =========================================================================
   Portal & Page
   Motion rule: every animation moves only `transform`/`opacity`, so it runs
   on the compositor. Continuous effects pause when they scroll off-screen.
   ========================================================================= */

/* Fonts ------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  --paper: #F6F4EF;
  --paper-2: #EFECE5;
  --card: #FFFFFF;
  --ink: #14130F;
  --ink-2: #4F4B43;
  --muted: #6E6A61;
  --line: rgba(20, 19, 15, .09);
  --line-2: rgba(20, 19, 15, .15);
  --accent: #3346E8;
  --accent-soft: rgba(51, 70, 232, .09);
  --accent-light: #A9B3FF;
  --green: #12A150;
  --sky: #2AABEE;
  --amber: #F5A524;
  --danger: #C8322F;

  --night: #0D0D12;
  --night-line: rgba(255, 255, 255, .1);
  --on-night: #F4F2ED;
  --on-night-2: rgba(244, 242, 237, .66);

  --portal: linear-gradient(180deg, #14174A 0%, #2433B8 32%, #5B5CF0 56%, #C08AEA 79%, #FFC6A0 100%);
  --photo: linear-gradient(150deg, #FFD9C2 0%, #F4B5D2 45%, #9C8CFF 100%);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, Cambria, "Times New Roman", serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(20, 19, 15, .04), 0 4px 12px -4px rgba(20, 19, 15, .08);
  --shadow: 0 1px 2px rgba(20, 19, 15, .05), 0 14px 32px -12px rgba(20, 19, 15, .2);
  --shadow-lg: 0 2px 6px rgba(20, 19, 15, .04), 0 32px 64px -24px rgba(20, 19, 15, .3);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .8, .25, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: rgba(51, 70, 232, .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 12px; pointer-events: none; }

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Shared bits ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--light { color: var(--accent-light); }

.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s var(--ease-soft), border-color .3s var(--ease-soft), color .3s var(--ease-soft), scale .4s var(--ease-out);
}
.btn .i { width: 18px; height: 18px; transition: translate .45s var(--ease-out); }
.btn:hover .i { translate: 3px 0; }
.btn:active { scale: .97; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: .875rem; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--ink { overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2A2924; }
.btn--ink::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: translateX(-130%) skewX(-20deg);
  pointer-events: none;
}
.btn--ink:hover::after { transform: translateX(260%) skewX(-20deg); transition: transform 1s var(--ease-out); }

.btn--ghost { background: rgba(255, 255, 255, .55); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: #fff; border-color: rgba(20, 19, 15, .3); }

.icon-chip {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-chip .i { width: 22px; height: 22px; }
.icon-chip--dark { background: rgba(255, 255, 255, .08); color: #C7CDFF; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, .88);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
}
.site-header.is-scrolled::before,
.menu-open .site-header::before { opacity: 1; }

.header__inner { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand__mark { width: 24px; height: 28px; flex: none; }
.brand__name em {
  margin: 0 .03em;
  font-family: var(--font-serif);
  font-size: 1.32em;
  font-style: italic;
  font-weight: 400;
  line-height: 0;
  color: var(--accent);
}
.brand--light { color: var(--on-night); }
.brand--light .brand__name em { color: var(--accent-light); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .25s var(--ease-soft), background-color .25s var(--ease-soft);
}
.nav a:hover { color: var(--ink); background: rgba(20, 19, 15, .05); }
.header__cta { margin-left: 10px; }

.menu-toggle {
  position: relative;
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  position: absolute;
  top: 50%;
  left: 13px;
  right: 13px;
  height: 1.5px;
  margin-top: -.75px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .5s var(--ease-out);
}
.menu-toggle span:first-child { transform: translateY(-3.5px); }
.menu-toggle span:last-child { transform: translateY(3.5px); }
.menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .menu-toggle { display: block; }
}
@media (max-width: 400px) {
  .header__cta { display: none; }
  .menu-toggle { margin-left: auto; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 20px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease-soft), visibility 0s linear .4s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity .4s var(--ease-soft), visibility 0s; }
.mobile-menu__nav { display: grid; }
.mm-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 12vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.menu-open .mm-link { opacity: 1; transform: none; }
.menu-open .mm-link:nth-child(1) { transition-delay: .08s; }
.menu-open .mm-link:nth-child(2) { transition-delay: .14s; }
.menu-open .mm-link:nth-child(3) { transition-delay: .2s; }
.mm-cta { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.menu-open .mm-cta { opacity: 1; transform: none; transition-delay: .26s; }
html.menu-open { overflow: hidden; }
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 80px)) 0 clamp(64px, 8vw, 112px);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 80% 38%, rgba(91, 92, 240, .13), transparent 70%),
    radial-gradient(34% 40% at 70% 80%, rgba(255, 181, 143, .26), transparent 70%),
    radial-gradient(30% 36% at 4% 6%, rgba(255, 181, 143, .14), transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__copy { max-width: 640px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink-2);
}
.pulse-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease-out) infinite;
}

.hero__title {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 1.9rem + 4.6vw, 6.1rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--accent); }

/* Word-by-word headline reveal (spans are added by main.js) */
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .1em .08em .14em 0;
  margin: -.1em -.08em -.14em 0;
}
.hero__title .w > span { display: inline-block; transform: translate3d(0, 112%, 0); }
.is-loaded .hero__title .w > span {
  transform: none;
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + 80ms);
}

.hero__lead {
  max-width: 33em;
  margin-top: 26px;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
}
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks .i {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 3;
}

/* Hero visual: everything inside .stage is sized in container units (cqw)
   so the whole scene scales as one piece. */
.hero__visual { position: relative; }
.stage {
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
  aspect-ratio: 1 / 1.14;
  container-type: inline-size;
  pointer-events: none;
}
.layer { position: absolute; inset: 0; }
@media (hover: hover) and (pointer: fine) { .layer { will-change: transform; } }

.stage__floor {
  position: absolute;
  top: 82cqw;
  left: 6cqw;
  right: 6cqw;
  height: 14cqw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(36, 51, 184, .28), rgba(36, 51, 184, 0));
}

.portal,
.ring {
  position: absolute;
  top: 9cqw;
  left: 19cqw;
  width: 62cqw;
  height: 77.5cqw;
  border-radius: 31cqw 31cqw 3cqw 3cqw;
}
.ring { border: 1px solid rgba(51, 70, 232, .2); transform-origin: 50% 100%; }
.ring--1 { transform: scale(1.12); }
.ring--2 { transform: scale(1.25); border-color: rgba(51, 70, 232, .11); }
.ring--pulse { border-color: rgba(91, 92, 240, .5); opacity: 0; }
.is-loaded .ring--pulse { animation: ripple 5.5s cubic-bezier(.2, .6, .3, 1) 1.8s infinite; }

.portal {
  overflow: hidden;
  isolation: isolate;
  background: var(--portal);
  box-shadow: 0 5cqw 12cqw -5cqw rgba(36, 51, 184, .65);
  will-change: transform;
}
.portal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 2cqw 5cqw rgba(255, 255, 255, .06);
  pointer-events: none;
}
.portal__sun {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #FFF7EE 0%, rgba(255, 220, 192, .8) 36%, rgba(255, 190, 160, 0) 72%);
  translate: 0 22%;
  transition: translate 2.4s var(--ease-out) .25s;
  animation: breathe 7s ease-in-out infinite alternate;
}
.is-loaded .portal__sun { translate: 0 0; }
.portal__glow { position: absolute; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.portal__glow--a {
  top: 40%;
  left: -32%;
  width: 100%;
  background: radial-gradient(closest-side, rgba(255, 160, 200, .7), rgba(255, 160, 200, 0));
  animation: drift-a 13s var(--ease-in-out) infinite alternate;
}
.portal__glow--b {
  top: 2%;
  right: -36%;
  width: 95%;
  background: radial-gradient(closest-side, rgba(140, 120, 255, .8), rgba(140, 120, 255, 0));
  animation: drift-b 17s var(--ease-in-out) infinite alternate;
}
.portal__rays {
  position: absolute;
  top: 94%;
  left: 50%;
  width: 240%;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .14) 0deg 3deg, rgba(255, 255, 255, 0) 3deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 6%, transparent 68%);
  mask-image: radial-gradient(closest-side, #000 6%, transparent 68%);
  opacity: .75;
  animation: spin 90s linear infinite;
}
.portal__motes { position: absolute; inset: 0; }
.portal__motes i {
  position: absolute;
  bottom: 10%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: mote 7s linear infinite;
}
.portal__motes i:nth-child(1) { left: 22%; animation-duration: 7.5s; }
.portal__motes i:nth-child(2) { left: 38%; animation-duration: 6.5s; animation-delay: -2.2s; }
.portal__motes i:nth-child(3) { left: 54%; animation-duration: 8s; animation-delay: -4.1s; width: 3px; height: 3px; }
.portal__motes i:nth-child(4) { left: 66%; animation-duration: 7s; animation-delay: -1.3s; }
.portal__motes i:nth-child(5) { left: 78%; animation-duration: 9s; animation-delay: -5.4s; width: 3px; height: 3px; }
.portal__motes i:nth-child(6) { left: 30%; animation-duration: 8.5s; animation-delay: -3.6s; width: 3px; height: 3px; }
.portal__grain {
  position: absolute;
  inset: 0;
  opacity: .16;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating pieces: .pop = entrance, .bob = idle float, .layer = parallax */
.pop { position: absolute; }
.pop--page { top: 53cqw; left: 4cqw; width: 64cqw; }
.pop--pay { top: 17cqw; left: 0; }
.pop--book { top: 40cqw; right: -1cqw; }
.pop--ticket { top: 92cqw; right: 2cqw; }
.bob { animation: bob 6s ease-in-out infinite; }
.bob--slow { animation-duration: 8s; }
.pop--book .bob { animation-delay: -2s; }
.pop--ticket .bob { animation-duration: 7s; animation-delay: -4s; }

.mock {
  overflow: hidden;
  border-radius: 2.6cqw;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20, 19, 15, .06), 0 3cqw 7cqw -2cqw rgba(20, 19, 15, .3);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 1.6cqw 2cqw;
  border-bottom: 1px solid var(--line);
  background: #FBFAF7;
}
.mock__dots { display: flex; gap: .9cqw; }
.mock__dots i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #E2DED5; }
.mock__url {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: .8cqw;
  height: 3.8cqw;
  border-radius: 99px;
  background: #F0EEE8;
  font-size: max(9px, 1.9cqw);
  font-weight: 500;
  color: var(--muted);
}
.mock__url .i { width: 1.8cqw; height: 1.8cqw; stroke-width: 2.4; }
.mock__body { display: grid; gap: 2.6cqw; padding: 2.6cqw 2.8cqw 3cqw; }
.mock__nav { display: flex; align-items: center; gap: 2cqw; }
.mock__logo { width: 3.2cqw; height: 3.8cqw; border-radius: 1.6cqw 1.6cqw .5cqw .5cqw; background: var(--portal); }
.mock__links { display: flex; gap: 1.6cqw; margin-left: auto; }
.mock__links i { width: 5cqw; height: 1cqw; border-radius: 1cqw; background: #E6E3DB; }
.mock__cta { width: 8cqw; height: 3.2cqw; border-radius: 99px; background: var(--ink); }
.mock__hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2.6cqw; }
.mock__copy { display: grid; justify-items: start; gap: 1.2cqw; }
.mock__h { width: 100%; height: 2.6cqw; border-radius: .8cqw; background: var(--ink); }
.mock__h--short { width: 68%; }
.mock__p { width: 94%; height: 1.2cqw; margin-top: .4cqw; border-radius: 1cqw; background: #E6E3DB; }
.mock__p--short { width: 62%; margin-top: 0; }
.mock__btn {
  margin-top: 1.2cqw;
  padding: 1.2cqw 2.4cqw;
  border-radius: 99px;
  background: var(--accent);
  font-size: max(8px, 1.8cqw);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.mock__img { position: relative; overflow: hidden; aspect-ratio: 1 / .92; border-radius: 1.8cqw; background: var(--photo); }
.mock__img span {
  position: absolute;
  right: 18%;
  bottom: 20%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF6EC, #FFC7A8);
  box-shadow: 0 1cqw 3cqw rgba(160, 90, 160, .25);
}
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
.mock__cards i { height: 7cqw; border: 1px solid var(--line); border-radius: 1.4cqw; background: #F5F3EE; }

.toast {
  display: flex;
  align-items: center;
  gap: .85em;
  padding: .8em 1.15em .8em .8em;
  border: 1px solid rgba(20, 19, 15, .06);
  border-radius: 1.15em;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 .15em .4em rgba(20, 19, 15, .05), 0 1.2em 2.6em -1em rgba(20, 19, 15, .3);
  font-size: clamp(11px, 2.45cqw, 13.5px);
  white-space: nowrap;
}
.toast__icon { display: grid; place-items: center; flex: none; width: 2.6em; height: 2.6em; border-radius: .85em; color: #fff; }
.toast__icon .i { width: 1.35em; height: 1.35em; stroke-width: 2.2; }
.toast__icon--green { background: var(--green); }
.toast__icon--accent { background: var(--accent); }
.toast__icon--sky { background: var(--sky); }
.toast__text { display: grid; gap: .1em; line-height: 1.25; }
.toast__text b { font-weight: 600; color: var(--ink); }
.toast__text small { font-size: .92em; color: var(--muted); }

/* Hero entrance (only hidden when scripting is on — see failsafe below) */
@media (scripting: enabled) {
  .hero [data-hero] { opacity: 0; transform: translate3d(0, 20px, 0); }
  .hero__title:not(.is-split) { opacity: 0; }
  .portal { opacity: 0; transform: translate3d(0, 6cqw, 0) scale(.94); }
  .ring--1, .ring--2, .stage__floor { opacity: 0; }
  .pop { opacity: 0; transform: translate3d(0, 4cqw, 0) scale(.92); }
}
.is-loaded .hero [data-hero],
.is-loaded .portal,
.is-loaded .pop {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}
.is-loaded .ring--1,
.is-loaded .ring--2,
.is-loaded .stage__floor { opacity: 1; transition: opacity 1.6s var(--ease-soft) .5s; }
.is-loaded .hero__lead { transition-delay: .45s; }
.is-loaded .hero__actions { transition-delay: .55s; }
.is-loaded .hero__ticks { transition-delay: .65s; }
.is-loaded .portal { transition-duration: 1.2s, 1.6s; transition-delay: .1s; }
.is-loaded .pop--page { transition-delay: .5s; }
.is-loaded .pop--pay { transition-delay: .9s; }
.is-loaded .pop--book { transition-delay: 1.05s; }
.is-loaded .pop--ticket { transition-delay: 1.2s; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { margin-top: clamp(32px, 8vw, 56px); }
  .stage { width: min(88%, 500px); }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}

/* Marquee ----------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(40px, 10vw, 160px);
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(246, 244, 239, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper), rgba(246, 244, 239, 0)); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; will-change: transform; }
.marquee__list { display: flex; flex: none; align-items: center; }
.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  padding-right: clamp(20px, 2.6vw, 36px);
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);
  line-height: 1.15;
  white-space: nowrap;
}
.marquee__list li:nth-child(even) { font-style: italic; }
.marquee__list .i { width: .5em; height: .5em; color: var(--accent); }

/* Sections ---------------------------------------------------------------- */
.section { position: relative; padding-block: clamp(88px, 11vw, 160px); }
.section-head { max-width: 780px; }
.section-title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-lead {
  max-width: 36em;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

.group { margin-top: clamp(72px, 9vw, 128px); }
.group__head {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 380px);
  align-items: baseline;
  gap: 12px 24px;
  margin-bottom: 36px;
  padding-top: 28px;
}
.group__head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-2);
  transform-origin: 0 50%;
}
.group__head.is-in::before { animation: draw-x 1.4s var(--ease-out) .1s both; }
.group__num { font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.group__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.group__lead { font-size: 1rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 820px) {
  .group__head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* Cards ------------------------------------------------------------------- */
.card {
  --pad: clamp(22px, 2.4vw, 32px);
  position: relative;
  isolation: isolate;
  padding: var(--pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: translate .6s var(--ease-out), border-color .3s var(--ease-soft);
}
/* Bigger hover shadow lives on its own layer and only fades */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .5s var(--ease-soft);
  pointer-events: none;
}
@media (hover: hover) {
  .card:hover { translate: 0 -4px; border-color: var(--line-2); }
  .card:hover::after { opacity: 1; }
}
.card .icon-chip { margin-bottom: 20px; }
.card__title { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.card__text { margin-top: 8px; font-size: .975rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* Cursor spotlight (element injected by main.js, moved with transform) */
.fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.fx > span {
  position: absolute;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(51, 70, 232, .09), rgba(51, 70, 232, 0));
  opacity: 0;
  transition: opacity .5s var(--ease-soft);
  will-change: transform;
}
.card:hover .fx > span { opacity: 1; }

/* 01 Websites */
.web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}
.web-main { grid-row: 1 / span 3; display: flex; flex-direction: column; }
.web-main__text { max-width: 520px; }
.web-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 18px; }
.web-item .icon-chip { margin-bottom: 0; }

.devices {
  position: relative;
  flex: 1;
  min-height: 270px;
  margin: 32px calc(var(--pad) * -1) calc(var(--pad) * -1);
  overflow: hidden;
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}
.dev-desk {
  position: absolute;
  top: 0;
  bottom: -24px;
  left: var(--pad);
  right: 21%;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.dev-desk__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FBFAF7; }
.dev-desk__bar i { width: 8px; height: 8px; border-radius: 50%; background: #E2DED5; }
.dev-desk__body { display: grid; gap: 18px; padding: 16px 20px; }
.dd-nav { display: flex; align-items: center; justify-content: space-between; }
.dd-logo { width: 14px; height: 17px; border-radius: 7px 7px 2px 2px; background: var(--portal); }
.dd-links { display: flex; gap: 10px; }
.dd-links i { width: 28px; height: 5px; border-radius: 4px; background: #E6E3DB; }
.dd-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 18px; }
.dd-copy { display: grid; justify-items: start; gap: 7px; }
.dd-h { width: 100%; height: 12px; border-radius: 4px; background: var(--ink); }
.dd-h--short { width: 64%; }
.dd-p { width: 92%; height: 6px; margin-top: 3px; border-radius: 4px; background: #E6E3DB; }
.dd-p--short { width: 58%; margin-top: 0; }
.dd-btn { width: 70px; height: 20px; margin-top: 6px; border-radius: 99px; background: var(--accent); }
.dd-img { aspect-ratio: 4 / 3; border-radius: 10px; background: var(--photo); }
.dd-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dd-row i { height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #F5F3EE; }

.dev-phone {
  position: absolute;
  top: 28px;
  right: var(--pad);
  width: 30%;
  max-width: 150px;
  aspect-ratio: 9 / 18.5;
  padding: 5px;
  border-radius: 26px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.dev-phone__screen {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 24px 10px 10px;
  overflow: hidden;
  border-radius: 21px;
  background: #fff;
}
.dev-phone__screen::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 33%;
  width: 34%;
  height: 9px;
  border-radius: 99px;
  background: var(--ink);
}
.dp-img { aspect-ratio: 1; margin-bottom: 4px; border-radius: 10px; background: var(--photo); }
.dp-h { height: 9px; border-radius: 3px; background: var(--ink); }
.dp-h--short { width: 60%; }
.dp-p { height: 5px; margin-top: 2px; border-radius: 3px; background: #E6E3DB; }
.dp-p--short { width: 70%; margin-top: 0; }
.dp-btn { height: 18px; margin-top: 6px; border-radius: 99px; background: var(--accent); }
.web-main.is-in .dev-phone { animation: rise 1.3s var(--ease-out) .35s both; }

@media (max-width: 900px) {
  .web-grid { grid-template-columns: minmax(0, 1fr); }
  .web-main { grid-row: auto; }
}

/* 02 Business features (bento) */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 26px; }
.feature--wide { grid-column: span 2; }
.feature .icon-chip { margin-bottom: 18px; }
@media (max-width: 1060px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .feature--wide { grid-column: auto; }
}

.art {
  position: relative;
  display: grid;
  place-items: center;
  height: 172px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(20, 19, 15, .075) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.mini {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  line-height: 1.3;
}
.pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill__dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; }
.pill__dot .i { width: 12px; height: 12px; stroke-width: 3; }
.is-in .pill { animation: pop-in .8s var(--ease-out) .55s both; }

/* Payments */
.pay { width: min(310px, 86%); margin-top: -22px; }
.pay__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pay__head b { font-size: 18px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay__methods { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr; gap: 6px; }
.pm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pm .i { width: 14px; height: 14px; }
.pm--dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.pay__sub { right: 7%; bottom: 14px; }
.switch { position: relative; flex: none; width: 26px; height: 16px; border-radius: 99px; background: var(--accent); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.is-in .switch::after { animation: knob .6s var(--ease-out) 1.1s both; }

/* Bookings */
.book { width: min(330px, 88%); margin-top: -26px; padding: 12px; }
.book__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 10px; }
.book__days span { display: grid; justify-items: center; gap: 1px; padding: 6px 0 7px; border-radius: 10px; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.book__days b { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.book__days .is-on { background: var(--ink); color: rgba(255, 255, 255, .65); }
.book__days .is-on b { color: #fff; }
.book__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.book__slots span {
  display: grid;
  place-items: center;
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.book__slots .is-picked { border-color: var(--accent); background: var(--accent); color: #fff; }
.book__slots .is-taken { border-color: var(--line); background: var(--paper); color: #B3AFA6; text-decoration: line-through; }
.book__toast { left: 50%; bottom: 12px; translate: -50% 0; }

/* Stock */
.stock { display: grid; gap: 14px; width: 86%; }
.stock__row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.stock__row em { font-style: normal; font-weight: 500; color: var(--muted); }
.stock__row em.is-low { font-weight: 600; color: #C2410C; }
.meter { height: 6px; overflow: hidden; border-radius: 99px; background: #ECE9E1; }
.meter i { display: block; height: 100%; border-radius: inherit; transform-origin: 0 50%; }
.meter--high i { width: 78%; background: var(--ink); }
.meter--low i { width: 14%; background: #EA580C; }
.is-in .meter i { animation: grow-x 1.4s var(--ease-out) .45s both; }

/* Accounts */
.login { display: grid; gap: 8px; width: 86%; padding: 12px; }
.login__head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.login__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 8px 3px 6px;
  border-radius: 99px;
  background: rgba(18, 161, 80, .1);
  font-size: 10.5px;
  font-weight: 600;
  color: #0E7A3E;
}
.login__badge .i { width: 12px; height: 12px; }
.login__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 11.5px;
  color: var(--muted);
}
.login__field--pw { letter-spacing: .18em; color: var(--ink); }
.login__field--pw .i { width: 13px; height: 13px; color: var(--accent); }

/* Ticketing */
.art--ticket { place-items: center start; padding-left: 8%; }
.ticket {
  display: flex;
  width: min(270px, 68%);
  margin-top: -30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  rotate: -4deg;
}
.ticket__main { display: grid; flex: 1; gap: 2px; padding: 12px 14px; }
.ticket__main small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ticket__main b { font-family: var(--font-serif); font-size: 23px; font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
.ticket__main span { font-size: 11px; color: var(--muted); }
.ticket__stub { position: relative; display: grid; place-content: center; justify-items: center; width: 66px; border-left: 1.5px dashed var(--line-2); }
.ticket__stub b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.ticket__stub small { font-size: 10px; font-weight: 600; color: var(--green); }
.ticket__stub::before,
.ticket__stub::after { content: ""; position: absolute; left: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); }
.ticket__stub::before { top: -8px; }
.ticket__stub::after { bottom: -8px; }
.notif {
  position: absolute;
  right: 6%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
  font-size: 12px;
}
.notif__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: #fff; }
.notif__icon .i { width: 16px; height: 16px; translate: -1px 1px; }
.notif__text { display: grid; line-height: 1.3; }
.notif__text b { font-weight: 600; }
.notif__text small { font-size: 11px; color: var(--muted); }
.notif__time { align-self: start; margin-left: 6px; font-size: 10.5px; color: var(--muted); }
.is-in .notif { animation: slide-in .9s var(--ease-out) .55s both; }
@media (max-width: 640px) {
  .ticket { width: 86%; margin-top: -42px; }
  .ticket__main b { font-size: 20px; white-space: nowrap; }
  .ticket__main span { white-space: nowrap; }
  .notif { right: 4%; bottom: 10px; }
}

/* Dashboard */
.dash { width: min(360px, 90%); padding: 0; overflow: hidden; }
.dash__tabs { display: flex; gap: 2px; padding: 7px; border-bottom: 1px solid var(--line); }
.dash__tabs span { padding: 5px 9px; border-radius: 7px; font-size: 11px; font-weight: 600; color: var(--muted); }
.dash__tabs .is-on { background: var(--paper); color: var(--ink); }
.dash__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; padding: 12px; }
.dash__chart { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.dash__chart i { flex: 1; border-radius: 5px 5px 2px 2px; background: #CDD2FF; transform-origin: 50% 100%; }
.dash__chart i:nth-child(1) { height: 38%; }
.dash__chart i:nth-child(2) { height: 55%; }
.dash__chart i:nth-child(3) { height: 46%; }
.dash__chart i:nth-child(4) { height: 70%; }
.dash__chart i:nth-child(5) { height: 62%; }
.dash__chart i:nth-child(6) { height: 84%; }
.dash__chart i:nth-child(7) { height: 100%; background: var(--accent); }
.is-in .dash__chart i { animation: grow-y 1.2s var(--ease-out) both; }
.is-in .dash__chart i:nth-child(1) { animation-delay: .3s; }
.is-in .dash__chart i:nth-child(2) { animation-delay: .36s; }
.is-in .dash__chart i:nth-child(3) { animation-delay: .42s; }
.is-in .dash__chart i:nth-child(4) { animation-delay: .48s; }
.is-in .dash__chart i:nth-child(5) { animation-delay: .54s; }
.is-in .dash__chart i:nth-child(6) { animation-delay: .6s; }
.is-in .dash__chart i:nth-child(7) { animation-delay: .66s; }
.dash__price { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.dash__label { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dash__label .i { width: 12px; height: 12px; }
.dash__values { display: flex; align-items: baseline; gap: 8px; }
.dash__values s { font-size: 12px; color: var(--muted); }
.dash__values b { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }

/* Enquiry forms */
.mail { display: grid; gap: 9px; width: 86%; margin-top: -26px; padding: 13px; }
.mail__head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.mail__head b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.mail__avatar { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--portal); }
.line { display: block; height: 6px; border-radius: 6px; background: #ECE9E1; }
.line--short { width: 62%; }
.mail__toast { left: 50%; bottom: 14px; translate: -50% 0; }

/* Reviews */
.reviews { display: grid; justify-items: center; gap: 14px; }
.stars { display: flex; gap: 4px; color: var(--amber); }
.stars .i { width: 26px; height: 26px; }
.is-in .stars .i { animation: star-pop .7s var(--ease-out) both; }
.is-in .stars .i:nth-child(1) { animation-delay: .35s; }
.is-in .stars .i:nth-child(2) { animation-delay: .43s; }
.is-in .stars .i:nth-child(3) { animation-delay: .51s; }
.is-in .stars .i:nth-child(4) { animation-delay: .59s; }
.is-in .stars .i:nth-child(5) { animation-delay: .67s; }
.reviews__src { display: flex; gap: 6px; }
.reviews__src span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 11.5px;
  font-weight: 600;
}

/* 03 Setup + 04 Ongoing */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(72px, 9vw, 128px);
}
.panel { position: relative; padding: clamp(26px, 3.2vw, 44px); border-radius: var(--radius-lg); }
.panel__head { display: grid; gap: 10px; margin-bottom: 32px; }
.panel--setup { border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.setup-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 32px; }
.setup-list li { display: grid; align-content: start; gap: 10px; }
.setup-list .icon-chip { margin-bottom: 4px; }
.setup-list h4,
.care-list h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.setup-list p { font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

.panel--care { overflow: hidden; isolation: isolate; background: var(--night); color: var(--on-night); }
.panel--care .group__num { color: var(--accent-light); }
.panel--care .group__lead { color: var(--on-night-2); }
.panel__glow {
  position: absolute;
  right: -34%;
  bottom: -62%;
  z-index: -1;
  width: 110%;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  background: var(--portal);
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 10%, transparent 75%);
}
.status {
  margin-bottom: 30px;
  padding: 16px 18px 6px;
  border: 1px solid var(--night-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
}
.status__top { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; }
.status__dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #34D399; }
.status__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.4s var(--ease-out) infinite; }
.status__list { display: grid; margin-top: 12px; }
.status__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--night-line);
  font-size: .875rem;
  color: var(--on-night-2);
}
.status__list .i { width: 16px; height: 16px; color: var(--accent-light); }
.status__list span { margin-left: auto; font-weight: 500; color: var(--on-night); }
.care-list { display: grid; gap: 22px; }
.care-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
.care-list p { margin-top: 4px; font-size: .9375rem; line-height: 1.6; color: var(--on-night-2); }

@media (max-width: 960px) { .duo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .setup-list { grid-template-columns: minmax(0, 1fr); } }

/* Process ----------------------------------------------------------------- */
.process { border-top: 1px solid var(--line); background: var(--paper-2); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(48px, 6vw, 80px);
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(51, 70, 232, .12));
  transform-origin: 0 50%;
}
.steps.is-in::before { transition: transform 2s var(--ease-out) .15s; }
.step { position: relative; padding-top: 72px; }
.step__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper-2);
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .5s var(--ease-soft), border-color .5s var(--ease-soft), color .5s var(--ease-soft);
}
.step.is-in .step__num { border-color: var(--ink); background: var(--ink); color: #fff; transition-delay: calc(var(--d, 0s) + .35s); }
.step__title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.step p { margin-top: 10px; font-size: .975rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps::before {
    top: 22px;
    bottom: 22px;
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--accent), rgba(51, 70, 232, .12));
    transform-origin: 50% 0;
  }
  .step { padding: 9px 0 0 72px; }
}

/* Contact ----------------------------------------------------------------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(88px, 11vw, 160px);
  background: var(--night);
  color: var(--on-night);
}
.contact__glow {
  position: absolute;
  top: -30%;
  left: 15%;
  z-index: -1;
  width: min(1100px, 150vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76, 84, 240, .28), rgba(76, 84, 240, 0));
  animation: glow 16s var(--ease-in-out) infinite alternate;
  will-change: transform;
}
/* The form sits inside a glowing doorway */
.form-wrap { position: relative; }
.contact__arch {
  position: absolute;
  top: -110px;
  bottom: -140px;
  left: -64px;
  right: -64px;
  z-index: -1;
  border-radius: 999px 999px 0 0;
  background: var(--portal);
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 50%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 50%, transparent 88%);
}
@media (max-width: 560px) {
  .contact__arch { top: -70px; left: -24px; right: -24px; }
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.contact__copy { position: relative; z-index: 1; padding-top: 8px; }
.contact .section-title em { color: var(--accent-light); }
.contact .section-lead { color: var(--on-night-2); }
.next-steps { display: grid; gap: 14px; margin-top: 40px; }
.next-steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; text-wrap: pretty; }
.next-steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  font-size: .8125rem;
  color: #C7CDFF;
}
@media (max-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

.form-card {
  position: relative;
  display: grid;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 100px -40px rgba(0, 0, 0, .7);
}
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field { display: block; }
.field > label,
.field > legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0;
  font-size: .875rem;
  font-weight: 600;
}
.field > legend { margin-bottom: 10px; }
.opt { font-size: .8125rem; font-weight: 500; color: var(--muted); }

.input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft);
}
textarea.input { height: auto; min-height: 136px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.input::placeholder { color: #A29E95; opacity: 1; }
.input:hover { border-color: rgba(20, 19, 15, .3); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(51, 70, 232, .14); }
.field.has-error .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(200, 50, 47, .1); }
.field__error { font-size: .8125rem; font-weight: 500; color: var(--danger); }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-2);
  user-select: none;
  transition: background-color .25s var(--ease-soft), border-color .25s var(--ease-soft), color .25s var(--ease-soft);
}
.chip:hover span { border-color: rgba(20, 19, 15, .32); color: var(--ink); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; animation: chip-pop .4s var(--ease-out); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__hint { margin-top: -10px; font-size: .8125rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: 4px; }
.form__submit:disabled { cursor: progress; }
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.form.is-sending .form__submit .i { display: none; }
.form.is-sending .form__submit .spinner { display: block; }
.form__status { font-size: .875rem; font-weight: 500; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--danger); }
.form__privacy { margin-top: -8px; font-size: .8125rem; text-align: center; color: var(--muted); }

.form-success {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 56px) 8px;
  text-align: center;
  outline: none;
}
.form-success.is-in { animation: reveal .8s var(--ease-out) both; }
.success__icon svg { width: 76px; height: 76px; fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.success__icon circle { stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
.success__icon path { stroke-width: 3.5; stroke-dasharray: 34; stroke-dashoffset: 34; }
.form-success.is-in circle { animation: draw-stroke .8s var(--ease-out) .15s forwards; }
.form-success.is-in path { animation: draw-stroke .5s var(--ease-out) .65s forwards; }
.success__title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.success__text { max-width: 26em; margin-bottom: 8px; color: var(--ink-2); }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--on-night-2);
}
.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 56px;
  border-top: 1px solid var(--night-line);
}
.footer__brand p { max-width: 30em; margin-top: 16px; font-size: .9375rem; }
.footer__col { display: grid; align-content: start; justify-items: start; gap: 2px; }
.footer__col h2 { margin-bottom: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night); }
.footer__col a { padding: 5px 0; font-size: .9375rem; transition: color .2s var(--ease-soft); }
.footer__col a:hover { color: #fff; }
.footer__word {
  margin-top: clamp(48px, 7vw, 96px);
  padding-bottom: .06em;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 15vw, 13rem);
  line-height: .82;
  letter-spacing: -.04em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(244, 242, 237, .92) 20%, rgba(244, 242, 237, .04) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.footer__word em { font-style: italic; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--night-line);
  font-size: .875rem;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--on-night); }
.to-top .i { width: 16px; height: 16px; transition: translate .4s var(--ease-out); }
.to-top:hover .i { translate: 0 -3px; }
@media (max-width: 720px) {
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Simple pages (thanks / 404) --------------------------------------------- */
.simple {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px var(--gutter);
  overflow: hidden;
  overflow: clip;
  text-align: center;
}
.simple .hero__bg { z-index: -1; }
.simple__inner { display: grid; justify-items: center; gap: 18px; max-width: 520px; }
.simple__arch {
  position: relative;
  overflow: hidden;
  width: 112px;
  height: 140px;
  margin-bottom: 14px;
  border-radius: 56px 56px 10px 10px;
  background: var(--portal);
  box-shadow: 0 30px 60px -24px rgba(36, 51, 184, .6);
  animation: rise 1.2s var(--ease-out) both;
}
.simple__arch::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #FFF7EE, rgba(255, 220, 192, .7) 40%, transparent 72%);
  animation: breathe 6s ease-in-out infinite alternate;
}
.simple h1 { font-family: var(--font-serif); font-size: clamp(2.75rem, 2rem + 3vw, 4rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.simple h1 em { font-style: italic; color: var(--accent); }
.simple p { font-size: 1.0625rem; color: var(--ink-2); }
.simple .btn { margin-top: 10px; }
.simple > .brand { position: absolute; top: 24px; left: var(--gutter); }

/* Scroll reveal ----------------------------------------------------------- */
@media (scripting: enabled) {
  [data-reveal]:not(.is-in) { opacity: 0; }
  .group__head:not(.is-in)::before { transform: scaleX(0); }
  .steps:not(.is-in)::before { transform: scaleX(0); }
}
@media (scripting: enabled) and (max-width: 860px) {
  .steps:not(.is-in)::before { transform: scaleY(0); }
}
[data-reveal].is-in { animation: reveal 1.1s var(--ease-out) var(--d, 0s) both; }
.reveal-instant [data-reveal].is-in { animation: none; }

/* Failsafe: if main.js never runs, show everything after a moment */
@media (scripting: enabled) {
  html:not(.js-ready) [data-reveal],
  html:not(.js-ready) .hero [data-hero],
  html:not(.js-ready) .hero__title,
  html:not(.js-ready) .portal,
  html:not(.js-ready) .pop { animation: show .01s linear 2.5s forwards; }
  html:not(.js-ready) .ring--1,
  html:not(.js-ready) .ring--2,
  html:not(.js-ready) .stage__floor { animation: fade-show .01s linear 2.5s forwards; }
}

/* Pause continuous effects while their section is off-screen */
.is-paused,
.is-paused * { animation-play-state: paused !important; }

/* Keyframes --------------------------------------------------------------- */
@keyframes reveal { from { opacity: 0; transform: translate3d(0, 32px, 0); } to { opacity: 1; transform: none; } }
@keyframes show { to { opacity: 1; transform: none; } }
@keyframes fade-show { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 40px, 0); } }
@keyframes pop-in { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.9); } }
@keyframes slide-in { from { opacity: 0; transform: translate3d(24px, 0, 0) scale(.96); } }
@keyframes star-pop { from { opacity: 0; transform: scale(0) rotate(-30deg); } }
@keyframes knob { from { transform: translate3d(-10px, 0, 0); } }
@keyframes chip-pop { 40% { transform: scale(.94); } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes draw-stroke { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { opacity: .6; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3); } }
@keyframes ripple { 0% { opacity: 0; transform: scale(1); } 12% { opacity: .9; } 100% { opacity: 0; transform: scale(1.42); } }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -9px, 0); } }
@keyframes breathe { from { transform: scale(.94); } to { transform: scale(1.06); } }
@keyframes drift-a { to { transform: translate3d(38%, -22%, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-40%, 28%, 0) scale(.88); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes mote {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  15% { opacity: .9; }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translate3d(8px, -240px, 0); }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes glow { to { transform: translate3d(-12%, 14%, 0) scale(1.1); } }

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
  .marquee__track, .bob, .portal__glow, .portal__rays, .portal__sun, .portal__motes i,
  .ring--pulse, .contact__glow, .pulse-dot::after, .status__dot::after, .simple__arch::after { animation: none !important; }
  /* Entrances: show the finished state straight away instead of a 1ms animation */
  [data-reveal].is-in, .group__head.is-in::before, .web-main.is-in .dev-phone, .is-in .pill, .is-in .notif,
  .is-in .meter i, .is-in .dash__chart i, .is-in .stars .i, .is-in .switch::after,
  .form-success.is-in, .simple__arch { animation: none !important; }
}
