/* N.A.I.L. site design system. Shared by every marketing page. */
:root {
  --ground: #FBFAF8; --surface: #FFFFFF; --ink: #1C1626; --muted: #625A6E; --line: #E6E1EA;
  --purple: #4F2683; --purple-deep: #35185C; --night: #1B1024; --steel: #5B7E90; --steel-soft: #E9F0F3; --purple-soft: #F1ECF7;
  --lilac: #C9B3F0; --mist: #A8C3CF;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", -apple-system, system-ui, sans-serif;
  --brand: "Montserrat", "Segoe UI", sans-serif;
  --col: min(1180px, 92vw);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.wrap { width: var(--col); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--purple); color: #FFFFFF; padding: 10px 14px; border-radius: 6px; font: 600 14px var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: 90px; }

/* type */
.eyebrow { font: 700 11.5px var(--brand); letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin: 0 0 18px; }
h1 { font: 600 clamp(2.2rem, 4.4vw, 3.4rem)/1.1 var(--serif); letter-spacing: -0.01em; margin: 0 0 20px; text-wrap: balance; }
h1 em { font-style: italic; color: var(--purple); }
h2 { font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.2 var(--serif); margin: 0 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font: 600 1.15rem/1.25 var(--serif); margin: 0 0 8px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 48ch; margin: 0 0 28px; }
.intro { color: var(--muted); max-width: 58ch; margin: 0 0 40px; font-size: 1.05rem; }

/* status strip */
.strip { background: var(--purple-deep); color: #D9CDEB; font-size: 12.5px; letter-spacing: 0.02em; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.strip b { color: #FFFFFF; font-weight: 600; }
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6FD39B; margin-right: 7px; vertical-align: 1px; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0.6; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }
.strip .right { display: flex; gap: 22px; }
@media (max-width: 760px) { .strip .right, #statusMore { display: none; } .strip .wrap { justify-content: center; } }

/* nav */
nav.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
nav.top .wrap { display: flex; align-items: center; height: 70px; gap: 28px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand .t { font: 800 15px/1 var(--brand); letter-spacing: 0.04em; }
.brand .s { display: block; font: 500 11px/1.3 var(--sans); color: var(--muted); margin-top: 4px; letter-spacing: 0.02em; }
nav.top a.l { font: 600 13.5px var(--sans); color: var(--ink); text-decoration: none; }
nav.top a.l:hover, nav.top a.l[aria-current="page"] { color: var(--purple); }
.btn { display: inline-block; font: 600 13.5px var(--sans); text-decoration: none; padding: 11px 20px; border-radius: 6px; background: var(--purple); color: #FFFFFF; border: 1px solid var(--purple); cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--purple); }
.btn.light { background: #FFFFFF; color: var(--purple-deep); border-color: #FFFFFF; }
.btn.big { padding: 14px 26px; font-size: 15px; }
.menu-btn { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); cursor: pointer; place-items: center; padding: 0; }
.menu-btn svg { width: 22px; height: 22px; display: block; }
.mobile-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 250px; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 36px rgba(28,22,38,0.16); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--ground); font: 600 14px var(--sans); }
.mobile-menu a.mm-cta { background: var(--purple); color: #FFFFFF; border-color: var(--purple); text-align: center; }
@media (max-width: 860px) { nav.top a.l, nav.top > .wrap > .btn { display: none; } .menu-btn { display: grid; } }

/* dark page hero */
.hero { position: relative; background: var(--night); color: #FFFFFF; padding: 84px 0 92px; overflow: hidden; }
.hero .mesh { position: absolute; inset: -20%; background:
    radial-gradient(40% 50% at 18% 30%, rgba(127,74,196,0.55), transparent 60%),
    radial-gradient(35% 45% at 80% 70%, rgba(91,126,144,0.5), transparent 60%),
    radial-gradient(30% 40% at 65% 15%, rgba(168,195,207,0.25), transparent 60%);
    filter: blur(40px); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(4%, -3%) scale(1.06); } }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.45; }
.hero .wrap { position: relative; }
.hero .eyebrow { color: var(--mist); }
.hero h1 { color: #FFFFFF; }
.hero h1 em { color: var(--lilac); }
.hero .lead { color: #D9CDEB; }
.hero .btn.ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.45); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .photo { position: relative; padding: 8px; background: linear-gradient(135deg, rgba(201,179,240,0.9), rgba(168,195,207,0.6), rgba(79,38,131,0.9)); border-radius: 10px; box-shadow: 0 40px 80px rgba(0,0,0,0.45), 0 0 60px rgba(127,74,196,0.35); animation: float 7s ease-in-out infinite; margin: 0; }
.hero .photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero .photo figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(28,22,38,0.78); color: #FFFFFF; font-size: 12.5px; padding: 8px 12px; border-radius: 0 4px 0 6px; }
.hero .wrap.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero { padding: 40px 0 44px; } .hero .wrap.split { grid-template-columns: 1fr; gap: 28px; } }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.night { background: var(--night); color: #FFFFFF; }
section.night .eyebrow { color: var(--mist); }
section.night h2 { color: #FFFFFF; }
section.night .intro { color: #D9CDEB; }
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 40px; }
.head .intro { margin: 0; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } section { padding: 52px 0; } }

/* photo cards and gallery */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 3 / 4; color: #FFFFFF; background: var(--night); box-shadow: 0 18px 40px rgba(28,22,38,0.14); text-decoration: none; display: block; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover img { transform: scale(1.05); }
.card .sh { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,16,36,0.95) 0%, rgba(27,16,36,0.35) 55%, rgba(27,16,36,0.1) 100%); }
.card .tx { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.card .num { font: 600 13px var(--serif); color: var(--mist); }
.card h3 { color: #FFFFFF; margin: 8px 0 8px; font-size: 1.25rem; }
.card p { color: #D9CDEB; font-size: 14px; margin: 0 0 14px; }
.card .more { font: 600 13px var(--sans); color: #FFFFFF; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } .card { aspect-ratio: 16 / 10; } }
.gallery { padding: 0 0 72px; overflow: hidden; }
.gallery .wrap { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 48s linear infinite; }
.track img { height: 240px; width: auto; border-radius: 6px; flex-shrink: 0; }
.gallery:hover .track, .gallery.paused .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.pause { font: 600 12.5px var(--sans); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.pause:hover { color: var(--purple); border-color: var(--purple); }
@media (max-width: 640px) { .track img { height: 160px; } .gallery { padding-bottom: 48px; } }

/* chips, steps, cta band */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chips span { font: 600 12.5px var(--sans); padding: 6px 12px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-deep); border: 1px solid #DDD2EC; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 13px var(--serif); color: var(--steel); padding-top: 3px; }
.steps b { display: block; font: 600 15px var(--sans); margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 14.5px; }
.steps a { text-decoration: none; font-weight: 600; }
.cta-band { background: linear-gradient(90deg, var(--purple-deep), var(--purple) 55%, var(--purple-deep)); color: #FFFFFF; padding: 56px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #FFFFFF; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #D9CDEB; max-width: 52ch; }

/* affiliation + footer */
.aff .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.aff p { margin: 0; color: var(--muted); max-width: 52ch; font-size: 14.5px; }
.logos { display: flex; gap: 36px; align-items: center; }
.logos img { height: 44px; width: auto; }
.logos img.round { height: 54px; }
footer { padding: 36px 0 44px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .grow { flex: 1; min-width: 260px; }
footer a { color: var(--muted); text-decoration: none; }

/* shimmer on the main call to action */
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after { content: ""; position: absolute; top: -60%; bottom: -60%; left: -40%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -40%; } 100% { left: 140%; } }
.btn.light.shine::after { background: linear-gradient(100deg, transparent, rgba(79,38,131,0.22), transparent); }
/* sliding pill behind the active tab in a .pills group */
.pills { position: relative; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.pills .pill-bg { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--purple); transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.pills button { position: relative; z-index: 1; font: 600 13.5px var(--sans); padding: 8px 16px; border-radius: 999px; background: transparent; border: 0; color: var(--ink); cursor: pointer; transition: color 0.25s ease; }
.pills button[aria-selected="true"] { color: #FFFFFF; }
/* nav underline that slides to the hovered link */
nav.top .links { position: relative; display: contents; }
nav.top a.l { position: relative; padding: 6px 0; }
nav.top a.l::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
nav.top a.l:hover::after, nav.top a.l[aria-current="page"]::after { transform: scaleX(1); }

/* tilt that follows the cursor on photo cards */
.card { transform-style: preserve-3d; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease; will-change: transform; }
.card .glint { position: absolute; inset: 0; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.18), transparent 60%); opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.card:hover .glint { opacity: 1; }
.card:hover { box-shadow: 0 28px 60px rgba(28,22,38,0.28); }
@media (hover: none), (prefers-reduced-motion: reduce) { .card { transform: none !important; } .card .glint { display: none; } }

/* motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot::after, .mesh, .hero .photo, .track, .btn.shine::after { animation: none; }
  .pills .pill-bg, nav.top a.l::after { transition: none; }
  .hero canvas { display: none; }
}
