/* Layout: enterprise technology site (structure inspired by large digital-engineering firms): mega-menu nav, statement hero over a live signal field, thesis, three pillars, case-study carousel, expertise grid, grouped industries, insights, careers, newsletter, multi-column footer, AI assistant widget. Dark single theme in the logo's colors. */
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(/fonts/unbounded-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #0a1628;
  --panel: #10213d;
  --panel-2: #172c4d;
  --line: #22385c;
  --text: #f4f2f8;
  --soft: #cdd7e8;
  --muted: #9badc6;
  --ember: #ff8a1f;
  --plum: #6a2bd9;
  --rose: #d6336c;
  --cyan: #1fc8ff;
  --violet: #8b5cf6;
  --ph: #ffd166;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --ink-rgb: 10, 22, 40;
  --topbar: #071121;
  --line-strong: #30507d;
  --news-a: #0d1c36; --news-b: #142a4d;
  --shadow: rgba(2, 8, 20, .7);
}
/* Light theme: chosen with the switch in the top bar, or by the visitor's system setting */
:root[data-mode="light"] {
  color-scheme: light;
  --ink: #f7f6fb;
  --panel: #ffffff;
  --panel-2: #f0eef6;
  --line: #e2dfea;
  --text: #16131f;
  --soft: #3b3647;
  --muted: #676176;
  --ink-rgb: 247, 246, 251;
  --topbar: #efedf5;
  --line-strong: #c9c4d4;
  --news-a: #f1ecfb; --news-b: #fbefe6;
  --shadow: rgba(40, 30, 70, .16);
  --ph: #a86b00;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } body { font-size: 16px; } }
.grad-text { background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ember-text { background: linear-gradient(90deg, var(--rose), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ph); border: 1px dashed color-mix(in srgb, var(--ph) 60%, transparent); padding: 1px 7px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h2.sec { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.01em; margin: 10px 0 0; text-wrap: balance; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: 40px; }
.sec-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--text); }
.arrow-link::after { content: "→"; transition: transform .2s; color: var(--ember); }
.arrow-link:hover::after { transform: translateX(4px); }
section.band { padding-block: 104px; }
section.band + section.band { border-top: 1px solid var(--line); }
@media (max-width: 820px) { section.band { padding-block: 72px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn-primary { background: var(--ember); color: #1a0d00; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -6px rgba(255,138,31,.6); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }


/* Header + mega menu */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }
.nav-logo img { height: 46px; width: auto; display: block; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; height: 100%; }
.menu > li { height: 100%; display: flex; align-items: center; }
.menu > li > a, .menu > li > button { font: 500 15px/1 var(--body); color: var(--soft); background: none; border: 0; padding: 10px 14px; border-radius: 8px; text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.menu > li > a:hover, .menu > li > button:hover, .has-mega:focus-within > button, .has-mega:hover > button { color: var(--text); background: var(--panel); }
.has-mega > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.mega { position: absolute; left: 0; right: 0; top: 68px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -20px var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 36px 40px; }
.mega h5 { margin: 0 0 14px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mega ul a { text-decoration: none; color: var(--soft); font-size: 15px; }
.mega ul a:hover { color: var(--ember); }
.mega-feature { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.mega-feature b { font-family: var(--display); font-weight: 500; font-size: 17px; }
.mega-feature p { margin: 0; color: var(--muted); font-size: 14px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.6px; background: currentColor; margin: auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--panel); }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 0 20px; display: grid; }
.mobile-menu a { display: block; padding: 12px 0; text-decoration: none; color: var(--soft); border-bottom: 1px solid var(--line); }
@media (max-width: 1080px) { .menu { display: none; } .burger { display: grid; place-items: center; } .nav.open .mobile-menu { display: block; } }
@media (max-width: 520px) { .nav-cta .btn { display: none; } .nav-logo img { height: 36px; } }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--ink-rgb),.92) 0%, rgba(var(--ink-rgb),.6) 45%, rgba(var(--ink-rgb),.1) 75%), linear-gradient(0deg, var(--ink), transparent 30%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 128px 112px; display: grid; gap: 28px; }
.hero h1 { font-family: var(--display); font-weight: 400; margin: 0; font-size: clamp(38px, 5.6vw, 80px); line-height: 1; letter-spacing: -.03em; max-width: 12ch; }
.hero h1 b { font-weight: 600; }
.hero .lede { margin: 0; max-width: 52ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--soft); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.announce { position: relative; z-index: 1; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 80%, transparent); }
.announce .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.announce .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #1a0d00; background: var(--ember); padding: 4px 10px; border-radius: 999px; margin-right: 12px; }
.announce span.t { color: var(--soft); font-size: 15px; }

/* Thesis */
.thesis { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 80px; align-items: start; }
.thesis h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 0; text-wrap: balance; }
.thesis p { color: var(--soft); margin: 0 0 18px; font-size: 18px; max-width: 58ch; }
@media (max-width: 860px) { .thesis { grid-template-columns: 1fr; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.pillar { background: linear-gradient(180deg, var(--panel), var(--ink)); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: grid; gap: 14px; align-content: start; transition: border-color .25s, transform .25s; }
.pillar:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pillar .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); }
.pillar h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* Deep values */
.deep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.deep-item { border: 1px solid var(--line); border-radius: 18px; padding: 36px; display: grid; gap: 14px; background: radial-gradient(ellipse 80% 90% at 100% 0%, rgba(106,43,217,.16), transparent 60%), var(--panel); }
.deep-item:nth-child(2) { background: radial-gradient(ellipse 80% 90% at 100% 0%, rgba(255,138,31,.13), transparent 60%), var(--panel); }
.deep-item h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); }
.deep-item p { margin: 0; color: var(--soft); }
.deep-item ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.deep-item li::before { content: "—  "; color: var(--ember); }
@media (max-width: 860px) { .deep { grid-template-columns: 1fr; } .deep-item { padding: 26px; } }

/* Case studies carousel */
.car-ctrl { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.car-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; font-size: 18px; }
.car-ctrl button:hover { border-color: var(--text); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #3a3446 transparent; }
.case { scroll-snap-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.case .thumb { aspect-ratio: 16 / 9; max-width: 100%; }
.case .thumb svg { width: 100%; height: 100%; display: block; }
.case .body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.case .client { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.case h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.case .result { color: var(--cyan); font-family: var(--display); font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.case .result small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 400; }

/* Expertise */
.expertise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.svc { background: var(--ink); padding: 28px; display: grid; gap: 12px; align-content: start; transition: background .25s; }
.svc:hover { background: var(--panel); }
.svc h3 { margin: 6px 0 0; font-size: 20px; }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; }
.media { margin: 0; aspect-ratio: 2 / 1; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.media svg { width: 100%; height: 100%; display: block; }
@media (max-width: 960px) { .expertise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .expertise { grid-template-columns: 1fr; } }

/* Industries */
.ind-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.ind-group { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.ind-group h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 19px; display: flex; align-items: center; gap: 12px; }
.ind-group h3 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ind-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ind-group li { font-size: 14px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 960px) { .ind-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ind-groups { grid-template-columns: 1fr; } .ind-group { padding-right: 0; } }

/* AI platform band */
.platform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.platform h2 { margin-bottom: 18px; }
.platform p { color: var(--soft); max-width: 56ch; }
.tiles { display: grid; gap: 12px; margin-top: 24px; }
.tile { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-decoration: none; transition: border-color .2s, background .2s; }
.tile:hover { border-color: var(--line-strong); background: var(--panel-2); }
.tile b { display: block; font-size: 16px; }
.tile span.d { color: var(--muted); font-size: 14px; }
.tile .dot { width: 36px; height: 36px; border-radius: 10px; }
.tile::after { content: "→"; color: var(--ember); }
.chip-art { margin: 0; background: radial-gradient(ellipse at 50% 55%, #15305a, #0a1628 70%); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.chip-art svg { width: 100%; height: auto; display: block; }
.pulse { stroke-dasharray: 24 400; animation: pulse 3.2s linear infinite; }
@keyframes pulse { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -424; } }
.tok { animation: tok 2.6s ease-in-out infinite; } @keyframes tok { 50% { opacity: .35; } }
.flow { animation: flow 1.6s linear infinite; } @keyframes flow { to { stroke-dashoffset: -18; } }
.scan { animation: scan 3.2s ease-in-out infinite alternate; } @keyframes scan { to { transform: translateY(100px); } }
@media (max-width: 900px) { .platform { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: 32px 24px 32px 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .v { font-family: var(--display); font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Insights */
.insights { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.post { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.post .thumb { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.post .thumb svg { width: 100%; height: 100%; display: block; transition: transform .4s; }
.post:hover .thumb svg { transform: scale(1.04); }
.post .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); }
.post h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.post:first-child h3 { font-family: var(--display); font-weight: 500; font-size: 24px; }
@media (max-width: 900px) { .insights { grid-template-columns: 1fr 1fr; } .post:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .insights { grid-template-columns: 1fr; } }

/* Careers */
.careers { border-radius: 24px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; background: radial-gradient(ellipse 60% 120% at 100% 100%, rgba(255,138,31,.22), transparent 60%), radial-gradient(ellipse 60% 120% at 0% 0%, rgba(106,43,217,.28), transparent 60%), var(--panel); border: 1px solid var(--line); }
.careers h2 { margin-bottom: 14px; }
.careers p { color: var(--soft); margin: 0 0 24px; max-width: 50ch; }
.roles { display: grid; gap: 10px; }
.role { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; background: rgba(var(--ink-rgb),.55); border: 1px solid var(--line); font-size: 15px; }
.role span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .careers { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; }
.contact .info { display: grid; gap: 20px; align-content: start; color: var(--soft); }
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin: 2px 0 0; font-size: 17px; user-select: all; }
form { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
input, textarea, select { font: 400 16px/1.4 var(--body); color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(31,200,255,.18); }
.form-note { font-size: 14px; color: var(--muted); min-height: 1.4em; margin: 0; }
.form-note.ok { color: var(--cyan); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } form { padding: 20px; } }

/* Newsletter + footer */
.newsletter { background: linear-gradient(90deg, var(--news-a), var(--news-b)); border-top: 1px solid var(--line); }
.newsletter .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-block: 48px; }
.newsletter h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); }
.newsletter p { margin: 6px 0 0; color: var(--muted); }
.nl-form { display: flex; gap: 10px; flex: 1 1 360px; max-width: 480px; background: none; border: 0; padding: 0; }
.nl-form input { border-radius: 999px; padding-inline: 20px; }
footer { border-top: 1px solid var(--line); padding-block: 64px 28px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand img { height: 48px; width: auto; }
.foot-brand p { margin: 0; max-width: 38ch; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--soft); }
.social a:hover { border-color: var(--text); color: var(--text); }
.social svg { width: 16px; height: 16px; }
footer h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer ul a { text-decoration: none; }
footer ul a:hover { color: var(--text); }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* AI assistant widget */
[hidden] { display: none !important; }
.assist-btn { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: 600 14px/1 var(--body); cursor: pointer; box-shadow: 0 12px 40px -10px rgba(0,0,0,.8); }
.assist-btn i { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 200deg, var(--cyan), var(--violet), var(--rose), var(--ember), var(--cyan)); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-size: 11px; color: #fff; }
.assist { position: fixed; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: min(360px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); display: grid; grid-template-rows: auto 1fr auto; max-height: min(520px, 70vh); overflow: hidden; }
.assist header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.assist header b { font-size: 15px; } .assist header small { display: block; color: var(--muted); font-size: 12px; }
.assist header button { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.msgs { padding: 14px 16px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.msg { padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; max-width: 88%; }
.msg.bot { background: var(--panel-2); border: 1px solid var(--line); justify-self: start; }
.msg.me { background: var(--ember); color: #1a0d00; justify-self: end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chips button { font: 500 13px/1 var(--body); color: var(--soft); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.chips button:hover { border-color: var(--cyan); color: var(--text); }
@media (max-width: 520px) { .assist-btn span { display: none; } .assist-btn { padding: 10px; } .assist { right: 16px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .tok, .flow, .scan { animation: none; } .pulse { opacity: 0; }
  .btn, .pillar, .post .thumb svg, .mega { transition: none; }
}

/* ---------- Multi-page additions ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ember); color: #1a0d00; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.muted { color: var(--muted); }
.hl { background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hl, .page-head .hl { background-image: linear-gradient(90deg, var(--rose), var(--ember)); }
.menu > li > a[aria-current="page"] { color: var(--text); }
a.svc, a.ind-group, a.role, a.post, .case h3 a { text-decoration: none; color: inherit; }
.case h3 a:hover { color: var(--ember); }
.case .thumb { display: block; }
.case .thumb img, .case .thumb video, .post .thumb img, .post .thumb video, .media img, .media video, .chip-art img, .chip-art video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media, .page-head-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video, .page-head-media img, .page-head-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--ink-rgb),.94) 0%, rgba(var(--ink-rgb),.65) 50%, rgba(var(--ink-rgb),.2) 85%), linear-gradient(0deg, var(--ink), transparent 40%); }
.page-head .wrap { position: relative; z-index: 1; padding-block: 96px 80px; display: grid; gap: 20px; }
.page-head h1 { font-family: var(--display); font-weight: 400; margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; max-width: 20ch; text-wrap: balance; }
.page-head .lede { margin: 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--soft); }
.page-head .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(30px, 4.2vw, 54px); max-width: 24ch; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 12px; color: var(--soft); border: 1px solid var(--line); background: var(--panel); padding: 4px 10px; border-radius: 6px; }
.big-result { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); color: var(--cyan); line-height: 1; }
.big-result small { font-family: var(--body); font-size: 17px; color: var(--muted); }
.post-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; flex-wrap: wrap; }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.detail-side { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; }
.detail-side h4 { margin: 8px 0 0; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; }
.side-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--soft); font-size: 15px; }
.side-links a:hover { color: var(--ember); }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: 40px; } .detail-side { position: static; } }
.narrow { max-width: 820px; }
.prose { font-size: 18px; color: var(--soft); max-width: 68ch; min-width: 0; }
.prose h2 { font-family: var(--display); font-weight: 500; color: var(--text); font-size: 26px; margin: 40px 0 12px; }
.prose h3 { color: var(--text); font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cyan); }
.prose .lead { font-size: 20px; color: var(--text); }
.prose img, .prose video { max-width: 100%; border-radius: 12px; }
.prose blockquote { margin: 0 0 18px; padding-left: 18px; border-left: 3px solid var(--ember); color: var(--text); }
.hero-figure { margin: 0 0 32px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-width: 100%; background: var(--panel); }
.hero-figure svg, .hero-figure img, .hero-figure video { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }
.insights.all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insights.all .post:first-child h3 { font-family: var(--body); font-weight: 700; font-size: 19px; }
@media (max-width: 900px) { .insights.all { grid-template-columns: 1fr 1fr; } .insights.all .post:first-child { grid-column: auto; } }
@media (max-width: 560px) { .insights.all { grid-template-columns: 1fr; } }

.industry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.industry { border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: linear-gradient(180deg, var(--panel), var(--ink)); display: grid; gap: 12px; align-content: start; scroll-margin-top: 100px; }
.industry h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; display: flex; gap: 12px; align-items: center; }
.industry h2 i { width: 12px; height: 12px; border-radius: 3px; }
.industry p { margin: 0; color: var(--soft); }
.industry ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.industry li { font-size: 14px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 760px) { .industry-list { grid-template-columns: 1fr; } .industry { padding: 24px; } }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--panel); }
.value h3 { margin: 0 0 6px; font-size: 18px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.leader { display: grid; gap: 8px; align-content: start; }
.leader .photo { aspect-ratio: 1; max-width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 30% 20%, rgba(139,92,246,.35), transparent 60%), var(--panel); display: grid; place-items: center; }
.leader .photo img { width: 100%; height: 100%; object-fit: cover; }
.leader .photo span { font-family: var(--display); font-size: 48px; color: var(--soft); }
.leader h3 { margin: 8px 0 0; font-size: 19px; }
.leader .role-t { color: var(--ember); font-size: 14px; font-weight: 600; }
.leader p { margin: 0; color: var(--muted); font-size: 15px; }

.perks { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.perks li { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--panel); color: var(--soft); }
.jobs { display: grid; gap: 12px; }
.job { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.job summary { cursor: pointer; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job summary span { color: var(--muted); }
.job[open] summary { border-bottom: 1px solid var(--line); }
.job p { margin: 18px 24px; color: var(--soft); }
.job .btn { margin: 0 24px 22px; }

.notice { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.notice.ok { background: rgba(31,200,255,.1); border: 1px solid rgba(31,200,255,.4); color: var(--text); }
.notice.err { background: rgba(214,51,108,.12); border: 1px solid rgba(214,51,108,.5); color: var(--text); }
.showcase { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-width: 100%; background: #000; }
.showcase video, .showcase img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cta-band { padding-block: 64px; border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 120% at 85% 50%, rgba(255,138,31,.14), transparent 70%), radial-gradient(ellipse 50% 120% at 10% 50%, rgba(106,43,217,.18), transparent 70%), var(--panel); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3vw, 36px); margin: 0 0 8px; text-wrap: balance; }
.cta-band p { margin: 0; color: var(--muted); }

/* YouTube / Vimeo embeds */
iframe.embed { width: 100%; height: 100%; border: 0; display: block; }
.hero-media iframe.embed, .page-head-media iframe.embed { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-media, .page-head-media { overflow: hidden; }
.foot-brand p.legal { font-size: 12px; letter-spacing: .06em; color: var(--muted); }

.pillars.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .pillars.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pillars.four { grid-template-columns: 1fr; } }
.serve { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.serve-item { padding: 36px 32px; display: grid; gap: 14px; align-content: start; background: var(--ink); }
.serve-item + .serve-item { border-left: 1px solid var(--line); }
.serve-item:nth-child(1) { background: radial-gradient(ellipse 90% 70% at 0% 0%, rgba(255,138,31,.12), transparent 70%), var(--ink); }
.serve-item:nth-child(2) { background: radial-gradient(ellipse 90% 70% at 0% 0%, rgba(31,200,255,.10), transparent 70%), var(--ink); }
.serve-item:nth-child(3) { background: radial-gradient(ellipse 90% 70% at 0% 0%, rgba(139,92,246,.14), transparent 70%), var(--ink); }
.serve-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); }
.serve-item h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 500; font-size: 24px; }
.serve-item p { margin: 0; color: var(--soft); }
@media (max-width: 860px) { .serve { grid-template-columns: 1fr; } .serve-item + .serve-item { border-left: 0; border-top: 1px solid var(--line); } }
.hero h1 { max-width: 13ch; }

/* Top contact bar */
.topbar { background: var(--topbar); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: var(--soft); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--text); }
.topbar-contact svg { width: 14px; height: 14px; color: var(--ember); }
.social.small { gap: 6px; }
.social.small a { width: 28px; height: 28px; }
.social.small svg { width: 14px; height: 14px; }
.social a:hover { color: var(--ember); border-color: var(--ember); }
.contact-list a, .contact dd a { color: inherit; text-decoration: none; }
.contact-list a:hover, .contact dd a:hover { color: var(--text); }
.contact .info .social { margin-top: 8px; }
@media (max-width: 560px) { .topbar-contact a:nth-child(2) { display: none; } }

/* Credentials strip under the hero */
.creds { position: relative; z-index: 1; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 70%, transparent); backdrop-filter: blur(8px); }
.hero .creds .wrap.creds-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 0; gap: 0; }
.cred { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px 22px 0; }
.cred + .cred { padding-left: 20px; border-left: 1px solid var(--line); }
.cred i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; box-shadow: 0 0 12px currentColor; }
.cred b { display: block; font-size: 15px; }
.cred small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
@media (max-width: 960px) { .hero .creds .wrap.creds-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cred:nth-child(3) { border-left: 0; padding-left: 0; } .cred:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .hero .creds .wrap.creds-row { grid-template-columns: 1fr; } .cred + .cred { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }
.announce { border-top-color: transparent; }

/* AI lifecycle video section */
.lifecycle { background: radial-gradient(ellipse 60% 70% at 85% 40%, rgba(106,43,217,.16), transparent 70%); }
.lifecycle-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.lifecycle-copy > p { color: var(--soft); margin: 18px 0 24px; max-width: 48ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--ember); flex: none; }
.steps b { color: var(--text); font-weight: 700; margin-right: 2px; }
.player { display: grid; gap: 12px; min-width: 0; }
.player .showcase { box-shadow: 0 40px 120px -40px rgba(106,43,217,.55), 0 0 0 1px rgba(255,255,255,.04); }
.player-cap { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 960px) { .lifecycle-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Home call to action */
.home-cta { padding-block: 88px; }
.home-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.home-cta p { max-width: 60ch; }

/* Blog */
.feature-post { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; text-decoration: none; padding-bottom: 56px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.feature-post .thumb { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.feature-post .thumb svg, .feature-post .thumb img, .feature-post .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.feature-post:hover .thumb svg, .feature-post:hover .thumb img { transform: scale(1.03); }
.feature-post .body { display: grid; gap: 16px; align-content: center; }
.feature-post h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; margin: 0; text-wrap: balance; }
.feature-post p { margin: 0; color: var(--soft); }
.feature-post .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.byline { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .feature-post { grid-template-columns: 1fr; gap: 24px; } }
.blog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 14px/1 var(--body); color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--text); color: var(--ink); border-color: var(--text); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; color: var(--muted); min-width: min(280px, 100%); }
.search input { background: transparent; border: 0; color: var(--text); font: 500 15px var(--body); padding: 11px 0; outline: none; width: 100%; }
.post .sum { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.muted { color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.post-meta .author { display: inline-flex; align-items: center; gap: 10px; }
.post-meta .author i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--body); font-style: normal; color: #fff; background: linear-gradient(135deg, var(--plum), var(--rose)); }
.post-meta .author b { display: block; color: var(--text); font-size: 15px; }
.post-meta .author small { display: block; font-size: 13px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.post-side { position: sticky; top: 104px; display: grid; gap: 24px; }
.post-side h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.post-side .social button { cursor: pointer; }
.side-cta { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: grid; gap: 10px; justify-items: start; }
.side-cta p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; gap: 40px; } .post-side { position: static; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.embed-figure { margin: 0 0 24px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.embed-figure video, .embed-figure iframe { width: 100%; height: 100%; border: 0; display: block; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 14px; }
.prose code { font-family: var(--mono); font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.draft-bar { background: var(--ph); color: #1a1300; text-align: center; font-weight: 600; font-size: 14px; padding: 10px 16px; }
.social button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--soft); display: inline-grid; place-items: center; }
.social button svg { width: 16px; height: 16px; }
.social button.done { color: var(--ember); border-color: var(--ember); }

/* Footer legal links */
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* Gentle reveal on scroll (only when JavaScript runs and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Theme switch */
.theme-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--soft); display: inline-grid; place-items: center; cursor: pointer; margin-left: 6px; }
.theme-toggle:hover { color: var(--ember); border-color: var(--ember); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .sun, :root[data-mode="light"] .theme-toggle .moon { display: none; }
:root[data-mode="light"] .theme-toggle .sun { display: block; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
img.logo-on-light { display: none !important; }
:root[data-mode="light"] img.logo-on-dark { background: #0b0a0e; padding: 8px 14px; border-radius: 12px; box-sizing: content-box; box-shadow: 0 6px 18px -8px rgba(11,10,14,.45); }
:root[data-mode="light"] .nav-logo img.logo-on-dark { height: 40px; }
@media (max-width: 520px) { :root[data-mode="light"] .nav-logo img.logo-on-dark { height: 30px; padding: 6px 10px; } }
:root[data-mode="light"] .hero .lede, :root[data-mode="light"] .page-head .lede { color: var(--soft); }
:root[data-mode="light"] .btn-ghost { border-color: var(--line-strong); }
:root[data-mode="light"] .player .showcase { box-shadow: 0 40px 100px -40px rgba(106,43,217,.35); }
:root[data-mode="light"] .assist-btn { box-shadow: 0 10px 30px -10px var(--shadow); }

/* Contact map */
.map-band { padding-block: 0 104px; }
.map-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.map-info { padding: 32px; display: grid; gap: 14px; align-content: center; }
.map-info h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0; }
.map-info p { margin: 0; color: var(--soft); }
.map-info .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.map-frame { position: relative; min-height: 380px; background: var(--panel-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:root:not([data-mode="light"]) .map-frame iframe { filter: invert(90%) hue-rotate(180deg) saturate(.85) brightness(.95); }
@media (max-width: 860px) { .map-card { grid-template-columns: 1fr; } .map-frame { min-height: 320px; } .map-band { padding-block: 0 72px; } }

/* Technology video band */
.techreel { position: relative; overflow: hidden; background: radial-gradient(ellipse 55% 60% at 15% 0%, rgba(255,138,31,.10), transparent 70%), radial-gradient(ellipse 50% 60% at 90% 100%, rgba(34,211,238,.08), transparent 70%); }
.techreel-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.techreel-head p { color: var(--soft); margin: 0; max-width: 46ch; }
.techreel-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #081427; border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -40px rgba(106,43,217,.55), 0 0 0 1px rgba(255,138,31,.06); isolation: isolate; }
.techreel-frame::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--tr-a, 0deg), transparent 0 70%, rgba(255,138,31,.9) 80%, rgba(34,211,238,.9) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; pointer-events: none; animation: tr-spin 6s linear infinite; }
@property --tr-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tr-spin { to { --tr-a: 360deg; } }
.techreel-frame video, .techreel-frame iframe, .techreel-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.techreel-live { position: absolute; top: 18px; right: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(7,17,33,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); padding: 7px 11px; border-radius: 999px; }
.techreel-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255,138,31,.7); animation: tr-ping 1.8s ease-out infinite; }
@keyframes tr-ping { 70% { box-shadow: 0 0 0 8px rgba(255,138,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,31,0); } }
.techreel-chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.techreel-chips li { font: 500 13px/1 var(--body); color: var(--soft); border: 1px solid rgba(139,92,246,.35); border-radius: 999px; padding: 10px 16px; background: rgba(var(--ink-rgb), .02); transition: border-color .2s, color .2s, transform .2s; }
.techreel-chips li:hover { border-color: var(--ember); color: var(--text); transform: translateY(-2px); }
:root[data-mode="light"] .techreel-frame { box-shadow: 0 40px 80px -40px rgba(106,43,217,.35); }
@media (max-width: 960px) { .techreel-head { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) { .techreel-frame { border-radius: 14px; } .techreel-live { top: 10px; right: 10px; } .techreel-chips { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .techreel-frame::before, .techreel-live i { animation: none; } }

/* Hero text, refined */
.hero .wrap { gap: 26px; }
.hero-badge { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 9px 14px 9px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--ink-rgb), .55); backdrop-filter: blur(8px); }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255,138,31,.6); animation: tr-ping 1.8s ease-out infinite; }
.hero h1 { font-weight: 500; font-size: clamp(36px, 5vw, 72px); line-height: 1.04; letter-spacing: -.035em; max-width: 14ch; }
.hero h1 .hl { background-image: linear-gradient(100deg, #ff8a1f 0%, #ff5e7a 35%, #8b5cf6 65%, #1fc8ff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hero-shine 7s ease-in-out infinite alternate; }
@keyframes hero-shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-for { display: flex; align-items: baseline; gap: 12px; font: 500 clamp(18px, 1.7vw, 24px)/1.2 var(--body); color: var(--muted); margin-top: -6px; }
.rotator { position: relative; display: inline-grid; color: var(--text); }
.rotator b { grid-area: 1 / 1; font-weight: 700; white-space: nowrap; opacity: 0; transform: translateY(60%); transition: opacity .5s ease, transform .5s ease; border-bottom: 2px solid var(--ember); padding-bottom: 2px; }
.rotator b.on { opacity: 1; transform: none; }
.rotator b.out { opacity: 0; transform: translateY(-60%); }
.hero .lede { max-width: 56ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; padding-left: 20px; border-left: 2px solid; border-image: linear-gradient(180deg, var(--ember), var(--violet)) 1; }
.hero .lede b { color: var(--text); font-weight: 700; }
.hero-pillars { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pillars li { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1 var(--body); color: var(--text); padding: 10px 16px 10px 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(var(--ink-rgb), .45); backdrop-filter: blur(6px); transition: border-color .2s, transform .2s; }
.hero-pillars li:hover { border-color: var(--ember); transform: translateY(-2px); }
.hero-pillars .n { font: 500 11px/1 var(--mono); color: var(--ember); background: rgba(255,138,31,.12); padding: 5px 6px; border-radius: 6px; }
.hero .ctas { margin-top: 6px; }
@media (max-width: 600px) { .hero-badge { font-size: 10px; letter-spacing: .06em; line-height: 1.5; border-radius: 14px; } .hero-for { flex-wrap: wrap; gap: 6px; } .hero .lede { padding-left: 14px; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .hl, .hero-badge i { animation: none; } }
.hero h1 { font-size: clamp(34px, 4.6vw, 66px); max-width: none; }
.rotator { overflow: hidden; padding-bottom: 4px; }
@media (max-width: 900px) { .hero h1 br.br-lg { display: none; } }

/* Top bar: email sits with the social icons on the right */
.topbar-row { justify-content: flex-end; }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.topbar .social a { display: grid; place-items: center; gap: 0; padding: 0; line-height: 0; border-color: var(--line-strong); }
.topbar .social svg { display: block; margin: auto; }
.topbar-contact { padding-right: 16px; border-right: 1px solid var(--line); }
@media (max-width: 560px) { .topbar-right { gap: 10px; } .topbar-contact { padding-right: 10px; } .topbar-contact a { font-size: 12px; } }

/* Featured work */
.featured-work { background: radial-gradient(ellipse 50% 60% at 20% 50%, rgba(31,200,255,.08), transparent 70%); }
.fw-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.fw-media { position: relative; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 8 / 5; background: var(--panel); box-shadow: 0 40px 80px -40px rgba(31,200,255,.35); }
.fw-media img, .fw-media video, .fw-media iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.fw-media figcaption { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(7,17,33,.7); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); padding: 8px 12px; border-radius: 999px; }
.fw-media figcaption i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.fw-copy > p { color: var(--soft); margin: 18px 0 22px; }
.fw-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.fw-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.fw-steps .n { flex: none; font: 500 11px/1 var(--mono); color: var(--ember); background: rgba(255,138,31,.12); padding: 5px 6px; border-radius: 6px; margin-top: 1px; }
.fw-steps b { display: block; color: var(--text); font-weight: 700; }
@media (max-width: 960px) { .fw-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .fw-steps { grid-template-columns: 1fr; } }
.fw-caps { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fw-caps li { font: 600 12px/1 var(--body); color: var(--text); padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(31,200,255,.35); background: rgba(31,200,255,.06); }
.fw-copy > p { font-size: 15.5px; line-height: 1.7; }
.fw-grid { align-items: start; }
.fw-media { position: sticky; top: 110px; }
@media (max-width: 960px) { .fw-media { position: relative; top: auto; } }
.fw-grid { align-items: center; }
.fw-media { position: relative; top: auto; }
.featured-work .fw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.featured-work .fw-steps li { padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(var(--ink-rgb), .35); font-size: 14.5px; transition: background .2s; }
.featured-work .fw-steps li:nth-child(3n) { border-right: 0; }
.featured-work .fw-steps li:nth-last-child(-n+3) { border-bottom: 0; }
.featured-work .fw-steps li:hover { background: rgba(31,200,255,.06); }
.featured-work .fw-steps b { font-size: 16px; margin-bottom: 4px; }
@media (max-width: 960px) { .featured-work .fw-steps { grid-template-columns: 1fr 1fr; } .featured-work .fw-steps li:nth-child(3n) { border-right: 1px solid var(--line); } .featured-work .fw-steps li:nth-child(2n) { border-right: 0; } .featured-work .fw-steps li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .featured-work .fw-steps li:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 600px) { .featured-work .fw-steps { grid-template-columns: 1fr; } .featured-work .fw-steps li { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } .featured-work .fw-steps li:last-child { border-bottom: 0 !important; } }

/* Careers: job list, job page and application form */
.job-filter { margin: -8px 0 24px; }
.job-filter .chip.on { background: var(--ember); border-color: var(--ember); color: #1a0d00; }
.job-list { display: grid; gap: 14px; }
.job-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.job-card:hover { border-color: var(--ember); transform: translateY(-2px); box-shadow: 0 20px 40px -24px var(--shadow); }
.job-card[hidden] { display: none; }
.jc-dept { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.job-card h3 { margin: 8px 0 6px; font-family: var(--display); font-weight: 500; font-size: 22px; }
.job-card p { margin: 0 0 14px; color: var(--soft); max-width: 70ch; }
.jc-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jc-meta li { font: 600 12px/1 var(--body); color: var(--soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 11px; }
.jc-meta.big li { font-size: 13px; padding: 9px 14px; }
.jc-side { display: grid; justify-items: end; gap: 12px; text-align: right; }
.jc-date { font-size: 13px; color: var(--muted); }
.jc-date b { color: var(--text); }
.job-head .wrap { display: grid; gap: 18px; justify-items: start; }
.draft-note { background: rgba(255,138,31,.14); border: 1px solid rgba(255,138,31,.4); color: var(--text); padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.job-body h2 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0 0 14px; }
.job-body h2:not(:first-child) { margin-top: 36px; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 28px; color: var(--soft); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(-45deg); }
.job-side { position: sticky; top: 110px; }
.job-facts { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 24px; display: grid; gap: 18px; }
.job-facts h3 { margin: 0; font-size: 18px; }
.job-facts dl { margin: 0; display: grid; gap: 12px; }
.job-facts dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 14px; }
.job-facts dt { color: var(--muted); }
.job-facts dd { margin: 0; color: var(--text); font-weight: 600; }
.job-facts .btn { justify-self: stretch; text-align: center; }
.apply-box { margin-top: 48px; padding: 32px; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(180deg, rgba(31,200,255,.05), transparent 40%), var(--panel); scroll-margin-top: 120px; }
.apply-box h2 { margin-top: 0 !important; }
.apply-box .apply-form { display: grid; gap: 16px; margin-top: 18px; padding: 0; border: 0; background: none; box-shadow: none; }
.apply-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--soft); }
.apply-form .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-drop { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 16px; }
.file-drop input { border: 0; padding: 6px 0; background: transparent; }
.apply-form .consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.apply-form .consent input { width: auto; margin-top: 3px; }
.apply-form .btn { justify-self: start; }
.form-error { background: rgba(214,51,108,.14); border: 1px solid rgba(214,51,108,.5); color: var(--text); padding: 12px 14px; border-radius: 10px; margin-top: 12px; font-size: 14px; }
.apply-done { padding: 8px 0; }
.apply-done b { font-size: 20px; display: block; margin-bottom: 6px; }
.apply-done p { margin: 0; color: var(--soft); }
@media (max-width: 960px) { .job-grid { grid-template-columns: 1fr; } .job-side { position: static; order: -1; } }
@media (max-width: 640px) { .job-card { grid-template-columns: 1fr; } .jc-side { justify-items: start; text-align: left; } .apply-form .f2 { grid-template-columns: 1fr; } .apply-box { padding: 22px; } .job-facts dl div { grid-template-columns: 110px 1fr; } }

/* Page tools: share, back to top, go to bottom */
.page-tools { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 39; display: grid; gap: 8px; justify-items: end; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.pt-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); transition: opacity .25s, transform .25s, border-color .2s, color .2s; }
.pt-btn svg { width: 20px; height: 20px; }
.pt-btn:hover, .pt-btn[aria-expanded="true"] { border-color: var(--ember); color: var(--ember); }
.pt-btn.off { opacity: .35; pointer-events: none; }
.pt-btn { width: 42px; height: 42px; box-shadow: none; }
.pt-sep { height: 1px; background: var(--line); margin: 0 8px; }
.share-pop { position: absolute; right: calc(100% + 12px); top: 0; width: 210px; padding: 10px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: 0 30px 80px -20px rgba(0,0,0,.85); display: grid; gap: 2px; }
.share-pop[hidden] { display: none; }
.share-pop b { font-size: 13px; color: var(--muted); font-weight: 600; padding: 4px 8px 8px; }
.share-pop a, .share-pop button { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font: 500 14px/1.2 var(--body); background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.share-pop a:hover, .share-pop button:hover, .share-pop a:focus-visible, .share-pop button:focus-visible { background: var(--panel-2, rgba(255,255,255,.06)); }
.share-pop svg { width: 18px; height: 18px; flex: none; color: var(--soft); }
@media (max-width: 640px) { .page-tools { right: auto; left: 12px; top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; grid-auto-flow: column; gap: 2px; padding: 4px; } .pt-sep { width: 1px; height: auto; margin: 6px 2px; } .pt-btn { width: 38px; height: 38px; border-color: transparent; } .pt-btn svg { width: 18px; height: 18px; } .share-pop { right: auto; left: 0; top: auto; bottom: calc(100% + 10px); } }
@media print { .page-tools { display: none; } }
/* Hero fits the first screen: spacing and headline scale with the window height */
.hero .wrap { padding-block: clamp(36px, 6.5vh, 96px) clamp(40px, 7vh, 96px); gap: clamp(16px, 2.6vh, 26px); }
.hero h1 { font-size: clamp(34px, min(4.6vw, 8.2vh), 66px); }
.hero .lede { font-size: clamp(16px, min(1.5vw, 2.4vh), 20px); }
@media (max-width: 640px) { .hero .wrap { padding-block: 32px 40px; } }
