/* Black Prime Concept — site styles, v2.
   Structure follows the Kineforge reference Helmuth chose (expanding hero panels, card grid,
   light capabilities band, centred statement, process, contact); colours and type are BPC's own. */

:root {
  --bg: #0A0E1A;        /* Void */
  --surface: #111827;   /* Deep Space */
  --surface-2: #182136;
  --line: #222C42;
  --ink: #ECEEF3;       /* Chrome */
  --muted: #8891A4;     /* Slate */
  --prime: #1E6FFF;     /* Prime Blue: marks, dots, active states */
  --accent: #1A63F0;    /* Prime Blue one step deeper, so white text on buttons clears 4.5:1 */
  --prime-text: #4D8BFF; /* Prime Blue lifted for small text on dark grounds (5.4:1 and up) */
  --paper-accent: #1452CC; /* Prime Blue deepened for small text on the light band (5.7:1) */
  --flare: #4FD1FF;     /* Cyan Flare: hover and focus only */
  --paper: #ECEEF3;     /* light band ground */
  --paper-ink: #0A0E1A;
  --paper-muted: #4A5366;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --step-mono: 0.8125rem;                                    /* 13px labels */
  --step-small: 0.9375rem;                                   /* 15px */
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);      /* 16–17px */
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);    /* 20–26px */
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);       /* section titles */
  --step-display: clamp(2.75rem, 1rem + 6vw, 6.5rem);        /* statement */

  --wrap: 1320px;
  --margin: clamp(1rem, 3vw, 2.5rem);
  --section: clamp(5.5rem, 10vw, 9rem);
  --cut: 18px;          /* the chamfered corner, taken from the blade in the logo */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:target { scroll-margin-top: 5.5rem; }
::selection { background: var(--prime); color: #fff; }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; }
p { text-wrap: pretty; }
.dot { color: var(--prime); }
.mono { font-family: var(--font-mono); font-size: var(--step-mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.wrap { width: min(100% - 2 * var(--margin), var(--wrap)); margin-inline: auto; }

/* section head: mono label row with a rule, then the title and one paragraph */
.label-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--prime-text); }
.label-row span:last-child { color: var(--muted); }
.head { margin-top: clamp(2.5rem, 6vw, 4.5rem); max-width: 52rem; }
.head h2 { font-size: var(--step-head); }
.head p { margin-top: 1.25rem; max-width: 38rem; color: var(--muted); }
.head .kicker { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--step-lead); letter-spacing: 0; margin-bottom: 0.6rem; color: var(--ink); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: var(--step-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.button:active { transform: translateY(1px); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); clip-path: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: var(--step-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); transition: color 180ms ease, gap 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--prime); }
  .button.ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--flare); color: var(--flare); }
  .link-arrow:hover { color: var(--flare); gap: 0.8rem; }
  .nav a:not(.button):hover { color: var(--ink); }
}

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 30; background: rgba(10, 14, 26, 0.92); border-bottom: 1px solid var(--line); transition: transform 400ms var(--ease-out); }
.site-head.is-hidden { transform: translateY(-100%); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { width: 2.4rem; background: none; mix-blend-mode: screen; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.05; }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.625rem; letter-spacing: 0.22em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav a:not(.button), .nav .lang { font-family: var(--font-mono); font-size: var(--step-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 180ms ease; }
.nav [aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; min-height: 2.75rem; padding: 0 1rem; font-family: var(--font-mono); font-size: var(--step-mono); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 60em) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { position: fixed; inset: 4.25rem 0 auto 0; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.75rem var(--margin) 2rem; background: var(--surface); border-bottom: 1px solid var(--line); transform: translateY(-130%); visibility: hidden; transition: transform 450ms var(--ease-out), visibility 0s linear 450ms; }
  .nav.is-open { transform: none; visibility: visible; transition: transform 450ms var(--ease-out); }
  .nav a:not(.button), .nav .lang { font-size: 0.95rem; }
}

/* ---------- hero: expanding panels ---------- */
.hero { padding-top: calc(4.25rem + clamp(1rem, 2.5vw, 1.75rem)); }
.hero-intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; color: var(--muted); }
.hero-intro h1 { font-family: var(--font-mono); font-weight: 400; font-size: var(--step-mono); letter-spacing: 0.08em; line-height: 1.5; color: var(--ink); }
.panels { display: flex; gap: 0.75rem; height: clamp(26rem, 72svh, 44rem); }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--surface); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: flex-grow 900ms var(--ease-in-out); cursor: pointer; }
.panel.is-open { flex-grow: 4.2; cursor: default; }
.panel > img, .panel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(0.95); transition: filter 900ms ease; }
.panel.is-open > img, .panel.is-open > video { filter: brightness(0.85); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 26, 0.88) 0%, rgba(10, 14, 26, 0.35) 55%, rgba(10, 14, 26, 0) 100%); pointer-events: none; }
.panel .inner { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; padding: clamp(1rem, 2.2vw, 2rem); }
.panel .num { color: var(--prime-text); }
.panel h2 { margin-top: 0.75rem; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); white-space: nowrap; }
.panel.is-open h2 { font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5.5rem); }
.panel .more { position: absolute; left: clamp(1rem, 2.2vw, 2rem); right: clamp(1rem, 2.2vw, 2rem); bottom: clamp(1rem, 2.2vw, 2rem); max-width: 26rem; opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 700ms var(--ease-out); visibility: hidden; }
.panel.is-open .more { opacity: 1; transform: none; transition-delay: 450ms; visibility: visible; }
.panel .more .button { margin-top: 1.25rem; }
.panel .open-btn { position: absolute; inset: 0; z-index: 2; }
.panel.is-open .open-btn { display: none; }
@media (max-width: 48em) {
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; height: 5.5rem; transition: height 800ms var(--ease-in-out); }
  .panel.is-open { height: 26rem; }
  .panel h2, .panel.is-open h2 { font-size: 1.75rem; }
  .panel.is-open h2 { font-size: 2.6rem; }
  .hero-intro { flex-direction: column; align-items: start; }
}

/* marquee band */
.marquee { margin-top: 0.75rem; overflow: hidden; border-block: 1px solid var(--line); padding-block: 1rem; }
.marquee .track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee .run { display: inline-flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem); text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; line-height: 1; }
.marquee .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee .solid { color: var(--prime); }
.marquee svg { width: 1.4rem; height: 1.4rem; fill: var(--prime); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- work: card grid ---------- */
.work { padding-top: var(--section); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.card { display: flex; flex-direction: column; background: var(--surface); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: background-color 250ms ease; }
.card.wide { grid-column: span 2; }
.card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card.wide .media { aspect-ratio: 16 / 9; }
.card .media img, .card .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out), opacity 500ms ease; }
.card .media video { opacity: 0; }
.card.is-playing .media video { opacity: 1; }
.card .body { display: flex; flex: 1; flex-direction: column; gap: 0.7rem; padding: 1.25rem 1.25rem 1.4rem; }
.card .meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--prime-text); }
.card .meta span:last-child { color: var(--muted); }
.card h3 { font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem); }
.card p { color: var(--muted); font-size: var(--step-small); line-height: 1.55; }
.card .actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { background: var(--surface-2); }
  .card:hover .media img { transform: scale(1.05); }
}
@media (max-width: 64em) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40em) { .cards { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } .card.wide .media { aspect-ratio: 4 / 3; } }

/* ---------- capabilities: light band with numbered rows ---------- */
.band { margin-top: var(--section); padding-block: var(--section); background: var(--paper); color: var(--paper-ink); }
.band .label-row { border-color: #C9CEDA; color: var(--paper-accent); }
.band .label-row span:last-child, .band .head p { color: var(--paper-muted); }
.band .head .kicker { color: var(--paper-ink); }
.rows { margin-top: clamp(2.5rem, 5vw, 4rem); }
.row-item { display: grid; grid-template-columns: minmax(5rem, 1.1fr) 4fr 2.4fr; gap: clamp(1rem, 3vw, 2.75rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid #C9CEDA; align-items: start; }
.row-item .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 0.85; letter-spacing: -0.04em; }
.row-item .tag { color: var(--paper-accent); }
.row-item h3 { margin-top: 0.5rem; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.row-item .line { margin-top: 0.75rem; font-style: italic; color: var(--paper-muted); max-width: 30rem; }
.row-item ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin-top: 1.5rem; }
.row-item li { padding-block: 0.55rem; border-bottom: 1px solid #D6DAE3; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.row-item figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.row-item figure img, .row-item figure video { width: 100%; height: 100%; object-fit: cover; }
.row-item figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.3rem 0.55rem; background: var(--bg); color: var(--ink); }
@media (max-width: 52em) {
  .row-item { grid-template-columns: 1fr; }
  .row-item .big { font-size: 3rem; }
  .row-item figure { aspect-ratio: 16 / 10; }
}
@media (max-width: 30em) { .row-item ul { grid-template-columns: 1fr; } }

/* ---------- statement ---------- */
.statement { padding-block: var(--section); text-align: center; }
.statement .big { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.03em; }
.statement .big > span { display: block; }
.statement .rule { width: 4rem; height: 3px; margin: 2rem auto; background: var(--prime); }
.statement blockquote { max-width: 34rem; margin-inline: auto; font-style: italic; font-size: var(--step-lead); line-height: 1.4; }
.statement cite { display: block; margin-top: 0.75rem; font-style: normal; color: var(--muted); }

/* ---------- process: steps with the approval gate, beside the approval trail ---------- */
.process { padding-bottom: var(--section); }
.process-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.steps-list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1.25rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.steps-list .n { color: var(--prime-text); padding-top: 0.2rem; }
.steps-list h3 { font-size: 1.25rem; letter-spacing: 0; }
.steps-list p { margin-top: 0.4rem; color: var(--muted); font-size: var(--step-small); }
.steps-list li.gate { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; margin-block: 0.25rem; background: rgba(30, 111, 255, 0.14); border-top: 0; color: var(--ink); }
.steps-list li.gate::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--prime); border-radius: 50%; }
.trail-box { position: sticky; top: 6rem; }
.trail-box .frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.trail > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.trail > .is-on { opacity: 1; }
.trail-box .caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; color: var(--muted); }
.trail-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.9rem; }
.trail-tabs button { min-height: 2.75rem; padding: 0 0.5rem; background: var(--surface); color: var(--muted); font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; transition: background-color 180ms ease, color 180ms ease; }
.trail-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .trail-tabs button:hover { color: var(--ink); } }
@media (max-width: 52em) { .process-grid { grid-template-columns: 1fr; } .trail-box { position: static; } .trail-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- contact ---------- */
.contact { position: relative; padding-block: var(--section); background: var(--surface); overflow: hidden; }
.contact::before { content: ""; position: absolute; left: -10%; bottom: -40%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(30, 111, 255, 0.22), rgba(30, 111, 255, 0)); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact h2 { font-size: var(--step-head); margin-top: 1.5rem; }
.contact .intro p { margin-top: 1.25rem; color: var(--muted); max-width: 30rem; }
.contact .ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.contact .facts { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2rem; color: var(--muted); }
.form { display: grid; gap: 0.9rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--bg); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.form label { display: grid; gap: 0.4rem; color: var(--muted); }
.field { width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 0; font-family: var(--font-text); font-size: 1rem; text-transform: none; letter-spacing: 0; transition: border-color 180ms ease; }
.field:focus { outline: none; border-color: var(--flare); }
textarea.field { min-height: 7.5rem; resize: vertical; }
select.field { appearance: none; }
.form .button { width: 100%; min-height: 3.4rem; margin-top: 0.4rem; }
.form .hp { display: none; }
@media (max-width: 52em) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.foot .quote { margin-top: 1rem; max-width: 20rem; color: var(--muted); font-style: italic; font-size: var(--step-small); }
.foot h4 { margin: 0 0 1rem; color: var(--prime-text); }
.foot li + li { margin-top: 0.45rem; }
.foot li a, .foot li span { font-size: var(--step-small); color: var(--muted); transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .foot li a:hover { color: var(--ink); } }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
.credits { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted); }
.credits a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 52em) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- lightbox ---------- */
.lightbox:not([open]) { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--margin); background: rgba(0, 0, 0, 0.94); border: 0; width: 100%; height: 100%; max-width: none; max-height: none; color: var(--ink); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.94); }
.lightbox .frame { width: min(100%, 80rem); aspect-ratio: 16 / 9; background: #000; }
.lightbox .frame.is-vertical { width: min(100%, calc(86svh * 9 / 16)); aspect-ratio: 9 / 16; }
.lightbox iframe { width: 100%; height: 100%; border: 0; }
.lightbox .close { position: absolute; top: 1rem; right: 1rem; }

/* ---------- about ---------- */
.about-hero { position: relative; min-height: 92svh; display: grid; align-content: end; padding: 7rem 0 3.5rem; overflow: hidden; }
.about-hero .photo { position: absolute; inset: 0; }
.about-hero .photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.about-hero .photo::after { content: ""; position: absolute; inset: 35% 0 0 0; background: linear-gradient(rgba(10, 14, 26, 0), var(--bg)); }
.about-hero .wrap { position: relative; }
.about-hero h1 { font-size: var(--step-display); max-width: 14ch; margin-top: 1.5rem; }
.about-hero p { margin-top: 1.5rem; max-width: 34rem; font-size: var(--step-lead); line-height: 1.4; }
.who { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: var(--section); }
.who figure { aspect-ratio: 4 / 5; overflow: hidden; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.who figure img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.who h2 { font-size: var(--step-head); margin-top: 1.5rem; }
.who p { margin-top: 1.1rem; color: var(--muted); max-width: 36rem; }
.who p.first { color: var(--ink); font-size: var(--step-lead); line-height: 1.4; }
.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts-strip dt { color: var(--prime-text); }
.facts-strip dd { margin-top: 0.35rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; line-height: 1.2; }
@media (max-width: 52em) { .who { grid-template-columns: 1fr; } .facts-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-rise] { opacity: 0; transform: translateY(24px); animation: rise 1100ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 140ms + 150ms); }
  .about-hero .photo img { animation: drift 24s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .panel, .panel > img, .panel > video, .panel .more { transition: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-2%); } }

/* YouTube Shorts thumbnails are letterboxed 16:9 frames: crop to the vertical picture in the middle */
.card .media img.short { inset: auto; left: -108%; top: 50%; width: 316%; max-width: none; height: auto; transform: translateY(-50%); }
@media (hover: hover) and (pointer: fine) { .card:hover .media img.short { transform: translateY(-50%) scale(1.04); } }

/* closed hero panels: the title runs up the edge so long words fit a narrow panel */
@media (min-width: 48.01em) {
  .panel:not(.is-open) h2 { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: auto; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); }
}

/* gallery filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.filters button { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 1rem; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.filters button span { color: var(--prime-text); }
.filters button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.filters button[aria-pressed="true"] span { color: #fff; }
@media (hover: hover) and (pointer: fine) { .filters button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); } .filters button[aria-pressed="true"]:hover { box-shadow: none; } }
.filters + .cards { margin-top: 1.5rem; }
.card.is-filtered { display: none; }
.js .card.is-entering { animation: card-in 600ms var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
.more-row { display: flex; justify-content: center; margin-top: 2.5rem; }
.more-row [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .js .card.is-entering { animation: none; } }

/* ---------- project galleries ---------- */
.media-open { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: flex-end; padding: 0.75rem; cursor: zoom-in; }
.media-open span.mono { padding: 0.35rem 0.6rem; background: rgba(10, 14, 26, 0.85); color: var(--ink); transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .media-open:hover span.mono { background: var(--accent); } }
.card .actions button.link-arrow { padding: 0; }

.gallery-box:not([open]) { display: none; }
.gallery-box { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 7, 13, 0.97); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; }
.gallery-box::backdrop { background: rgba(5, 7, 13, 0.97); }
.g-top { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem var(--margin); border-bottom: 1px solid var(--line); }
.g-title { color: var(--ink); }
.g-count { color: var(--prime-text); margin-right: auto; white-space: nowrap; }
.g-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: 1rem clamp(3.5rem, 7vw, 6rem); touch-action: pan-y; }
.g-img { max-width: 100%; max-height: calc(100svh - 12.5rem); width: auto; height: auto; object-fit: contain; background: none; user-select: none; -webkit-user-drag: none; transition: opacity 250ms ease; }
.g-img.is-loading { opacity: 0.25; }
.g-nav { position: absolute; top: 50%; width: 3rem; height: 3rem; margin-top: -1.5rem; background: var(--surface); color: var(--ink); font-size: 1.1rem; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.g-nav:active { transform: scale(0.94); }
.g-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.g-next { right: clamp(0.5rem, 2vw, 1.5rem); }
@media (hover: hover) and (pointer: fine) { .g-nav:hover { background: var(--accent); box-shadow: none; } }
.g-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem var(--margin) 1rem; border-top: 1px solid var(--line); scrollbar-width: thin; }
.g-thumbs button { flex: none; width: 4.5rem; height: 4.5rem; opacity: 0.45; box-shadow: inset 0 0 0 2px transparent; transition: opacity 180ms ease, box-shadow 180ms ease; }
.g-thumbs button img { width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.g-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--prime); }
@media (hover: hover) and (pointer: fine) { .g-thumbs button:hover { opacity: 0.85; } }
@media (max-width: 40em) {
  .g-stage { padding: 0.5rem; }
  .g-nav { top: auto; bottom: 0.75rem; margin-top: 0; }
  .g-thumbs button { width: 3.5rem; height: 3.5rem; }
}

/* ---------- flight: scroll through La Negra Prime ---------- */
.flight { position: relative; background: #05070D; }
.flight-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 30rem; overflow: hidden; }
.flight-poster, .flight-videos, .flight-videos video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.flight-poster { z-index: 0; background: #05070D; }
.flight-videos { z-index: 1; pointer-events: none; }
.flight-videos video { background: transparent; }
.flight-videos video { opacity: 0; }
.flight-videos video.is-on { opacity: 1; }
.flight-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(10,14,26,0.8) 0%, rgba(10,14,26,0.35) 30%, rgba(10,14,26,0) 52%), linear-gradient(0deg, rgba(10,14,26,0.65) 0%, rgba(10,14,26,0) 34%), linear-gradient(180deg, rgba(10,14,26,0.55) 0%, rgba(10,14,26,0) 18%); opacity: 0.55; transition: opacity 500ms ease; }
.flight[data-cap="4"] .flight-scrim { opacity: 1; }
.flight-hud { position: absolute; z-index: 3; left: var(--margin); right: var(--margin); top: calc(4.25rem + 0.9rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); }
.flight-tag i { font-style: normal; color: var(--prime-text); margin: 0 0.25rem; }
.flight-skip { color: var(--muted); transition: color 180ms ease; }
.flight-skip:hover { color: var(--ink); }
.flight-caps { position: absolute; z-index: 3; left: var(--margin); bottom: clamp(3.25rem, 11vh, 6.5rem); width: min(36rem, 86vw); }
.flight-cap { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(14px); transition: opacity 400ms ease, transform 500ms var(--ease-out); pointer-events: none; }
.flight-cap.is-on { opacity: 1; transform: none; }
.flight-cap .mono { display: block; color: var(--prime-text); margin-bottom: 0.5rem; }
.flight-cap p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; text-shadow: 0 2px 24px rgba(5,7,13,0.7); }
.flight-final { position: absolute; z-index: 3; left: var(--margin); top: 50%; width: min(32rem, 35vw); transform: translateY(-46%); opacity: 0; transition: opacity 500ms ease, transform 600ms var(--ease-out); pointer-events: none; }
.flight[data-cap="4"] .flight-final { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.flight-final .mono { display: block; color: var(--prime-text); margin-bottom: 0.9rem; }
.flight-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.98; font-size: clamp(2.1rem, 0.8rem + 3.1vw, 4rem); text-wrap: balance; text-shadow: 0 2px 28px rgba(5,7,13,0.65); }
.flight-sub { margin-top: 1.1rem; color: var(--ink); max-width: 30rem; font-size: var(--step-lead); line-height: 1.4; text-shadow: 0 1px 14px rgba(5,7,13,0.8); }
.flight-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.flight-rail { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(236,238,243,0.12); }
.flight-rail b { position: absolute; top: -4px; width: 2px; height: 11px; background: rgba(236,238,243,0.55); transform: translateX(-1px); }
.flight-rail i { display: block; height: 100%; background: var(--prime); transform-origin: 0 50%; transform: scaleX(0); }

/* No script, reduced motion, or clips unavailable: one still frame with the call to action. */
.flight:not(.is-live) .flight-sticky, .flight.is-static .flight-sticky { position: relative; height: min(100svh, 56.25vw + 12rem); min-height: 34rem; }
.flight:not(.is-live) .flight-final, .flight.is-static .flight-final { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.flight:not(.is-live) .flight-scrim, .flight.is-static .flight-scrim { opacity: 1; }
.flight:not(.is-live) .flight-caps, .flight.is-static .flight-caps, .flight:not(.is-live) .flight-rail, .flight.is-static .flight-rail { display: none; }

@media (max-width: 860px) {
  .flight-poster, .flight-videos video { object-position: 38% 50%; }
  .flight-videos video:nth-child(5) { object-position: 50% 50%; }
  .flight-videos video:nth-child(6) { object-position: 68% 50%; }
  .flight-final { top: auto; bottom: clamp(2.5rem, 9vh, 4.5rem); left: var(--margin); right: var(--margin); width: auto; transform: translateY(14px); }
  .flight[data-cap="4"] .flight-final { transform: none; }
  .flight:not(.is-live) .flight-final, .flight.is-static .flight-final { transform: none; }
  .flight-scrim { background: linear-gradient(0deg, rgba(10,14,26,0.9) 0%, rgba(10,14,26,0.4) 40%, rgba(10,14,26,0) 62%), linear-gradient(180deg, rgba(10,14,26,0.55) 0%, rgba(10,14,26,0) 18%); }
  .flight-title { font-size: clamp(1.9rem, 1rem + 5vw, 2.6rem); }
  .flight-sub { display: none; }
}

.flight-hud-r { display: flex; align-items: center; gap: 1.25rem; }
.flight-play { display: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); padding: 0.5rem 0.8rem; background: rgba(10,14,26,0.55); transition: box-shadow 180ms ease, color 180ms ease; }
.flight-play:hover { box-shadow: inset 0 0 0 1px var(--flare); color: var(--flare); }
.flight.is-static .flight-play { display: inline-flex; }

.flight .mono { font-size: clamp(0.9rem, 0.78rem + 0.35vw, 1.1rem); }
.flight-cap .mono { margin-bottom: 0.65rem; }
.flight .button { min-height: 3.4rem; padding: 0 1.7rem; font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.05rem); }
@media (max-width: 860px) {
  .flight-cap p { font-size: clamp(1.8rem, 1rem + 5.5vw, 2.6rem); }
  .flight-title { font-size: clamp(2.1rem, 1rem + 6vw, 3rem); }
  .flight-sub { display: block; font-size: 1.05rem; }
}

.flight-welcome { width: min(44rem, 90vw); }
.flight-welcome p { font-size: clamp(2.8rem, 1rem + 6vw, 6.5rem); line-height: 0.95; letter-spacing: -0.02em; }
.flight-welcome .mono { margin-bottom: 0.9rem; }
.flight-welcome .flight-hint { margin: 1.4rem 0 0; color: var(--ink); opacity: 0.85; }
.flight-hint i { display: inline-block; font-style: normal; color: var(--prime-text); animation: flight-nudge 1.8s ease-in-out infinite; }
@keyframes flight-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .flight-hint i { animation: none; } }
@media (max-width: 860px) { .flight-welcome p { font-size: clamp(2.6rem, 1rem + 11vw, 4.2rem); } }
.flight-welcome > .mono:first-child { color: var(--ink); text-shadow: 0 1px 14px rgba(5,7,13,0.8); }

/* Welcome: centred on the first frame */
.flight-welcome { position: absolute; z-index: 3; left: 50%; top: 50%; bottom: auto; width: min(60rem, 92vw); text-align: center; transform: translate(-50%, -46%); }
.flight-welcome.is-on { transform: translate(-50%, -50%); }
.flight-welcome > .mono:first-child { color: var(--ink); }
.flight[data-cap="0"] .flight-scrim { opacity: 1; background: radial-gradient(ellipse 60% 55% at 50% 52%, rgba(10,14,26,0.72) 0%, rgba(10,14,26,0.35) 55%, rgba(10,14,26,0) 100%), linear-gradient(180deg, rgba(10,14,26,0.55) 0%, rgba(10,14,26,0) 18%); }

/* The studio line and "Bogotá → worldwide" now live in the flight; the h1 stays for search and screen readers. */
.hero-intro { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
