/* =========================================================
   The Healing Forward Study — Landing Page
   Palette: midnight + dreamy aurora (sky, lavender, peach)
   ========================================================= */

:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --bg-3: #121527;
  --ink: #f4f1ec;
  --ink-soft: rgba(244, 241, 236, 0.72);
  --ink-mute: rgba(244, 241, 236, 0.5);
  --line: rgba(244, 241, 236, 0.12);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.09);

  --sky: #9ad7ff;
  --lav: #c4a9ff;
  --peach: #ffc6a5;
  --rose: #ff9ec7;
  --grad: linear-gradient(110deg, var(--sky) 0%, var(--lav) 45%, var(--peach) 100%);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--lav); color: var(--bg); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Ambient layers ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-10%); } 30% { transform: translate(3%,-15%); }
  50% { transform: translate(12%,9%); } 70% { transform: translate(9%,4%); } 90% { transform: translate(-1%,7%); }
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(circle, rgba(196,169,255,.16), rgba(154,215,255,.06) 40%, transparent 65%);
  transition: opacity .6s; will-change: transform;
}
@media (hover: hover) { body:hover .cursor-glow { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.7em; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-glow {
  color: #0b0b14; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 10px 40px -10px rgba(196,169,255,.7), inset 0 1px 0 rgba(255,255,255,.6);
  animation: shimmer 6s linear infinite;
}
.btn-glow:hover { box-shadow: 0 16px 60px -8px rgba(196,169,255,.9), 0 0 0 6px rgba(196,169,255,.12), inset 0 1px 0 rgba(255,255,255,.6); }
@keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.btn-ghost {
  color: var(--ink); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-small { padding: .75em 1.25em; font-size: .85rem; }
.btn-block { width: 100%; padding: 1.15em; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 1160px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(10, 11, 22, .35); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s, transform .5s var(--ease), box-shadow .4s;
}
.nav.scrolled { background: rgba(10, 11, 22, .72); box-shadow: 0 10px 40px -20px rgba(0,0,0,.8); }
.nav.hidden { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 18px rgba(196,169,255,.8); position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bg); opacity: .85; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
  padding: 130px 0 120px;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 115%; object-fit: cover; object-position: var(--pos, center 50%);
  transform-origin: center; opacity: 0; transform: scale(1.08) translateY(var(--py, 0px));
  transition: opacity 1.8s ease-in-out;
  filter: saturate(1.05) contrast(1.02);
  will-change: transform, opacity;
}
.hero-img.is-on { opacity: 1; z-index: 2; }
.hero-img.is-off { opacity: 1; z-index: 1; }
.hero-img.is-on, .hero-img.is-off { animation: kenburns 10s ease-out forwards; }
.hero-img:nth-child(even).is-on, .hero-img:nth-child(even).is-off { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.08) translateY(var(--py, 0px)); } to { transform: scale(1.2) translateY(var(--py, 0px)); } }
@keyframes kenburns-alt { from { transform: scale(1.2) translate(2%, var(--py, 0px)); } to { transform: scale(1.08) translate(-1%, var(--py, 0px)); } }
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 75% 10%, rgba(154,215,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(7,8,15,.42) 0%, rgba(14,12,30,.12) 38%, rgba(7,8,15,.55) 72%, rgba(7,8,15,.94) 92%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,8,15,.82) 0%, rgba(7,8,15,.55) 38%, rgba(7,8,15,.08) 68%);
}
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.b1 { width: 46vw; height: 46vw; left: -10vw; top: 10%; background: radial-gradient(circle, var(--lav), transparent 65%); animation: float1 18s ease-in-out infinite alternate; }
.b2 { width: 40vw; height: 40vw; right: -8vw; top: -10%; background: radial-gradient(circle, var(--sky), transparent 65%); animation: float2 22s ease-in-out infinite alternate; opacity: .45; }
.b3 { width: 36vw; height: 36vw; left: 35%; bottom: -15%; background: radial-gradient(circle, var(--peach), transparent 65%); animation: float3 20s ease-in-out infinite alternate; opacity: .35; }
@keyframes float1 { to { transform: translate(14vw, -6vh) scale(1.15); } }
@keyframes float2 { to { transform: translate(-12vw, 12vh) scale(.9); } }
@keyframes float3 { to { transform: translate(-10vw, -10vh) scale(1.2); } }

.hero-inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 8px 16px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dffb2; box-shadow: 0 0 0 0 rgba(125,255,178,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(125,255,178,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,178,0); } }

.hero-title {
  font-family: var(--serif); font-size: clamp(3.2rem, 9.5vw, 8.6rem); line-height: .92; letter-spacing: -.02em;
  margin-bottom: 30px; text-shadow: 0 10px 60px rgba(7,8,15,.5);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span, .hero-title .line > em > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.hero-title em { font-style: italic; }
.hero-title em span {
  background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite; padding-right: .06em;
}
.loaded .hero-title .line > span, .loaded .hero-title .line > em > span { transform: none; }
.loaded .hero-title .line:nth-child(2) > em > span { transition-delay: .12s; }
.loaded .hero-title .line:nth-child(3) > span { transition-delay: .24s; }
.no-js .hero-title .line > span { transform: none; }

.hero-sub { max-width: 600px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); margin-bottom: 36px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips span { color: var(--peach); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; color: var(--ink-mute);
}
.mouse { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 7px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-height: 720px), (hover: none) { .scroll-cue { display: none; } }

/* ---------- Section basics ---------- */
section { position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute);
}
.section-label span {
  font-family: var(--serif); font-size: 1rem; letter-spacing: 0; font-style: italic;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.015em; max-width: 16ch; margin-bottom: 40px; }
.section-title em, .why-copy h2 em, .apply-title em {
  font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em;
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- The study ---------- */
.question { padding: clamp(80px, 11vw, 140px) 0 clamp(50px, 7vw, 90px); }
.study-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.big-quote {
  margin: 0; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em;
}
.big-quote .w { opacity: .14; transition: opacity .4s ease; }
.big-quote .w.on { opacity: 1; }
.big-quote mark { background: none; color: inherit; font-style: italic; }
.big-quote mark .w.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-stat { padding: 32px 30px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line); }
.stat-number {
  font-family: var(--serif); font-size: clamp(5rem, 11vw, 8.5rem); line-height: .85; letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 20px 60px rgba(196,169,255,.35));
}
.stat-number .unit { font-style: italic; }
.stat-caption { color: var(--ink-soft); margin: 16px 0 0; }
.stat-caption em { color: var(--ink); font-family: var(--serif); font-size: 1.2em; }
@media (max-width: 860px) { .study-grid { grid-template-columns: 1fr; } }
.matters {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 90px); align-items: start;
  margin-top: clamp(56px, 8vw, 100px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line);
}
.matters-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -.015em; margin: 0; }
.matters-title em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.matters-copy { margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 60ch; }
.matters-copy strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .matters { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.journey { padding: clamp(50px, 7vw, 90px) 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.how-left .section-title { margin-bottom: 30px; }
.qualify-head { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.qualify { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qualify li { padding: 9px 14px 9px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; background: var(--glass); border: 1px solid var(--line); }
.qualify li::before { content: "✓"; margin-right: 8px; font-weight: 800; color: var(--sky); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.step:nth-child(2) { --d: .07s; } .step:nth-child(3) { --d: .14s; } .step:nth-child(4) { --d: .21s; }
.step:hover { transform: translateX(6px); background: var(--glass-strong); border-color: rgba(154,215,255,.35); }
.step-num { flex: none; font-family: var(--serif); font-style: italic; font-size: 2.3rem; line-height: 1; width: 48px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.step p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* ---------- Facility strip ---------- */
.facility { padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); }
.facility-head .section-title { margin-bottom: 34px; }
.strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 6px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.strip::-webkit-scrollbar { display: none; }
.tile {
  --h: clamp(300px, 30vw, 400px);
  position: relative; flex: none; height: var(--h); width: calc(var(--h) * .75); scroll-snap-align: start;
  overflow: hidden; border-radius: 22px; padding: 0; border: 0; cursor: zoom-in;
  background: var(--bg-3); color: var(--ink); text-align: left; isolation: isolate;
}
.tile:first-child { width: calc(var(--h) * 1.25); }
.tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(7,8,15,.8)); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow .5s; }
.js .tile.reveal img { transform: scale(1.12); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .tile.reveal.in img { transform: scale(1.03); }
.tile:hover img, .tile:focus-visible img, .js .tile.reveal.in:hover img, .js .tile.reveal.in:focus-visible img { transform: scale(1.1); transition-delay: 0s; }
.tile:hover::before { box-shadow: inset 0 0 0 1px rgba(196,169,255,.6); }
.tile-cap { position: absolute; z-index: 3; left: 18px; bottom: 14px; }
.tile-cap b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
@media (max-width: 560px) { .tile { --h: 340px; } .tile:first-child { width: 82vw; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 100px); }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 600; transition: color .3s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--lav); }
.plus { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: transform .5s var(--ease), background .3s, border-color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
details[open] .plus { transform: rotate(180deg); background: var(--grad); border-color: transparent; color: #0b0b14; }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.answer { overflow: hidden; }
.answer p { color: var(--ink-soft); padding: 0 50px 20px 0; margin: 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .answer p { padding-right: 0; } }

/* ---------- Apply ---------- */
.apply { padding: clamp(60px, 8vw, 110px) 0; overflow: hidden; isolation: isolate; background: radial-gradient(80% 60% at 50% 100%, rgba(196,169,255,.12), transparent), var(--bg); }
.aurora-apply .blob { opacity: .3; }
.apply-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.apply-title { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem); line-height: .95; letter-spacing: -.02em; margin-bottom: 26px; }
.apply-copy > p:not(.section-label) { color: var(--ink-soft); font-size: 1.08rem; max-width: 44ch; }
.apply-perks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.apply-perks li { padding: 12px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; }
@media (max-width: 960px) { .apply-grid { grid-template-columns: 1fr; } }

.form-shell {
  position: relative; padding: clamp(24px, 4vw, 44px); border-radius: 32px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12);
}
.form-shell::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(154,215,255,.7), transparent 30%, transparent 70%, rgba(255,198,165,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.form { display: grid; gap: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px;
  background: rgba(7,8,15,.45); color: var(--ink); border: 1px solid rgba(255,255,255,.14);
  font: 500 1rem var(--sans); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { cursor: pointer; padding-right: 44px; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field.select label { right: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field label {
  position: absolute; left: 19px; top: 18px; color: var(--ink-mute); font-size: 1rem; pointer-events: none;
  transform-origin: left top; transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lav); background: rgba(7,8,15,.6); box-shadow: 0 0 0 4px rgba(196,169,255,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label, .field label.always-up {
  transform: translateY(-11px) scale(.74); color: var(--lav);
}
.field.invalid input, .field.invalid select { border-color: #ff8a9c; box-shadow: 0 0 0 4px rgba(255,138,156,.12); }
/* hide number spinners */
.field input[type=number]::-webkit-inner-spin-button, .field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; }

.chips-field { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.chips-field legend { font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; padding: 0; }
.chips-field.invalid legend { color: #ff8a9c; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(7,8,15,.4); border: 1px solid rgba(255,255,255,.16); color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.chip:hover span { border-color: rgba(196,169,255,.6); color: var(--ink); }
.chip input:checked + span { background: var(--grad); color: #0b0b14; border-color: transparent; box-shadow: 0 6px 20px -6px rgba(196,169,255,.7); }
.chip input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }

.consent { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; margin-top: 4px; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.35);
  display: grid; place-items: center; transition: all .3s var(--ease);
}
.consent .box::after { content: "✓"; font-size: .8rem; font-weight: 800; color: #0b0b14; transform: scale(0); transition: transform .3s var(--ease); }
.consent input:checked + .box { background: var(--grad); border-color: transparent; }
.consent input:checked + .box::after { transform: scale(1); }
.consent input:focus-visible + .box { outline: 2px solid var(--sky); outline-offset: 2px; }
.consent.invalid .box { border-color: #ff8a9c; }

.form-error { min-height: 0; margin: 0; color: #ff9fb0; font-size: .9rem; font-weight: 600; }
.form-error:empty { display: none; }
.form-fine { text-align: center; font-size: .8rem; color: var(--ink-mute); margin: 0; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(11,11,20,.25); border-top-color: #0b0b14; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.is-loading .spinner { display: inline-block; }
.is-loading .arrow { display: none; }
.is-loading { pointer-events: none; opacity: .85; }

.form-success { text-align: center; padding: 50px 10px; outline: none; }
.form-success h3 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); margin: 26px 0 12px; }
.form-success p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto; }
.success-ring { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 0 12px rgba(196,169,255,.12), 0 20px 60px -10px rgba(196,169,255,.8); animation: pop .8s var(--ease); }
.success-ring svg { width: 56px; height: 56px; fill: none; stroke: #0b0b14; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.success-ring circle { stroke: none; }
.success-ring path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding-bottom: 40px; }
.crisis { padding: 22px var(--gutter); text-align: center; background: linear-gradient(90deg, rgba(154,215,255,.08), rgba(196,169,255,.1), rgba(255,198,165,.08)); border-bottom: 1px solid var(--line); }
.crisis p { margin: 0 auto; max-width: 900px; font-size: .92rem; color: var(--ink-soft); }
.crisis b { color: var(--ink); }
.crisis a { color: var(--sky); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(154,215,255,.4); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 24px; }
.footer-tag { color: var(--ink-mute); font-size: .88rem; margin: 10px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-size: .9rem; transition: color .3s; }
.footer-links a:hover { color: var(--ink); }
.footer-fine { border-top: 1px solid var(--line); padding-top: 24px; }
.footer-fine p { color: var(--ink-mute); font-size: .78rem; max-width: 900px; margin-bottom: 8px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(5,6,12,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 82vh; max-height: 82svh; width: auto; border-radius: 18px; box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); transform: scale(.96); transition: transform .5s var(--ease), opacity .3s; }
.lightbox.open img { transform: none; }
.lightbox figcaption { margin-top: 16px; font-family: var(--serif); font-size: 1.5rem; text-align: center; }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  transition: background .3s, transform .3s var(--ease);
}
.lb-close { top: 20px; right: 20px; width: 48px; height: 48px; font-size: 1.1rem; }
.lb-nav { top: 50%; width: 56px; height: 56px; font-size: 2rem; line-height: 1; transform: translateY(-50%); padding-bottom: 4px; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: 20px; transform: none; } .lb-prev { left: calc(50% - 70px); } .lb-next { right: calc(50% - 70px); } }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 8px 8px 8px 16px; }
  .brand-text { font-size: 1.15rem; }
  .hero { padding-top: 120px; align-items: flex-end; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-veil { background: linear-gradient(180deg, rgba(7,8,15,.45) 0%, rgba(7,8,15,.4) 35%, rgba(7,8,15,.55) 62%, rgba(7,8,15,.88) 86%, var(--bg) 100%); }
  .hero-title, .hero-sub, .hero-chips, .eyebrow { text-shadow: 0 2px 22px rgba(0,0,0,.55); }
  .blob { filter: blur(60px); }
}

/* ---------- 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; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .line > span, .hero-title .line > em > span { transform: none; }
  .big-quote .w { opacity: 1; }
}

/* ---------- Nav contact ---------- */
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { text-decoration: none; font-size: .88rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; white-space: nowrap; }
.nav-phone:hover { color: var(--sky); }
@media (max-width: 1100px) { .nav-phone { display: none; } }
@media (max-width: 400px) { .nav .brand-study { display: none; } }

/* ---------- Referral bar ---------- */
.refer { padding: 0 0 clamp(50px, 7vw, 80px); }
.refer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 22px 26px; border-radius: 24px;
  background: linear-gradient(110deg, rgba(154,215,255,.12), rgba(196,169,255,.12) 50%, rgba(255,198,165,.12));
  border: 1px solid rgba(255,255,255,.14);
}
.refer-bar p { margin: 0; }
.refer-title { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.15; color: var(--ink); }
.refer-sub { margin-top: 4px !important; color: var(--ink-soft); }
.refer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .refer-actions { width: 100%; } .refer-actions .btn { flex: 1 1 100%; } }
.refer-actions .btn { gap: .55em; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contact card (apply section) ---------- */
.contact-card { margin-top: 30px; padding: 24px; border-radius: 22px; max-width: 420px; background: var(--glass); border: 1px solid var(--line); }
.contact-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 6px; }
.contact-phone { display: inline-block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 14px; }
.contact-actions .btn { gap: .5em; }
.form-fine .ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; margin-right: .4em; }
.contact-email { color: var(--ink-soft); font-size: .92rem; word-break: break-all; }
.contact-email:hover { color: var(--ink); }
.answer a { color: var(--sky); }

/* ---------- Footer contact ---------- */
.footer-contact { margin: 14px 0 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.8; }
.footer-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-contact a:hover { color: var(--sky); }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; padding: 6px; border-radius: 20px;
    background: rgba(10,11,22,.82); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 20px 50px -15px rgba(0,0,0,.9);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 8px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: .9rem; background: rgba(255,255,255,.07); }
  .mobile-bar .ico { width: 1.05em; height: 1.05em; }
  .mobile-bar .mb-apply { background: var(--grad); color: #0b0b14; }
  .footer { padding-bottom: 110px; }
}
.form-error a { color: var(--sky); }

/* ---------- Step-by-step form ---------- */
.form-shell { scroll-margin-top: 90px; }
.fsteps-head { margin-bottom: 4px; }
.fstep-count { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.fstep-count b { color: var(--ink); }
.fstep-count #stepName { color: var(--lav); }
.progress { --p: .25; height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad); transform: scaleX(var(--p)); transform-origin: left; transition: transform .7s var(--ease); box-shadow: 0 0 18px rgba(196,169,255,.6); }
.fstep { display: grid; gap: 16px; }
.js .fstep:not(.is-active) { display: none; }
.js .fstep.is-active { animation: step-in .55s var(--ease); }
.js .fstep.is-active.from-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-28px); } }
.fstep-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.3rem); line-height: 1.05; margin: 6px 0 0; outline: none; }
.fstep-sub { margin: -8px 0 4px; color: var(--ink-soft); font-size: .95rem; }
.fstep-cheer { margin: 4px 0 -6px; font-size: .9rem; font-weight: 600; color: var(--peach); }
.fstep-nav { display: flex; gap: 10px; }
.fstep-nav .btn { justify-content: center; }
.fstep-next, .fstep-submit { flex: 1; }
.js .fstep-submit, .js .on-last .fstep-next { display: none; }
.js .on-last .fstep-submit { display: inline-flex; }
html:not(.js) .fstep-next, .fstep-back[hidden] { display: none; }
.fstep-back .arrow.back { margin-right: 2px; }
.fstep-back:hover .arrow.back { transform: translateX(-3px); }

/* ---------- Success: what happens next ---------- */
.next-label { margin: 34px 0 16px !important; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute) !important; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 400px; text-align: left; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 40px; opacity: 0; animation: tl-in .7s var(--ease) forwards; }
.timeline li:nth-child(1) { animation-delay: .7s; } .timeline li:nth-child(2) { animation-delay: .95s; }
.timeline li:nth-child(3) { animation-delay: 1.2s; } .timeline li:nth-child(4) { animation-delay: 1.45s; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 2px solid rgba(196,169,255,.55); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 24px; bottom: 2px; width: 2px; border-radius: 2px; background: linear-gradient(rgba(196,169,255,.6), rgba(196,169,255,.15)); transform-origin: top; animation: line-grow .8s .2s var(--ease) both; animation-delay: inherit; }
.timeline li.done::before { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 5px rgba(196,169,255,.15), 0 0 16px rgba(196,169,255,.7); }
.timeline b { display: block; font-size: 1rem; margin-bottom: 2px; }
.timeline span { display: block; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.timeline span span { display: inline; }
@keyframes tl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes line-grow { from { transform: scaleY(0); } }

/* ---------- Mobile Apply: one gentle pulse when the bar first appears ---------- */
.mobile-bar.pulse-once .mb-apply { animation: apply-pulse 1.4s .55s var(--ease) 1; }
@keyframes apply-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196,169,255,.75); transform: scale(1); }
  35% { transform: scale(1.05); }
  100% { box-shadow: 0 0 0 16px rgba(196,169,255,0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .timeline li { opacity: 1; } }

/* ---------- What is NYSHIP ---------- */
.nyship { position: relative; padding: clamp(60px, 8vw, 110px) 0; overflow: hidden; overflow: clip; }
.nyship::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 45% at 10% 20%, rgba(154,215,255,.09), transparent 70%); }
.nyship .container { position: relative; }
.nyship-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.nyship-lead { color: var(--ink-soft); font-size: clamp(1.02rem, 1.5vw, 1.15rem); margin: 0; }
.nyship-lead strong { color: var(--ink); font-weight: 600; }
.nyship-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ny-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ny-card { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, background .4s; }
.ny-card:hover { transform: translateY(-4px); background: var(--glass-strong); border-color: rgba(154,215,255,.35); }
.ny-card h3 { font-size: 1.02rem; font-weight: 700; margin: 14px 0 6px; }
.ny-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.ny-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(140deg, rgba(154,215,255,.22), rgba(196,169,255,.18)); border: 1px solid rgba(255,255,255,.12); }
.ny-ico svg { width: 21px; height: 21px; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ny-check { padding: clamp(24px, 3vw, 34px); border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.13); }
.ny-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.ny-list li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--ink-soft); }
.ny-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #0b0b14; background: var(--grad); }
.ny-list b { color: var(--ink); }
.ny-list a, .ny-note a { color: var(--sky); }
.ny-note { font-size: .85rem; color: var(--ink-mute); margin: 0 0 22px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.16); }
.ny-check .btn { width: 100%; }
.chips-hint { margin: -4px 0 10px; font-size: .8rem; color: var(--ink-mute); }
.chips-hint a { color: var(--sky); }
.nyship { scroll-margin-top: 20px; }
@media (max-width: 960px) { .nyship-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .ny-cards { grid-template-columns: 1fr; gap: 10px; }
  .ny-card { display: grid; grid-template-columns: 42px 1fr; gap: 2px 14px; padding: 16px; }
  .ny-ico { grid-row: span 2; }
  .ny-card h3 { margin: 0; align-self: end; }
 
}

/* ---------- NYSHIP: job examples + easy to mix up ---------- */
.ny-more { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(16px, 2.4vw, 24px); margin-top: clamp(24px, 3vw, 36px); align-items: stretch; }
.ny-jobs, .ny-mixup { padding: clamp(24px, 3vw, 34px); border-radius: 28px; border: 1px solid rgba(255,255,255,.13); }
.ny-jobs { background: radial-gradient(90% 80% at 0% 0%, rgba(154,215,255,.10), transparent 60%), linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.ny-mixup { background: radial-gradient(90% 80% at 100% 0%, rgba(255,158,199,.10), transparent 60%), linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.ny-box-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.1; margin: -2px 0 20px; }
.ny-box-title em { font-style: italic; color: var(--rose); }
.job-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.job-chips li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 10px; border-radius: 999px; font-size: .9rem; font-weight: 600; background: rgba(7,8,15,.4); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease), background .3s; }
.job-chips li:hover { border-color: rgba(154,215,255,.5); background: rgba(154,215,255,.07); transform: translateY(-2px); }
.job-chips span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: .85rem; line-height: 1; }
.ny-fine { margin: 18px 0 0; font-size: .8rem; color: var(--ink-mute); }
.mix-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mix-list li { position: relative; padding-left: 32px; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.mix-list li::before { content: "✕"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: var(--rose); background: rgba(255,158,199,.12); border: 1px solid rgba(255,158,199,.35); }
.mix-list b { display: block; color: var(--ink); font-weight: 700; }
.mix-list em { color: var(--ink); font-style: normal; font-weight: 600; }
.mix-help { margin: 22px 0 0; padding: 14px 16px; border-radius: 16px; font-size: .88rem; color: var(--ink-soft); background: rgba(154,215,255,.07); border: 1px solid rgba(154,215,255,.2); }
.mix-help a { color: var(--sky); font-weight: 600; white-space: nowrap; }
@media (max-width: 960px) { .ny-more { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .job-chips li { font-size: .86rem; border-radius: 16px; } }

/* ---------- Visual sweep refinements ---------- */
h1, h2, h3, .fstep-title, .ny-box-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
.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; }

/* NYSHIP pill doubles as a link to the explainer */
.qualify li.qualify-has-link { padding: 0; border-color: rgba(154,215,255,.35); background: rgba(154,215,255,.07); transition: border-color .3s, background .3s; }
.qualify li.qualify-has-link::before { display: none; }
.qualify-has-link a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; color: var(--ink); text-decoration: none; }
.qualify-has-link a::before { content: "✓"; font-weight: 800; color: var(--sky); }
.qualify li.qualify-has-link:hover { border-color: rgba(154,215,255,.7); background: rgba(154,215,255,.12); }
.q-badge { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 800; color: #0b0b14; background: var(--sky); }

/* Job pills: line icons that match the rest of the site */
.job-chips span { background: linear-gradient(140deg, rgba(154,215,255,.2), rgba(196,169,255,.16)); border: 1px solid rgba(255,255,255,.1); }
.job-chips svg { width: 14px; height: 14px; fill: none; stroke: var(--sky); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.job-chips li { padding-left: 8px; }

@media (max-width: 860px) {
  .faq-wrap { gap: 0; }
  .faq-wrap .section-title { margin-bottom: 28px; }
}
/* Phones and tablets: the form comes right after the heading, the contact card after it */
@media (max-width: 960px) {
  .apply-grid { gap: 0; }
  .apply-copy { display: contents; }
  .apply-grid > .form-shell { order: 4; margin-top: 30px; }
  .apply-copy .contact-card { order: 5; margin-top: 22px; max-width: none; }
}
@media (max-width: 560px) {
  .comp-footer .btn { flex: 1 1 100%; }
  .qualify-has-link a { align-items: flex-start; }
  .q-badge { margin-top: 1px; }
}

/* ---------- NYSHIP: real sample cards ---------- */
.card-gallery { margin: 0 0 26px; }
.card-frame { display: block; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.18); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card-frame img { display: block; width: 100%; height: auto; border-radius: 11px; }
.card-frame:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.logo-frame img { width: auto; max-height: 100%; border-radius: 0; }
@media (min-width: 961px) { .nyship-grid > div:first-child { position: sticky; top: 100px; } }

/* ---------- NYSHIP: illustrated card + real samples ---------- */
.flip-wrap { perspective: 1400px; max-width: 360px; margin: 0 auto; }
.flip-card { display: block; width: 100%; aspect-ratio: 1.586; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; border-radius: 20px; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform: rotate(-3deg); transition: transform .9s var(--ease); }
.flip-card:hover .flip-inner { transform: rotate(0deg) scale(1.02); }
.flip-face {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 20px;
  background: linear-gradient(130deg, #1b2347, #2a2150 55%, #3a2a4a);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 60px -25px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.15);
}
.flip-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.13) 50%, transparent 65%); transform: translateX(-100%); animation: card-shine 6s 2s ease-in-out infinite; }
@keyframes card-shine { 0%, 65% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.flip-front { padding: 7% 7.5%; }
.fc-head { display: flex; align-items: center; gap: 9px; }
.ny-outline { flex: none; width: 34px; height: auto; fill: none; stroke: var(--sky); stroke-width: 3; stroke-linejoin: round; }
.fc-brand { display: grid; line-height: 1.05; }
.fc-brand b { font-size: .95rem; font-weight: 800; font-style: italic; letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-brand small { font-size: .5rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .01em; }
.fc-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.28); }
.fc-plan { font-family: var(--serif); font-size: 1.05rem; line-height: 1; color: var(--ink); max-width: 9ch; }
.fc-id { display: block; margin-top: 9%; font-size: clamp(1.25rem, 5vw, 1.6rem); font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.fc-name { display: block; margin-top: 2px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: var(--ink); }
.fc-role { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }
.fc-lines { position: absolute; left: 7.5%; right: 7.5%; bottom: 8%; display: grid; gap: 5px; }
.fc-lines i { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.13); }
.fc-lines i:nth-child(2) { width: 82%; } .fc-lines i:nth-child(3) { width: 60%; } .fc-lines i:nth-child(4) { width: 75%; } .fc-lines i:nth-child(5) { width: 45%; }
.thumbs-label { margin: 26px 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); text-align: center; }
.card-thumbs .card-frame { padding: 5px; border-radius: 12px; }
.card-thumbs .card-frame img { border-radius: 7px; }
@media (prefers-reduced-motion: reduce) { .flip-face::after { display: none; } }
.flip-front { display: flex; flex-direction: column; }
.flip-front .fc-lines { position: static; margin-top: auto; padding-top: 8px; gap: 4px; }
.flip-front .fc-lines i { height: 4px; }
.flip-front .fc-lines i:nth-child(3) { display: none; }
.flip-front .fc-id { margin-top: 6%; }
@media (max-width: 420px) { .flip-front { padding: 6% 7%; } .fc-id { font-size: 1.3rem; } .fc-plan { font-size: .95rem; } .ny-outline { width: 30px; } }

/* Lightbox: sample cards are white, so give them room and keep them inside the screen */
.lightbox img { max-width: 100%; }
.lb-nav[hidden] { display: none; }
.lightbox figcaption { font-size: clamp(1.15rem, 3.5vw, 1.5rem); }
.lb-hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: .78rem; color: var(--ink-mute); pointer-events: none; }
@media (max-width: 640px) { .lb-hint { bottom: 86px; } }
@media (hover: hover) { .lb-hint { display: none; } }

/* Real sample cards: one aligned block, tall card left, two stacked right */
.card-thumbs { display: grid; grid-template-columns: .78fr 1.22fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.card-thumbs .ct-main { grid-row: span 2; }
.card-thumbs .card-frame { position: relative; display: grid; place-items: center; overflow: hidden; }
.card-thumbs .card-frame img { width: 100%; height: 100%; object-fit: contain; }
.card-thumbs .logo-frame { padding: 10px 14px; }
.card-thumbs .logo-frame img { width: auto; max-width: 100%; max-height: 64px; height: auto; border-radius: 0; }
.ct-zoom { position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(11,11,20,.72); box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: transform .3s var(--ease), background .3s; }
.ct-zoom svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) {
  .card-frame:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.9), 0 0 0 2px rgba(154,215,255,.55); }
  .card-frame:hover .ct-zoom { transform: scale(1.12); background: rgba(11,11,20,.9); }
}

/* NYSHIP boxes: badges + accents so these two sections stand out */
.ny-jobs, .ny-mixup { position: relative; overflow: hidden; }
.ny-jobs::before, .ny-mixup::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.ny-jobs::before { background: var(--grad); }
.ny-mixup::before { background: linear-gradient(90deg, var(--rose), var(--peach)); }
.ny-jobs { border-color: rgba(154,215,255,.28); box-shadow: 0 30px 80px -40px rgba(154,215,255,.35); }
.ny-mixup { border-color: rgba(255,158,199,.28); box-shadow: 0 30px 80px -40px rgba(255,158,199,.3); }
.ny-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 18px 8px 8px; border-radius: 999px; font-size: clamp(.82rem, 1.2vw, .92rem); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ny-badge span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .78rem; font-weight: 900; letter-spacing: 0; color: #0b0b14; }
.ny-badge-yes { color: var(--sky); background: rgba(154,215,255,.12); border: 1px solid rgba(154,215,255,.4); }
.ny-badge-yes span { background: var(--grad); }
.ny-badge-no { color: var(--rose); background: rgba(255,158,199,.12); border: 1px solid rgba(255,158,199,.4); }
.ny-badge-no span { background: linear-gradient(135deg, var(--rose), var(--peach)); }
.ny-box-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.ny-jobs .ny-box-title em { font-style: italic; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; padding-right: .06em; margin-right: -.06em; }
@media (max-width: 420px) { .ny-badge { font-size: .72rem; letter-spacing: .04em; padding-right: 12px; gap: 8px; } .ny-badge span { width: 22px; height: 22px; } }
