/* ===== Cycores: shared base ===== */
@font-face {
  font-family: "Jost";
  src: url("assets/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --grad: linear-gradient(90deg, #22d3ee 0%, #3b5bff 25%, #9b3dff 48%, #ff2fa8 68%, #ff6a3d 85%, #ffc21a 100%);
  --grad-craft: linear-gradient(90deg, #4f5bff 0%, #9b3dff 40%, #ff2fa8 75%, #ff5a3d 100%);
  --font: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --wrap: 1140px;
  --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; border-radius: 8px; background: #fff; color: #070b1f; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--focus, #7c8cff); outline-offset: 3px; border-radius: 4px; }
.grad-text { background: var(--grad-craft); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----- Header / nav ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--header-border); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--header-shadow); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--header-text); }
.brand img { width: 46px; height: auto; }
.brand span { font-weight: 400; letter-spacing: .22em; font-size: 1.05rem; }
.primary-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--nav-link); text-decoration: none; font-size: .95rem; font-weight: 450; transition: color .15s, background .15s; }
.primary-nav a:hover { color: var(--header-text); background: var(--nav-hover); }
.primary-nav a[aria-current] { color: var(--header-text); background: var(--nav-hover); box-shadow: inset 0 -2px 0 0 var(--nav-active, #9b3dff); }
.nav-toggle { display: none; background: none; border: 1px solid var(--header-border); border-radius: 10px; padding: .45rem; color: var(--header-text); cursor: pointer; }
.nav-toggle svg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; display: block; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--menu-bg); border-bottom: 1px solid var(--header-border); display: none; box-shadow: var(--header-shadow); }
  .nav-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
  .primary-nav a { padding: .8rem 1rem; border-radius: 10px; font-size: 1.05rem; }
}

/* ----- Buttons ----- */
.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 500; font-size: 1rem; text-decoration: none; letter-spacing: .01em; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(90deg, #3b5bff, #9b3dff 50%, #e3279b); box-shadow: 0 6px 24px -8px rgba(155, 61, 255, .65); }
.btn-primary:hover { box-shadow: 0 10px 32px -8px rgba(255, 47, 168, .6); }
.btn-ghost { color: var(--ghost-text); border: 1px solid var(--ghost-border); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--ghost-border-hover); }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.waves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.waves svg { width: 100%; height: 100%; display: block; }
.wave-lines, .wave-glow { animation: drift 14s ease-in-out infinite alternate; transform-origin: center; }
@keyframes drift { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-14px) scaleY(1.06); } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 300; letter-spacing: -.02em; margin-bottom: .3em; }
.hero h1 .grad-text { font-weight: 400; padding-right: .04em; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); margin-bottom: 2rem; }
.wordmark { display: inline-flex; flex-direction: column; align-items: stretch; }
.wm-text { font-weight: 300; letter-spacing: .2em; margin-right: -.2em; line-height: 1; }
.wm-rule { height: 2px; margin-top: .35em; background: var(--grad); border-radius: 2px; }

/* ----- Sections ----- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.eyebrow { font-size: .85rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; margin-bottom: .9rem; color: var(--eyebrow); display: inline-flex; align-items: center; gap: .75rem; }
.eyebrow::after { content: ""; width: 48px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: clamp(1.2rem, 2.1vw, 1.45rem); line-height: 1.55; font-weight: 400; }
.section-intro { color: var(--muted); font-size: 1.15rem; margin-top: -.25rem; }
.about-text { margin-top: 1.5rem; }
.about-text p:not(.lead) { color: var(--muted); font-size: 1.12rem; }

.cards { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
.card { border-radius: var(--radius); padding: 1.75rem; background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); position: relative; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.domains { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.domains .card { transition: transform .2s, border-color .2s; }
.domains .card:hover { transform: translateY(-3px); border-color: var(--card-border-hover); }
.icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.1rem; background: var(--icon-bg); color: var(--icon-color); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon svg.fill { fill: currentColor; stroke: none; width: 22px; height: 22px; }

/* Hiring */
.hiring-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hiring h3 { margin-top: 2rem; font-size: 1.15rem; letter-spacing: .02em; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.tags li { padding: .3rem .85rem; border-radius: 999px; font-size: .9rem; border: 1px solid var(--tag-border); color: var(--tag-text); background: var(--tag-bg); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2L4.6 10.1l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4-6.7 6.7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2L4.6 10.1l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4-6.7 6.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.apply { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; font-size: 1.15rem; font-weight: 500; }
.hiring-photo { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--photo-shadow); border: 1px solid var(--card-border); }
.hiring-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Announcements */
.announce-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.announcement { padding: 2rem 2rem 2rem 2.25rem; overflow: hidden; }
.announcement::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.announcement h3 { font-size: 1.4rem; }
.ann-label { display: inline-block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--eyebrow) !important; margin-bottom: .7rem !important; }
.ann-meta { font-size: .95rem; margin-bottom: .5rem !important; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); transition: transform .2s, border-color .2s; font-size: 1.05rem; font-weight: 500; word-break: break-word; }
.contact-item:hover { transform: translateY(-2px); border-color: var(--card-border-hover); }
.contact-item .icon { margin: 0; flex: none; }
.contact-item small { display: block; font-size: .8rem; font-weight: 450; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--footer-border); background: var(--footer-bg); color: var(--footer-text); font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .hiring-grid { grid-template-columns: 1fr; }
  .hiring-photo { order: -1; }
}
@media (max-width: 520px) {
  .card { padding: 1.4rem; }
  .announcement { padding: 1.6rem 1.4rem 1.6rem 1.7rem; }
  .apply .btn { width: 100%; }
}

/* ----- Refinements ----- */
.about-grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.about-text { margin-top: 0; padding-top: .35rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: .5rem; } }
.domains { grid-template-columns: repeat(6, 1fr); }
.domains .card { grid-column: span 2; }
.domains .card:nth-child(4) { grid-column: 2 / span 2; }
.domains .card:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 860px) {
  .domains { grid-template-columns: repeat(2, 1fr); }
  .domains .card, .domains .card:nth-child(4) { grid-column: span 1; }
  .domains .card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .domains { grid-template-columns: 1fr; }
  .domains .card:nth-child(5) { grid-column: auto; }
}
.primary-nav a { position: relative; }
.primary-nav a[aria-current] { box-shadow: none; }
.primary-nav a[aria-current]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--grad); }
@media (max-width: 900px) { .primary-nav a[aria-current]::after { left: 1rem; right: auto; width: 28px; bottom: .45rem; } }
.hero-sub { text-shadow: var(--sub-shadow, none); }
@media (max-width: 520px) {
  .hero h1 { font-size: 2.35rem; }
  .domains .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; align-items: start; padding: 1.2rem 1.25rem; }
  .domains .icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; border-radius: 12px; }
  .domains .icon svg { width: 22px; height: 22px; }
  .domains h3 { margin: .1rem 0 .25rem; }
  .cards { gap: .9rem; }
}

/* ----- Colour tones (applied to body or to individual sections) ----- */
.tone-dark {
  --bg: #070b1f; --surface: #0c1230;
  --text: #f4f6ff; --muted: #b4bcd8; --link: #9fb4ff; --eyebrow: #9fb4ff;
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  --card-border: rgba(160,175,255,.16); --card-border-hover: rgba(190,140,255,.55);
  --card-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  --icon-bg: linear-gradient(135deg, rgba(59,91,255,.25), rgba(255,47,168,.22)); --icon-color: #fff;
  --tag-border: rgba(160,175,255,.3); --tag-text: #e2e7ff; --tag-bg: rgba(255,255,255,.04);
  --ghost-text: #fff; --ghost-border: rgba(255,255,255,.35); --ghost-bg: rgba(255,255,255,.04); --ghost-border-hover: #fff;
  --photo-shadow: 0 30px 80px -30px rgba(80,90,255,.55), 0 0 0 1px rgba(255,255,255,.04);
  --focus: #9fb4ff;
  background-color: var(--bg); color: var(--text);
}
.tone-light {
  --bg: #ffffff; --surface: #f5f7fc;
  --text: #0b1233; --muted: #4a5375; --link: #3b3fd6; --eyebrow: #4b3fd6;
  --card-bg: #ffffff; --card-border: #e3e7f2; --card-border-hover: #b8b2f5;
  --card-shadow: 0 1px 2px rgba(11,18,51,.04), 0 8px 24px -12px rgba(11,18,51,.12);
  --icon-bg: linear-gradient(135deg, #eef1ff, #fbeefc); --icon-color: #4b3fd6;
  --tag-border: #d9ddf0; --tag-text: #2a3157; --tag-bg: #f5f7fc;
  --ghost-text: #0b1233; --ghost-border: #c9cfe4; --ghost-bg: #fff; --ghost-border-hover: #0b1233;
  --photo-shadow: 0 30px 60px -30px rgba(11,18,51,.45);
  --focus: #4b3fd6;
  background-color: var(--bg); color: var(--text);
}
.tone-soft { --bg: #f5f7fc; --card-border: #e1e5f1; }

/* ===== Variant C: Mixed (dark bands + white sections) ===== */
body {
  --header-bg: rgba(7,11,31,.8); --header-border: rgba(160,175,255,.12); --header-text: #fff; --nav-link: #c3c9e6; --nav-hover: rgba(255,255,255,.08);
  --header-shadow: 0 10px 30px -10px rgba(0,0,0,.5); --menu-bg: #0a0f28;
  --footer-bg: #050818; --footer-border: rgba(160,175,255,.12); --footer-text: #a3abc9;
}
.hero { min-height: min(calc(100vh - var(--header-h)), 800px); display: grid; align-items: center; padding: 4rem 0 6rem;
  background: radial-gradient(ellipse 70% 70% at 80% 30%, #141c52 0%, rgba(7,11,31,0) 70%), #070b1f; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-copy { order: 1; }
.hero-brand { order: 2; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.hero-mark { width: min(100%, 380px); filter: drop-shadow(0 0 50px rgba(110,90,255,.5)); }
.wordmark { font-size: clamp(1.8rem, 3vw, 2.5rem); color: #fff; }
.hero h1 { color: #fff; }
.hero-sub { color: #c9d0ec; }
.research { background: #f5f7fc; }
.hiring { background: radial-gradient(ellipse 60% 70% at 100% 100%, rgba(255,47,168,.12), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 0%, rgba(59,91,255,.14), transparent 70%), #070b1f; }
.contact { background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(155,61,255,.14), transparent 70%), #080d26; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-brand { order: 0; }
  .hero-mark { width: 220px; }
  .cta-row { justify-content: center; }
}
.hero .wave-set { transform: translateY(40px); }
.hero { --sub-shadow: 0 1px 18px rgba(7,11,31,.95); }
