/* Voyentis Labs — base styles that sit alongside Tailwind utilities. */

/* IBM Plex (SIL Open Font License 1.1), self-hosted. Latin + Latin Extended
   covers English and Turkish (ç ğ ı İ ö ş ü). */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Colour tokens ----------
   --c-* are RGB channels used by Tailwind (tailwind.config.js); the hex variables below are
   used by the components in this file. The light palette is the default. Sections marked
   .on-dark (hero, track record, footer…) are designed on navy and keep the light palette in
   both themes, so they look the same in light and dark. */
:root,
[data-theme="dark"] .on-dark,
[data-theme="dark"] .light-only {
    --c-white: 255 255 255;
    --c-navy-950: 9 24 39;
    --c-navy-900: 20 33 61;
    --c-navy-800: 34 51 90;
    --c-navy-700: 58 75 112;
    --c-navy-600: 90 106 140;
    --c-navy-500: 125 139 168;
    --c-navy-300: 195 203 218;
    --c-navy-200: 220 226 236;
    --c-navy-100: 234 239 246;
    --c-brand-50: 235 244 253;
    --c-brand-100: 212 232 250;
    --c-brand-500: 42 140 224;
    --c-brand-600: 8 121 216;
    --c-brand-700: 6 100 180;
    --c-brand-800: 10 79 140;
    --c-teal-50: 232 248 246;
    --c-teal-400: 79 208 196;
    --c-teal-500: 46 196 182;
    --c-teal-700: 26 128 118;
    --c-surface: 245 248 252;

    --navy-950: #091827;
    --navy-900: #14213D;
    --navy-600: #5A6A8C;
    --navy-200: #DCE2EC;
    --brand-600: #0879D8;
    --brand-700: #0664B4;
    --teal-500: #2EC4B6;
    --surface: #F5F8FC;
    --card: #FFFFFF;
    --ink-on-accent: #FFFFFF;
}

/* Dark theme: set by the inline script in base.html from the visitor's saved choice. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --c-white: 15 29 48;
    --c-navy-950: 238 242 248;
    --c-navy-900: 218 225 236;
    --c-navy-800: 196 206 222;
    --c-navy-700: 172 184 204;
    --c-navy-600: 146 160 184;
    --c-navy-500: 120 135 162;
    --c-navy-300: 62 80 108;
    --c-navy-200: 42 58 84;
    --c-navy-100: 30 45 68;
    --c-brand-50: 16 41 74;
    --c-brand-100: 22 52 92;
    --c-brand-500: 92 166 245;
    --c-brand-600: 77 155 255;
    --c-brand-700: 125 182 255;
    --c-brand-800: 168 204 255;
    --c-teal-50: 14 46 48;
    --c-teal-400: 79 208 196;
    --c-teal-500: 46 196 182;
    --c-teal-700: 79 208 196;
    --c-surface: 20 36 58;

    --navy-950: #EEF2F8;
    --navy-900: #DAE1EC;
    --navy-600: #92A0B8;
    --navy-200: #2A3A54;
    --brand-600: #4D9BFF;
    --brand-700: #7DB6FF;
    --teal-500: #2EC4B6;
    --surface: #14243A;
    --card: #0F1D30;
    --ink-on-accent: #0F1D30;
}

html { -webkit-text-size-adjust: 100%; }
body { font-feature-settings: "kern"; text-rendering: optimizeLegibility; }

::selection { background: #D4E8FA; color: var(--navy-950); }

/* Visible, consistent keyboard focus */
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--navy-950); color: #fff; padding: .5rem 1rem; border-radius: .25rem; }
.skip-link:focus { top: 1rem; }

/* Section eyebrow: small label with a short rule, used instead of pill badges */
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.on-dark { color: #8FC3F0; }

/* Navbar gains a hairline once the page scrolls */
#navbar.scrolled { box-shadow: 0 1px 0 var(--navy-200); }

.nav-link { display: inline-block; padding: .4rem .65rem; border-radius: .375rem; color: inherit; }
.nav-link:hover { color: var(--navy-950); background: #F0F4F9; }
.nav-link.is-active { color: var(--navy-950); font-weight: 500; }
.dropdown-item { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .8rem; border-radius: .375rem; }
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--surface); }

/* Hero network: lines draw in once, nodes settle, packets travel along the "V" */
.net-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: net-draw 1.4s cubic-bezier(.65, 0, .35, 1) forwards; }
.net-node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: net-pop .5s ease-out forwards; }
.net-halo { transform-box: fill-box; transform-origin: center; animation: net-breathe 4.5s ease-in-out infinite; }
@keyframes net-draw { to { stroke-dashoffset: 0; } }
@keyframes net-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes net-breathe { 0%, 100% { opacity: .0; transform: scale(.8); } 50% { opacity: .35; transform: scale(1.25); } }

/* VoyentisKids mascot: an occasional blink and a small wave */
.robot-eye { transform-box: fill-box; transform-origin: center; animation: robot-blink 5s infinite; }
.robot-arm { transform-box: fill-box; transform-origin: 15% 85%; animation: robot-wave 3.2s ease-in-out infinite; }
@keyframes robot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes robot-wave { 0%, 60%, 100% { transform: rotate(0deg); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-10deg); } }

/* Code samples */
.code-card { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .8rem; line-height: 1.6; }
.code-card .k { color: #FF9DB0; }   /* keyword */
.code-card .s { color: #A5E3A0; }   /* string */
.code-card .c { color: #7D8BA8; }   /* comment */
.code-card .f { color: #8FC3F0; }   /* function */
.code-card .n { color: #FFD23F; }   /* number */

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .summary-chevron { transform: rotate(180deg); }

/* Long-form text (blog posts, legal pages) */
.prose-v { color: #2B3A5A; line-height: 1.75; font-size: 1.0625rem; }
.prose-v > * + * { margin-top: 1.1em; }
.prose-v h2 { color: var(--navy-950); font-weight: 600; font-size: 1.5rem; line-height: 1.3; margin-top: 2.2em; }
.prose-v h3 { color: var(--navy-950); font-weight: 600; font-size: 1.2rem; margin-top: 1.8em; }
.prose-v h2:first-child, .prose-v h3:first-child { margin-top: 0; }
.prose-v a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.prose-v a:hover { color: var(--navy-950); }
.prose-v strong { color: var(--navy-950); font-weight: 600; }
.prose-v ul { list-style: disc; padding-left: 1.25rem; }
.prose-v ol { list-style: decimal; padding-left: 1.25rem; }
.prose-v li + li { margin-top: .4em; }
.prose-v blockquote { border-left: 3px solid var(--brand-600); padding-left: 1rem; color: var(--navy-600); }
.prose-v img { border-radius: .5rem; }
.prose-v code { font-family: 'IBM Plex Mono', monospace; font-size: .9em; background: #EAEFF6; padding: .1em .35em; border-radius: .25rem; }
.prose-v pre { background: var(--navy-950); color: #E6EDF7; padding: 1rem 1.25rem; border-radius: .5rem; overflow-x: auto; font-size: .9rem; }
.prose-v pre code { background: none; padding: 0; }
.prose-v table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose-v th, .prose-v td { border: 1px solid var(--navy-200); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose-v th { background: var(--surface); color: var(--navy-950); font-weight: 600; }

/* ---------- Interaction: short, consistent transitions ---------- */
a, button, .btn { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.card:hover { border-color: #C3CBDA; box-shadow: 0 14px 30px -20px rgba(9, 24, 39, .35); }

/* ---------- Scroll reveal (progressive enhancement) ----------
   The js-reveal class is only added when JavaScript runs and the visitor has
   not asked for reduced motion, so content is always visible without it. */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media print { .js-reveal .reveal { opacity: 1; transform: none; } }

/* ---------- Service visuals ---------- */
.flow-step { position: relative; display: grid; grid-template-columns: 1.75rem 1fr; column-gap: .75rem; padding-bottom: 1.1rem; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ""; position: absolute; left: .4rem; top: 1.1rem; bottom: -.1rem; width: 2px; background: rgba(255, 255, 255, .12); }
.flow-step:last-child::before { display: none; }
.flow-dot { grid-row: span 2; width: .85rem; height: .85rem; margin-top: .3rem; border-radius: 9999px; box-shadow: 0 0 0 4px #091827; position: relative; z-index: 1; }
.flow-kind { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #7D8BA8; }
.flow-label { color: #fff; }

.chip { border: 1px solid var(--navy-200); background: var(--card); border-radius: .4rem; padding: .3rem .6rem; color: var(--navy-900); }
.chip-strong { border-color: var(--navy-950); background: var(--navy-950); color: var(--card); }
.chip-arrow { color: #7D8BA8; }

/* ---------- Reference architecture ---------- */
.arch-col { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.arch-head { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-600); }
.arch-box { border: 1px solid var(--navy-200); background: var(--card); border-radius: .45rem; padding: .6rem .75rem; color: var(--navy-900); font-size: .92rem; }
.arch-box-strong { border-color: var(--brand-600); box-shadow: inset 3px 0 0 var(--brand-600); font-weight: 600; }
.arch-col:not(:last-child)::after { content: "↓"; display: block; text-align: center; color: var(--navy-600); padding-top: .25rem; }
@media (min-width: 768px) {
    .arch-col { padding-right: 2.25rem; }
    .arch-col:not(:last-child)::after { content: "→"; position: absolute; right: .55rem; top: 50%; padding: 0; transform: translateY(-10%); }
}

/* ---------- Methodology timeline ---------- */
.method-steps > li { border-top: 2px solid var(--navy-200); padding-top: 1rem; }

/* ---------- Products: phone, chat and request card ---------- */
.sample-badge { display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; border: 1px dashed #B98A0B; background: #FFF8E1; color: #7A5600; border-radius: .35rem; padding: .1rem .45rem; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
/* The phone frame is dark hardware in both themes. */
.phone { width: 100%; max-width: 18.5rem; border: 9px solid #091827; border-radius: 2.4rem; background: #091827; box-shadow: 0 30px 60px -30px rgba(9, 24, 39, .55); }
.phone-screen { overflow: hidden; border-radius: 1.8rem; background: var(--card); }
.chat { overflow: hidden; border: 1px solid var(--navy-200); border-radius: .9rem; background: var(--card); box-shadow: 0 24px 48px -32px rgba(9, 24, 39, .45); }
.chat-body { background: var(--surface); }
.msg { width: fit-content; max-width: 85%; border-radius: .8rem; padding: .55rem .75rem; }
.msg-guest { margin-left: auto; background: var(--navy-950); color: var(--card); border-bottom-right-radius: .2rem; }
.msg-bot { background: var(--card); color: var(--navy-900); border: 1px solid var(--navy-200); border-bottom-left-radius: .2rem; }
.msg-staff { background: #E8F8F6; color: #0F4F49; border: 1px solid #A9E5DE; border-bottom-left-radius: .2rem; }
.msg-who { display: block; margin-bottom: .15rem; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy-600); }
.msg-staff .msg-who { color: #1A8076; }
.request-card { border: 1px solid var(--navy-200); border-left: 3px solid var(--brand-600); border-radius: .7rem; background: var(--card); padding: 1rem 1.1rem; box-shadow: 0 18px 36px -28px rgba(9, 24, 39, .5); }
.status { border-radius: 9999px; padding: .15rem .55rem; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.status-wait { background: #FFF3C4; color: #7A5600; }
.status-ok { background: #E8F8F6; color: #1A6B63; }
.step-num { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; border: 1.5px solid var(--navy-950); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .8rem; font-weight: 500; color: var(--navy-950); transition: background-color .3s ease, color .3s ease; }

[data-theme="dark"] .sample-badge { background: rgba(255, 210, 63, .1); color: #FFD98A; border-color: #8A6A12; }
[data-theme="dark"] .phone { box-shadow: 0 0 0 1px #2A3A54, 0 30px 60px -30px rgba(0, 0, 0, .8); }
[data-theme="dark"] .chat, [data-theme="dark"] .request-card { box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .8); }
[data-theme="dark"] .msg-staff { background: rgba(46, 196, 182, .12); color: #BFEFEA; border-color: rgba(46, 196, 182, .35); }
[data-theme="dark"] .msg-staff .msg-who { color: #4FD0C4; }
[data-theme="dark"] .status-wait { background: rgba(255, 210, 63, .14); color: #FFD98A; }
[data-theme="dark"] .status-ok { background: rgba(46, 196, 182, .16); color: #7FE0D6; }

[data-theme="dark"] .dish-tile { fill: #1A2C45; }

/* ---------- Corporate services (VOY-006) ----------
   Colours come from the theme variables so the blocks work in the light and the dark theme. */

.flow-box { border: 1px solid var(--navy-200); border-radius: .6rem; background: var(--card); padding: .85rem 1rem; }
.flow-box-strong { border-color: var(--brand-600); box-shadow: inset 3px 0 0 var(--brand-600); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--navy-600); font-size: 1.1rem; line-height: 1; }

.doc-q { margin-left: auto; max-width: 88%; border-radius: .9rem .9rem .25rem .9rem; background: var(--navy-950); color: var(--card); padding: .65rem .85rem; }
.doc-a { max-width: 94%; border: 1px solid var(--navy-200); border-radius: .9rem .9rem .9rem .25rem; background: var(--card); padding: .75rem .9rem; color: var(--navy-900); }
.doc-source { display: inline-flex; max-width: 100%; align-items: flex-start; overflow-wrap: anywhere; gap: .4rem; border-radius: .4rem; background: rgb(var(--c-brand-50)); color: var(--brand-700); padding: .25rem .5rem; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .72rem; }
.doc-page { border: 1px solid var(--navy-200); border-radius: .5rem; background: var(--card); padding: 1rem 1.1rem; font-size: .8rem; line-height: 1.55; color: rgb(var(--c-navy-700)); }
.doc-mark { background: rgba(255, 210, 63, .45); color: var(--navy-950); border-radius: .15rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .1rem; }
.doc-line { display: block; height: .45rem; border-radius: 9999px; background: rgb(var(--c-navy-100)); }
[data-theme="dark"] .doc-mark { background: rgba(255, 210, 63, .22); }
[data-theme="dark"] .doc-source { background: rgba(77, 155, 255, .14); color: #8FC3F0; }

/* ---------- VoyentisKids projects (VOY-006) ---------- */
.project-tag { display: inline-flex; align-items: center; border-radius: 9999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 500; white-space: nowrap; }
.project-past { background: #E3F1E6; color: #1E5B2E; }
.project-planned { border: 1px dashed var(--navy-600); color: var(--navy-900); background: var(--card); }
/* A block program drawn with plain lists: each nested list is the body of the block above it. */
.block-stack, .block-stack ol { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 500; color: #14213D; }
.block-stack li { border: 2px solid #14213D; border-radius: .5rem; padding: .4rem .7rem; width: fit-content; max-width: 100%; }
.block-stack ol { margin: .45rem 0 .1rem .9rem; }
.block-event { background: #FFD23F; border-top-left-radius: 1.1rem !important; }
.block-loop { background: #FFB4A2; }
.block-if { background: #C9B8F5; }
.block-move { background: #8EE3D7; }

/* ---------- Theme toggle ---------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--navy-200); border-radius: .5rem; color: var(--navy-900); background: transparent; transition: border-color .2s ease, background-color .2s ease; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--navy-600); background: var(--surface); }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* ---------- Dark theme: fixed light surfaces and long-form text ---------- */
/* Pastel surfaces (Kids) keep the light palette; their text colour is reset to the light theme's. */
[data-theme="dark"] .light-only { color-scheme: light; color: rgb(var(--c-navy-900)); }
[data-theme="dark"] .prose-v { color: rgb(var(--c-navy-800)); }
[data-theme="dark"] .prose-v code { background: rgb(var(--c-navy-100)); }
[data-theme="dark"] .prose-v pre { background: #091827; color: #E6EDF7; }
[data-theme="dark"] .project-past { background: rgba(62, 155, 94, .18); color: #9FDDB1; }

/* ---------- Showcase: dark band after the hero (home) ----------
   The facts strip floats on the hero edge; .facts-band paints navy only below the hero, so the hero
   itself is untouched. Photos zoom in once when revealed, sample cards slide in after them and drift
   slightly while scrolling (scroll-driven animations where supported). Reduced motion: all static. */
.facts-band { background: linear-gradient(to bottom, transparent 6rem, #091827 6rem); }
@media (min-width: 640px) { .facts-band { background: linear-gradient(to bottom, transparent 5rem, #091827 5rem); } }
.facts-card { border: 1px solid rgba(255, 255, 255, .12); border-radius: 1rem; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.showcase { background-image: radial-gradient(52rem 30rem at 86% 24rem, rgba(77, 155, 255, .11), transparent 70%), radial-gradient(44rem 32rem at 0% 58%, rgba(46, 196, 182, .06), transparent 60%); }
.showcase-num { display: flex; align-items: center; gap: .75rem; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .8rem; letter-spacing: .12em; color: #8FC3F0; }
.showcase-num::after { content: ""; width: 3rem; height: 1px; background: rgba(143, 195, 240, .45); }
.showcase-media { position: relative; }
.showcase-frame { position: relative; overflow: hidden; border-radius: 1.25rem; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75); }
.showcase-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(9, 24, 39, .55)); pointer-events: none; }
.showcase-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.showcase-media:hover .showcase-img { transform: scale(1.03); }

/* Phones and tablets: the card sits under the photo and overlaps only its lower edge.
   Desktop: it floats over the photo corner. */
.float-card { position: relative; z-index: 1; margin: -2.75rem 0 0 auto; width: min(18rem, calc(100% - 2rem)); padding: 1rem 1.1rem 1.1rem; border-radius: 1rem; background: rgba(9, 24, 39, .88); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.float-card-right { margin-right: 1rem; }
.float-card-left { margin-left: 1rem; margin-right: auto; }
@media (min-width: 1024px) {
    .float-card { position: absolute; bottom: -2.5rem; margin: 0; width: 17.5rem; }
    .float-card-right { right: -2rem; }
    .float-card-left { left: -2rem; }
}
.float-row { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .5rem; }
.float-row span { font-family: 'IBM Plex Mono', ui-monospace, monospace; color: #8FC3F0; }
.float-steps li { position: relative; display: grid; grid-template-columns: .6rem minmax(0, 1fr); column-gap: .8rem; padding-bottom: .75rem; font-size: .875rem; line-height: 1.35; }
.float-steps li:last-child { padding-bottom: 0; }
.float-steps li::before { content: ""; position: absolute; left: .27rem; top: 1rem; bottom: .15rem; width: 1px; background: rgba(255, 255, 255, .2); transform-origin: top; }
.float-steps li:last-child::before { display: none; }
.float-steps li > span:last-child { grid-column: 2; font-size: .8rem; }
.float-dot { grid-row: span 2; width: .6rem; height: .6rem; margin-top: .3rem; border-radius: 9999px; background: #4D9BFF; box-shadow: 0 0 0 3px rgba(77, 155, 255, .18); }
.float-dot-end { background: #2EC4B6; box-shadow: 0 0 0 3px rgba(46, 196, 182, .18); }
.float-check { display: flex; align-items: center; gap: .6rem; }
.float-check::before { content: ""; flex-shrink: 0; width: 1.1rem; height: 1.1rem; border-radius: 9999px; background: rgba(46, 196, 182, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234FD0C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .75rem no-repeat; }
.showcase-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: .15rem; transition: border-color .2s ease, gap .2s ease; }
.showcase-link:hover { border-color: #fff; gap: .75rem; }
.showcase-link-quiet { color: #C3CBDA; border-color: rgba(195, 203, 218, .3); }

/* Reveal choreography (only when motion is allowed: .js-reveal) */
.js-reveal .showcase-media.reveal .showcase-img { transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .showcase-media.reveal.is-visible .showcase-img { transform: scale(1); }
.js-reveal .showcase-media.reveal.is-visible:hover .showcase-img { transform: scale(1.03); transition-duration: .8s; }
.js-reveal .showcase-media.reveal .float-card { opacity: 0; transform: translateY(18px); transition: opacity .7s ease .35s, transform .7s cubic-bezier(.2, .7, .2, 1) .35s; }
.js-reveal .showcase-media.reveal.is-visible .float-card { opacity: 1; transform: none; }
.js-reveal .showcase-media.reveal .float-steps li::before { transform: scaleY(0); transition: transform .45s ease; }
.js-reveal .showcase-media.reveal.is-visible .float-steps li::before { transform: scaleY(1); }
.js-reveal .showcase-media.reveal.is-visible .float-steps li:nth-child(1)::before { transition-delay: .8s; }
.js-reveal .showcase-media.reveal.is-visible .float-steps li:nth-child(2)::before { transition-delay: 1.1s; }
.js-reveal .showcase-media.reveal.is-visible .float-steps li:nth-child(3)::before { transition-delay: 1.4s; }
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .float-card { animation: float-drift linear both; animation-timeline: view(); animation-range: cover; }
        @keyframes float-drift { from { translate: 0 22px; } to { translate: 0 -22px; } }
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .net-line { stroke-dashoffset: 0; }
    .net-node { opacity: 1; }
    .net-packet { display: none; }
}
