/* ==========================================================================
   Craelyx — shared foundation (tokens, type, nav, buttons, loader, footer)
   Brand: Midnight #0B0D12 · Bone #F2F1EC · Ember #FF5A1F · Space Grotesk
   ========================================================================== */

:root {
  --bg: #F7F6F2;
  --bg-2: #EFEDE6;
  --bg-3: #E6E4DD;
  --surface: #FFFFFF;
  --ink: #0B0D12;
  --ink-2: #2A2E38;
  --muted: #5E626C;
  --line: #E2E0D8;
  --line-2: #D4D1C7;
  --ember: #FF5A1F;
  --ember-ink: #C2410C;
  --ember-soft: #FFE6DB;
  --bone: #F2F1EC;
  --midnight: #0B0D12;
  --contour: #17463F;

  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

/* Film grain — keeps the light surfaces from feeling flat */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 9990;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
p { margin: 0; }
.display { font-size: clamp(44px, 7.4vw, 104px); }
.h2 { font-size: clamp(36px, 5.2vw, 72px); }
.h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.55; max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); flex: none; }
.eyebrow--plain::before { display: none; }
.accent { color: var(--ember-ink); }
.mono { font-family: var(--f-mono); }

.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--ink); --fg-btn: var(--bone);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--bg-btn); color: var(--fg-btn);
  font-family: var(--f-display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ember); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 34px -12px rgba(255, 90, 31, .55); }
.btn .btn__label { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn .btn__label span { display: block; transition: transform .5s var(--ease-out); }
.btn .btn__label span + span { position: absolute; top: 100%; left: 0; }
.btn:hover .btn__label span { transform: translateY(-100%); }
.btn__icon {
  width: 30px; height: 30px; margin-right: -12px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bone); color: var(--ink);
  transition: transform .5s var(--ease-out);
}
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bone); box-shadow: none; }
.btn--ghost .btn__icon { background: var(--ink); color: var(--bone); }
.btn--ghost:hover .btn__icon { background: var(--bone); color: var(--ink); }
.btn--light { --bg-btn: var(--bone); --fg-btn: var(--ink); }
.btn--light .btn__icon { background: var(--ink); color: var(--bone); }
.btn--light:hover { color: #fff; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--sm .btn__icon { width: 26px; height: 26px; margin-right: -8px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 500; position: relative; }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: currentColor; transform-origin: right; transform: scaleX(0); transition: transform .5s var(--ease-out); }
.link-arrow:hover::after { transform-origin: left; transform: scaleX(1); }
.link-arrow svg { transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h); display: flex; align-items: center;
  transition: transform .6s var(--ease-out), background .4s, box-shadow .4s, height .4s;
}
.nav.is-scrolled {
  background: rgba(247, 246, 242, .72);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 rgba(11, 13, 18, .06);
  height: 64px;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -0.045em; line-height: 1; }
.brand svg { width: 30px; height: 30px; transition: transform .8s var(--ease-out); }
.brand:hover svg { transform: rotate(-30deg); }
.brand__badge { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; font-weight: 500; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--bone); margin-left: 4px; }
.nav__links { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px var(--line); }
.nav__links a { position: relative; padding: 8px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .3s; z-index: 1; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__pill { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: var(--surface); box-shadow: 0 2px 8px rgba(11, 13, 18, .08); transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; opacity: 0; z-index: 0; pointer-events: none; }
.nav__links { position: relative; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bone); place-items: center; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .4s var(--ease-out), background .3s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: currentColor; transition: transform .4s var(--ease-out); }
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(6px); }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 899; background: var(--bg);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--f-display); font-size: clamp(36px, 10vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease-out), opacity .7s; }
.mobile-menu nav a small { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
body.menu-open .mobile-menu nav a { transform: none; opacity: 1; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .05s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .1s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .15s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .2s; }
body.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .25s; }

@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__cta .btn { display: none; }
}

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 950; transform-origin: 0 50%; transform: scaleX(0); background: var(--ember); pointer-events: none; }

/* ---------- Loader — uses the brand loader animations (assets/img/*-loader.svg) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bone);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader.is-gone { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 22px; transition: transform 1s var(--ease-io), opacity .6s; }
.loader.is-done .loader__inner { transform: translateY(-70px); opacity: 0; }
.loader__mark { width: clamp(96px, 14vw, 132px); height: auto; overflow: visible; }
.loader__word { overflow: hidden; font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.045em; line-height: 1.2; }
.loader__word span { display: inline-block; transform: translateY(110%); animation: lw-up .9s var(--ease-out) .5s forwards; }
.loader__word em { font-style: normal; color: var(--ember); }
@keyframes lw-up { to { transform: translateY(0); } }
.loader__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--ember); transform-origin: 0 50%; transform: scaleX(0); }

/* Craelyx loading mark — from craelyx-loader.svg (2.8s loop) */
.cxl { --ink: #0B0D12; --spark: #FF5A1F; }
.cxl-arc { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 100 200; }
.cxl-outer { stroke-width: 15; animation: cxl-outer 2.8s infinite; }
.cxl-inner { stroke-width: 8; animation: cxl-inner 2.8s infinite; }
.cxl-spark { fill: var(--spark); transform-box: view-box; transform-origin: 91px 60px; animation: cxl-spark 2.8s infinite; }
@keyframes cxl-outer {
  0%      { stroke-dashoffset: 101; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  32.14%  { stroke-dashoffset: 0; }
  69.64%  { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  91.07%, 100% { stroke-dashoffset: -101; }
}
@keyframes cxl-inner {
  0%, 6.43% { stroke-dashoffset: 101; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  33.93%  { stroke-dashoffset: 0; }
  72.14%  { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  91.07%, 100% { stroke-dashoffset: -101; }
}
@keyframes cxl-spark {
  0%, 28.57% { transform: rotate(-45deg) scale(0); animation-timing-function: cubic-bezier(.34,1.7,.64,1); }
  41.07%  { transform: rotate(45deg) scale(1); }
  46.43%  { transform: rotate(45deg) scale(1); animation-timing-function: ease-in-out; }
  55.36%  { transform: rotate(45deg) scale(1.1); animation-timing-function: ease-in-out; }
  66.07%  { transform: rotate(45deg) scale(1); }
  80.36%  { transform: rotate(45deg) scale(1); animation-timing-function: cubic-bezier(.36,0,.66,-.56); }
  93.57%, 100% { transform: rotate(135deg) scale(0); }
}

/* SurvX loading mark — from survx-loader.svg (3s loop) */
.sxl { --ink: #0B0D12; --spark: #FF5A1F; }
.sxl-station { fill: none; stroke: var(--ink); stroke-width: 4; transform-box: view-box; transform-origin: 24px 97px; animation: sxl-station 3s infinite; }
.sxl-traverse { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100 200; animation: sxl-traverse 3s infinite; }
.sxl-ping { fill: none; stroke: var(--spark); stroke-width: 2.6; transform-box: view-box; transform-origin: 93px 26px; opacity: 0; animation: sxl-ping 3s infinite; }
.sxl-spark { fill: var(--spark); transform-box: view-box; transform-origin: 93px 26px; animation: sxl-spark 3s infinite; }
@keyframes sxl-station {
  0%      { transform: scale(0); animation-timing-function: cubic-bezier(.34,1.7,.64,1); }
  10%     { transform: scale(1); }
  76.67%  { transform: scale(1); animation-timing-function: cubic-bezier(.36,0,.66,-.56); }
  85%, 100% { transform: scale(0); }
}
@keyframes sxl-traverse {
  0%, 5%  { stroke-dashoffset: 101; animation-timing-function: cubic-bezier(.37,0,.63,1); }
  45%     { stroke-dashoffset: 0; }
  78.33%  { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  95%, 100% { stroke-dashoffset: -101; }
}
@keyframes sxl-ping {
  0%, 43.99% { opacity: 0; transform: scale(1); }
  44%     { opacity: .9; transform: scale(1); stroke-width: 2.6; animation-timing-function: cubic-bezier(.33,1,.68,1); }
  65%, 100% { opacity: 0; transform: scale(3.25); stroke-width: .15; }
}
@keyframes sxl-spark {
  0%, 42.67% { transform: rotate(-45deg) scale(0); animation-timing-function: cubic-bezier(.34,1.7,.64,1); }
  54%     { transform: rotate(45deg) scale(1); }
  87.33%  { transform: rotate(45deg) scale(1); animation-timing-function: cubic-bezier(.36,0,.66,-.56); }
  98.33%, 100% { transform: rotate(135deg) scale(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cxl-outer, .cxl-inner, .cxl-spark, .sxl-station, .sxl-traverse, .sxl-ping, .sxl-spark { animation: none !important; }
  .cxl-arc, .sxl-traverse { stroke-dashoffset: 0; }
  .cxl-spark, .sxl-spark { transform: rotate(45deg); }
}
/* Use as a dark-surface variant */
.cxl--light, .sxl--light { --ink: #F2F1EC; }

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 9999; background: var(--bone);
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(100%); transition: transform .75s var(--ease-io);
}
.curtain svg { width: clamp(96px, 14vw, 132px); opacity: 0; transition: opacity .3s .4s; }
body.is-leaving .curtain { transform: translateY(0); pointer-events: all; }
body.is-leaving .curtain svg { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal].is-in { opacity: 1; transform: none; }

.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-split].is-in .split-word { transform: none; }

/* ---------- Spotlight card ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 90, 31, .11), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 90, 31, .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; user-select: none; -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; flex: none; align-items: center; gap: 48px; padding-right: 48px; animation: marquee var(--speed, 40s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink); color: var(--bone); padding: clamp(72px, 9vw, 120px) 0 0; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 64px; border-bottom: 1px solid #23262F; }
.footer__lead { display: grid; gap: 22px; align-content: start; max-width: 360px; }
.footer__lead p { color: #A3A7B1; font-size: 15.5px; }
.footer h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #8B8F9A; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: #D6D7D2; font-size: 15.5px; transition: color .3s; }
.footer ul a:hover { color: var(--ember); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; font-size: 13.5px; color: #8B8F9A; }
.footer__giant { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2vw; padding: 2vw 0 0; line-height: .78; user-select: none; }
.footer__giant span { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.06em; font-size: clamp(90px, 23vw, 340px); color: transparent; -webkit-text-stroke: 1px #2F333D; transition: color 1.2s var(--ease-out); background: linear-gradient(180deg, #F2F1EC 0%, #F2F1EC 60%, rgba(242,241,236,0) 100%); -webkit-background-clip: text; background-clip: text; background-size: 100% 0%; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 1.6s var(--ease-out); }
.footer__giant.is-in span { background-size: 100% 100%; }
.footer__giant svg { width: clamp(70px, 16vw, 230px); flex: none; margin-bottom: 1.6vw; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #2F333D; color: #D6D7D2; transition: background .3s, color .3s, box-shadow .3s; }
.footer__social a:hover { background: var(--ember); color: #fff; box-shadow: none; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__lead { grid-column: 1 / -1; }
}

/* ---------- Forms ---------- */
.field { position: relative; display: grid; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
  padding: 26px 0 12px; font-size: 18px; border-radius: 0; outline: none; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; left: 0; top: 24px; font-size: 18px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease-out), color .3s, font-size .4s var(--ease-out); transform-origin: 0 0; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.72); color: var(--ember-ink); }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choice-group legend { font-size: 15px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.choice span:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--bone); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }

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

/* Form send-error message */
.form-error { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: #C2412D; }
.form-error a { color: inherit; text-decoration: underline; }
.sx-demo .form-error { color: #FF8A73; }
