@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #060d20;
  --bg-2: #0a1530;
  --surface: #0f1d3d;
  --surface-2: #142650;
  --navy: #2e4676;
  --line: rgba(143, 168, 216, .16);
  --line-2: rgba(143, 168, 216, .28);
  --text: #eaf0fb;
  --muted: #9fb0d0;
  --dim: #6f82a8;
  --cyan: #4fd1ff;
  --cyan-2: #2aa8e0;
  --steel: #8fa8d8;
  --glow: 0 0 0 1px rgba(79, 209, 255, .35), 0 10px 40px -10px rgba(79, 209, 255, .45);
  --color-destructive: #ff8a8a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-control: 999px;
  --font-head: "Space Grotesk", "Cocon", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
::selection { background: rgba(79, 209, 255, .35); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.06; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 600; overflow-wrap: break-word; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }
.grad { background: linear-gradient(100deg, #ffffff 0%, var(--cyan) 55%, var(--steel) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--cyan); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 52ch; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 15px 28px; border-radius: var(--radius-control); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: linear-gradient(120deg, var(--cyan) 0%, #7fe0ff 100%); color: #04122b; box-shadow: 0 10px 34px -10px rgba(79, 209, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(79, 209, 255, .9); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); color: #fff; box-shadow: var(--glow); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.scrolled, .site-header.solid { background: rgba(6, 13, 32, .78); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a, .nav .sub-toggle { font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--text); text-decoration: none; padding: 10px 16px; border-radius: var(--radius-control); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .25s, color .25s; }
.nav a:hover, .nav .sub-toggle:hover, .has-sub.open > .sub-toggle { background: rgba(255,255,255,.07); }
.nav a[aria-current="page"], .nav .sub-toggle[aria-current="page"] { color: var(--cyan); }
.has-sub { position: relative; }
.sub-toggle svg { width: 11px; height: 11px; transition: transform .25s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.submenu { list-style: none; margin: 0; padding: 12px; position: absolute; top: 100%; left: 50%; min-width: 340px; background: rgba(10, 21, 48, .96); backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: var(--radius-md); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(79,209,255,.06); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub.open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s var(--ease), visibility 0s; }
.submenu a { display: flex; width: 100%; padding: 11px 14px; font-size: .95rem; border-radius: var(--radius-sm); }
.submenu .indent a { padding-left: 30px; color: var(--muted); font-size: .92rem; position: relative; }
.submenu .indent a::before { content: ""; position: absolute; left: 16px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); opacity: .6; transform: translateY(-50%); }
.submenu .indent a:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-control); margin-left: 10px; padding: 3px; }
.lang a { padding: 6px 13px !important; font-size: .78rem !important; letter-spacing: .1em; }
.lang a[aria-current="true"] { background: var(--cyan) !important; color: #04122b !important; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.menu-btn svg { width: 30px; height: 30px; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 84px 0 0 0; background: rgba(6, 13, 32, .98); backdrop-filter: blur(18px); flex-direction: column; align-items: stretch; padding: 20px var(--pad) 40px; overflow-y: auto; display: none; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav .sub-toggle { width: 100%; padding: 18px 4px; font-size: 1.25rem; justify-content: space-between; border-radius: 0; }
  .nav a:hover, .nav .sub-toggle:hover { background: none; }
  .submenu { position: static; transform: none !important; min-width: 0; padding: 0 0 14px; background: none; border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; }
  .has-sub.open .submenu { display: block; }
  .submenu a { font-size: 1.05rem; padding: 12px 8px; }
  .lang { margin: 28px 0 0; align-self: flex-start; }
}

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-sub { min-height: 78vh; min-height: 78svh; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 22s var(--ease) infinite alternate; }
@keyframes kenburns { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-media .slot-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media .slot-video.on { opacity: 1; }
.hero-media.has-video img { animation: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,13,32,.94) 0%, rgba(6,13,32,.72) 42%, rgba(6,13,32,.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero canvas.net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .75; pointer-events: none; }
.hero .wrap { padding-top: 140px; padding-bottom: 110px; }
.hero h1 { max-width: 15ch; }
.hero-sub h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); max-width: 18ch; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 3; width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero-split .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .hero-split .wrap { grid-template-columns: 1fr; } .hero::after { background: linear-gradient(180deg, rgba(6,13,32,.65) 0%, rgba(6,13,32,.9) 70%, var(--bg) 100%); } }

/* marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 56px; width: max-content; padding: 22px 0; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--font-head); font-size: 1.15rem; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.bg-2 { background: var(--bg-2); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.head-row .section-head { margin-bottom: 0; }
.glow-orb { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(79,209,255,.16) 0%, transparent 65%); pointer-events: none; z-index: 0; filter: blur(10px); }
.grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); opacity: .5; }

/* division cards (home) */
.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.division { position: relative; min-height: 640px; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 52px); text-decoration: none; color: var(--text); border: 1px solid var(--line); isolation: isolate; transition: border-color .4s, box-shadow .4s; }
.division img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.division::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,13,32,.15) 0%, rgba(6,13,32,.55) 45%, rgba(6,13,32,.96) 100%); }
.division:hover { border-color: rgba(79,209,255,.5); box-shadow: var(--glow); }
.division:hover img.bg { transform: scale(1.06); }
.division .logo { height: 58px; width: auto; margin-bottom: auto; align-self: flex-start; }
.division h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-top: 120px; }
.division p { color: var(--muted); max-width: 44ch; font-size: 1.1rem; }
.division .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 26px; }
.tag-pill { font-size: .78rem; font-family: var(--font-head); letter-spacing: .04em; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-control); color: var(--steel); background: rgba(6,13,32,.45); backdrop-filter: blur(6px); }
.go { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--cyan); }
.go svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.division:hover .go svg, .card:hover .go svg { transform: translateX(6px); }
@media (max-width: 900px) { .divisions { grid-template-columns: 1fr; } .division { min-height: 520px; } }

/* process */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .6; }
.step { position: relative; padding: 34px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(20,38,80,.7), rgba(15,29,61,.35)); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.step .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--cyan); box-shadow: 0 0 18px rgba(79,209,255,.6); margin-bottom: 30px; }
.step .num::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.step .k { font-family: var(--font-head); color: var(--dim); font-size: .85rem; letter-spacing: .2em; }
.step h3 { font-size: 2rem; margin: 6px 0 0; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process::before { display: none; } }

/* bento / cards */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 20px; }
.bento > * { grid-column: span 2; }
.bento > .wide { grid-column: span 3; }
.bento > .tall { grid-row: span 2; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento > .wide { grid-column: span 1; } .bento > .tall { grid-row: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; grid-auto-rows: 320px; } }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius-lg); overflow: hidden; padding: 28px; text-decoration: none; color: var(--text); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); isolation: isolate; transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); }
.card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.card.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,13,32,0) 20%, rgba(6,13,32,.92) 100%); }
a.card:hover { border-color: rgba(79,209,255,.5); box-shadow: var(--glow); transform: translateY(-3px); }
a.card:hover img.bg { transform: scale(1.07); }
.card .kicker { font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 14px; font-size: .98rem; }
.card .go { font-size: .95rem; }
.card.skeleton { background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.state-line { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.cards-lg > .card { min-height: 460px; }

/* statement band */
.band { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,13,32,.92) 0%, rgba(6,13,32,.55) 55%, rgba(6,13,32,.2) 100%), linear-gradient(0deg, var(--bg), transparent 30%), linear-gradient(180deg, var(--bg), transparent 30%); }
.band blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; max-width: 20ch; }

/* services (agency) */
.services { border-top: 1px solid var(--line); counter-reset: svc; }
.service { display: grid; grid-template-columns: 90px 1.1fr 1.4fr 40px; gap: 28px; padding: 40px 10px; border-bottom: 1px solid var(--line); align-items: center; transition: background .35s, padding .35s var(--ease); position: relative; }
.service:hover { background: linear-gradient(90deg, rgba(79,209,255,.08), transparent 70%); padding-left: 24px; }
.service .num { font-family: var(--font-head); color: var(--cyan); font-size: .95rem; letter-spacing: .1em; }
.service h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin: 0; }
.service p { color: var(--muted); margin: 0; font-size: 1.06rem; }
.service svg { width: 28px; height: 28px; color: var(--steel); }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; gap: 10px; } .service svg { display: none; } }

/* use-case lists */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; list-style: none; padding: 0; margin: 0; }
.uses li, .rich ul li { position: relative; padding: 30px 30px 30px 30px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(20,38,80,.75), rgba(15,29,61,.4)); border: 1px solid var(--line); color: var(--muted); transition: border-color .3s, transform .3s var(--ease); }
.uses li:hover, .rich ul li:hover { border-color: rgba(79,209,255,.45); transform: translateY(-2px); }
.uses li strong, .rich ul li strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--text); margin-bottom: 10px; }
.uses li::before, .rich ul li::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), transparent); margin-bottom: 18px; }
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } }

/* rich product body */
.rich { max-width: 1100px; }
.rich h2 { margin-top: 90px; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.rich h2:first-child { margin-top: 0; }
.rich ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rich ol { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rich ol li { counter-increment: s; position: relative; padding: 30px 30px 30px 92px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(15,29,61,.5); font-size: 1.05rem; color: var(--text); }
.rich ol li::before { content: "0" counter(s); position: absolute; left: 28px; top: 26px; font-family: var(--font-head); font-size: 1.6rem; color: var(--cyan); }
.rich p { font-size: 1.18rem; color: var(--muted); max-width: 72ch; }
@media (max-width: 760px) { .rich ul, .rich ol { grid-template-columns: 1fr; } }

/* diagram panel */
.panel { border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20,38,80,.8), rgba(10,21,48,.8)); padding: clamp(18px, 3vw, 34px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.panel figcaption, .caption { font-size: .8rem; color: var(--dim); margin-top: 14px; letter-spacing: .08em; text-transform: uppercase; }
.diagram { width: 100%; height: auto; }
.diagram text { font-family: var(--font-body); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

/* gallery & video */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery figure { margin: 0; grid-column: span 6; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.gallery figure:first-child:nth-last-child(odd), .gallery figure.full { grid-column: span 12; aspect-ratio: 21 / 9; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 16px; bottom: 14px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); background: rgba(6,13,32,.6); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: var(--radius-control); }
@media (max-width: 700px) { .gallery figure, .gallery figure:first-child:nth-last-child(odd), .gallery figure.full { grid-column: span 12; aspect-ratio: 4 / 3; } }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: var(--glow); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* flow (iot) */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.flow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 58px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), var(--cyan), transparent); opacity: .5; background-size: 200% 100%; animation: flowline 3s linear infinite; }
@keyframes flowline { from { background-position: 200% 0; } to { background-position: 0 0; } }
.flow > div { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(20,38,80,.9), rgba(15,29,61,.6)); border: 1px solid var(--line); }
.flow .ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: rgba(79,209,255,.1); border: 1px solid rgba(79,209,255,.35); color: var(--cyan); margin-bottom: 22px; box-shadow: 0 0 30px -6px rgba(79,209,255,.5); }
.flow .ico svg { width: 28px; height: 28px; }
.flow h3 { font-size: 1.15rem; margin-bottom: 8px; }
.flow p { font-size: .96rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } .flow::before { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* robotics */
.robots-stage { position: relative; }
.robots-stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 4%; height: 40px; background: radial-gradient(ellipse, rgba(79,209,255,.45), transparent 70%); filter: blur(10px); }
.robots-stage img { position: relative; width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.robot-card { min-height: 360px; justify-content: space-between; }
.robot-card .figure { height: 150px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px; position: relative; }
.robot-card .figure::after { content: ""; position: absolute; bottom: -4px; left: 20%; right: 20%; height: 16px; background: radial-gradient(ellipse, rgba(79,209,255,.4), transparent 70%); }
.robot-card .figure img { max-height: 150px; width: auto; position: relative; z-index: 1; }
.robot-card .figure svg { width: 90px; height: 90px; color: var(--cyan); opacity: .85; }
.robot-card .model { font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; color: var(--cyan); display: block; margin-bottom: 8px; text-transform: uppercase; }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,13,32,.95), rgba(6,13,32,.6)), linear-gradient(0deg, var(--bg), transparent 40%); }
.cta .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding-top: clamp(90px, 11vw, 160px); padding-bottom: clamp(90px, 11vw, 160px); }
.cta h2 { max-width: 16ch; }
.cta p { color: var(--muted); font-size: 1.18rem; max-width: 50ch; }
.cta .btn-row { justify-content: flex-end; margin: 0; }
@media (max-width: 820px) { .cta .wrap { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* form */
.contact-hero { padding: 0; }
.contact-hero .wrap { padding-top: 160px; padding-bottom: 120px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: rgba(10,21,48,.75); backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 48px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; margin-bottom: 9px; font-size: .95rem; color: var(--text); }
.field .req { color: var(--cyan); margin-left: 3px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-md); background: rgba(6,13,32,.6); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(79,209,255,.18); }
.field [aria-invalid="true"] { border-color: var(--color-destructive); }
.field .err { color: var(--color-destructive); font-size: .9rem; margin: 7px 0 0; }
.field .help { color: var(--dim); font-size: .9rem; margin: 6px 0 0; }
.form-error { color: var(--color-destructive); margin-bottom: 14px; }
.thanks { padding: 30px 0; }
.thanks h3 { font-size: 1.8rem; }

/* footer */
.site-footer { background: #040916; border-top: 1px solid var(--line); padding: 90px 0 36px; position: relative; overflow: hidden; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .logos { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.site-footer .logos img { height: 44px; width: auto; opacity: .92; }
.site-footer .claim { color: var(--muted); max-width: 40ch; }
.site-footer h4 { color: var(--dim); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--cyan); }
.site-footer .bottom { margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--dim); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .bottom a { color: var(--muted); }
@media (max-width: 820px) { .site-footer .top { grid-template-columns: 1fr; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.not-found { padding: 200px 0 120px; }
main { overflow-x: clip; }
/* robot types (product lineup) */
.rt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.rt-head h2 { margin: 0; }
.rt-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.rt-pill { font-family: var(--font-head); font-size: .92rem; padding: 10px 18px; border-radius: var(--radius-control); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.rt-pill:hover { color: var(--text); border-color: rgba(79,209,255,.5); }
.rt-pill[aria-pressed="true"] { background: linear-gradient(120deg, var(--cyan) 0%, #7fe0ff 100%); color: #04122b; border-color: transparent; }
.rt-brands .rt-pill { font-size: .84rem; padding: 8px 16px; }
.rt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
@media (max-width: 1100px) { .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .rt-grid { grid-template-columns: 1fr; } }
.rt-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); transition: border-color .35s, box-shadow .35s, transform .35s var(--ease); }
.rt-card[hidden] { display: none; }
.rt-card:hover { border-color: rgba(79,209,255,.5); box-shadow: var(--glow); transform: translateY(-3px); }
.rt-img { position: relative; aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: hidden; }
.rt-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.rt-card:hover .rt-img img { transform: scale(1.04); }
.rt-badge { position: absolute; top: 14px; left: 14px; font-family: var(--font-head); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--bg-2); color: #fff; }
.rt-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.rt-cat { font-family: var(--font-head); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.rt-name { font-size: 1.6rem; margin: 0 0 .45em; }
.rt-desc { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.rt-specs { margin: 4px 0 18px; border-top: 1px solid var(--line); }
.rt-spec { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.rt-spec span:first-child { color: var(--dim); }
.rt-spec span:last-child { color: var(--text); text-align: right; font-weight: 500; }
.rt-note { font-size: .84rem; line-height: 1.55; color: var(--muted); background: rgba(79,209,255,.06); border: 1px solid rgba(79,209,255,.18); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 18px; }
.rt-note strong { color: var(--cyan); font-weight: 600; }
.rt-btn { margin-top: auto; align-self: flex-start; padding: 12px 20px; font-size: .92rem; }
.rt-empty { color: var(--muted); margin-top: 24px; }

/* desktop: the Lab title links to the Lab page, so the submenu skips 'Lab overview' (kept for touch and keyboard) */
@media (hover: hover) and (pointer: fine) and (min-width: 1021px) {
  #lab-menu > li:has(> a[href$="/lab.html"]) { display: none; }
  .has-sub .sub-toggle { cursor: pointer; }
}

/* home hero: headline left, Agency + Lab cards right */
.hero-home .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-home h1 { font-size: clamp(2.4rem, 4.1vw, 4.2rem); max-width: none; }
.hero-divisions { gap: 18px; }
.hero-divisions .division { min-height: min(540px, 64vh); padding: clamp(22px, 2vw, 30px); }
.hero-divisions .division .logo { height: 44px; }
.hero-divisions .division h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); margin-top: 56px; }
.hero-divisions .division p { font-size: .95rem; line-height: 1.55; }
.hero-divisions .division .tags { margin: 2px 0 18px; gap: 6px; }
.hero-divisions .tag-pill { font-size: .7rem; padding: 5px 10px; }
.hero-divisions .go { font-size: .95rem; }
.hero-home .scroll-cue { display: none; }
@media (max-width: 1100px) { .hero-home { min-height: auto; } .hero-home .wrap { grid-template-columns: 1fr; } .hero-divisions .division { min-height: 440px; } }
@media (max-width: 640px) { .hero-divisions { grid-template-columns: 1fr; } .hero-divisions .division { min-height: 380px; } }

/* agency: linked service row */
a.service-link { text-decoration: none; color: inherit; }
a.service-link svg { color: var(--cyan); transition: transform .3s var(--ease); }
a.service-link:hover svg { transform: translate(4px, -4px); }
/* content & production page */
.prod-intro { align-items: start; }
.prod-intro p { color: var(--muted); font-size: 1.08rem; }
.prod-intro h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.prod-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prod-card { min-height: clamp(380px, 38vw, 520px); }
.prod-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.prod-card p { color: var(--muted); margin: 0; max-width: 46ch; }
@media (max-width: 820px) { .prod-duo { grid-template-columns: 1fr; } }
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.caps li { display: flex; gap: 16px; align-items: baseline; padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 1.12rem; line-height: 1.35; transition: background .3s; }
.caps li:hover { background: rgba(79,209,255,.06); }
.caps .num { color: var(--cyan); font-size: .85rem; letter-spacing: .1em; }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } }

/* card / division background videos (from the SiteImages Video field) */
.card .slot-video, .division .slot-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .9s var(--ease); }
.card > .slot-video.on, .division > .slot-video.on { opacity: 1; }

/* image cards (home, Lab, production): tone photos and videos toward the site's navy/cyan palette */
.card.has-img img.bg, .card.has-img .slot-video, .division img.bg, .division .slot-video { filter: saturate(.55) brightness(.78) contrast(1.06); transition: filter .6s var(--ease), opacity .9s var(--ease), transform 1s var(--ease); }
.card.has-img::before, .division::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #0f3d66 0%, #0a1530 70%); mix-blend-mode: color; opacity: .55; pointer-events: none; transition: opacity .6s var(--ease); }
.card.has-img:hover img.bg, .card.has-img:hover .slot-video, .division:hover img.bg, .division:hover .slot-video { filter: saturate(.75) brightness(.88) contrast(1.04); }
.card.has-img:hover::before, .division:hover::before { opacity: .35; }

/* home hero background video: centred */
.hero-home .hero-media .slot-video { object-position: 50% 50%; }

/* home hero: lighter overlay so the bright ocean background reads airy; left side stays dark enough for the headline */
.hero-home::after { background: linear-gradient(90deg, rgba(6,13,32,.8) 0%, rgba(6,13,32,.4) 42%, rgba(6,13,32,.05) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero-home canvas.net { opacity: .35; }
@media (max-width: 1100px) { .hero-home::after { background: linear-gradient(180deg, rgba(6,13,32,.55) 0%, rgba(6,13,32,.75) 55%, var(--bg) 100%); } }

/* home Lab card: keep the robot's head and torso in view */
.division img.bg[data-slot="home-lab"] { object-position: 50% 50%; }

/* home hero cards: top-aligned text so both cards' headlines and paragraphs line up; links pinned to the bottom */
.hero-divisions .division { justify-content: flex-start; }
.hero-divisions .division .logo { margin-bottom: 0; }
.hero-divisions .division h2 { margin-top: clamp(56px, 10vh, 104px); }
.hero-divisions .division .go { margin-top: auto; }

/* home Lab card: larger logo (its mark is narrower than Agency's); negative margin keeps the headline on the shared line */
.hero-divisions .division .logo[src*="lab-white"] { height: 65px; margin-bottom: -21px; }
