/* Fonts are self-hosted (OFL), so a visitor's browser never contacts Google. Inter Tight is one variable file per subset. */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-tight-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-tight-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ELIMICA — Swiss-editorial calm, orange signal. Tokens first. */
:root {
  --paper: #f5f4ef;
  --paper-2: #ecebe4;
  --ink: #121417;
  --ink-2: #4a4f57;
  --ink-3: #8a8f96;
  --line: rgba(18, 20, 23, 0.12);

  --accent: #f2611d;        /* brand orange */
  --accent-ink: #c2410c;    /* orange for small text / hover on light */
  --accent-bright: #ff7a3a; /* orange on dark */
  --accent-soft: #fbe3d4;
  --alert: #e5484d;         /* error state only (demo) */

  --night: #0e1214;
  --night-2: #161c1f;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-text: #e9ece9;
  --night-muted: #a3aba8;

  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.75rem, 2.75rem + 4vw, 6.75rem);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
html { scroll-padding-top: 3.5rem; scrollbar-color: var(--accent) var(--paper-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-ink); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.eyebrow {
  text-wrap: balance;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1.25rem;
}
.h2 {
  text-wrap: balance;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.03em; font-weight: 500;
}
.h2 em { font-size: 1.08em; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: var(--ink-2); max-width: 38em; margin-top: 1.5rem; line-height: 1.55; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-foot .brand-logo { height: 80px; }
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.1vw, 2rem); font-size: .95rem; color: var(--ink-2); }
.nav-links a:not(.nav-cta) { position: relative; transition: color .2s; }
.nav-links a:not(.nav-cta):hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-cta { color: var(--paper); background: var(--ink); padding: .5rem 1.1rem; border-radius: 999px; transition: background .2s; }
.nav-cta:hover { background: var(--accent-ink); }
.nav-links { margin-left: auto; }
.lang { display: flex; align-items: center; gap: .1rem; margin-left: clamp(1.1rem, 2.1vw, 2rem); font-size: .74rem; font-weight: 500; letter-spacing: .08em; }
.lang a { padding: .35rem .5rem; border-radius: 999px; color: var(--ink-2); transition: color .2s, background .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 18px; } .nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: grid; padding: .5rem var(--gutter) 1.5rem; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }

[tabindex="-1"]:focus { outline: none; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 999px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-bright); }

/* HERO */
.hero { overflow: clip; }
.hero > .wrap { width: min(100% - 2 * var(--gutter), 1080px); min-height: calc(100vh - 4.25rem); min-height: calc(100svh - 4.25rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: clamp(2.5rem, 7vh, 6rem); }
.hero-title { font-size: clamp(2.9rem, 1.2rem + 8vw, 8.25rem); line-height: .98; letter-spacing: -0.045em; font-weight: 500; margin-bottom: 2rem; }
.hero-title em { font-size: 1.1em; color: var(--accent); letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(1.15rem, 1rem + .7vw, 1.65rem); line-height: 1.45; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }

/* Inspection line */
.line-fig { padding-top: clamp(.5rem, 2vw, 2rem); }
.line { --p: clamp(2.9rem, 5vw, 4rem); --scan: 62%; position: relative; height: clamp(11.9rem, 20vw, 15rem); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.belt { position: absolute; left: 0; right: 0; top: calc(50% + var(--p) / 2 + 1px); height: 1px; background: var(--ink); }
.belt::after { content: ""; position: absolute; inset: 3px 0 auto; height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 22px); animation: belt 1.1s linear infinite; }
@keyframes belt { to { background-position: 22px 0; } }

.vf { position: absolute; left: var(--scan); top: 50%; width: calc(var(--p) * 2.3); height: calc(var(--p) + 44px); transform: translate(-50%, -50%); z-index: 2; pointer-events: none; }
.vf svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transition: stroke .3s; overflow: visible; }
.vf-tag { position: absolute; left: 0; bottom: calc(100% + 8px); font-size: .68rem; letter-spacing: .14em; color: var(--ink-2); white-space: nowrap; }
.vf.is-scanning svg { stroke: var(--accent); }

/* Line-scan wipe: a thin orange line with a soft wash over the part area already scanned */
.scan { position: absolute; left: 0; top: 50%; width: 0; height: calc(var(--p) + 12px); margin-top: calc((var(--p) + 12px) / -2); border-left: 2px solid var(--accent); background: linear-gradient(90deg, rgba(242, 97, 29, .28), rgba(242, 97, 29, .06)); border-radius: 2px; opacity: 0; transition: opacity .25s; z-index: 2; pointer-events: none; will-change: transform, width; }
.scan::before { content: ""; position: absolute; left: -2px; top: -6px; bottom: -6px; width: 2px; background: var(--accent); box-shadow: 0 0 12px 2px rgba(242, 97, 29, .55); }
.scan.is-on { opacity: 1; }

.part { position: absolute; left: 0; top: 50%; width: var(--p); height: var(--p); margin-top: calc(var(--p) / -2); will-change: transform; z-index: 1; }
.part-inner { position: absolute; inset: 0; transition: transform 1s var(--ease), opacity .8s ease; }
.part-body { position: absolute; inset: 0; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); }
.part-body::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34%; height: 34%; transform: translate(-50%, -50%); border: 1.5px solid var(--ink); border-radius: 50%; }
.part[data-defect="scratch"] .part-body::after { content: ""; position: absolute; left: 14%; top: 26%; width: 46%; height: 1.5px; background: var(--ink); transform: rotate(28deg); transform-origin: left; }
.part[data-defect="hole"] .part-body::before { border-style: dashed; opacity: .35; }
.part[data-defect="chip"] .part-body { clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 0 100%); }
.part-box { position: absolute; inset: -9px; border: 2px solid var(--accent); border-radius: 6px; opacity: 0; transform: scale(1.15); transition: opacity .25s, transform .4s var(--ease); }
.part-box::before { content: attr(data-label); position: absolute; left: -2px; bottom: calc(100% + 4px); padding: .1rem .45rem; background: var(--accent); color: #fff; font-size: .66rem; font-weight: 600; letter-spacing: .04em; border-radius: 3px; white-space: nowrap; }
.part-ok { position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%); font-size: .8rem; color: var(--ink-3); opacity: 0; transition: opacity .4s; }
.part.is-ok .part-ok { opacity: 1; }
.part.is-defect { z-index: 3; }
.part.is-defect .part-box { opacity: 1; transform: none; }
.part.is-out .part-inner { transform: translateY(140%) rotate(-14deg); opacity: 0; }


/* SECTIONS */
.section { padding-block: var(--section); }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2.4vw, 3.75rem); max-width: 60rem; }

/* PHILOSOPHY */
.trio { --tg: clamp(2rem, 5vw, 4.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--tg); border-top: 1px solid var(--ink); }
.trio-item { position: relative; padding: 2rem 0 1rem; }
.trio-item + .trio-item::before { content: ""; position: absolute; left: calc(var(--tg) / -2); top: 2rem; bottom: .5rem; width: 1px; background: var(--line); }
.trio-num { font-size: .8rem; letter-spacing: .14em; color: var(--ink-3); }
.trio-item h3 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); letter-spacing: -0.03em; font-weight: 500; margin: 2.5rem 0 1rem; position: relative; display: inline-block; }
.trio-item h3::after { content: ""; position: absolute; left: -3%; right: -3%; top: 55%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .4s; }
.trio-item.is-in h3::after { transform: scaleX(1); }
.trio-item p { color: var(--ink-2); }

/* SOLUTIONS */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem); padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 24px; align-items: center; }
.feature-meta { display: flex; align-items: center; gap: .9rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 1.5rem; }
.feature-title { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.feature-title em { color: var(--accent-bright); font-size: 1.06em; }
.feature-lede { color: var(--night-muted); font-size: 1.1rem; margin-top: 1.25rem; max-width: 30em; }
.ticks { display: grid; gap: .6rem; margin: 1.75rem 0 2.25rem; }
.ticks li { display: flex; gap: .75rem; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--accent-bright); transform: translateY(-4px); }
.feature-demo { padding: 1.25rem; border: 1px solid var(--night-line); border-radius: 18px; background: var(--night-2); display: grid; gap: 1.25rem; }

.sol-index { border-top: 1px solid var(--ink); }
.sol-index a { display: grid; grid-template-columns: 3rem minmax(12rem, 1.1fr) 2fr auto 2rem; gap: 1.5rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background .3s; }
.sol-index a:hover { padding-left: .75rem; }
.sol-num { font-size: .8rem; letter-spacing: .1em; color: var(--ink-3); }
.sol-name { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.sol-desc { color: var(--ink-2); }
.sol-tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.sol-tag-on { border-color: var(--accent); color: var(--accent-ink); }
.sol-arrow { font-size: 1.3rem; transition: transform .3s var(--ease), color .3s; justify-self: end; }
.sol-index a:hover .sol-arrow { transform: translateX(6px); color: var(--accent); }
.sol-more { margin: 1.25rem 0 clamp(2.5rem, 4vw, 3.5rem); color: var(--ink-3); font-size: .95rem; }

/* APPROACH */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.split-lead { position: sticky; top: 7rem; }
.steps { counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-size: .8rem; letter-spacing: .1em; color: var(--ink-3); padding-top: .6rem; }
.steps span { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.025em; font-weight: 500; }
.steps p { color: var(--ink-2); margin-top: .35rem; max-width: 28em; }

/* DARK */
.dark { background: var(--night); color: var(--night-text); }
.dark .eyebrow { color: var(--night-muted); }
.dark .h2 em, .dark .hero-lead em { color: var(--accent-bright); }
.dark .lede, .dark .hero-lead { color: var(--night-muted); }
.dark :focus-visible { outline-color: var(--accent-bright); }
.badge { display: inline-block; white-space: nowrap; padding: .2rem .65rem; border: 1px solid var(--accent-bright); color: var(--accent-bright); border-radius: 999px; letter-spacing: .1em; font-size: .72rem; text-transform: uppercase; }

/* SEQUENCER DEMO */
.seq { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.25rem, 3vw, 3rem); padding: clamp(1rem, 2vw, 1.75rem); background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.seq-cam { border-radius: 14px; overflow: hidden; background: #0a0d0f; border: 1px solid var(--night-line); display: flex; flex-direction: column; min-height: 400px; }
.cam-top { display: flex; justify-content: space-between; padding: .75rem 1rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); border-bottom: 1px solid var(--night-line); }
.cam-note { color: #5f6865; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); margin-right: .5rem; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.cam-view { position: relative; flex: 1; overflow: hidden; }
.cam-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 40px 40px; opacity: .45; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 85%); }
/* Assembly stack (side view), builds up step by step */
.cam-view { display: flex; align-items: center; justify-content: center; }
.stack { position: relative; width: min(72%, 440px); height: 196px; display: flex; flex-direction: column-reverse; align-items: center; z-index: 1; }
.layer { position: relative; display: none; width: 80%; flex: none; border-radius: 6px; border: 1px solid #46545a; background: linear-gradient(180deg, #344247 0%, #1f292d 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 6px 14px rgba(0,0,0,.35); color: #93a0a4; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-align: center; }
.layer.is-in { display: flex; align-items: center; justify-content: center; animation: drop .75s cubic-bezier(.22,1.15,.36,1) both; }
@keyframes drop { 0% { transform: translateY(-52px); opacity: 0; filter: blur(2px); } 45% { opacity: 1; filter: none; } 100% { transform: none; opacity: 1; } }
/* housing: heavy base with a recessed cavity */
.layer-housing { width: 100%; height: 48px; border-radius: 4px 4px 14px 14px; border-top-color: #2a363b; background: linear-gradient(180deg, #151c1f, #263137); }
.layer-housing::before { content: ""; position: absolute; left: 7%; right: 7%; top: 9px; height: 10px; border-radius: 3px; background: #0d1214; box-shadow: inset 0 1px 3px rgba(0,0,0,.7); }
/* parts A / B: machined blocks */
.layer-a, .layer-b { height: 54px; font-size: 1rem; background: linear-gradient(180deg, #3a484e, #232e32); }
/* separator: ribbed gasket */
.layer-sep { width: 86%; height: 10px; border-radius: 2px; border-color: #b4bec1; background: repeating-linear-gradient(90deg, #aeb9bc 0 8px, #7c888c 8px 12px); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
/* cover: brushed lid with rim, screws and a grip */
.layer-cover { width: 96%; height: 26px; border-radius: 13px 13px 5px 5px; border-color: #7b8b91; background: linear-gradient(180deg, #8b9a9f 0%, #5d6c72 45%, #44525a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.4); }
.layer-cover::before { content: ""; position: absolute; left: 50%; top: -7px; width: 34px; height: 7px; transform: translateX(-50%); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #a7b5ba, #6c7b81); border: 1px solid #7b8b91; border-bottom: 0; }
.layer-cover::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 4px; margin-top: -1px; background: radial-gradient(circle, #2b363b 0 2px, transparent 2.5px) left / 100% 100% no-repeat, radial-gradient(circle, #2b363b 0 2px, transparent 2.5px) right / 100% 100% no-repeat; background-size: 6px 4px; background-position: left center, right center; }
.cam-box { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; border: 1.5px solid var(--accent-bright); border-radius: 8px; opacity: 0; background: rgba(255,122,58,.06); box-shadow: 0 0 0 4px rgba(255,122,58,.08), 0 0 28px rgba(255,122,58,.28); transition: transform .7s var(--ease), width .7s var(--ease), height .7s var(--ease), border-color .3s, background .3s, box-shadow .3s, opacity .3s; }
.cam-box.is-on { opacity: 1; }
/* ping ring + light sweep replay on every lock-on (class re-added from JS) */
.cam-box::before { content: ""; position: absolute; inset: -1.5px; border: 1.5px solid var(--accent-bright); border-radius: 8px; opacity: 0; }
.cam-box.is-lock::before { animation: ping .9s cubic-bezier(.2,.6,.3,1) .35s; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.14, 1.5); opacity: 0; } }
.cam-box::after { content: ""; position: absolute; inset: 0; border-radius: 7px; overflow: hidden; background: linear-gradient(100deg, transparent 35%, rgba(255,190,150,.35) 50%, transparent 65%) -120% 0 / 60% 100% no-repeat; opacity: 0; }
.cam-box.is-lock::after { animation: sweep .9s ease-out .3s; }
@keyframes sweep { 0% { background-position: -60% 0; opacity: 1; } 100% { background-position: 220% 0; opacity: 1; } }
.cam-box b { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 9px; display: flex; align-items: center; gap: .45rem; padding: .22rem .65rem .22rem .55rem; background: var(--accent-bright); color: #1d0b02; font-size: .72rem; font-weight: 600; letter-spacing: .05em; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.45); transition: background .3s, color .3s; }
.cam-box b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.cam-box.is-error { border-color: var(--alert); background: rgba(229,72,77,.08); box-shadow: 0 0 0 4px rgba(229,72,77,.1), 0 0 32px rgba(229,72,77,.4); }
.cam-box.is-error::before { border-color: var(--alert); }
.cam-box.is-error.is-lock { animation: shake .45s ease .3s; }
@keyframes shake { 20%, 60% { translate: -3px 0; } 40%, 80% { translate: 3px 0; } }
.cam-box.is-error b { background: var(--alert); color: #fff; }
@media (prefers-reduced-motion: reduce) { .cam-box::before, .cam-box::after, .cam-box b::before, .layer.is-in { animation: none !important; } }
.cam-scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-bright), transparent); opacity: .3; animation: scan 4.5s linear infinite; }
@keyframes scan { from { top: 0; } to { top: 100%; } }

.seq-side { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; padding: .5rem; }
.seq-steps { display: grid; gap: .55rem; }
.seq-steps li { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border: 1px solid var(--night-line); border-radius: 12px; color: #7d8784; transition: all .45s var(--ease); }
.seq-steps i { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid currentColor; font-style: normal; font-size: .8rem; flex: none; transition: all .45s var(--ease); }
.seq-steps li.is-done { color: #d3d9d6; border-color: transparent; background: rgba(255,255,255,.04); }
.seq-steps li.is-done i { background: var(--night-text); border-color: var(--night-text); color: var(--night); font-size: 0; }
.seq-steps li.is-done i::before { content: "✓"; font-size: .8rem; font-weight: 700; }
.seq-steps li.is-active { color: #fff; border-color: var(--accent-bright); background: rgba(255,122,58,.08); transform: translateX(6px); }
.seq-steps li.is-active i { border-color: var(--accent-bright); color: var(--accent-bright); }
.seq-steps li.is-error { color: #fff; border-color: var(--alert); border-style: dashed; background: rgba(229,72,77,.1); transform: translateX(6px); }
.seq-steps li.is-error i { background: var(--alert); border-color: var(--alert); font-size: 0; }
.seq-steps li.is-error i::before { content: "✕"; font-size: .75rem; font-weight: 700; }
.seq-status { font-weight: 500; font-size: 1.02rem; color: var(--night-text); min-height: 3.2em; transition: color .3s; }
.seq-status.is-good::before { content: "● "; color: var(--accent-bright); }
.seq-status.is-error { color: #ff8f8f; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--night-line); border-radius: 999px; width: fit-content; }
.seg button { background: none; border: 0; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--night-muted); font-size: .9rem; transition: background .25s, color .25s; }
.seg button.is-on { background: var(--night-text); color: var(--ink); }

/* SUBPAGE */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section); }
.page-title { font-size: clamp(2.8rem, 1.4rem + 6.5vw, 7rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; margin-bottom: 1.25rem; }
.page-title em { color: var(--accent-bright); font-size: 1.08em; }
.crumbs { font-size: .9rem; color: var(--night-muted); margin-bottom: 2.5rem; }
.crumbs a { border-bottom: 1px solid var(--night-line); transition: color .2s, border-color .2s; }
.crumbs a:hover { color: var(--night-text); border-color: var(--accent-bright); }
.crumbs span[aria-hidden] { margin: 0 .5rem; opacity: .5; }
.cta-band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-top: 3rem; border-top: 1px solid var(--ink); }

/* EXPERTISE */
/* Open columns on an ink rule, same language as Philosophy */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 1.75rem; border-top: 1px solid var(--ink); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; padding: 2rem 0 1rem; }
.card + .card::before { content: ""; position: absolute; left: -.875rem; top: 2rem; bottom: .5rem; width: 1px; background: var(--line); }
.card > svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2.5rem; transition: stroke .3s, transform .5s var(--ease); }
.card:hover > svg { stroke: var(--accent); transform: translateY(-3px); }
.cards-label { margin: 0 0 1rem; }
.card h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); font-weight: 500; letter-spacing: -0.025em; margin-bottom: .75rem; }
.card p { color: var(--ink-2); max-width: 22em; }
/* Experience: animated scenes (loop once the card has revealed) */
.xp { display: block; aspect-ratio: 8 / 5; margin-bottom: 1.75rem; border-radius: 18px; background: var(--night); border: 1px solid var(--night-line); overflow: hidden; transition: box-shadow .5s var(--ease), border-color .5s; }
.card:hover .xp { border-color: var(--accent-bright); box-shadow: 0 16px 32px -18px rgba(242, 97, 29, .55); }
.xp svg { width: 100%; height: 100%; fill: none; stroke: #cdd5d2; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.xp .faint { stroke: #5c6865; }
.xp .dash { stroke-dasharray: 4 4; }
.xp .a { stroke: var(--accent-bright); }
.xp .af { fill: var(--accent-bright); stroke: none; }
.xp .glow { stroke: var(--accent-bright); stroke-width: 8; opacity: .18; stroke-linecap: butt; }
.xp .beam { stroke: var(--accent-bright); stroke-width: 2; }
.xp .shadow { fill: rgba(0, 0, 0, .45); stroke: none; }
.xp .lt-scratch { stroke: #fff; stroke-width: 1.8; }
.xp .lt-glint { stroke-width: 4; opacity: .5; }
.xp .lt-lock { transform-box: fill-box; transform-origin: center; }
.xp text { fill: #cdd5d2; stroke: none; font-family: var(--font-sans); }
.xp .tag { font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.xp .tag.mid { text-anchor: middle; dominant-baseline: central; }
.xp .px circle { fill: #5c6865; stroke: none; }
.xp .net { stroke: #3a4548; stroke-width: 1; }
.xp .sig { stroke: var(--accent-bright); stroke-width: 1.4; stroke-dasharray: 9 91; stroke-dashoffset: 9; opacity: 0; }
.xp .nd { fill: var(--night); stroke: #6f7b78; stroke-width: 1.5; }
.xp .nf { fill: var(--accent-bright); stroke: none; opacity: 0; }
.xp .xp-scan, .xp .pk { opacity: 0; }
.xp .xp-ring { transform-box: fill-box; transform-origin: center; opacity: 0; }

.card.is-in .xp-scan { animation: xp-scan 3.6s linear infinite; }
@keyframes xp-scan { 0% { transform: translateX(164px); opacity: 0; } 8% { opacity: 1; } 62% { transform: translateX(220px); opacity: 1; } 70%, 100% { transform: translateX(220px); opacity: 0; } }
.card.is-in .xp-lock { animation: xp-lock 3.6s ease-in-out infinite; }
@keyframes xp-lock { 0%, 8% { opacity: .25; } 20%, 70% { opacity: 1; } 100% { opacity: .25; } }
.card.is-in .xp-march { animation: g-march 1.1s linear infinite; }
.card.is-in .px circle { animation: xp-px 2.7s ease-in-out infinite; }
.card.is-in .px circle:nth-child(2) { animation-delay: .15s; } .card.is-in .px circle:nth-child(3) { animation-delay: .3s; }
.card.is-in .px circle:nth-child(4) { animation-delay: .45s; } .card.is-in .px circle:nth-child(5) { animation-delay: .6s; } .card.is-in .px circle:nth-child(6) { animation-delay: .75s; }
.card.is-in .px circle:nth-child(7) { animation-delay: .9s; } .card.is-in .px circle:nth-child(8) { animation-delay: 1.05s; } .card.is-in .px circle:nth-child(9) { animation-delay: 1.2s; }
@keyframes xp-px { 0%, 100% { fill: #5c6865; } 30% { fill: var(--accent-bright); } 60% { fill: #5c6865; } }

/* Lighting (6s): a ring light lights the part flat and the scratch is invisible; then low-angle bar lights switch on,
   graze the surface, and the scratch lights up and is locked on. */
.card.is-in .lt-ring { animation: lt-ring 6s ease-in-out infinite; }
.card.is-in .lt-bars { animation: lt-bars 6s ease-in-out infinite; }
.card.is-in .lt-scratch { animation: lt-scratch 6s ease-in-out infinite; }
.card.is-in .lt-glint { animation: lt-glint 6s ease-in-out infinite; }
.card.is-in .lt-lock { animation: lt-lock 6s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes lt-ring { 0%, 36% { opacity: 1; } 42%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lt-bars { 0%, 40% { opacity: 0; } 47%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes lt-scratch { 0%, 40% { stroke: #3c4745; stroke-width: 1; } 50%, 90% { stroke: #fff; stroke-width: 1.8; } 98%, 100% { stroke: #3c4745; stroke-width: 1; } }
@keyframes lt-glint { 0%, 44% { opacity: 0; } 52% { opacity: .85; } 62% { opacity: .35; } 72% { opacity: .8; } 90% { opacity: .5; } 96%, 100% { opacity: 0; } }
@keyframes lt-lock { 0%, 56% { opacity: 0; transform: scale(1.25); } 64%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(1.25); } }

.card.is-in .sig { animation: xp-sig 3s linear infinite; }
.card.is-in .sig1 { animation-delay: .6s; } .card.is-in .sig2 { animation-delay: 1.2s; }
/* Timing (period 3s, layer delay .6s): the signal head leaves its node at ~.07s and reaches the next node at ~.77s.
   Nodes start lighting .1s into their layer's cycle, so each one reaches full brightness as the head arrives. */
@keyframes xp-sig { 0% { stroke-dashoffset: 9; opacity: 0; } 2% { opacity: var(--b); } 26% { stroke-dashoffset: -92; opacity: var(--b); } 27%, 100% { stroke-dashoffset: -100; opacity: 0; } }
/* Node brightness is its "weight": each neuron fires at its own strength, only the winning output fires fully */
.card.is-in .nf { animation: xp-nf 3s ease-out infinite; }
.card.is-in .nf0 { animation-delay: 0s; } .card.is-in .nf1 { animation-delay: .7s; }
.card.is-in .nf2 { animation-delay: 1.3s; } .card.is-in .nf3 { animation-delay: 1.9s; }
@keyframes xp-nf { 0% { opacity: 0; } 5%, 50% { opacity: var(--b); } 70%, 100% { opacity: 0; } }

.card.is-in .pk { animation: xp-pk 3.2s ease-in-out infinite; }
.card.is-in .pk2 { animation-delay: .8s; } .card.is-in .pk3 { animation-delay: 1.6s; } .card.is-in .pk4 { animation-delay: 2.4s; }
@keyframes xp-pk { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 22% { transform: translate(var(--dx), var(--dy)); opacity: 1; } 28%, 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.card.is-in .xp-ring { animation: xp-ring 3.2s ease-out infinite; }
@keyframes xp-ring { 0%, 18% { transform: scale(1); opacity: 0; } 22% { opacity: .9; } 50%, 100% { transform: scale(1.5); opacity: 0; } }

.apps-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .75rem; }

/* Applications gallery: free-scrolling carousel with vector illustrations */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; max-width: none; }
.head-row .eyebrow { margin-bottom: 1.25rem; }
.gallery-ctrl { display: flex; gap: .5rem; flex: none; margin-bottom: .35rem; }
.g-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s, opacity .25s, transform .25s var(--ease); }
.g-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.g-btn:active:not(:disabled) { transform: scale(.94); }
.g-btn:disabled { opacity: .3; cursor: default; }

.g-track { display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; padding-bottom: .25rem; }
.g-track::-webkit-scrollbar { display: none; }
.g-track.is-dragging { cursor: grabbing; user-select: none; }
.g-track.is-dragging * { pointer-events: none; }
.g-card { flex: 0 0 min(82%, 22.5rem); display: flex; flex-direction: column; }
.g-art { aspect-ratio: 8 / 5; border-radius: 18px; background: var(--night); border: 1px solid var(--night-line); overflow: hidden; margin-bottom: 1.25rem; transition: box-shadow .6s var(--ease); }
.g-card:hover .g-art { box-shadow: 0 18px 34px -18px rgba(14, 18, 20, .55); }
.g-art svg { width: 100%; height: 100%; fill: none; stroke: #cdd5d2; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-art .faint { stroke: #5c6865; }
.g-art .dash { stroke-dasharray: 4 4; }
.g-art .a { stroke: var(--accent-bright); }
.g-art .fillc { fill: #cdd5d2; stroke: none; }
.g-art text { fill: #cdd5d2; stroke: none; font-family: var(--font-sans); }
.g-art .tag { font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.g-art .tag.acc { fill: var(--accent-bright); }
.g-art .tag.mid { text-anchor: middle; dominant-baseline: central; }
.g-art .tag.faintT { fill: #6f7b78; }
.g-art .tag.hot { fill: #fff; font-size: 11px; font-weight: 700; }
.g-art .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; letter-spacing: .06em; }
.g-art .chip { fill: var(--accent-bright); stroke: none; }
.g-art .chip-t { fill: #1d0b02; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; }
.g-art .dot, .g-art .fa { fill: var(--accent-bright); stroke: none; }
.g-art .roi { stroke: #cdd5d2; stroke-width: 1.3; }
.g-art .glow { stroke: var(--accent-bright); stroke-width: 8; opacity: .18; stroke-linecap: butt; }
.g-art .beam { stroke: var(--accent-bright); stroke-width: 2; }
.g-art .heat { fill: url(#heat); stroke: none; }
.g-art .scale { fill: url(#heatscale); stroke: none; }
.g-art .stepfill { fill: #cdd5d2; stroke: none; }
.g-art .stepfill.acc { fill: var(--accent-bright); }
.g-art .stepck { stroke: var(--night); stroke-width: 1.7; }
.g-art .dots circle { fill: #cdd5d2; stroke: none; }
.g-art .an { transform-box: fill-box; transform-origin: center; }
.g-art .dr { stroke-dasharray: 1; }
.g-art .w-sweep, .g-art .c-s1, .g-art .c-s2 { opacity: 0; }
.g-art .w-wash { fill: rgba(255, 122, 58, .12); stroke: none; opacity: 0; transform-box: fill-box; transform-origin: 0 50%; }
.g-art .c-cv1, .g-art .c-cv2 { fill: var(--night); stroke: none; transform-box: fill-box; transform-origin: 100% 50%; transform: scaleX(0); }
.g-art .mono.sm { font-size: 12px; letter-spacing: .04em; }
.g-art .t-r1, .g-art .t-r2 { opacity: 0; }
.g-art .cm { fill: rgba(255, 122, 58, .14); }
.g-art text.cn { opacity: 0; fill: var(--accent-bright); font-size: 15px; font-weight: 700; letter-spacing: 0; text-anchor: middle; dominant-baseline: central; }
.g-art text.cn12 { opacity: 1; }
.g-art .sf-sweep { opacity: 0; }
.g-art .ac-w, .g-art .ac-p { transform-box: fill-box; }
.g-art .ac-w { transform-origin: 50% 100%; }
.g-art .ac-p { opacity: .8; }

/* Looping details (run only while the card is on screen) */
.g-card.is-live .pulse-box { animation: g-pulse 1.5s ease-in-out infinite; }
@keyframes g-pulse { 50% { opacity: .3; } }
.g-card.is-live .ac-w { animation: g-wave 2.4s ease-out infinite; }
.g-card.is-live .ac-w2 { animation-delay: .6s; } .g-card.is-live .ac-w3 { animation-delay: 1.2s; }
@keyframes g-wave { 0% { transform: scale(.35); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.g-card.is-live .ac-p { animation: g-rise 2s ease-out infinite; }
.g-card.is-live .ac-p1 { --dx: -9px; } .g-card.is-live .ac-p2 { --dx: 11px; animation-delay: .5s; }
.g-card.is-live .ac-p3 { --dx: 2px; animation-delay: 1s; } .g-card.is-live .ac-p4 { --dx: 15px; animation-delay: 1.5s; }
@keyframes g-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(var(--dx, 6px), -34px); opacity: 0; } }
.g-card.is-live .dots .ac-d1, .g-card.is-live .dots .ac-d2, .g-card.is-live .dots .ac-d3, .g-card.is-live .dots .ac-d4,
.g-card.is-live .dots .ac-d5, .g-card.is-live .dots .ac-d6, .g-card.is-live .dots .ac-d7, .g-card.is-live .dots .ac-d8 { animation: g-ping 1.6s ease-in-out infinite; }
.g-card.is-live .ac-d2 { animation-delay: .2s; } .g-card.is-live .ac-d3 { animation-delay: .4s; } .g-card.is-live .ac-d4 { animation-delay: .6s; }
.g-card.is-live .ac-d5 { animation-delay: .8s; } .g-card.is-live .ac-d6 { animation-delay: 1s; } .g-card.is-live .ac-d7 { animation-delay: 1.2s; } .g-card.is-live .ac-d8 { animation-delay: 1.4s; }
@keyframes g-ping { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.g-card.is-live .ac-blob { animation: g-breathe 2.4s ease-in-out infinite; }
@keyframes g-breathe { 0%, 100% { opacity: .55; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.08); } }
.g-card.is-live .ac-flow { animation: g-march 1.1s linear infinite; }
@keyframes g-march { to { stroke-dashoffset: -24; } }

.g-tech { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .4rem; }
.g-card h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 .5rem; }
.g-card p:not(.g-tech) { color: var(--ink-2); font-size: .98rem; max-width: 26em; }
.g-link { margin-top: .9rem; width: fit-content; font-weight: 500; border-bottom: 1px solid var(--accent); transition: color .2s; }
.g-link:hover { color: var(--accent-ink); }
.g-link span { display: inline-block; transition: transform .25s var(--ease); }
.g-link:hover span { transform: translateX(4px); }

/* Real scrollbar for the gallery: drag the thumb, click the rail, or use arrow keys */
.g-scroll { position: relative; height: 6px; margin-top: 1.75rem; background: var(--line); border-radius: 999px; cursor: pointer; touch-action: none; }
.g-scroll::before { content: ""; position: absolute; inset: -12px 0; }
.g-thumb { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; min-width: 44px; background: var(--accent); border-radius: 999px; cursor: grab; transition: background .2s, box-shadow .2s; will-change: transform; }
.g-thumb::before { content: ""; position: absolute; inset: -10px 0; }
.g-thumb:hover, .g-scroll.is-dragging .g-thumb { background: var(--accent-ink); box-shadow: 0 0 0 4px rgba(242, 97, 29, .18); }
.g-scroll.is-dragging, .g-scroll.is-dragging .g-thumb { cursor: grabbing; }

/* PARTNERS */
.toolbox { border-top: 1px solid var(--ink); }
.toolbox li { display: grid; grid-template-columns: 14rem 1fr 1.2fr; gap: 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line); }
.tb-role { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); transition: color .3s; }
.tb-logo { display: flex; align-items: center; min-height: 64px; width: fit-content; transition: transform .5s var(--ease); }
.tb-logo img { height: clamp(36px, 3vw + 18px, 56px); width: auto; max-width: 260px; object-fit: contain; }
.tb-desc { color: var(--ink-2); max-width: 26em; }
.toolbox li:hover .tb-role { color: var(--accent-ink); }
.toolbox li:hover .tb-logo { transform: translateX(10px); }

/* Logo with text fallback: text shows only when the image file is missing */
.logo-text { display: none; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.logo-text b { font-weight: 400; letter-spacing: .02em; }
.is-missing img { display: none; }
.is-missing .logo-text { display: inline; }

/* CUSTOMERS */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-wall > li { background: var(--paper); }
.logo-tile { display: grid; place-items: center; min-height: 140px; padding: 1.5rem; }
a.logo-tile img { max-height: 48px; max-width: 70%; width: auto; filter: grayscale(1); opacity: .7; transition: filter .35s, opacity .35s, transform .35s var(--ease); }
a.logo-tile:hover img { filter: none; opacity: 1; transform: scale(1.04); }
a.logo-tile .logo-text { font-size: 1.3rem; color: var(--ink-2); }
.logo-tile.is-placeholder span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: .9rem 1.2rem; border: 1px dashed var(--line); border-radius: 8px; }
.group { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 4vw, 3.5rem); padding: clamp(1.75rem, 3.5vw, 3rem); border-radius: 24px; overflow: hidden; }
.group::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 58, .16), transparent 68%); pointer-events: none; }
.group-link { display: flex; align-items: center; }
.group-mark svg { fill: var(--accent-bright); }
.group-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--night-line); color: var(--night-text); background: var(--night-2); flex: none; }
.group-wire { position: relative; width: clamp(36px, 6vw, 84px); height: 1px; background: repeating-linear-gradient(90deg, var(--accent-bright) 0 5px, transparent 5px 10px); }
.group-wire::after { content: ""; position: absolute; top: -2.5px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); animation: wire 2.6s var(--ease) infinite; }
@keyframes wire { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 6px); opacity: 0; } }
.group-logo { display: grid; place-items: center; min-width: 11rem; min-height: 56px; padding: .6rem 1.5rem; border-radius: 14px; background: var(--paper); color: var(--ink); }
.group-logo img { height: 32px; width: auto; }
.group-logo .logo-text { font-size: 1.55rem; }
.group-logo .logo-text b { font-weight: 600; color: var(--accent); }
.group-copy { position: relative; z-index: 1; max-width: 34rem; }
.group-copy .eyebrow { margin-bottom: .75rem; }
.group-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.03em; font-weight: 500; line-height: 1.1; }
.group-title em { color: var(--accent-bright); font-size: 1.08em; }
.group-text { color: var(--night-muted); margin-top: .85rem; }

/* CONTACT */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.contact-meta { margin-top: 3rem; display: grid; gap: 1.25rem; }
.contact-meta div { display: grid; grid-template-columns: 6rem 1fr; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-meta dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: .25rem; }
.contact-meta a { border-bottom: 1px solid var(--accent); }
.form { position: relative; }
.form-fields { display: grid; gap: 1.5rem; transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s; }
.form label { position: relative; display: grid; gap: .5rem; font-size: .85rem; letter-spacing: .04em; color: var(--ink-2); transition: color .25s; }
.form label:focus-within { color: var(--ink); }
.form input, .form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: .65rem 0; font-size: 1.1rem; color: var(--ink); border-radius: 0; resize: vertical; transition: border-color .25s; }
.form input:focus, .form textarea:focus { outline: none; }
/* accent underline that grows from the left while a field is focused; red and full when it is invalid */
.form label::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease), background .25s; pointer-events: none; }
.form label:focus-within::after { transform: scaleX(1); }
.form label:has([aria-invalid="true"])::after { background: var(--alert); transform: scaleX(1); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-bottom-color: var(--alert); }
.form label.is-shake { animation: form-shake .45s var(--ease); }
@keyframes form-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.form .btn { width: fit-content; }
.form-note { min-height: 1.5em; font-size: .95rem; color: var(--ink-2); }
.form-note[data-state="error"] { color: var(--alert); }
.form .btn:disabled { cursor: progress; }
/* sending: the arrow keeps flying out and back in */
.form .btn.is-sending { opacity: .85; }
.form .btn.is-sending span { animation: form-fly .9s var(--ease) infinite; }
@keyframes form-fly { 0% { transform: none; opacity: 1; } 55% { transform: translateX(14px); opacity: 0; } 56% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.form .btn.is-shake { animation: form-shake .45s var(--ease); }

/* success panel: replaces the fields in the same spot, so the layout never jumps */
.form-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.form.is-sent .form-fields { opacity: 0; transform: translateY(-14px) scale(.985); filter: blur(3px); pointer-events: none; }
.form.is-sent .form-done { opacity: 1; visibility: visible; transition: opacity .4s .25s, visibility 0s; }
/* success scene: reuses the hero line pieces (.line .belt .vf .part .part-box), choreographed once (about 4.5 s):
   0.0 form fades out | 0.6 envelope rides in from the left, belt dashes track it | 2.2 it settles under CAM 01
   2.5 camera locks on | 2.65 scan sweep | 3.5 box locks on, OK chip, ping | 3.85 text appears */
.done-line { --p: 3.5rem; --scan: 50%; height: 10.5rem; align-self: stretch; container-type: inline-size; margin-bottom: .5rem; }
.done-line .part { left: calc(var(--scan) - var(--p) / 2); }
.done-line .part-body::before { display: none; }
.done-line .env { position: absolute; inset: 18% 14%; width: 72%; height: 64%; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.done-line .vf svg { transform-origin: center; }
.dl-wash, .dl-line { position: absolute; top: 0; bottom: 0; left: 0; pointer-events: none; opacity: 0; }
.dl-wash { width: 100%; border-radius: 12px; background: linear-gradient(90deg, rgba(242, 97, 29, .06), rgba(242, 97, 29, .28)); transform-origin: left; transform: scaleX(0); }
.dl-line { width: 2px; margin: -6px 0; background: var(--accent); box-shadow: 0 0 12px 2px rgba(242, 97, 29, .55); }
.done-line .part-box { opacity: 0; }
.done-line .part-box::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--accent); border-radius: 6px; opacity: 0; pointer-events: none; }
.form.is-sent .done-line .part { animation: dl-in 1.9s linear .6s both; }
.form.is-sent .done-line .belt::after { animation: dl-belt 1.9s linear .6s both; }
.form.is-sent .done-line .vf svg { animation: dl-lock .5s var(--ease) 2.5s forwards; }
.form.is-sent .dl-wash { animation: dl-wash .8s ease-in-out 2.65s forwards; }
.form.is-sent .dl-line { animation: dl-sweep .8s ease-in-out 2.65s forwards; }
.form.is-sent .done-line .part-body { animation: dl-pass .5s ease 3.5s forwards; }
.form.is-sent .done-line .part-box { animation: dl-box .5s var(--ease) 3.5s forwards; }
.form.is-sent .done-line .part-box::after { animation: dl-ping .8s ease-out 3.55s forwards; }
/* glide in from beyond the left edge, brake smoothly, a tiny overshoot, then settle; the belt dashes use the same curve so they never slip against the part */
@keyframes dl-in {
  0% { transform: translateX(calc(-50cqw - var(--p))); animation-timing-function: cubic-bezier(.3, .6, .35, 1); }
  86% { transform: translateX(6px); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { transform: none; }
}
@keyframes dl-belt {
  0% { background-position: calc(-50cqw - var(--p)) 0; animation-timing-function: cubic-bezier(.3, .6, .35, 1); }
  86% { background-position: 6px 0; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { background-position: 0 0; }
}
@keyframes dl-lock { from { stroke: var(--ink); transform: scale(1.14); } to { stroke: var(--accent); transform: none; } }
@keyframes dl-wash { 0% { opacity: 1; transform: scaleX(0); } 88% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes dl-sweep { 0% { opacity: 1; transform: translateX(0); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--p)); } }
@keyframes dl-pass { from { background: var(--paper); } to { background: var(--accent-soft); } }
@keyframes dl-box { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: none; } }
@keyframes dl-ping { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4, 1.55); } }

/* Headline matches the site's headings (Inter Tight medium, one orange italic serif word) */
.done-title { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; outline: none; }
.done-title em { font-size: 1.08em; color: var(--accent); }
.done-text { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.done-title, .done-text, .form-done .btn { opacity: 0; transform: translateY(10px); }
.form.is-sent .done-title { animation: done-up .7s var(--ease) 3.85s forwards; }
.form.is-sent .done-text { animation: done-up .7s var(--ease) 4s forwards; }
.form.is-sent .form-done .btn { animation: done-up .7s var(--ease) 4.2s forwards; }
@keyframes done-up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .form-fields, .form-done, .form label::after { transition-duration: .01s; transition-delay: 0s; }
  .form.is-sent .done-line .part, .form.is-sent .done-line .belt::after, .form.is-sent .done-line .vf svg, .form.is-sent .done-line .part-body, .form.is-sent .done-line .part-box, .form.is-sent .done-title, .form.is-sent .done-text, .form.is-sent .form-done .btn { animation-duration: .01s; animation-delay: 0s; }
  .form.is-sent .dl-wash, .form.is-sent .dl-line, .form.is-sent .done-line .part-box::after, .form .btn.is-sending span, .form label.is-shake, .form .btn.is-shake { animation: none; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 4vw, 4rem) 1.75rem; color: var(--ink-2); font-size: .95rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem 4rem; padding-bottom: clamp(2rem, 3vw, 3rem); }
.footer-brand p { margin-top: 1rem; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); max-width: 14em; line-height: 1.25; }
.footer-brand em { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(9.5rem, auto)); gap: 2rem clamp(2rem, 5vw, 5rem); }
.footer-cols div { display: grid; gap: .55rem; align-content: start; }
.footer-cols h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); margin: 0 0 .35rem; }
.footer-cols a { width: fit-content; transition: color .2s; }
.footer-cols a:hover { color: var(--accent-ink); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); }
.footer-bottom .copy { grid-column: 2; text-align: center; }
.to-top { grid-column: 3; justify-self: end; transition: color .2s; } .to-top:hover { color: var(--accent-ink); }

/* REVEAL */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .trio-item:nth-child(2) { transition-delay: .1s; } .js .trio-item:nth-child(3) { transition-delay: .2s; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links { display: none; } .nav-toggle { display: block; } .lang { margin-left: auto; margin-right: .25rem; } .lang a { padding: .6rem .55rem; }
  .trio { grid-template-columns: 1fr; }
  .trio-item { border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
  .trio-item + .trio-item::before { display: none; }
  .trio-item h3 { margin-top: 1.25rem; }
  .split, .contact, .seq, .feature { grid-template-columns: minmax(0, 1fr); }
  .split-lead { position: static; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
  .card + .card::before { display: none; }
  .card > svg { margin-bottom: 1.25rem; }
  .xp { margin-bottom: 1.25rem; }
  .sol-index a { grid-template-columns: 2.5rem 1fr auto; row-gap: .4rem; }
  .sol-desc { grid-column: 2 / -1; grid-row: 2; }
  .sol-tag { grid-column: 3; grid-row: 1; }
  .sol-arrow { display: none; }
  .toolbox li { grid-template-columns: 1fr; gap: .6rem; }
  .gallery-head { align-items: flex-end; }
  .footer-cols { grid-template-columns: repeat(2, minmax(9rem, 1fr)); }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-bottom { grid-template-columns: 1fr auto; } .footer-bottom .copy { grid-column: 1; text-align: left; } .to-top { grid-column: 2; }
  .seq-cam { min-height: 300px; }
  .stack { width: 82%; height: 170px; }
  .layer-housing { height: 38px; } .layer-a, .layer-b { height: 46px; } .layer-cover { height: 20px; }
  .contact-meta div { grid-template-columns: 1fr; gap: .25rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .line { --scan: 64%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .g-btn { width: 44px; height: 44px; }
  .sol-index a { grid-template-columns: 2rem 1fr; }
  .sol-tag { grid-column: 2; grid-row: 3; justify-self: start; }
}
/* Portrait tablets: two experience cards per row instead of one giant column */
@media (min-width: 561px) and (max-width: 960px) {
  .cards:not(.cards-3) { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}
/* Touch screens: bigger hit areas for inline links */
@media (pointer: coarse), (max-width: 960px) {
  .g-link { padding-block: .6rem; }
  .g-link, .contact-meta a { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
  .contact-meta a, .form-legal a, .footer-cols a, .footer-bottom a { display: inline-block; padding-block: .55rem; }
}
/* Very large screens: scale the whole page up (everything is sized in rem) */
@media (min-width: 2200px) { html { font-size: 125%; } }
@media (min-width: 3000px) { html { font-size: 150%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}


@media (max-width: 800px) { .group { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .head-row { align-items: flex-end; } }

/* LEGAL LINE + PRIVACY PAGE */
/* Company block in the footer */
.footer-company { padding: 1.75rem 0 1.5rem; margin-bottom: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 1.25rem; }
.fc-name { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.fc-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem); }
.fc-grid div { display: grid; gap: .3rem; align-content: start; padding-left: 1rem; border-left: 1px solid var(--line); }
.fc-grid dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.fc-grid dd { font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fc-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.5rem; font-size: .85rem; line-height: 1.5; color: var(--ink-3); }
.fc-note a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .2s; }
.fc-note a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.form-legal { font-size: .85rem; line-height: 1.5; color: var(--ink-3); }
.form-legal a { text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.form-legal a:hover { color: var(--accent-ink); }

.legal { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section); }
.legal-wrap { width: min(100% - 2 * var(--gutter), 46rem); }
.legal-title { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; margin-top: .5rem; }
.legal-title em { color: var(--accent); font-size: 1.08em; letter-spacing: -0.02em; }
.legal-body { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.legal-body section { padding-block: 1.75rem 0; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.legal-body section:first-child { border-top-color: var(--ink); }
.legal-body h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 .75rem; }
.legal-body p { color: var(--ink-2); max-width: 40em; }
.legal-body p + p { margin-top: .9rem; }
.legal-body a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; transition: color .2s; }
.legal-body a:hover { color: var(--accent-ink); }
.legal-card { margin: 1.5rem 0 0; padding: .35rem 1.35rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-card div { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; gap: .25rem 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.legal-card div:last-child { border-bottom: 0; }
.legal-card dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: .2rem; }
.legal-card dd { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .legal-card div { grid-template-columns: 1fr; } }

/* 404: the page "inspects" itself, a scan line passes and boxes the missing page */
.dark .btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--night-text); }
.dark .btn-ghost:hover { background: var(--night-text); border-color: var(--night-text); color: var(--ink); }
.nf { overflow: clip; }
.nf-inner { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; min-height: calc(100vh - 4.25rem); min-height: calc(100svh - 4.25rem); padding-block: clamp(2.5rem, 6vh, 5rem); }
@media (min-width: 900px) { .nf-inner { grid-template-columns: 1.1fr 1fr; } }
.nf-view { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; border-radius: 22px; background: var(--night-2); border: 1px solid var(--night-line); overflow: hidden; }
@media (min-width: 900px) { .nf-view { aspect-ratio: 5 / 4; } }
.nf-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 40px 40px; opacity: .45; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 85%); }
.nf-frame { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); fill: none; stroke: var(--night-muted); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.nf-cam { position: absolute; left: 30px; top: 26px; display: flex; align-items: center; gap: .55rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.nf-rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); animation: blink 1.6s ease-in-out infinite; }
.nf-digits { position: relative; display: flex; align-items: baseline; margin: 0; padding-top: .3em; font-size: clamp(6.5rem, 4rem + 14vw, 14rem); line-height: 1; font-weight: 500; letter-spacing: -0.06em; color: var(--night-text); user-select: none; }
.nf-zero { position: relative; padding-inline: .05em; font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--accent-bright); }
.nf-box { position: absolute; inset: .1em -.01em .02em; border: 2px solid var(--accent-bright); border-radius: 10px; box-shadow: 0 0 28px rgba(255, 122, 58, .22); font-style: normal; opacity: 0; animation: nf-box 6.5s ease-out infinite; }
.nf-chip { position: absolute; left: -2px; bottom: calc(100% + 8px); padding: .35rem .6rem; border-radius: 5px; background: var(--accent-bright); color: var(--night); font: 500 .72rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; animation: nf-chip 6.5s ease-out infinite; }
.nf-scan { position: absolute; inset: 0 auto 0 0; width: 100%; border-right: 2px solid var(--accent-bright); background: linear-gradient(90deg, transparent 55%, rgba(255, 122, 58, .2)); box-shadow: 6px 0 26px rgba(255, 122, 58, .4); transform: translateX(-100%); opacity: 0; pointer-events: none; animation: nf-sweep 6.5s linear infinite; will-change: transform; }
@keyframes nf-sweep { 0% { transform: translateX(-100%); opacity: 0; } 6% { opacity: 1; } 58% { transform: translateX(0); opacity: 1; } 64%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes nf-box { 0%, 27% { opacity: 0; transform: scale(1.18); } 33% { opacity: 1; transform: scale(1); } 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(1); } }
@keyframes nf-chip { 0%, 32% { opacity: 0; transform: translateY(6px); } 38% { opacity: 1; transform: none; } 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.nf-title { font-size: clamp(2.7rem, 1.4rem + 5vw, 5.75rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; margin: 0 0 1.5rem; }
.nf-title em { color: var(--accent-bright); font-size: 1.08em; letter-spacing: -0.02em; }
.nf-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--night-line); }
.nf-links a { padding: .4rem .9rem; border: 1px solid var(--night-line); border-radius: 999px; font-size: .9rem; color: var(--night-muted); transition: color .2s, border-color .2s; }
.nf-links a:hover { color: var(--night-text); border-color: var(--accent-bright); }
@media (prefers-reduced-motion: reduce) {
  .nf-scan { display: none; }
  .nf-box, .nf-chip, .nf-rec { animation: none; opacity: 1; transform: none; }
}

/* Phone-only camera widgets stay hidden on desktop */
.fx-box { display: none; }

/* MOBILE PUNCH — phones and small tablets get their own composition instead of a shrunken desktop */
@media (max-width: 960px) {
  /* Hero: the inspection line is the signature, so it must be on the first screen */
  .hero > .wrap { min-height: calc(100svh - 4.25rem - 6.5rem); padding-block: 2.5rem 2rem; justify-content: center; }
  .hero-title { font-size: clamp(3.2rem, 15.5vw, 6rem); line-height: .96; margin-bottom: 1.6rem; }
  .hero-lead { font-size: 1.15rem; line-height: 1.5; }
  .hero-actions { margin-top: 2.1rem; width: 100%; gap: .75rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; padding-block: 1.05rem; }
  .hero-actions .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px rgba(242, 97, 29, .7); }
  .line { --p: 3.6rem; height: 13.5rem; }
  .line-fig { padding-top: .5rem; }

  /* Headings: bigger, tighter, with a signal dash before every eyebrow */
  .h2 { font-size: clamp(2.9rem, 14vw, 4.4rem); line-height: .98; letter-spacing: -0.035em; overflow-wrap: break-word; hyphens: auto; }
  .feature-title, .page-title { font-size: clamp(2.8rem, 13vw, 4.2rem); overflow-wrap: break-word; }
  .trio-item h3 { font-size: 2.3rem; }
  .card h3 { font-size: 1.9rem; }
  .group-title { font-size: 2.1rem; }
  .done-title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .eyebrow { display: flex; align-items: center; gap: .7rem; }
  .eyebrow::before { content: ""; flex: none; width: 1.5rem; height: 2px; background: var(--accent); }
  .section-head { margin-bottom: 2rem; }

  /* Mobile menu: large editorial links that slide down */
  .mobile-menu { padding: .5rem var(--gutter) 2rem; counter-reset: m; animation: menu-in .45s var(--ease); }
  .mobile-menu a { counter-increment: m; display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; font-size: clamp(1.7rem, 8vw, 2.2rem); letter-spacing: -0.03em; font-weight: 500; }
  .mobile-menu a::before { content: counter(m, decimal-leading-zero); font-size: .75rem; letter-spacing: .1em; color: var(--accent); font-weight: 400; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }

  /* Tap feedback */
  .btn:active, .sol-index a:active { transform: scale(.97); }
  .sol-index a { padding-block: 1.35rem; }
  .sol-name { font-size: 1.5rem; }

  /* Gallery: cards peek past the edge, snap into place */
  .g-track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 1rem; }
  .g-card { flex-basis: 78%; scroll-snap-align: start; }
  .gallery-ctrl { display: none; }

  /* Experience cards: the dark scene becomes the hero of each card */
  .xp { border-radius: 20px; }

}

/* CONTACT (all sizes): one calm dark card, plain fields, four viewfinder corners that follow you */
.form { --ink: var(--night-text); --ink-2: var(--night-muted); --ink-3: #7d8784; --line: var(--night-line); --paper: var(--night-2); --accent: var(--accent-bright); --accent-soft: rgba(255, 122, 58, .22);
  padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem) clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.5rem, 1rem + 2vw, 2.25rem); background: var(--night); color: var(--night-text); border-radius: 24px; }
.form-fields { position: relative; gap: 1.1rem; }
.fx-box { display: block; position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; opacity: 0; pointer-events: none; color: #4a5558;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 14px 1.5px, linear-gradient(currentColor, currentColor) 0 0 / 1.5px 14px,
    linear-gradient(currentColor, currentColor) 100% 0 / 14px 1.5px, linear-gradient(currentColor, currentColor) 100% 0 / 1.5px 14px,
    linear-gradient(currentColor, currentColor) 0 100% / 14px 1.5px, linear-gradient(currentColor, currentColor) 0 100% / 1.5px 14px,
    linear-gradient(currentColor, currentColor) 100% 100% / 14px 1.5px, linear-gradient(currentColor, currentColor) 100% 100% / 1.5px 14px;
  background-repeat: no-repeat;
  transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease), color .35s, opacity .3s; }
.fx-box.is-on { opacity: 1; }
.fx-box.is-filled { color: var(--accent-bright); }
.fx-box.is-error { color: var(--alert); }
.form label { gap: .3rem; padding: .6rem .75rem .65rem; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.form label::after { display: none; }
.form input, .form textarea { font-size: 1.1rem; letter-spacing: 0; text-transform: none; padding: .55rem 0; border-bottom: 1px solid var(--night-line); color: var(--night-text); caret-color: var(--accent-bright); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-bottom-color: var(--alert); }
.form textarea { min-height: 7rem; }
.form-note { color: var(--night-muted); text-align: center; }
.form-legal { text-align: center; color: #7d8784; }
.form .btn { width: 100%; justify-content: center; margin-top: .5rem; padding-block: 1.1rem; background: var(--accent-bright); color: #1d0b02; font-weight: 600; }
.form .btn:hover { background: #ff9060; }
.form .btn.btn-ghost { background: transparent; color: var(--night-text); border-color: rgba(255, 255, 255, .35); font-weight: 500; }
.form .btn.btn-ghost:hover { background: var(--night-text); color: #121417; }
.form-done { padding: 1.5rem; align-items: center; text-align: center; }
.form-done .belt { background: var(--night-text); }
.form.is-sent { min-height: 29rem; }
.form.is-sent .form-fields { position: absolute; inset: 0; }

@media (max-width: 960px) {
  .contact { gap: 2.5rem; }
  .contact-meta { margin-top: 1.75rem; gap: 0; }
  .done-line { width: 100%; }
}

/* PHONES: centred composition (left-aligned layouts read well on wide screens, but not in a narrow column) */
@media (max-width: 640px) {
  .hero > .wrap { align-items: center; text-align: center; }
  .hero-lead, .lede { margin-inline: auto; }
  .eyebrow { flex-direction: column; justify-content: center; gap: .7rem; text-align: center; }
  .section-head, .page-hero, .contact-lead, .split-lead, .cta-band { text-align: center; }
  .head-row { flex-direction: column; align-items: center; }
  .crumbs { display: flex; justify-content: center; flex-wrap: wrap; }
  .cta-band { justify-content: center; align-items: center; }

  .trio-item, .card, .g-card { text-align: center; }
  .card > svg { margin-inline: auto; }
  .card p, .g-card p:not(.g-tech), .steps p, .toolbox .tb-desc, .footer-brand p { margin-inline: auto; }
  .g-link { margin-inline: auto; }

  .sol-index a { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: .5rem; }
  .sol-index a:hover { padding-left: 0; }
  .sol-desc, .sol-tag { grid-column: 1; grid-row: auto; justify-self: center; }
  .sol-more { text-align: center; }

  .feature-text { text-align: center; }
  .feature-meta { justify-content: center; flex-wrap: wrap; }
  .feature-lede { margin-inline: auto; }
  .ticks { width: fit-content; margin-inline: auto; text-align: left; }

  .steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: .4rem; }
  .steps li::before { grid-row: auto; padding-top: 0; }

  .toolbox li { justify-items: center; text-align: center; }
  .tb-logo { margin-inline: auto; }
  .toolbox li:hover .tb-logo { transform: none; }

  .group { justify-items: center; text-align: center; }
  .group-link { justify-content: center; }
  .group-copy { margin-inline: auto; }

  .contact-meta div { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .25rem; }

  .footer-top { justify-content: center; text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-cols { justify-items: center; text-align: center; }
  .footer-cols div { justify-items: center; }
  .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: 1.4rem 1rem; }
  .fc-grid div:first-child { grid-column: 1 / -1; }
  .fc-grid div { padding-left: 0; border-left: 0; justify-items: center; }
  .footer-company { justify-items: center; text-align: center; }
  .fc-note { justify-content: center; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom .copy { grid-column: 1; text-align: center; }
  .to-top { grid-column: 1; justify-self: center; }

  .mobile-menu a { justify-content: flex-start; }
  .nf-inner, .nf-title { text-align: center; }
  .nf-links { justify-content: center; }
}

/* Phone hero: more breathing room around the text block */
@media (max-width: 640px) {
  .hero > .wrap { width: min(100% - 3rem, 1080px); padding-block: 3.5rem 3.25rem; }
  .hero .eyebrow { margin-bottom: 1.75rem; }
  .hero-title { margin-bottom: 2rem; }
  .hero-lead { padding-inline: .25rem; line-height: 1.55; }
  .hero-actions { margin-top: 2.5rem; gap: .9rem; }
  .line-fig { padding-top: 1rem; }
}

/* Tablet: keep the form card a comfortable reading width instead of stretching edge to edge */
@media (min-width: 641px) and (max-width: 960px) {
  .form { width: min(100%, 38rem); margin-inline: auto; }
  .contact-lead { max-width: 38rem; margin-inline: auto; }
}

/* Phones: wider side margins and more air between sections */
@media (max-width: 640px) {
  :root { --gutter: 1.75rem; --section: clamp(4.5rem, 3.5rem + 5vw, 5.5rem); }
  .hero > .wrap { width: min(100% - 2 * var(--gutter), 1080px); }
  .section-head { margin-bottom: 2.5rem; }
  .mobile-menu { padding-bottom: 2.25rem; }
  .feature, .seq, .group { padding: 1.75rem 1.5rem; }
  .form { padding-inline: 1.5rem; }
  .footer { padding-block: 3.5rem 2rem; }
}

/* Overflow guard: grid columns and form controls may shrink below their intrinsic width, and nothing may widen the page */
body { overflow-x: clip; }
.contact > *, .form, .form-fields, .form label { min-width: 0; }
.form input, .form textarea { width: 100%; min-width: 0; }

/* Phones: more space between a section's title and what follows it */
@media (max-width: 640px) {
  .eyebrow { margin-bottom: 1.75rem; }
  .h2 { margin-bottom: .25rem; }
  .section-head { margin-bottom: 3.5rem; }
  .lede { margin-top: 2rem; }
  .contact-lead .lede { margin-top: 2rem; }
  .contact-meta { margin-top: 3rem; }
  .page-title { margin-bottom: 2rem; }
  .feature-meta { margin-bottom: 2rem; }
  .feature-lede { margin-top: 1.75rem; }
  .ticks { margin-block: 2.25rem 2.5rem; }
  .group-title + .group-text, .group-copy .eyebrow { margin-top: 0; }
  .group-text { margin-top: 1.25rem; }
  .group-copy .eyebrow { margin-bottom: 1.25rem; }
  .seq { margin-top: 3.5rem; }
  .cta-band { padding-top: 3.5rem; gap: 2.5rem; }
  .trio-item { padding-top: 2.5rem; }
  .trio-item h3 { margin: 1.5rem 0 1.25rem; }
  .card h3 { margin-bottom: 1rem; }
  .steps li { padding-block: 2.25rem; }
}

/* Hard stop: the page itself never scrolls sideways (clip, unlike hidden, keeps the sticky nav working) */
html, body { overflow-x: clip; max-width: 100%; }

/* Phones: the inspection camera sits in the middle, and gallery cards snap to the centre of the screen */
@media (max-width: 640px) {
  .line { --scan: 50%; }
  .g-track { --card: min(78vw, 22.5rem); padding-inline: calc((100vw - var(--card)) / 2); scroll-padding-inline: calc((100vw - var(--card)) / 2); gap: 1rem; }
  .g-card { flex: 0 0 var(--card); scroll-snap-align: center; scroll-snap-stop: always; }
}

/* Phones and tablets: the language switcher lives at the end of the menu, not in the top bar */
.lang-menu { display: none; }
@media (max-width: 960px) {
  .nav-inner > .lang { display: none; }
  .mobile-menu .lang-menu { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; font-size: .85rem; }
  .mobile-menu .lang-menu a { counter-increment: none; display: inline-flex; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 500; letter-spacing: .08em; color: var(--ink-2); }
  .mobile-menu .lang-menu a::before { content: none; }
  .mobile-menu .lang-menu a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}
@media (max-width: 640px) { .mobile-menu .lang-menu { justify-content: flex-start; } }
@media (min-width: 641px) and (max-width: 960px) { .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fc-grid div:first-child { grid-column: 1 / -1; } }

/* Phones: gallery links are real buttons, and a tall menu scrolls instead of being cut off */
@media (max-width: 960px) {
  .mobile-menu { max-height: calc(100vh - 4.25rem); max-height: calc(100svh - 4.25rem); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 960px) and (max-height: 760px) {
  .mobile-menu a { padding-block: .7rem; font-size: 1.5rem; }
  .mobile-menu .lang-menu { margin-top: 1.25rem; }
}
@media (max-width: 640px) {
  .g-link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: fit-content; margin: 1.25rem auto 0; padding: .85rem 1.5rem; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 500; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
  .g-link:active { transform: scale(.96); }
  .g-link:not(.g-ask) { background: var(--accent); border-color: var(--accent); color: #fff; }
  .g-link span { animation: g-nudge 2.4s ease-in-out infinite; }
  @keyframes g-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(5px); } }
}
@media (prefers-reduced-motion: reduce) { .g-link span { animation: none !important; } }

/* Phones: each solution is a tappable card with a round arrow button */
@media (max-width: 640px) {
  .sol-index { display: grid; gap: .9rem; border-top: 0; }
  .sol-index a { position: relative; padding: 1.6rem 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 28px -22px rgba(18, 20, 23, .45); row-gap: .6rem; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
  .sol-index a:active { transform: scale(.98); box-shadow: none; border-color: var(--accent); }
  .sol-index .sol-arrow { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-top: .6rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 1.15rem; line-height: 1; justify-self: center; animation: sol-nudge 2.6s ease-in-out infinite; }
  .sol-index li:nth-child(2) .sol-arrow { background: var(--accent); color: #fff; }
  @keyframes sol-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(5px); } }
}
@media (prefers-reduced-motion: reduce) { .sol-index .sol-arrow { animation: none !important; } }
