@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Shared structure for all design proposals. Look & feel lives in themes/<id>/theme.css (design tokens + decoration). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
[x-cloak] { display: none !important; }
.icon { display: block; width: 1em; height: 1em; fill: currentColor; flex: none; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus, #0EA5E9); outline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap, 1480px); margin-inline: auto; padding-inline: var(--pad-x, clamp(1.1rem, 4vw, 3.5rem)); }
.wrap-narrow { max-width: 920px; }
.section { padding-block: var(--section-y, clamp(3.5rem, 7vw, 7rem)); position: relative; }
.grid { display: grid; gap: var(--gap, clamp(1rem, 1.8vw, 1.75rem)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 3.5vw, 3.25rem); }
.center-row { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3.5rem); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
@media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-refs, .grid-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } .grid-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid-refs, .grid-roles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h, 76px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-name { font-size: 1.35rem; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; }
.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; border-radius: 12px; color: inherit; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .brand-name { font-size: 1.15rem; }
  .brand-logo { height: 36px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem var(--pad-x, 1.1rem) 1.25rem; display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 52px; font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-art > svg { width: 100%; height: 100%; display: block; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); }
.hero-visual { width: 100%; }
.hero-visual > svg { width: 100%; height: auto; display: block; overflow: visible; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .85rem 1.7rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; text-align: center; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-visual { max-width: 560px; margin-inline: auto; } }
@media (max-width: 560px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- cards ---------- */
.card { position: relative; min-width: 0; }
.icon-tile { display: grid; place-items: center; flex: none; }
.checklist { display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { margin-top: .22em; font-size: 1.2em; }
.card-role { cursor: pointer; }
.card-ref { display: flex; flex-direction: column; overflow: hidden; }
.ref-body { display: flex; flex-direction: column; flex: 1; }
.ref-body .chips { margin-top: auto; }
.tags, .chips { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; padding: clamp(.6rem, 3vw, 2rem); overflow-y: auto; overscroll-behavior: contain; }
.modal-dialog { width: 100%; max-width: 920px; margin: auto; max-height: calc(100dvh - 2rem); overflow-y: auto; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 1.5rem; }
.modal-body > section + section { margin-top: 1.75rem; }
.modal-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-enter { transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.modal-enter-start { opacity: 0; transform: translateY(18px) scale(.97); }
.modal-enter-end { opacity: 1; transform: none; }

/* ---------- contact / 404 / policy ---------- */
.contact-mail { overflow-wrap: anywhere; }
.notfound { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center; min-height: calc(100vh - var(--header-h, 76px) - 150px); padding-block: clamp(3rem, 8vw, 7rem); }
.notfound .btn-row { justify-content: center; }
.policy h2 { margin-bottom: .75rem; }
.policy p + p, .policy ul + p, .policy p + ul { margin-top: .85rem; }
.policy ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: .35rem; margin-top: .6rem; }
.policy-block { margin-top: 2.25rem; }
.policy a { overflow-wrap: anywhere; }
.policy ol { padding-left: 1.4rem; display: grid; gap: .35rem; margin-top: .6rem; }

/* ---------- footer ---------- */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.footer-grid ul { display: grid; gap: .5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease, background-color .3s ease, color .3s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
html.nav-open { overflow: hidden; }
@media (min-width: 861px) { html.nav-open { overflow: auto; } }

/* ===== Proposal B "Nightshift" ===== */
:root {
  color-scheme: dark;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --ink: #EAF0FF;
  --text: #C3CFEE;
  --muted: #A3B1D6;
  --bg: #070B1A;
  --bg-alt: #0A1129;
  --surface: #0E1530;
  --surface-2: #131C3D;
  --line: rgba(148, 163, 255, .16);
  --line-strong: rgba(148, 163, 255, .3);
  --mint: #3CF2C2;
  --cyan: #38BDF8;
  --violet: #8B7CFF;
  --blue: #4C7DFF;
  --on-mint: #04140F;
  --grad: linear-gradient(120deg, #4C7DFF 0%, #38BDF8 50%, #3CF2C2 100%);
  --radius: 18px;
  --focus: #3CF2C2;
  --glow-mint: 0 0 0 1px rgba(60, 242, 194, .55), 0 10px 34px -8px rgba(60, 242, 194, .5);
  --header-h: 76px;
}
::selection { background: rgba(60, 242, 194, .3); color: #fff; }
body { background: var(--bg); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.035em; line-height: 1.06; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 1rem + 4vw, 4.9rem); letter-spacing: -.045em; line-height: 1.02; overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 1.15rem + 2.1vw, 3.2rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(1.05rem, .95rem + .45vw, 1.28rem); color: var(--muted); line-height: 1.65; }
strong { color: var(--ink); font-weight: 600; }
.skip-link { background: var(--mint); color: var(--on-mint); font-weight: 700; }

/* header */
.site-header { background: rgba(7, 11, 26, .72); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); border-bottom: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: rgba(56, 189, 248, .32); box-shadow: 0 10px 40px -18px rgba(56, 189, 248, .35); }
.brand-name { font-weight: 500; color: var(--muted); letter-spacing: -.02em; }
.brand-name b { font-weight: 700; color: var(--ink); }
.brand-logo { background: #fff; border-radius: 10px; padding: 3px 5px; }
.main-nav a { position: relative; font-weight: 500; color: var(--muted); border-radius: 10px; transition: background-color .2s, color .2s, box-shadow .2s; }
.main-nav a:hover { color: var(--ink); background: rgba(148, 163, 255, .1); }
.main-nav a[aria-current="page"] { color: var(--mint); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 1rem; right: 1rem; bottom: 5px; height: 2px; border-radius: 2px; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.main-nav a.nav-cta { margin-left: .6rem; padding-inline: 1.4rem; color: var(--mint); font-weight: 700; background: rgba(60, 242, 194, .08); box-shadow: inset 0 0 0 1px rgba(60, 242, 194, .75), 0 0 22px -4px rgba(60, 242, 194, .45); }
.main-nav a.nav-cta:hover { color: var(--on-mint); background: var(--mint); box-shadow: var(--glow-mint); }
.main-nav a.nav-cta[aria-current="page"]::after { display: none; }
.main-nav a.nav-cta[aria-current="page"] { background: rgba(60, 242, 194, .18); }
.nav-toggle { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(148, 163, 255, .06); }
.nav-toggle:hover { border-color: var(--mint); }
@media (max-width: 860px) {
  .main-nav { background: #070B1A; border-bottom: 1px solid var(--line-strong); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7), 0 1px 0 rgba(56, 189, 248, .25); padding-top: .5rem; gap: 0; }
  .main-nav a { border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { background: rgba(60, 242, 194, .07); }
  .main-nav a[aria-current="page"]::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
  .main-nav a.nav-cta { margin: 1rem 0 0; justify-content: center; border-bottom: 0; border-radius: 12px; }
}

/* buttons */
.btn { border-radius: 12px; letter-spacing: -.01em; }
.btn-primary { color: var(--on-mint); background: var(--mint); box-shadow: var(--glow-mint); }
.btn-primary:hover { transform: translateY(-2px); background: #6CF7D5; box-shadow: 0 0 0 1px rgba(60, 242, 194, .8), 0 14px 44px -6px rgba(60, 242, 194, .7); }
.btn-ghost { color: var(--ink); background: rgba(148, 163, 255, .05); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; background: rgba(56, 189, 248, .1); transform: translateY(-2px); box-shadow: 0 10px 34px -10px rgba(56, 189, 248, .55); }
.btn-soft { width: 100%; color: var(--cyan); background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .3); }
.card:hover .btn-soft, .btn-soft:hover { color: var(--on-mint); background: var(--mint); border-color: var(--mint); box-shadow: 0 0 26px -4px rgba(60, 242, 194, .55); }

/* hero */
.hero-home { padding-block: clamp(2.5rem, 5vw, 6rem) clamp(2.5rem, 4vw, 4.5rem); }
.hero-home .hero-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-copy .lead { margin-top: 1.5rem; max-width: 40em; }
.hero-copy h1 { margin-top: 1.5rem; }
.hero-copy .btn-row { margin-top: 2.25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem 1rem .5rem .9rem; border-radius: 8px; background: rgba(60, 242, 194, .06); border: 1px solid rgba(60, 242, 194, .3); font-family: var(--font-mono); font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(60, 242, 194, .6), 0 0 10px var(--mint); animation: pulse 2.2s infinite; }
.eyebrow::after { content: ''; width: 7px; height: 14px; background: var(--mint); opacity: .85; animation: blink 1.1s steps(2, start) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(60, 242, 194, 0), 0 0 10px var(--mint); } 100% { box-shadow: 0 0 0 0 rgba(60, 242, 194, 0), 0 0 10px var(--mint); } }
@keyframes blink { to { visibility: hidden; } }
.b-blink { animation: blink 1.1s steps(2, start) infinite; }
.b-float-a { animation: floaty 7s ease-in-out infinite; }
.b-float-b { animation: floaty 9s ease-in-out -2s infinite; }
.b-float-c { animation: floaty 6s ease-in-out -4s infinite reverse; }
@keyframes floaty { 50% { transform: translateY(-9px); } }
.br-lg { display: none; }
@media (max-width: 980px) { .hero-visual { margin-top: 2.5rem; } .hero-home { padding-bottom: .5rem; } }
@media (min-width: 640px) { .br-lg { display: inline; } }

.hero-page { background: var(--bg); padding-block: clamp(3rem, 6vw, 5.5rem); border-bottom: 1px solid var(--line); }
.hero-page::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .6) 30%, rgba(60, 242, 194, .6) 70%, transparent); }
.hero-page h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 4.2rem); }
.hero-page h1::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; margin-bottom: 1.4rem; background: var(--grad); box-shadow: 0 0 18px rgba(56, 189, 248, .7); }
.hero-page .lead { margin-top: 1.1rem; max-width: 40em; }
@media (max-width: 700px) { .hero-page .hero-art { opacity: .26; } }

/* sections */
.section-head { max-width: 64ch; }
.section-head h2::before { content: ''; display: block; width: 40px; height: 3px; border-radius: 2px; margin-bottom: 1.1rem; background: var(--grad); box-shadow: 0 0 14px rgba(56, 189, 248, .6); }
.section-head h2 { margin-bottom: 1rem; }
.tone-alt { background: var(--bg-alt); }
.tone-alt::before, .tone-alt::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .5) 30%, rgba(139, 124, 255, .5) 70%, transparent); }
.tone-alt::before { top: 0; }
.tone-alt::after { bottom: 0; }
.section-roles, .section-refs, .section-contact, .section-policy { background: radial-gradient(50% 40% at 85% 0%, rgba(76, 125, 255, .09), transparent); }

/* cards */
.card { background: linear-gradient(180deg, rgba(19, 28, 61, .78), rgba(14, 21, 48, .78)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.2vw, 2.1rem); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.card::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -28px rgba(56, 189, 248, .45), 0 0 40px -18px rgba(60, 242, 194, .3); }
.card:hover::after { opacity: 1; }
.tone-alt .card { background: linear-gradient(180deg, rgba(19, 28, 61, .9), rgba(14, 21, 48, .9)); }
.card h3 { margin: 1.4rem 0 .6rem; }
.card p { color: var(--muted); }
.icon-tile { width: 58px; height: 58px; border-radius: 14px; font-size: 1.9rem; color: var(--mint); border: 1px solid transparent; background: linear-gradient(#0A1230, #0A1230) padding-box, var(--grad) border-box; box-shadow: inset 0 0 18px rgba(60, 242, 194, .12), 0 0 0 0 rgba(60, 242, 194, 0); transition: box-shadow .3s, color .3s; }
.card:hover .icon-tile { box-shadow: inset 0 0 18px rgba(60, 242, 194, .22), 0 0 28px -2px rgba(60, 242, 194, .5); }
.grid > .card:nth-child(3n+2) .icon-tile { color: var(--cyan); }
.grid > .card:nth-child(3n) .icon-tile { color: #B3A9FF; }
.card:hover .icon-tile { color: #fff; }

.section-why .grid, .section-services .grid, .section-roles .grid { counter-reset: n; }
.card-why, .card-svc, .card-role { counter-increment: n; }
.card-why::before, .card-svc::before, .card-role::before { content: counter(n, decimal-leading-zero); position: absolute; top: 1.35rem; right: 1.5rem; font-family: var(--font-mono); font-weight: 500; font-size: .82rem; letter-spacing: .08em; color: #7F90C8; }
.card-svc { padding: 1.5rem; }
.card-svc .icon-tile { width: 50px; height: 50px; font-size: 1.6rem; border-radius: 12px; }
.card-svc h3 { font-size: 1.1rem; margin-top: 1.2rem; }
.card-svc p { font-size: .95rem; }
.card-agile::before { content: ''; position: absolute; inset: 0 24px auto 24px; height: 2px; border-radius: 0 0 2px 2px; background: var(--grad); box-shadow: 0 0 14px rgba(56, 189, 248, .6); }
.card-agile .checklist { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line-strong); color: var(--text); font-size: .96rem; }
.checklist .icon { color: var(--mint); }
.closing { max-width: 64rem; margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 1.4rem 1.75rem; border-left: 3px solid var(--mint); border-radius: 0 14px 14px 0; background: linear-gradient(90deg, rgba(60, 242, 194, .08), rgba(60, 242, 194, 0)); font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem); color: var(--text); }
.closing strong { color: var(--mint); }
.card-role { display: flex; flex-direction: column; }
.card-role p { flex: 1; margin-bottom: 1.5rem; }

/* references */
.card-ref { padding: 0; overflow: visible; }
.ref-top { height: 124px; position: relative; overflow: hidden; display: flex; align-items: center; padding-inline: 1.75rem; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; border-bottom: 1px solid var(--line); background:
  linear-gradient(rgba(148, 163, 255, .1) 1px, transparent 1px) 0 0 / 100% 24px,
  linear-gradient(90deg, rgba(148, 163, 255, .1) 1px, transparent 1px) 0 0 / 24px 100%,
  linear-gradient(120deg, rgba(76, 125, 255, .42), rgba(56, 189, 248, .16) 60%, rgba(60, 242, 194, .22)), #0A1230; }
.card-ref:nth-child(3n+2) .ref-top { background:
  linear-gradient(rgba(148, 163, 255, .1) 1px, transparent 1px) 0 0 / 100% 24px,
  linear-gradient(90deg, rgba(148, 163, 255, .1) 1px, transparent 1px) 0 0 / 24px 100%,
  linear-gradient(120deg, rgba(56, 189, 248, .35), rgba(60, 242, 194, .2) 65%, rgba(60, 242, 194, .08)), #0A1230; }
.card-ref:nth-child(3n) .ref-top { background:
  linear-gradient(rgba(148, 163, 255, .1) 1px, transparent 1px) 0 0 / 100% 24px,
  linear-gradient(90deg, rgba(148, 163, 255, .1) 1px, transparent 1px) 0 0 / 24px 100%,
  linear-gradient(120deg, rgba(139, 124, 255, .42), rgba(76, 125, 255, .2) 60%, rgba(56, 189, 248, .2)), #0A1230; }
.ref-top::before { content: ''; position: absolute; width: 220px; height: 220px; right: -60px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(60, 242, 194, .3), transparent 68%); }
.ref-top .icon-tile { width: 66px; height: 66px; font-size: 2.2rem; position: relative; z-index: 1; background: linear-gradient(#0A1230, #0A1230) padding-box, var(--grad) border-box; box-shadow: 0 0 28px -4px rgba(56, 189, 248, .45), inset 0 0 18px rgba(60, 242, 194, .15); }
.ref-body { padding: 1.6rem 1.75rem 1.9rem; }
.card-ref h3 { margin-top: 1.1rem; }
.card-ref p { font-size: .98rem; margin-bottom: 1.4rem; }
.tag { padding: .28rem .65rem; border-radius: 6px; border: 1px solid rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .08); color: var(--cyan); font-family: var(--font-mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.chip { padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(148, 163, 255, .07); color: var(--text); font-size: .8rem; font-weight: 500; }
.chip.is-agile { border-color: rgba(60, 242, 194, .7); background: rgba(60, 242, 194, .08); color: var(--mint); font-weight: 600; box-shadow: 0 0 14px -4px rgba(60, 242, 194, .5); }

/* CTA */
.section-cta { padding-top: 0; }
.cta-box { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: 28px; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); border: 1px solid transparent; background:
  radial-gradient(60% 90% at 85% 0%, rgba(60, 242, 194, .2), transparent 70%),
  radial-gradient(60% 90% at 10% 100%, rgba(76, 125, 255, .3), transparent 70%),
  linear-gradient(#0C1330, #0C1330) padding-box, var(--grad) border-box;
  box-shadow: 0 40px 90px -40px rgba(56, 189, 248, .5); }
.cta-box::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(rgba(148, 163, 255, .07) 1px, transparent 1px) 0 0 / 100% 32px,
  linear-gradient(90deg, rgba(148, 163, 255, .07) 1px, transparent 1px) 0 0 / 32px 100%;
  -webkit-mask: radial-gradient(70% 90% at 50% 50%, #000, transparent); mask: radial-gradient(70% 90% at 50% 50%, #000, transparent); }
.cta-box h2 { max-width: 20em; margin-inline: auto; }
.cta-box .lead { margin: 1.1rem auto 2.1rem; max-width: 40em; }

/* contact: terminal window */
.contact-card { position: relative; overflow: hidden; text-align: center; background: linear-gradient(180deg, #111A3A, #0B1230); border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem) clamp(2.2rem, 6vw, 4.5rem); box-shadow: 0 40px 90px -40px rgba(56, 189, 248, .45); }
.contact-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 48px; background: rgba(148, 163, 255, .06); border-bottom: 1px solid var(--line); }
.contact-card::after { content: ''; position: absolute; top: 18px; left: 22px; width: 12px; height: 12px; border-radius: 50%; background: #FF6B8B; box-shadow: 22px 0 0 #FFC857, 44px 0 0 var(--mint); }
.contact-card .icon-tile { width: 84px; height: 84px; font-size: 2.7rem; border-radius: 22px; margin: 0 auto 1.6rem; box-shadow: 0 0 40px -6px rgba(60, 242, 194, .5), inset 0 0 22px rgba(60, 242, 194, .15); }
.contact-card h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.contact-mail { display: inline-block; margin: 1rem 0 .5rem; text-decoration: none; font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.3rem, .55rem + 3.5vw, 3.2rem); background: linear-gradient(90deg, #38BDF8, #3CF2C2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-mail:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--mint); }
.contact-card p { color: var(--muted); margin-top: .75rem; }

/* 404 */
.notfound { min-height: calc(100vh - var(--header-h) - 92px); }
.notfound .hero-art { opacity: .9; }
.notfound-code { font-family: var(--font-mono); font-size: clamp(5.5rem, 2.5rem + 15vw, 15rem); line-height: .95; font-weight: 700; letter-spacing: -.06em; background: linear-gradient(120deg, #4C7DFF, #38BDF8 50%, #3CF2C2); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 36px rgba(56, 189, 248, .45)); }
.notfound h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.2rem); margin-top: .75rem; }
.notfound .lead { margin: 1rem auto 2rem; max-width: 34em; }

/* policy */
.policy { background: linear-gradient(180deg, rgba(19, 28, 61, .6), rgba(14, 21, 48, .6)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 3.5rem); color: var(--text); font-size: 1.0625rem; line-height: 1.8; }
.policy p, .policy ul, .policy ol { max-width: 72ch; }
.policy-meta { background: rgba(7, 11, 26, .6); border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: 0 14px 14px 0; padding: 1.3rem 1.6rem; font-size: 1rem; display: grid; gap: .3rem; }
.policy-meta p { margin: 0 !important; }
.policy-block + .policy-block { padding-top: 2rem; border-top: 1px solid var(--line); }
.policy h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); letter-spacing: -.025em; line-height: 1.25; }
.policy a { color: var(--cyan); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.policy a:hover { color: var(--mint); }
.policy li::marker { color: var(--mint); }
.policy strong { color: var(--ink); }

/* grants (palyazatok) */
.section-grants { background: radial-gradient(50% 40% at 85% 0%, rgba(76, 125, 255, .09), transparent); }
.grant { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(19, 28, 61, .78), rgba(14, 21, 48, .78)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 90px -50px rgba(56, 189, 248, .4); }
.grant-head { padding: clamp(1.5rem, 4vw, 2.5rem); background: rgba(76, 125, 255, .08); border-bottom: 1px solid var(--line); position: relative; }
.grant-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); box-shadow: 0 0 16px rgba(56, 189, 248, .6); }
.grant-head h2 { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.15rem, .8rem + 1.6vw, 2rem); letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.grant-head p { margin-top: .6rem; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.grant-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.grant-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2.25rem; }
.fact { min-width: 0; padding: 1.1rem 1.3rem; background: rgba(7, 11, 26, .6); border: 1px solid var(--line); border-radius: 14px; }
.fact dt { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: .45rem 0 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.fact-accent { border-color: rgba(60, 242, 194, .45); background: rgba(60, 242, 194, .07); box-shadow: 0 0 28px -12px rgba(60, 242, 194, .5); }
.fact-accent dt { color: var(--mint); }
.fact-accent dd { font-size: 1.5rem; font-weight: 700; color: var(--mint); }
.grant-text h3 { margin: 0 0 1.1rem; font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); }
.grant-text p { max-width: 72ch; color: var(--text); font-size: 1.0625rem; line-height: 1.8; }
.grant-text p + p { margin-top: .9rem; }
.grant-date { display: inline-flex; flex-direction: column; gap: .3rem; margin-top: 2rem; padding: 1rem 1.3rem; background: rgba(7, 11, 26, .6); border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: 0 14px 14px 0; }
.grant-date span { font-size: .9rem; color: var(--muted); }
.grant-date strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--ink); }
.infoblock { margin: 2.25rem 0 0; padding: clamp(.6rem, 2vw, 1rem); background: #fff; border-radius: 14px; }
.infoblock img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .grant-facts { grid-template-columns: minmax(0, 1fr); } }

/* modal */
.modal { background: rgba(3, 6, 16, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-dialog { background: #0B1230; border: 1px solid rgba(56, 189, 248, .35); border-radius: 20px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(56, 189, 248, .5); color: var(--text); }
.modal-head { padding: 1.5rem 1.75rem; background: rgba(15, 22, 52, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.modal-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); box-shadow: 0 0 16px rgba(56, 189, 248, .7); }
.modal-head h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); }
.modal-head p { margin-top: .4rem; color: var(--muted); }
.modal-close { border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink); transition: border-color .2s, color .2s, box-shadow .2s; }
.modal-close:hover { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 18px -4px rgba(60, 242, 194, .6); }
.modal-body { padding: clamp(1.4rem, 3vw, 2.25rem); }
.modal-body h3 { margin: 0 0 .9rem; font-family: var(--font-mono); font-weight: 500; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.modal-body p { color: var(--text); }
.modal-cta { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.5rem; }
.modal-cta p { font-weight: 500; color: var(--ink); }

/* footer */
.site-footer { background: #04070F; color: var(--muted); padding-top: clamp(3rem, 5vw, 5rem); position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #4C7DFF 20%, #38BDF8 50%, #3CF2C2 80%, transparent); box-shadow: 0 0 24px rgba(56, 189, 248, .6); }
.site-footer .brand-name, .site-footer .brand-name b { color: var(--ink); }
.footer-brand .brand-logo { height: 46px; border-radius: 12px; padding: 4px 6px; }
.footer-brand p { margin-top: 1.1rem; max-width: 36em; }
.site-footer h4 { color: var(--cyan); font-family: var(--font-mono); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1.1rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.footer-grid li a { display: inline-block; padding-block: .1rem; }
.footer-bottom { margin-top: clamp(2rem, 4vw, 3.5rem); padding-block: 1.6rem 2rem; border-top: 1px solid var(--line); font-size: .92rem; }
.site-footer-compact { padding-top: 0; }
.site-footer-compact .footer-bottom { margin-top: 0; padding-block: 2rem; justify-content: center; text-align: center; }

/* ===== Proposal B2 "Nightshift Live" - motion layer on top of B (theme.css of B is loaded first) ===== */
.hero-visual { --ease: cubic-bezier(.45, 0, .25, 1); }

/* orbit rings behind the editor window: slow, opposite directions */
.b2-orbit { transform-box: view-box; transform-origin: 310px 280px; }
.b2-orbit-1 { animation: b2-spin 70s linear infinite; }
.b2-orbit-2 { animation: b2-spin 95s linear infinite reverse; }
@keyframes b2-spin { to { transform: rotate(360deg); } }

/* outline burst behind the shield (the one element borrowed from proposal C) */
.b2-burst { transform-box: view-box; transform-origin: 40px 18px; }
.b2-burst-1 { animation: b2-spin 36s linear infinite; }
.b2-burst-2 { animation: b2-spin 24s linear infinite reverse; }

/* data packets running along the node graph */
.b2-packet { offset-path: path('M548 96L590 168L536 236L584 300'); offset-rotate: 0deg; offset-distance: 0%; opacity: 0; animation: b2-travel 5.5s linear infinite; filter: drop-shadow(0 0 4px #3CF2C2); }
.b2-packet-2 { animation-delay: -2.7s; filter: drop-shadow(0 0 4px #38BDF8); }
@keyframes b2-travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* node pings */
.b2-ping { transform-box: fill-box; transform-origin: center; opacity: 0; animation: b2-ping 3.6s ease-out infinite; }
.b2-ping-2 { animation-delay: -1.8s; }
@keyframes b2-ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* code lines type in one after another, hold, then fade and restart */
.b-line { transform-box: fill-box; transform-origin: 0 50%; animation: b2-type 11s var(--ease) infinite backwards; animation-delay: calc(var(--i) * .32s); }
@keyframes b2-type {
  0% { opacity: 0; transform: scaleX(.12); }
  6% { opacity: 1; transform: scaleX(1); }
  86% { opacity: 1; transform: scaleX(1); }
  94%, 100% { opacity: 0; transform: scaleX(1); }
}

/* chart: bars breathe, donut arc sweeps */
.b2-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: b2-bar 4.2s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -.9s); }
@keyframes b2-bar { from { transform: scaleY(.62); } to { transform: scaleY(1); } }
.b2-arc { transform-box: view-box; transform-origin: 522px 420px; animation: b2-spin 9s linear infinite; }

/* a little more depth for the floating cards */
.b-float-a { animation-duration: 8s; }
.b-float-c { animation-duration: 7s; }

/* keep the burst inside the viewport on narrow screens */
@media (max-width: 700px) { .hero-visual { padding: 1.5rem 0 0 1.5rem; } }

/* ===== Proposal B4 "Nightshift Original Neon" - the original SanITas logo as a transparent PNG; B and B2 stylesheets are loaded first ===== */
.brand { gap: .75rem; color: var(--ink); }
.brand-mark { display: inline-flex; transition: filter .3s; filter: drop-shadow(0 0 10px rgba(56, 189, 248, .3)); }
.brand-mark img { display: block; height: 52px; width: auto; }
.brand:hover .brand-mark { filter: drop-shadow(0 0 14px rgba(60, 242, 194, .5)); }
.brand-name { font-weight: 700; color: var(--ink); letter-spacing: -.025em; }
.brand-name .it { color: var(--mint); }
.brand-name .c { font-weight: 500; color: var(--muted); }
.footer-brand .brand-mark img { height: 60px; }
.site-footer .brand-name .c { color: var(--muted); }
.hero-logo { filter: drop-shadow(0 0 6px rgba(56, 189, 248, .4)); }
@media (max-width: 860px) { .brand-mark img { height: 44px; } }
@media (max-width: 380px) { .brand-name { font-size: 1.02rem; } .brand { gap: .55rem; } }
