/* ==========================================================================
   Torus Power: site stylesheet (v3, EPC corporate)
   Light, photo-led layout in the style of utility-scale EPCs: white header
   with a utility bar, full-bleed photo heroes and bands, navy accents.
   Montserrat only; brand colors measured from the logo files.
   Motion is progressive and disabled under prefers-reduced-motion.
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

/* --- Tokens --------------------------------------------------------------- */
:root {
    --navy-950: #070d2a;
    --navy-900: #0b1640;
    --navy-800: #12205a;
    --navy-700: #1b2c72;
    --brand-navy: #14186e;
    --brand-royal: #234ebd;
    --brand-electric: #3a55ff;
    --brand-sky: #65c6ff;
    --brand-violet: #9c4ee6;
    --brand-gradient: linear-gradient(90deg, #3a55ff 0%, #65c6ff 100%);

    --bg: #ffffff;
    --surface: #f3f5f9;
    --surface-2: #e9edf4;
    --ink: #0b1640;
    --ink-2: #26304f;
    --muted: #535d7a;
    --subtle: #6b7592;
    --line: #dfe3ec;
    --line-strong: #c3c9d8;
    --accent: #2f4ae0;
    --accent-hover: #2139c4;
    --accent-ink: #ffffff;
    --link: #234ebd;
    --focus: #3a55ff;

    --font-sans: "Montserrat", "Segoe UI", Arial, sans-serif;
    --font-data: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;

    --radius: 4px;
    --shadow: 0 1px 2px #0b16400d, 0 8px 24px -8px #0b16401f;
    --shadow-lg: 0 24px 60px -20px #0b164059;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --max: 1320px;
    --gutter: clamp(20px, 4vw, 48px);
    --util-h: 0px; /* utility bar removed */
    --nav-h: 84px;
    --pad: clamp(80px, 9vw, 136px);
}

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg); color: var(--ink);
    font-family: var(--font-sans); font-size: 16px; line-height: 1.65; font-weight: 400;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.06; letter-spacing: -0.025em; }
h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 15px; line-height: 1.4; }
p { color: var(--muted); text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--link); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
svg { flex-shrink: 0; }
::selection { background: var(--brand-electric); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--accent); color: #fff; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.nowrap { white-space: nowrap; }

/* --- Type roles ------------------------------------------------------------ */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
    font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.on-dark .eyebrow { color: var(--brand-sky); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.statement { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.statement em { font-style: normal; color: var(--accent); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 14px 26px; border: 1.5px solid transparent; border-radius: var(--radius);
    font: 700 14px/20px var(--font-sans); letter-spacing: 0.02em; white-space: nowrap; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary::after, .text-link::after {
    content: ""; width: 16px; height: 16px; background: currentColor; transition: transform 0.3s var(--ease);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn:hover::after, .text-link:hover::after, a:hover .text-link::after { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.on-dark .btn-outline { color: #fff; border-color: #ffffffb3; }
.on-dark .btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }

/* --- Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px #0b164073; }
.utility-bar { background: var(--navy-900); color: #c9cfe3; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; height: var(--util-h); overflow: hidden; transition: height 0.35s var(--ease); }
.site-header.scrolled .utility-bar { height: 0; }
.utility-bar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility-bar ul { display: flex; align-items: center; gap: 22px; }
.utility-bar li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.utility-bar svg { color: var(--brand-sky); }
.utility-bar a { color: #fff; }
.utility-bar a:hover { color: var(--brand-sky); }

.nav-container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-wrap { border-bottom: 1px solid var(--line); }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 38px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px;
    background: none; border: 0; cursor: pointer;
    font: 600 14px/20px var(--font-sans); color: var(--ink); white-space: nowrap;
}
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.drawer-extra { display: none; }
.hamburger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.hamburger span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s ease; }
.hamburger span:nth-child(1) { top: 15px; } .hamburger span:nth-child(2) { top: 21px; } .hamburger span:nth-child(3) { top: 27px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Sections -------------------------------------------------------------- */
.section { padding: var(--pad) 0; position: relative; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy-900); color: #fff; }
.section--tight { padding: clamp(56px, 6vw, 88px) 0; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark strong { color: #fff; }
.on-dark p, .on-dark .lead { color: #c1c8de; }

.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { margin: 0; }
.section-head--stack { display: block; max-width: 860px; }
.section-head--stack h2 { margin-bottom: 20px; }
.section-head--center { display: block; text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.section-head--center h2 { margin-bottom: 20px; }
.section-head--center .lead { margin: 0 auto; }

/* --- Heroes ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-950); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: hero-in 2.4s var(--ease) forwards; }
@keyframes hero-in { to { transform: scale(1); } }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, #070d2ae6 0%, #070d2ab3 42%, #070d2a40 78%, #070d2a1a 100%), linear-gradient(0deg, #070d2acc 0%, #070d2a00 45%);
}
.hero .container { position: relative; }
.hero__inner { max-width: 880px; padding: clamp(96px, 12vw, 176px) 0 clamp(72px, 9vw, 128px); }
.hero h1 { color: #fff; margin-bottom: 28px; }
.hero .lead { color: #dbe0f0; margin-bottom: 40px; max-width: 58ch; }
.hero .eyebrow { color: var(--brand-sky); }
.hero__inner > * { animation: rise 0.9s var(--ease) both; }
.hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.hero__inner > :nth-child(3) { animation-delay: 0.16s; }
.hero__inner > :nth-child(4) { animation-delay: 0.24s; }
.hero__inner > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero--home { min-height: calc(100vh - var(--util-h) - var(--nav-h)); min-height: calc(100svh - var(--util-h) - var(--nav-h)); display: flex; align-items: center; }
.hero--home { align-items: flex-start; }
.hero--home .container { width: 100%; }
.hero--home h1 { font-size: clamp(48px, min(8vw, 11vh), 116px); letter-spacing: -0.04em; line-height: 0.98; }
.hero--home .hero__inner { padding-top: clamp(32px, 4.5vw, 64px); padding-bottom: clamp(150px, 15vw, 210px); }
/* Home hero: TORUS / POWER SERVICES wordmark beside the headline (stacks on top on small screens) */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 4vw, 72px); }
.hero__grid .hero__inner { grid-column: 1; grid-row: 1; }
.hero__brand { grid-column: 2; grid-row: 1; align-self: center; margin: clamp(32px, 4.5vw, 64px) 0 clamp(150px, 15vw, 210px); animation: rise 0.9s var(--ease) 0.2s both; }
.hero__brand svg { display: block; width: clamp(260px, 28vw, 460px); height: auto; overflow: hidden; filter: drop-shadow(0 0 18px rgb(101 198 255 / 0.45)); } /* cropped to the wordmark: no symbol */
/* light sweep across TORUS every few seconds, like the hero lasers */
.hero__shine { animation: brand-shine 7s var(--ease) 1.2s infinite; transform: translateX(-200px); }
@keyframes brand-shine { 0% { transform: translateX(-200px); } 35%, 100% { transform: translateX(560px); } }
@media (prefers-reduced-motion: reduce) { .hero__shine { animation: none; display: none; } }
.hero__brand text { font-family: var(--font-sans); font-weight: 600; font-size: 34px; fill: var(--brand-sky); }
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__brand { grid-column: 1; grid-row: 1; margin: 32px 0 0; justify-self: start; }
    .hero__grid .hero__inner { grid-row: 2; }
    .hero__brand svg { width: clamp(180px, 50vw, 280px); }
}
.hero--page .hero__inner { padding: clamp(80px, 9vw, 136px) 0 clamp(64px, 7vw, 104px); }
.hero--page h1 { font-size: clamp(40px, 5.6vw, 76px); }
.hero--navy { background: var(--navy-900); }
.hero--navy::before {
    background: radial-gradient(60% 80% at 90% 10%, #3a55ff40 0%, transparent 60%),
                linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 72px 72px,
                linear-gradient(90deg, #ffffff08 1px, transparent 1px) 0 0 / 72px 72px;
}

.breadcrumb { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; font-size: 13px; font-weight: 600; color: #b9c1db; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--brand-sky); }

/* --- Stats band (overlaps the home hero) ----------------------------------- */
.stats-band { position: relative; z-index: 5; margin-top: calc(-1 * clamp(96px, 10vw, 128px)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); }
.stats li { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
.stats li + li { border-left: 1px solid var(--line); }
.stat__value { display: block; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.42em; letter-spacing: -0.01em; margin-left: 6px; color: var(--accent); }
.stat__label { display: block; margin-top: 12px; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--muted); }
.stats--plain { box-shadow: none; border: 1px solid var(--line); border-top: 4px solid var(--accent); }

/* --- Intro statement -------------------------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__side p + p { margin-top: 16px; }
.intro__side .actions { margin-top: 28px; }

/* --- Solutions over photo ----------------------------------------------------- */
.solutions { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); }
.solutions__bg { position: absolute; inset: 0; z-index: -2; }
.solutions__bg img { width: 100%; height: 100%; object-fit: cover; }
.solutions::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #070d2af0 0%, #070d2ad1 40%, #070d2af2 100%); }
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #ffffff26; border-left: 1px solid #ffffff26; }
.solution {
    position: relative; display: flex; flex-direction: column; min-height: 300px;
    padding: clamp(28px, 3vw, 40px); border-right: 1px solid #ffffff26; border-bottom: 1px solid #ffffff26;
    color: #fff; transition: background 0.35s ease;
}
.solution:hover { background: #fff; }
.solution__num { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--brand-sky); margin-bottom: auto; transition: color 0.35s ease; }
.solution h3 { color: #fff; font-size: clamp(22px, 2vw, 28px); margin: 48px 0 12px; transition: color 0.35s ease; }
.solution p { color: #c1c8de; font-size: 15px; margin-bottom: 24px; transition: color 0.35s ease; }
.solution .text-link { color: #fff; transition: color 0.35s ease; }
.solution:hover h3 { color: var(--ink); }
.solution:hover p { color: var(--muted); }
.solution:hover .solution__num, .solution:hover .text-link { color: var(--accent); }

/* --- Feature rows (image + capability columns) ------------------------------ */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 9vw, 136px); }
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; margin: 0; overflow: hidden; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__media--tall img { aspect-ratio: 4 / 5; }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__media figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 600; }
.feature__body h2 { margin-bottom: 20px; }
.feature__body > .lead { margin-bottom: 36px; }
.feature__body > .actions, .feature__body > .text-link { margin-top: 36px; }

.cap-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.cap-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.on-dark .cap-label { color: #fff; }
.cap-cols p { font-size: 15px; }
.cap-cols p + p { margin-top: 12px; }
.on-dark .cap-cols { border-color: #ffffff26; }

.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--accent); }
.on-dark .checklist li { color: #dbe0f0; }
.on-dark .checklist li::before { background: var(--brand-sky); }

/* --- Cards ------------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
    position: relative; display: flex; flex-direction: column;
    padding: clamp(28px, 2.8vw, 40px); background: #fff; border: 1px solid var(--line);
    transition: border-color 0.3s ease, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.section--surface .card { border-color: transparent; }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 28px; background: var(--surface); color: var(--accent); transition: background 0.3s ease, color 0.3s ease; }
.card:hover .card__icon { background: var(--accent); color: #fff; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; }
.card .checklist { margin-top: 8px; }
.card .text-link { margin-top: auto; padding-top: 24px; }
.on-dark .card { background: #ffffff0a; border-color: #ffffff1f; }
.on-dark .card:hover { background: #ffffff12; box-shadow: none; }
.on-dark .card__icon { background: #ffffff14; color: var(--brand-sky); }

/* --- Steps (process / 8D) ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); counter-reset: s; border-top: 1px solid var(--line); }
.on-dark .steps { border-color: #ffffff26; }
.steps li { counter-increment: s; padding: 32px 28px 8px 0; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); margin-bottom: 20px; }
.on-dark .steps li::before { color: var(--brand-sky); }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; background: var(--accent); }
.on-dark .steps li::after { background: var(--brand-sky); }
.steps h3 { margin-bottom: 8px; font-size: 18px; }
.steps p { font-size: 14px; }

/* --- Split (safety, about) ----------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split h2, .contact-block h2 { margin-bottom: 20px; } /* space before the lead paragraph */
.split__media { margin: 0; position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.split__media figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 16px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); }
.pillars li { padding: 24px 32px 24px 0; border-bottom: 1px solid var(--line); }
.pillars h3 { font-size: 17px; margin-bottom: 6px; }
.pillars p { font-size: 14px; }
.on-dark .pillars, .on-dark .pillars li { border-color: #ffffff26; }

/* --- Coverage ---------------------------------------------------------------- */
.coverage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.us-map { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.us-map span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--surface-2); color: var(--subtle); font-size: clamp(8px, 0.85vw, 11px); font-weight: 700; }
.us-map .on { background: var(--accent); color: #fff; }
.us-map .hq { background: var(--navy-900); position: relative; }
.us-map .hq::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { opacity: 1; transform: scale(0.9); } to { opacity: 0; transform: scale(1.5); } }
.js .us-map .on { opacity: 0; transform: scale(0.5); transition: opacity 0.5s ease, transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.js .us-map.is-visible .on { opacity: 1; transform: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 12px; font-weight: 600; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; background: var(--accent); }
.map-legend i.hq { background: var(--navy-900); }
.map-legend i.off { background: var(--surface-2); }
.regions { display: flex; flex-direction: column; gap: 16px; }
.region { padding: 28px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: #fff; }
.region--latam { border-left-color: var(--brand-sky); background: var(--navy-900); border-top-color: var(--navy-900); border-right-color: var(--navy-900); border-bottom-color: var(--navy-900); }
.region__kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.region--latam .region__kicker { color: var(--brand-sky); }
.region h3 { margin-bottom: 8px; }
.region--latam h3 { color: #fff; }
.region p { font-size: 15px; }
.region--latam p { color: #c1c8de; }
.region__big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.region__big strong { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.region__big span { font-size: 14px; font-weight: 600; color: var(--muted); }

/* --- Name wall (clients, OEM platforms) ------------------------------------ */
.wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wall--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wall li {
    display: flex; align-items: center; justify-content: center; text-align: center; min-height: 112px; padding: 20px;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-size: clamp(15px, 1.3vw, 19px); font-weight: 800; letter-spacing: -0.01em; color: var(--subtle);
    transition: color 0.3s ease, background 0.3s ease;
}
.wall li:hover { color: var(--ink); background: var(--surface); }
.wall-label { display: block; margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wall + .wall-label { margin-top: 48px; }

/* --- Credentials -------------------------------------------------------------- */
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cred { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.section--surface .cred { border-color: transparent; }
.cred__mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--navy-900); color: #fff; }
.cred__mark img { width: 44px; height: 44px; object-fit: contain; }
.cred__mark--image { background: #fff; border: 1px solid var(--line); }
.cred h3 { font-size: 16px; margin-bottom: 4px; }
.cred p { font-size: 13px; line-height: 1.5; }

/* --- Contact block (home + contact page) ------------------------------------- */
.contact-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { display: flex; flex-direction: column; margin-top: 40px; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { color: var(--accent); margin-top: 2px; }
.contact-list span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); margin-bottom: 4px; }
.contact-list a, .contact-list p { color: var(--ink); font-size: 16px; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }
.on-dark .contact-list, .on-dark .contact-list li { border-color: #ffffff26; }
.on-dark .contact-list a, .on-dark .contact-list p { color: #fff; }
.on-dark .contact-list svg { color: var(--brand-sky); }
.on-dark .contact-list span { color: #9aa3c2; }
.on-dark .contact-list a:hover { color: var(--brand-sky); }

.form-panel { background: #fff; padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); }
.form-panel h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 8px; color: var(--ink); }
.form-panel > p { margin-bottom: 32px; font-size: 15px; color: var(--muted); }
.form-panel strong { color: var(--ink); }
fieldset { border: 0; }
legend, .field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.req { color: #b9302c; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.input, .select, .textarea {
    width: 100%; min-height: 52px; padding: 13px 16px; font: 400 15px/22px var(--font-sans); color: var(--ink);
    background: var(--surface); border: 1px solid transparent; border-bottom: 2px solid var(--line-strong); border-radius: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fff; border-color: var(--line); border-bottom-color: var(--accent); }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; background: var(--surface); border: 1px solid transparent; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.pill span:hover { border-color: var(--line-strong); }
.pill input:checked + span { background: var(--navy-900); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.form-status { display: none; margin-top: 16px; padding: 16px; border-left: 4px solid var(--line); font-size: 14px; line-height: 21px; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e3f5ee; border-color: #0e7a5f; color: var(--ink); }
.form-status.is-info { background: #eef3fe; border-color: var(--accent); color: var(--ink); }
.form-status.is-error { background: #fbe9e8; border-color: #b9302c; color: var(--ink); }
.form-status strong { display: block; margin-bottom: 2px; }

/* --- Photo CTA band ------------------------------------------------------------ */
.cta-photo { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 11vw, 160px) 0; background: var(--navy-950); color: #fff; }
.cta-photo__bg { position: absolute; inset: 0; z-index: -2; }
.cta-photo__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b1640f2 0%, #0b1640cc 55%, #0b164066 100%); }
.cta-photo h2 { color: #fff; max-width: 15ch; margin-bottom: 20px; font-size: clamp(36px, 5vw, 68px); }
.cta-photo p { color: #d2d8ea; max-width: 54ch; margin-bottom: 40px; font-size: clamp(17px, 1.4vw, 19px); }

/* --- Sub-navigation ------------------------------------------------------------ */
.subnav { position: sticky; top: var(--nav-h); z-index: 900; background: #fff; border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { position: relative; padding: 18px 0; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--muted); }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }

/* --- Tables ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-top: 3px solid var(--navy-900); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; text-align: left; }
.data-table th { padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.data-table td { padding: 20px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.data-table td:first-child { color: var(--ink); font-weight: 700; }
.data-table tbody tr { transition: background 0.2s ease; }
.data-table tbody tr:hover { background: var(--surface); }

/* --- Timeline (data center levels) -------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: l; border-top: 1px solid var(--line); }
.timeline li { counter-increment: l; position: relative; padding: 32px 24px 0 0; }
.timeline li::before { content: "Level " counter(l); display: block; margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.timeline li::after { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--accent); }
.timeline h3 { font-size: 18px; margin-bottom: 8px; }
.timeline p { font-size: 14px; }

/* --- Power path (data center) --------------------------------------------------- */
.powerpath { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.powerpath::before { content: ""; position: absolute; left: 28px; right: calc(100% / 6 - 28px); top: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-sky) 0 10px, transparent 10px 20px); opacity: 0.6; animation: current 1.2s linear infinite; }
@keyframes current { to { background-position: 20px 0; } }
.powerpath li { position: relative; padding-right: 20px; }
.powerpath__k { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 24px; background: var(--navy-800); border: 1px solid #65c6ff66; color: var(--brand-sky); font-size: 14px; font-weight: 800; }
.powerpath li:last-child .powerpath__k { background: var(--accent); color: #fff; border-color: var(--accent); }
.powerpath h3 { font-size: 16px; margin-bottom: 6px; }
.powerpath p { font-size: 13px; line-height: 1.55; }

/* --- Readout (engineering tools) ------------------------------------------------ */
.readout { font-family: var(--font-data); font-variant-numeric: tabular-nums; background: var(--navy-950); color: #eef0f8; padding: clamp(20px, 3vw, 32px); max-width: 1000px; margin: 0 auto; box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); }
.readout__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #ffffff1f; font-size: 13px; color: #a9b0cc; }
.readout__head strong { color: #fff; font-weight: 600; }
.readout__live { display: inline-flex; align-items: center; gap: 8px; }
.readout__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4fd1a5; animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 #4fd1a599; } 100% { box-shadow: 0 0 0 10px #4fd1a500; } }
.readout__tag { padding: 3px 10px; background: #65c6ff1f; color: var(--brand-sky); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.readout__chart { display: block; width: 100%; height: 120px; margin-bottom: 16px; background: #0d1535; border: 1px solid #ffffff1a; }
.readout__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.readout__stat { background: #0d1535; border: 1px solid #ffffff1a; padding: 16px; }
.readout__label { display: block; font-size: 12px; color: #a9b0cc; }
.readout__value { display: block; margin-top: 8px; font-size: 24px; line-height: 28px; font-weight: 700; color: #fff; transition: color 0.4s ease; }
.readout__value.tick { color: var(--brand-sky); }
.readout__log { height: 116px; overflow: hidden; display: flex; flex-direction: column-reverse; background: #0d1535; border: 1px solid #ffffff1a; padding: 12px 16px; font-size: 12px; line-height: 18px; color: #4fd1a5; }
.readout__log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout__note { margin-top: 12px; font-family: var(--font-sans); font-size: 12px; color: #a9b0cc; }

/* --- Footer ------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #c1c8de; padding: clamp(72px, 8vw, 112px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid #ffffff1a; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 24px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #a9b0cc; max-width: 34ch; }
.footer-brand .btn { margin-top: 28px; }
.footer-title { display: block; margin-bottom: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-links li { font-size: 14px; color: #a9b0cc; }
.footer-links a:hover { color: #fff; }
.footer-creds { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 28px 0; border-bottom: 1px solid #ffffff1a; font-size: 13px; font-weight: 600; color: #dbe0f0; }
.footer-creds li { display: inline-flex; align-items: center; gap: 10px; }
.footer-creds li::before { content: ""; width: 6px; height: 6px; background: var(--brand-sky); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: 12px; color: #8a93b8; }

/* --- Scroll reveal --------------------------------------------------------------- */
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.js [data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--reveal-i, 0) * 80ms); }
.js .card[data-reveal].is-visible { transition: opacity 0.9s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease; transition-delay: 0s; }

/* --- Responsive ---------------------------------------------------------------- */
/* Six flat nav links + language switch + CTA: tighten spacing on mid-size screens */
@media (max-width: 1400px) {
    .nav-container { gap: 20px; }
    .nav-link { padding: 0 10px; }
    .nav-link::after { left: 10px; right: 10px; }
    .nav-actions .lang-switch { margin-right: 0; }
    .nav-actions .btn { padding: 14px 20px; }
    .nav-actions .btn::after { display: none; }
}
@media (max-width: 1280px) {
    .utility-bar .hide-md { display: none; }
}
/* Header CTA no longer fits beside the links; "Contact" in the bar covers it */
@media (max-width: 1200px) {
    .nav-actions .btn { display: none; }
}
@media (max-width: 1260px) {
    html[lang="es"] .nav-actions .btn { display: none; } /* longer Spanish labels */
}
@media (max-width: 1100px) {
    .solution-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4, .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wall--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .powerpath { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
    .powerpath::before { display: none; }
    .steps { --cols: 2 !important; row-gap: 16px; }
    .coverage, .contact-block { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
    :root { --nav-h: 72px; }
    .hamburger { display: block; }
    .nav-actions .btn { display: none; }
    .nav-menu {
        position: fixed; left: 0; right: 0; top: calc(var(--util-h) + var(--nav-h)); bottom: 0; height: auto;
        flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 48px;
        background: #fff; overflow-y: auto;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
    }
    .site-header.scrolled .nav-menu { top: var(--nav-h); }
    .nav-menu.open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.35s var(--ease); }
    .nav-item { height: auto; flex-direction: column; align-items: stretch; }
    .nav-link { height: auto; padding: 18px 0; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); }
    .nav-link::after { display: none; }
    .drawer-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
    .drawer-extra a:not(.btn) { font-weight: 700; color: var(--ink); }
}
@media (max-width: 860px) {
    .utility-bar { display: none; }
    .nav-menu { top: var(--nav-h); }
    .section-head, .intro, .feature, .split { grid-template-columns: minmax(0, 1fr); }
    .feature--reverse .feature__media { order: 0; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats li:nth-child(3) { border-left: 0; }
    .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .grid-2, .cap-cols { grid-template-columns: minmax(0, 1fr); }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .readout__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero--home { min-height: auto; }
    .hero::before { background: linear-gradient(0deg, #070d2af2 0%, #070d2acc 55%, #070d2a99 100%); }
}
@media (max-width: 640px) {
    .solution-grid, .grid-3, .grid-4, .creds, .footer-top, .timeline, .powerpath, .pillars { grid-template-columns: minmax(0, 1fr); }
    .steps { --cols: 1 !important; }
    .wall, .wall--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wall li { min-height: 88px; font-size: 14px; }
    .actions .btn { flex: 1 1 100%; }
    .solution { min-height: 0; }
    .solution h3 { margin-top: 24px; }
    .us-map { gap: 3px; }
    .us-map span { font-size: 7px; }
    .stat__value { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
    .js .us-map .on { opacity: 1; transform: none; }
    .hero__media img { transform: none; }
}
@media print {
    .site-header, .site-footer, .subnav, .cta-photo, .hamburger { display: none; }
    .hero { background: none; color: var(--ink); }
    .hero::before, .hero__media { display: none; }
    .hero h1, .hero .lead { color: var(--ink); }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --- Page additions ------------------------------------------------------------ */
.hero--overlap .hero__inner { padding-bottom: clamp(150px, 15vw, 210px); }
.contact-list small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.on-dark .contact-list small { color: #9aa3c2; }
.regions .text-link { align-self: flex-start; margin-top: 4px; }

/* --- Brand art: the logo lattice replaces photography ----------------------------- */
.hero--art {
    background:
        radial-gradient(60% 80% at 88% 8%, #2f45e6 0%, #2f45e600 62%),
        radial-gradient(55% 70% at 100% 100%, #7a3fd9b3 0%, #7a3fd900 60%),
        linear-gradient(180deg, #070d2a 0%, #0b1640 100%);
}
.hero__art {
    position: absolute; inset: 0; z-index: -2;
    background: url("../images/lattice.svg") right center / cover no-repeat;
}
.hero--art::before { background: linear-gradient(90deg, #070d2af2 0%, #070d2acc 34%, #070d2a33 70%, #070d2a00 100%); }
.hero--art::after {
    content: ""; position: absolute; z-index: -2; pointer-events: none;
    width: 60vw; height: 60vw; right: -12vw; top: -28vw; border-radius: 50%;
    background: radial-gradient(closest-side, #65c6ff40, #3a55ff1f 55%, transparent 75%);
    animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-8vw, 6vw, 0) scale(1.15); } }
.hero--home.hero--art .hero__art { background-position: 70% center; }

.solutions { background: radial-gradient(70% 60% at 100% 0%, #3a55ff40 0%, transparent 60%), radial-gradient(60% 60% at 0% 100%, #9c4ee640 0%, transparent 60%), var(--navy-950); }
.solutions__bg { background: url("../images/lattice.svg") center / cover no-repeat; opacity: 0.55; }
.solutions::before { background: linear-gradient(180deg, #070d2acc 0%, #070d2a59 50%, #070d2acc 100%); }

.cta-photo { background: linear-gradient(110deg, #0b1640 0%, #1a2a9a 42%, #3a55ff 72%, #7a3fd9 100%); }
.cta-photo__art { position: absolute; inset: 0; z-index: -2; background: url("../images/lattice.svg") right center / cover no-repeat; opacity: 0.9; mix-blend-mode: screen; }
.cta-photo::before { background: linear-gradient(90deg, #0b1640e6 0%, #0b164099 45%, #0b164000 80%); }

.art-panel { position: relative; }
.art-panel img { width: 100%; aspect-ratio: 800 / 680; object-fit: cover; box-shadow: var(--shadow-lg); }
.art-panel::after { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 4px; background: var(--brand-gradient); }
.split__media.art-panel img { aspect-ratio: 800 / 680; }

@media (prefers-reduced-motion: reduce) { .hero--art::after { animation: none; } }
@media (max-width: 860px) {
    .hero--art::before { background: linear-gradient(0deg, #070d2af2 0%, #070d2acc 55%, #070d2a80 100%); }
}

/* ---------- Utility bar (contact only) + interactive coverage map ---------- */
.utility-bar .container { justify-content: flex-end; }
.map-filter { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.js .map-filter { display: flex; }
.map-filter button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; font: 600 13px/1 var(--font-sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.map-filter button span { font-size: 11px; padding: 3px 7px; background: var(--surface-2); color: var(--muted); border-radius: 999px; }
.map-filter button:hover { border-color: var(--navy-900); }
.map-filter button[aria-pressed="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.map-filter button[aria-pressed="true"] span { background: #ffffff26; color: #fff; }
.us-map span { position: relative; cursor: pointer; transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease, outline-color 0.2s ease; outline: 2px solid transparent; outline-offset: 1px; }
.us-map span:hover, .us-map span:focus-visible, .us-map span.is-active { outline-color: var(--navy-900); z-index: 1; }
.us-map .rc:not(.on) { background: #efe6fc; color: #6b2fc0; }
.us-map .rc::before { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-violet); box-shadow: 0 0 0 1.5px #fff; }
.map-legend i.rc { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-violet); }
.js .us-map[data-filter="work"] span:not(.on) { opacity: 0.35; }
.js .us-map[data-filter="work"] .rc:not(.on) { background: var(--surface-2); color: var(--subtle); }
.js .us-map[data-filter="work"] .rc::before { opacity: 0; }
.js .us-map[data-filter="recip"] span:not(.rc):not(.home) { opacity: 0.3; }
.js .us-map[data-filter="recip"] .rc { background: var(--brand-violet); color: #fff; }
.js .us-map[data-filter="recip"] .rc::before { opacity: 0; }
.map-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 52px; margin: 18px 0 0; padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--accent); font-size: 14px; color: var(--muted); }
.map-info strong { color: var(--ink); font-size: 15px; }
.map-source { margin: 12px 0 0; font-size: 12px; color: var(--subtle); }
@media (max-width: 640px) { .us-map .rc::before { width: 4px; height: 4px; top: 2px; right: 2px; } .map-filter button { font-size: 12px; padding: 8px 10px; } }

/* ---------- Logo walls ---------- */
.wall li img { display: block; width: auto; height: auto; max-width: min(var(--w, 150px), 80%); max-height: var(--h, 44px); object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.78; transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s var(--ease); }
.wall li:hover img { filter: none; opacity: 1; transform: scale(1.04); }
@media (max-width: 640px) { .wall li img { max-height: calc(var(--h, 44px) * 0.8); } }
@media (hover: none) { .wall li img { filter: none; opacity: 0.9; } }
/* Client wall: flex so a short last row stretches to full width (no empty cell) */
.wall:not(.wall--4) { display: flex; flex-wrap: wrap; }
.wall:not(.wall--4) li { flex: 1 1 20%; }
@media (max-width: 1100px) { .wall:not(.wall--4) li { flex-basis: 33.333%; } }
@media (max-width: 640px) { .wall:not(.wall--4) li { flex-basis: 50%; } }
/* Map: licensing in progress */
.us-map .ip:not(.on) { background: #fdf0d8; color: #9a5b00; }
.us-map .ip::before { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #f0a020; box-shadow: 0 0 0 1.5px #fff; }
.map-legend i.ip { width: 10px; height: 10px; border-radius: 50%; background: #f0a020; }
.js .us-map[data-filter="work"] .ip:not(.on) { background: var(--surface-2); color: var(--subtle); }
.js .us-map[data-filter="work"] .ip::before, .js .us-map[data-filter="recip"] .ip::before { opacity: 0; }
.js .us-map[data-filter="recip"] .ip:not(.on) { background: var(--surface-2); color: var(--subtle); }
.js .us-map[data-filter="progress"] span:not(.ip) { opacity: 0.3; }
.js .us-map[data-filter="progress"] .ip { background: #f0a020; color: #fff; }
.js .us-map[data-filter="progress"] .ip::before, .js .us-map[data-filter="progress"] .rc::before { opacity: 0; }
.js .us-map[data-filter="progress"] .rc:not(.ip):not(.on) { background: var(--surface-2); color: var(--subtle); }
@media (max-width: 640px) { .us-map .ip::before { width: 4px; height: 4px; top: 2px; right: 2px; } }

/* ---------- Section backgrounds: lattice + laser motif carried through the page ---------- */
.section { isolation: isolate; }
/* Light grey sections: the logo lattice with moving lasers, kept to the right so text stays clean */
.section--surface::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url("../images/lattice-light.svg?v=2") right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%), linear-gradient(180deg, transparent 10%, #000 55%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 25%, #000 80%), linear-gradient(180deg, transparent 10%, #000 55%);
    mask-composite: intersect;
}
/* Navy sections: the dark lattice, same as the heroes but quieter */
.section--navy::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url("../images/lattice.svg") right center / cover no-repeat; opacity: 0.4;
    -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 75%); mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
}
/* White sections: a fine engineering dot grid fading from the top-right corner ... */
.section:not(.section--surface):not(.section--navy):not(.solutions)::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(47, 74, 224, 0.28) 1px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 85% at 100% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 85% at 100% 0%, #000 0%, transparent 75%);
}
/* ... and a laser pulse running along the top edge */
.section:not(.section--surface):not(.section--navy):not(.solutions)::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(58, 85, 255, 0.9) 49%, rgba(156, 78, 230, 0.9) 51%, transparent 58%, transparent 100%);
    background-size: 300% 100%; background-repeat: no-repeat;
    animation: edge-laser 9s linear infinite;
}
@keyframes edge-laser { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (max-width: 860px) {
    .section--surface::before, .section--navy::before { -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%); mask-image: linear-gradient(180deg, transparent 30%, #000 100%); }
}
@media (prefers-reduced-motion: reduce) { .section::after { animation: none !important; opacity: 0; } }
@media print { .section::before, .section::after { display: none !important; } }
/* keep logo tiles and tables legible over the lattice */
.section--surface .wall li { background: rgba(243, 245, 249, 0.94); }
.section--surface .wall li:hover { background: #fff; }

.brand-logo img { height: 40px; }
.footer-brand img { height: 40px; }

/* ---------- Opening sequence (first page view per visit) ---------- */
html.intro-pending body::before { content: ""; position: fixed; inset: 0; z-index: 10000; background: #070d2a; }
html.intro-playing { overflow: hidden; }
html.intro-playing .hero__inner > * { animation-play-state: paused; }
.opening {
    position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; overflow: hidden;
    background-color: #070d2a;
    transition: background-color 0.9s ease 0.15s, opacity 0.9s ease;
}
.opening::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 50% 42%, #18237e 0%, #0b1449 38%, #070d2a 70%, #040819 100%); transition: opacity 0.9s ease 0.15s; }
.opening__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.opening__stage { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3vh, 34px); transform: translateY(-2vh); }
.opening__mark {
    width: min(64vw, 62vh); height: auto; overflow: visible; transform-origin: 49% 66%;
    animation: opening-approach 4.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.opening__s { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: opening-draw 1.7s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s) forwards; }
.opening__z { fill: none; stroke: #ffffff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 3 47; opacity: 0; animation: opening-show 0.4s ease 2.5s forwards, opening-run 2.2s linear 2.5s infinite; }
.opening__z--p { stroke: #f1d9ff; animation-duration: 0.4s, 1.6s; }
.opening__word {
    font: 800 clamp(40px, 7.5vw, 104px)/1 var(--font-sans); color: #fff; letter-spacing: 0.9em; text-indent: 0.9em; white-space: nowrap; text-align: center; width: 100%;
    opacity: 0; filter: blur(10px); animation: opening-word 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 2.5s forwards;
}
.opening__tag { font: 600 clamp(11px, 1.1vw, 14px)/1 var(--font-sans); letter-spacing: 0.32em; text-transform: uppercase; color: #9fb4ff; opacity: 0; animation: opening-show 1s ease 3.3s forwards; }
.opening__tag i { display: inline-block; width: 6px; height: 6px; margin: 0 14px 2px; background: var(--brand-sky); }
.opening__skip {
    position: absolute; right: 24px; bottom: 24px; padding: 10px 16px; font: 600 12px/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase;
    color: #c9d2f2; background: #ffffff10; border: 1px solid #ffffff2e; border-radius: 999px; cursor: pointer; opacity: 0; animation: opening-show 0.6s ease 1s forwards;
}
.opening__skip:hover, .opening__skip:focus-visible { color: #fff; background: #ffffff22; }
/* exit: fly through the mark into the page */
.opening--out { background-color: transparent; }
.opening--out::before { opacity: 0; }
.opening--out .opening__mark { animation: none; transform: scale(1.04); opacity: 0; filter: blur(6px); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s ease, filter 0.7s ease; }
.opening--out .opening__word, .opening--out .opening__tag, .opening--out .opening__skip { opacity: 0; transform: translateY(-12px); transition: opacity 0.45s ease, transform 0.45s ease; animation: none; }
.opening--gone { opacity: 0; pointer-events: none; }
@keyframes opening-draw { to { stroke-dashoffset: 0; } }
@keyframes opening-run { from { stroke-dashoffset: 50; } to { stroke-dashoffset: 0; } }
@keyframes opening-show { to { opacity: 1; } }
@keyframes opening-approach { from { transform: scale(0.82); filter: brightness(0.8); } 62% { filter: brightness(1.35); } to { transform: scale(1); filter: brightness(1); } }
@keyframes opening-word { to { opacity: 1; filter: blur(0); letter-spacing: 0.16em; text-indent: 0.16em; } }
@media (prefers-reduced-motion: reduce) { .opening { display: none; } }

/* ---------- Language switch (EN / ES) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; margin-right: 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; font: 700 12px/1 var(--font-sans); letter-spacing: 0.08em; color: var(--muted); transition: background 0.2s ease, color 0.2s ease; }
.lang-switch a:hover { color: var(--ink); background: var(--surface); }
.lang-switch a[aria-current="true"] { background: var(--navy-900); color: #fff; }
@media (max-width: 640px) { .lang-switch { margin-right: 8px; } .lang-switch a { padding: 0 9px; min-height: 28px; } }
