/* DNA Coreline Recruitment — site styles */
@view-transition { navigation: auto; }

:root {
  --brand: #1877F2;          /* logo only */
  --cta: #1366D6;            /* primary buttons only */
  --cta-hover: #0F56B8;
  --cta-text: #FFFFFF;
  --ink: #0F2747;
  --ink-2: #3B4A5E;
  --muted: #5B6B80;
  --line: #D6E4F5;
  --bg: #FFFFFF;
  --bg-soft: #F0F7FF;
  --bg-card: #FFFFFF;
  --link: #0B4F9C;
  --ok: #137333;
  --err: #B3261E;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,39,71,.06), 0 8px 24px rgba(15,39,71,.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2.2vw, 3.25rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cta: #4C9DFF; --cta-hover: #74B3FF; --cta-text: #08172B;
    --ink: #E8F0FA; --ink-2: #C3D0E0; --muted: #9AABC0; --line: #23364F;
    --bg: #0B1626; --bg-soft: #0F1E33; --bg-card: #12243C; --link: #8CC0FF;
    --ok: #7FD99A; --err: #FF8A80;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--bg); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* Accessibility */
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--cta); color: var(--cta-text); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 800; line-height: 1.1; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; letter-spacing: .02em; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.kbd-hint { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 .35rem; background: var(--bg-soft); color: var(--ink-2); }
@media (max-width: 860px) { .nav-links, .kbd-hint { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .15s, transform .15s; }
.btn-primary { background: var(--cta); color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[disabled] { cursor: not-allowed; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--link); background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; margin-bottom: 1.1rem; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 38ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.reassure { margin-top: .9rem; font-size: .92rem; color: var(--muted); }
.hero-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hero-card li { display: flex; gap: .75rem; align-items: flex-start; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft); color: var(--link); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head p { color: var(--ink-2); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); color: var(--link); display: grid; place-items: center; margin-bottom: 1rem; }
.card .icon svg { width: 24px; height: 24px; }
.roles { margin: .8rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.roles li { font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border-radius: 999px; padding: .2rem .65rem; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); color: var(--link); font-weight: 800; margin-bottom: .8rem; }
.list-check { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .6rem; }
.list-check li { display: flex; gap: .65rem; }
.list-check li::before { content: "✓"; color: var(--link); font-weight: 800; }

/* Contact / forms */
.tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.tab { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--bg-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="file"] { padding: .55rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 25%, transparent); }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: .3rem; }
.field .error { font-size: .86rem; color: var(--err); margin-top: .3rem; min-height: 0; }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--err); }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; margin-top: .15rem; flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.hp { position: absolute; left: -9999px; }
.contact-aside { display: grid; gap: 1rem; align-content: start; }
.contact-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 1.5rem; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink-2); display: inline-flex; min-height: 44px; align-items: center; }

/* Sticky mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; inset: auto 0 0 0; z-index: 60; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .action-bar .btn { min-height: 48px; padding: 0 .6rem; font-size: .95rem; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Command menu */
dialog.cmd { width: min(560px, 100% - 2rem); border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--bg-card); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.25); margin-top: 12vh; }
dialog.cmd::backdrop { background: rgba(8,20,38,.45); }
.cmd input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 1rem 1.1rem; font: inherit; font-size: 1.05rem; background: transparent; color: var(--ink); outline: none; }
.cmd ul { list-style: none; margin: 0; padding: .4rem; max-height: 50vh; overflow: auto; }
.cmd li a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.cmd li a[aria-selected="true"], .cmd li a:hover { background: var(--bg-soft); }
.cmd .empty { padding: 1rem 1.1rem; color: var(--muted); }

/* Simple pages */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: var(--step-1); margin-top: 2rem; }
.prose li { margin-bottom: .4rem; }
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-page .lead { margin-inline: auto; }

/* Motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .5s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* Print */
@media print {
  .site-header, .action-bar, .skip, .hero-ctas, .tabs, form, dialog { display: none !important; }
  body { color: #000; background: #fff; padding: 0; }
  section { padding: 1rem 0; }
  .card, .form-card, .hero-card { box-shadow: none; border-color: #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
