/* ==========================================================================
   One Pro Solution LLC — Design System
   ========================================================================== */
:root {
  --ink: #0A121D;
  --ink-2: #0F1B2B;
  --ink-3: #172639;
  --paper: #F4F0E8;
  --paper-2: #EAE4D8;
  --white: #FBF9F5;
  --brass: #C6A052;
  --brass-2: #DDBE7A;
  --brass-3: #9C7A33;
  --muted: #8A94A3;
  --muted-ink: #5A6372;
  --line: rgba(255, 255, 255, .1);
  --line-ink: rgba(10, 18, 29, .12);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Grain overlay (fixed, non-interactive) */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(3rem, 7.4vw, 7.25rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; }
h4 { font-family: var(--f-sans); font-size: 1.05rem; font-weight: 700; margin: 0; letter-spacing: -.005em; }
em, .it { font-style: italic; }
.brass { color: var(--brass); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.6; font-weight: 400; }
.muted { color: var(--muted-ink); }
.on-dark .muted { color: var(--muted); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .8em;
  color: var(--brass-3);
}
.on-dark .eyebrow { color: var(--brass); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brass); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.6rem;
  font: 600 .88rem/1 var(--f-sans); letter-spacing: .02em;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white); transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--white); }
.btn:active { transform: scale(.98); }
.btn .arr { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { color: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--brass-2); }
.btn--ink::before { background: var(--brass); }
.btn--ink:hover { color: var(--ink); border-color: var(--brass); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .9rem;
  border-bottom: 1px solid currentColor; padding-bottom: .25rem;
  transition: gap .35s var(--ease), color .3s;
}
.link-arrow:hover { gap: 1rem; color: var(--brass-3); }
.on-dark .link-arrow:hover { color: var(--brass-2); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .5s var(--ease), border-color .5s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--white);
}
.site-header.is-scrolled {
  background: rgba(10, 18, 29, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.topbar {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
  transition: max-height .4s var(--ease), opacity .3s; max-height: 40px; overflow: hidden;
}
.is-scrolled .topbar { max-height: 0; opacity: 0; border-color: transparent; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.topbar a:hover { color: var(--brass-2); }
.topbar .live { display: inline-flex; align-items: center; gap: .55rem; }
.topbar .live i { width: 6px; height: 6px; border-radius: 50%; background: #6FCF97; box-shadow: 0 0 0 0 rgba(111,207,151,.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111,207,151,.55); } 70%,100% { box-shadow: 0 0 0 8px rgba(111,207,151,0); } }

.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .4s var(--ease); }
.is-scrolled .nav { height: 70px; }
.brand { display: flex; align-items: center; gap: .9rem; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--brass); color: var(--brass-2);
  font-family: var(--f-display); font-size: 1.35rem; font-style: italic;
  border-radius: 50%; position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(198,160,82,.3); border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-weight: 700; letter-spacing: .2em; font-size: .92rem; }
.brand-name span { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .3em; color: var(--brass); margin-top: .4rem; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; margin: 0; padding: 0; font-size: .87rem; font-weight: 500; }
.nav-links > li { position: relative; }
.nav-links a { position: relative; padding: .5rem 0; color: rgba(251,249,245,.82); transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.has-menu > a { display: inline-flex; gap: .4rem; align-items: center; }
.has-menu > a svg { width: 10px; transition: transform .3s; }
.has-menu:hover > a svg, .has-menu:focus-within > a svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 18px); left: -24px; width: 360px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: .6rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s, transform .4s var(--ease), visibility .3s;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.menu::before { content: ""; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center; padding: .7rem; border-radius: 4px; }
.menu a::after { display: none; }
.menu a:hover { background: rgba(255,255,255,.05); }
.menu img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; }
.menu b { display: block; font-weight: 600; color: var(--white); font-size: .9rem; }
.menu small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.4; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn { padding: .85rem 1.25rem; font-size: .82rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--white); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 21.5px; } .burger span:nth-child(3) { top: 26px; }
.nav-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--white);
  padding: 130px var(--gut) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.nav-open .mobile-nav { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; font-family: var(--f-display); font-size: 2.2rem; }
.mobile-nav li a small { font-family: var(--f-mono); font-size: .7rem; color: var(--brass); }
.mobile-nav .mono { color: var(--muted); line-height: 2; }
.nav-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; color: var(--white); background: var(--ink); display: flex; flex-direction: column; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,18,29,.92) 0%, rgba(10,18,29,.68) 45%, rgba(10,18,29,.25) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10,18,29,0) 40%);
}
.hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 120px 120px; mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%); opacity: .35; }
.hero-body { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 4rem; padding-top: 190px; padding-bottom: 7vh; }
.hero h1 { margin: 1.6rem 0 2rem; font-size: clamp(2.9rem, 5.8vw, 5.9rem); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.2s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero .lead { max-width: 560px; color: rgba(251,249,245,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
.d1 { animation-delay: .35s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .65s; } .d4 { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-panel {
  justify-self: end; width: 100%; max-width: 380px;
  background: rgba(15,27,43,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem;
}
.hero-panel header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.hero-panel ol { list-style: none; margin: 0; padding: 0; }
.hero-panel li { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hero-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-panel li .mono { color: var(--brass); }
.hero-panel li em { font-style: normal; color: var(--muted); font-family: var(--f-mono); font-size: .7rem; }

.hero-foot { position: relative; border-top: 1px solid var(--line); }
.hero-foot .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-foot .stat { padding: 1.6rem 1.5rem 1.8rem 0; border-right: 1px solid var(--line); }
.hero-foot .stat + .stat { padding-left: 1.5rem; }
.hero-foot .stat:last-child { border-right: 0; }
.hero-foot .num { font-family: var(--f-display); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; color: var(--white); }
.hero-foot .num sup { font-size: .45em; color: var(--brass); vertical-align: top; margin-left: .15em; }
.hero-foot .lbl { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }
.scroll-cue { position: absolute; right: var(--gut); bottom: 2rem; display: none; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; color: var(--white); background: var(--ink); padding: 220px 0 90px; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img, .page-hero .bg video { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.08); animation: heroZoom 10s var(--ease) forwards; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,29,.95) 10%, rgba(10,18,29,.55) 70%, rgba(10,18,29,.4)), linear-gradient(0deg, var(--ink), transparent 50%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(3rem, 6.5vw, 6rem); max-width: 14ch; margin: 1.4rem 0 1.6rem; }
.page-hero .lead { max-width: 620px; color: rgba(251,249,245,.78); }
.crumbs { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: .7rem; }
.crumbs a:hover { color: var(--brass-2); }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--line); }
.page-hero .meta div { padding: 1.3rem 2.5rem 0 0; margin-right: 2.5rem; border-right: 1px solid var(--line); }
.page-hero .meta div:last-child { border: 0; }
.page-hero .meta b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.page-hero .meta span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Ticker ---------- */
.ticker { background: var(--brass); color: var(--ink); overflow: hidden; border-block: 1px solid var(--brass-3); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 2rem; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ticker-item::after { content: "✦"; font-size: .6rem; margin-left: 2rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(90px, 12vw, 170px) 0; }
.sec--tight { padding: clamp(70px, 8vw, 110px) 0; }
.dark { background: var(--ink); color: var(--white); }
.dark-2 { background: var(--ink-2); color: var(--white); }
.ivory { background: var(--white); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 6rem; align-items: end; margin-bottom: clamp(50px, 7vw, 90px); }
.sec-head h2 { margin-top: 1.2rem; }
.sec-head p { max-width: 520px; }
.index-num { font-family: var(--f-mono); font-size: .72rem; color: var(--muted-ink); letter-spacing: .14em; }
.on-dark .index-num { color: var(--muted); }

/* Intro statement */
.statement { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; }
.statement .big { font-family: var(--f-display); font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.12; letter-spacing: -.01em; }
.statement .big em { color: var(--brass-3); }
.statement .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line-ink); color: var(--muted-ink); }
.statement .side { display: flex; flex-direction: column; gap: 1.5rem; }
.seal { width: 150px; height: 150px; position: relative; }
.seal svg { width: 100%; height: 100%; animation: spin 30s linear infinite; }
.seal .core { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 2.2rem; color: var(--brass-3); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Divisions — editorial zig-zag */
.division { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; padding: 3.5rem 0; border-top: 1px solid var(--line-ink); }
.division:last-child { border-bottom: 1px solid var(--line-ink); }
.division .fig { grid-column: 1 / span 7; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.division .txt { grid-column: 9 / span 4; }
.division.flip .fig { grid-column: 6 / span 7; grid-row: 1; }
.division.flip .txt { grid-column: 1 / span 4; grid-row: 1; }
.fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.division .fig img { transform: scale(1.08); }
.division:hover .fig img, .division:hover .mask-img.in img { transform: scale(1.04); }
.fig .tag { position: absolute; left: 1.2rem; top: 1.2rem; background: rgba(10,18,29,.75); backdrop-filter: blur(8px); color: var(--white); padding: .5rem .8rem; border-radius: 3px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.fig .coord { position: absolute; right: 1.2rem; bottom: 1.2rem; color: var(--white); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; opacity: .85; }
.division .txt h3 { margin: 1rem 0 1.2rem; font-size: clamp(2rem, 3.2vw, 3rem); }
.division .txt p { color: var(--muted-ink); }
.spec-list { list-style: none; margin: 1.8rem 0 2rem; padding: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line-ink); font-size: .92rem; }
.spec-list li span:last-child { font-family: var(--f-mono); font-size: .7rem; color: var(--brass-3); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.on-dark .spec-list li { border-color: var(--line); }
.on-dark .spec-list li span:last-child { color: var(--brass); }

/* Process timeline */
.process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: step; }
.step { padding: 2rem 1.5rem 2.2rem 0; position: relative; border-right: 1px solid var(--line); }
.step:not(:first-child) { padding-left: 1.5rem; }
.step:last-child { border-right: 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--brass); transition: width 1.2s var(--ease); }
.step.in::before { width: 100%; }
.step .n { font-family: var(--f-mono); font-size: .7rem; color: var(--brass); letter-spacing: .14em; }
.step h4 { margin: 2.2rem 0 .7rem; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.step p { font-size: .86rem; color: var(--muted); margin: 0; }
.step .abbr { display: inline-block; margin-top: 1.4rem; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 3px; color: rgba(251,249,245,.7); }

/* Route map */
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(ellipse at 70% 40%, rgba(198,160,82,.08), transparent 60%), var(--ink-2); overflow: hidden; }
.map-wrap svg { width: 100%; height: auto; }
.map-legend { position: absolute; left: 1.4rem; bottom: 1.2rem; display: flex; gap: 1.6rem; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.route { fill: none; stroke: var(--brass); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: .7; }
.route-draw { fill: none; stroke: var(--brass-2); stroke-width: 1.4; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.map-wrap.in .route-draw { animation: draw 2.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.port circle.dot { fill: var(--brass-2); }
.port circle.halo { fill: none; stroke: var(--brass); opacity: .6; transform-box: fill-box; transform-origin: center; animation: halo 3s ease-out infinite; }
.port.sec-port circle.dot { fill: #C8CFDA; }
.port.sec-port circle.halo { stroke: #C8CFDA; }
@keyframes halo { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.port text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; fill: rgba(251,249,245,.85); }
.port text.code { fill: var(--brass); font-size: 8.5px; }
.graticule { stroke: rgba(255,255,255,.06); stroke-width: 1; fill: none; }

.port-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: 3rem; }
.port-table h4 { font-family: var(--f-mono); font-weight: 400; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.port-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background .3s; }
.port-row:hover { padding-left: .6rem; background: rgba(255,255,255,.02); }
.port-row .mono { color: var(--muted); }
.port-row b { font-weight: 500; }
.port-row span:last-child { font-family: var(--f-mono); font-size: .66rem; color: var(--muted); letter-spacing: .08em; }

/* Instruments */
.instruments { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); border-radius: 6px; overflow: hidden; }
.instrument { background: var(--white); padding: 2.6rem 2.2rem; display: flex; flex-direction: column; min-height: 400px; transition: background .5s var(--ease); }
.instrument:hover { background: var(--paper); }
.instrument.feature { background: var(--ink); color: var(--white); }
.instrument.feature:hover { background: var(--ink-2); }
.instrument .code { font-family: var(--f-display); font-size: 4.5rem; line-height: 1; color: var(--brass-3); }
.instrument.feature .code { color: var(--brass); }
.instrument h4 { margin: 1.6rem 0 .8rem; font-size: 1.15rem; }
.instrument p { color: var(--muted-ink); font-size: .93rem; }
.instrument.feature p { color: var(--muted); }
.instrument .foot { margin-top: auto; padding-top: 1.6rem; border-top: 1px solid var(--line-ink); display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-ink); }
.instrument.feature .foot { border-color: var(--line); color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .6rem; border: 1px solid currentColor; border-radius: 99px; color: var(--brass-3); align-self: flex-start; }
.feature .badge { color: var(--brass); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-ink); }
.pillar { padding: 2.4rem 2rem 2rem 0; border-right: 1px solid var(--line-ink); }
.pillar + .pillar { padding-left: 2rem; }
.pillar:last-child { border-right: 0; }
.pillar svg { width: 34px; height: 34px; color: var(--brass-3); stroke-width: 1.2; }
.pillar h4 { margin: 2rem 0 .7rem; }
.pillar p { font-size: .9rem; color: var(--muted-ink); margin: 0; }
.on-dark .pillar { border-color: var(--line); }
.on-dark .pillar svg { color: var(--brass); }
.on-dark .pillar p { color: var(--muted); }
.on-dark .pillars { border-color: var(--line); }

/* Big CTA */
.cta { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.cta .bg { position: absolute; inset: 0; }
.cta .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--ink) 30%, rgba(10,18,29,.6)); }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: end; }
.cta h2 { font-size: clamp(2.8rem, 6vw, 5.8rem); }
.cta-box { border-left: 1px solid var(--line); padding-left: 2.5rem; }
.cta-box a.big { display: block; font-family: var(--f-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; transition: color .3s; }
.cta-box a.big:hover { color: var(--brass-2); }

/* ---------- Detail pages ---------- */
.two-col { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 5rem; }
.sticky { position: sticky; top: 110px; align-self: start; }
.toc { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line-ink); }
.toc li a { display: flex; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid var(--line-ink); font-size: .9rem; transition: color .3s, padding .4s var(--ease); }
.toc li a:hover { color: var(--brass-3); padding-left: .4rem; }
.toc li a span { font-family: var(--f-mono); font-size: .68rem; color: var(--muted-ink); }

.product { padding: 3rem 0; border-top: 1px solid var(--line-ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem; }
.product:first-child { border-top: 0; padding-top: 0; }
.product h3 { margin: .8rem 0 1rem; }
.product p { color: var(--muted-ink); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.spec-table caption { text-align: left; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-3); padding-bottom: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: .75rem .4rem; border-bottom: 1px solid var(--line-ink); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted-ink); width: 46%; }
.spec-table td { font-family: var(--f-mono); font-size: .8rem; }
.spec-table tr { transition: background .3s; }
.spec-table tr:hover { background: rgba(198,160,82,.07); }
.note { font-size: .8rem; color: var(--muted-ink); margin-top: 1.2rem; padding-left: 1rem; border-left: 2px solid var(--brass); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 260px 260px; gap: 1rem; }
.gallery .fig { overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery .fig:first-child { grid-row: span 2; }
.gallery .fig img, .gallery .fig video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery .fig:hover img { transform: scale(1.04); }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.rel-card { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); color: var(--white); display: flex; align-items: flex-end; padding: 2rem; }
.rel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.rel-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,18,29,.9), rgba(10,18,29,.1) 70%); }
.rel-card:hover img { transform: scale(1.05); }
.rel-card > div { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.rel-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-top: .5rem; }
.rel-card .circle { width: 54px; height: 54px; flex: none; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.rel-card:hover .circle { background: var(--brass); border-color: var(--brass); color: var(--ink); transform: rotate(-45deg); }
.rel-card .circle svg { width: 18px; }

/* Docs list */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.doc { background: var(--ink); padding: 1.8rem; display: flex; gap: 1.2rem; transition: background .4s; }
.doc:hover { background: var(--ink-3); }
.doc svg { width: 26px; height: 26px; flex: none; color: var(--brass); stroke-width: 1.3; }
.doc b { display: block; font-weight: 600; margin-bottom: .3rem; }
.doc p { font-size: .84rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line-ink); }
.faq details:first-child { border-top: 1px solid var(--line-ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.6rem 0; font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 36px; height: 36px; flex: none; border: 1px solid var(--line-ink); border-radius: 50%; position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--brass); border-color: var(--brass); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 4rem 1.8rem 0; color: var(--muted-ink); max-width: 760px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 5rem; }
.contact-info .item { padding: 1.6rem 0; border-bottom: 1px solid var(--line-ink); display: grid; grid-template-columns: 130px 1fr; gap: 1rem; }
.contact-info .item:first-child { border-top: 1px solid var(--line-ink); }
.contact-info .item .mono { color: var(--muted-ink); text-transform: uppercase; font-size: .68rem; letter-spacing: .14em; padding-top: .3rem; }
.contact-info .item a, .contact-info .item p { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.3; margin: 0; }
.contact-info .item a:hover { color: var(--brass-3); }
.hours { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; font-size: .88rem; color: var(--muted-ink); }
.clock { font-family: var(--f-mono); color: var(--ink); font-size: .85rem; padding: .4rem .7rem; border: 1px solid var(--line-ink); border-radius: 3px; }

.form-card { background: var(--white); border: 1px solid var(--line-ink); border-radius: 6px; padding: clamp(1.8rem, 4vw, 3.2rem); box-shadow: 0 40px 80px -50px rgba(10,18,29,.35); }
.form-card h3 { margin: 1rem 0 .6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.6rem; margin-top: 2.4rem; }
.field { position: relative; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-ink); margin-bottom: .55rem; }
.field label .req { color: var(--brass-3); }
.field input, .field select, .field textarea {
  font: 500 1rem/1.4 var(--f-sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(10,18,29,.25);
  padding: .7rem 0; border-radius: 0; outline: none; transition: border-color .3s;
  appearance: none; -webkit-appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239C7A33' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right center; cursor: pointer; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(10,18,29,.35); }
.field .bar { position: absolute; left: 0; right: 0; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field input + .bar, .field select + .bar { top: calc(100% - 1px); }
.field textarea + .bar { bottom: 5px; }
.field input:focus + .bar, .field select:focus + .bar, .field textarea:focus + .bar { transform: scaleX(1); }
.field .err { font-size: .76rem; color: #A1412F; margin-top: .45rem; min-height: 0; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #A1412F; }
.field.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .6rem 1rem; border: 1px solid var(--line-ink); border-radius: 99px; font-size: .85rem; cursor: pointer; transition: all .3s var(--ease); }
.chip span:hover { border-color: var(--brass-3); }
.chip input:checked + span { background: var(--ink); color: var(--brass-2); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 2.4rem; flex-wrap: wrap; }
.form-foot small { color: var(--muted-ink); font-size: .78rem; max-width: 340px; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn.loading .spin { display: inline-block; }
.btn.loading .arr { display: none; }
.form-status { display: none; margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 4px; font-size: .9rem; }
.form-status.error { display: block; background: #F6E6E1; color: #7E2F21; }
.hp { position: absolute; left: -9999px; }

.success { text-align: center; padding: 3rem 1rem; display: none; }
.success.show { display: block; animation: fadeUp .8s var(--ease) both; }
.success .check { width: 72px; height: 72px; margin: 0 auto 1.6rem; border-radius: 50%; border: 1px solid var(--brass); display: grid; place-items: center; color: var(--brass-3); }
.success .check svg { width: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 1s .3s var(--ease) forwards; --len: 30; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(251,249,245,.75); padding-top: 110px; overflow: hidden; position: relative; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 80px; }
.site-footer h5 { font-family: var(--f-mono); font-weight: 400; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 1.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .7rem; font-size: .92rem; }
.site-footer li a { transition: color .3s; }
.site-footer li a:hover { color: var(--brass-2); }
.foot-brand p { max-width: 330px; font-size: .92rem; margin-top: 1.4rem; color: var(--muted); }
.wordmark { font-family: var(--f-display); font-size: clamp(5rem, 17vw, 17rem); line-height: .8; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(198,160,82,.35); white-space: nowrap; user-select: none; margin-bottom: -.12em; text-align: center; }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; padding-bottom: 1.6rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.to-top { display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.to-top:hover { color: var(--brass-2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
.mask-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.mask-img.in { clip-path: inset(0 0 0 0); }
.mask-img.in img { transform: scale(1); }

/* Cursor-follow highlight on dark cards */
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(198,160,82,.12), transparent 40%); opacity: 0; transition: opacity .4s; border-radius: inherit; }
.glow:hover::before { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: block; }
  .hero-body { grid-template-columns: 1fr; padding-top: 160px; }
  .hero-panel { justify-self: start; max-width: 100%; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(4) { padding-left: 0; }
  .step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .instruments { grid-template-columns: 1fr; }
  .instrument { min-height: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-ink); }
  .pillar:nth-child(4) { border-top: 1px solid var(--line-ink); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .sticky { position: static; }
  .docs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar .hide-sm { display: none; }
  .sec-head, .statement, .cta .wrap, .contact-grid, .product { grid-template-columns: 1fr; gap: 2rem; }
  .statement .side { flex-direction: row; align-items: center; }
  .statement .cols { grid-template-columns: 1fr; }
  .division, .division.flip { grid-template-columns: 1fr; gap: 1.8rem; }
  .division .fig, .division .txt, .division.flip .fig, .division.flip .txt { grid-column: 1; grid-row: auto; }
  .hero-foot .wrap { grid-template-columns: 1fr 1fr; }
  .hero-foot .stat:nth-child(2) { border-right: 0; }
  .hero-foot .stat:nth-child(3) { padding-left: 0; }
  .hero-foot .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .port-table, .related { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 280px 200px 200px; }
  .gallery .fig:first-child { grid-row: auto; }
  .cta-box { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 2rem; }
  .map-legend { position: static; padding: 1rem 1.4rem; flex-wrap: wrap; gap: .8rem 1.4rem; }
}
@media (max-width: 600px) {
  .hero-panel li em { display: none; }
  .hero-panel li { grid-template-columns: auto 1fr; }
  .process { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) { padding-left: 0; border-right: 0; border-top: 1px solid var(--line); }
  .pillars, .docs, .form-grid { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding-left: 0; border-right: 0; border-top: 1px solid var(--line-ink); }
  .foot-top { grid-template-columns: 1fr; }
  .contact-info .item { grid-template-columns: 1fr; gap: .3rem; }
  .page-hero .meta div { padding-right: 1.4rem; margin-right: 1.4rem; }
  .faq .ans { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .mask-img { clip-path: none; }
  .hero h1 .line > span { transform: none; }
}

/* ---------- Product catalog ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.4rem; }
.cat-nav a { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: .6rem 1rem; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; color: var(--white); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.cat-nav a:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 6rem; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.cat-head h2 { margin-top: 1.2rem; font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.cat-head p { max-width: 520px; color: var(--muted-ink); }
.on-dark .cat-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.p-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-ink); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ivory .p-card { background: var(--paper); }
.p-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10,18,29,.45); }
.p-card .media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.p-card .media img, .p-card .media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.p-card:hover .media img { transform: scale(1.05); }
.p-card .media .tag { position: absolute; left: 1rem; top: 1rem; background: rgba(10,18,29,.78); backdrop-filter: blur(8px); color: var(--white); padding: .45rem .75rem; border-radius: 3px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.p-card .body { display: flex; flex-direction: column; flex: 1; padding: 1.8rem 1.8rem 2rem; }
.p-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin: .9rem 0 .8rem; }
.p-card p { color: var(--muted-ink); font-size: .94rem; margin: 0; }
.p-card .facts { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0; border-top: 1px solid var(--line-ink); }
.p-card .facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-ink); font-size: .84rem; }
.p-card .facts li span:first-child { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-ink); padding-top: .15rem; }
.p-card .facts li span:last-child { text-align: right; font-weight: 600; }
.p-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; }
.bulk-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.bulk-strip div { background: var(--white); padding: 1.3rem 1.4rem; }
.bulk-strip b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.bulk-strip span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-ink); }

/* Petroleum feature */
.petro-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.petro-video { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--ink-3); }
.petro-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.petro-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,29,0) 40%, rgba(10,18,29,.85) 100%); }
.petro-video .cap { position: absolute; left: 1.8rem; right: 1.8rem; bottom: 1.6rem; z-index: 1; color: var(--white); }
.petro-video .cap h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: .7rem; }
.petro-side { display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; padding: 2.4rem 2.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.petro-side p { color: var(--muted); }
.petro-side .spec-list { margin: 0; }
.petro-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.on-dark .p-card { background: var(--ink-2); border-color: var(--line); color: var(--white); }
.on-dark .p-card p { color: var(--muted); }
.on-dark .p-card .facts, .on-dark .p-card .facts li { border-color: var(--line); }
.on-dark .p-card .facts li span:first-child { color: var(--muted); }
.on-dark .p-card .media { background: var(--ink-3); }
.prefill-note { display: none; align-items: center; gap: .6rem; margin: 0 0 1.2rem; padding: .8rem 1rem; border: 1px solid var(--brass); border-radius: var(--radius); background: rgba(198,160,82,.1); font-size: .86rem; }
.prefill-note.show { display: flex; }
.prefill-note b { font-weight: 700; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .petro-feature { grid-template-columns: 1fr; }
  .bulk-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cards, .petro-cards, .cat-head { grid-template-columns: 1fr; }
  .petro-video { min-height: 300px; }
}

/* Product media on division pages */
.product-media { margin: 0 0 1.6rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.product-media img, .product-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.product:hover .product-media img { transform: scale(1.03); }
.gallery--alt { grid-template-columns: 1fr 2fr; }
.gallery--alt .fig:first-child { grid-column: 2; grid-row: 1 / span 2; }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-strip .fig { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--paper-2); }
.gallery-strip .fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery-strip .fig:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .gallery--alt { grid-template-columns: 1fr; }
  .gallery--alt .fig:first-child { grid-column: auto; grid-row: auto; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Image fit & sizing ---------- */
/* Taller source photos (e.g. EN590 terminal, 4:3) keep their labels in frame inside 16:9 frames */
.img-pos-mid { object-position: center 52%; }
.gallery .fig { background: var(--paper-2); }
.gallery .fig img, .gallery .fig video { display: block; }
@media (max-width: 900px) {
  /* Fixed row heights cropped photos into thin strips on tablets; use natural 16:9 frames instead */
  .gallery, .gallery--alt { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery .fig, .gallery--alt .fig:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .gallery-strip { grid-template-columns: 1fr; }
}
