:root {
  --bg: #0b0c0c;
  --surface: #141616;
  --elev: #1b1e1e;
  --text: #ececec;
  --muted: #959b9a;
  --line: rgba(236, 236, 236, 0.13);
  --teal: #0c2e2b;
  --display: 'Bebas Neue', 'Oswald', 'Anton', 'Arial Narrow', sans-serif;
  --pattern: url('/brand/bg-dark.svg');
  --accent: #c90000;
  --accent-ink: #c90000;
  --accent-wash: rgba(201, 0, 0, 0.12);
  --logo-ink: var(--accent);
  --radius: 8px;
  --container: clamp(1240px, 68vw, 1680px); /* grows on 1440p+ screens */
  --gutter: 22.4px;
}

html[data-theme='light'] {
  --bg: #f5f5f2;
  --surface: #eaebe6;
  --elev: #e1e2dc;
  --text: #16181a;
  --muted: #5a5e63;
  --line: rgba(22, 24, 26, 0.16);
  --accent: #c90000;
  --accent-ink: #c90000;
  --accent-wash: rgba(201, 0, 0, 0.12);
  --logo-ink: #16181a;
  --pattern: url('/brand/bg-light.svg');
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-wash); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lead { color: var(--muted); }
.rule { border-top: 1px solid var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { color: #fff; background: #a30000; border-color: #a30000; }
.btn-secondary:hover { border-color: var(--accent); }
.btn-icon { width: 36px; height: 36px; padding: 0; font-size: 18px; color: var(--muted); }
.btn-icon:hover { color: var(--text); border-color: var(--accent); }

.input {
  width: 100%;
  padding: 11.2px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea.input { resize: vertical; }

.field { display: flex; flex-direction: column; gap: 5.6px; }
.field > span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
}
.card:hover { border-color: var(--accent); color: var(--text); }

/* brand */
.logo { display: block; width: auto; }
.logo-on-light { display: none; }
html[data-theme='light'] .logo-on-dark { display: none; }
html[data-theme='light'] .logo-on-light { display: block; }
.brand-bg { background: var(--bg) var(--pattern) center / cover no-repeat; }
.hero h1, .page h1, .section-h2, .cta h2 { font-family: var(--display); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; }
.card-body strong, .svc h3, .exp-title { text-transform: uppercase; }
html[data-theme='light'] .hero-mark .logo { filter: none; }
.kicker::before { content: ''; display: inline-block; width: 18px; height: 2px; margin-right: 10px; vertical-align: 0.3em; background: var(--accent); }
main > .page { position: relative; }
main > .page::before { content: ''; position: absolute; z-index: -1; top: 0; left: calc(50% - 50vw); width: 100vw; height: 520px; background: var(--pattern) center top / cover no-repeat; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); opacity: 0.9; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 22.4px; max-width: var(--container); margin: 0 auto; padding: 16.8px var(--gutter); }
.head-brand { flex: 0 0 auto; }
.head-brand { display: block; }
.head-brand .logo { height: 52px; }
.head-nav { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 16.8px; align-items: center; justify-content: center; }
.head-nav a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.head-nav a:hover { color: var(--text); }
.head-nav a[aria-current='page'] { color: var(--accent-ink); }
.head-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 11.2px; }
.head-actions .btn { padding: 8.4px 16.8px; letter-spacing: 0.1em; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero video, .hero .hero-empty { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-empty { display: flex; align-items: flex-end; justify-content: flex-end; padding: 22.4px; background-image: repeating-linear-gradient(135deg, rgba(236,237,237,0.05) 0 12px, transparent 12px 24px); }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 72%, transparent) 0%, color-mix(in srgb, var(--bg) 30%, transparent) 55%, transparent 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 44.8px; align-items: center; min-height: clamp(580px, 72vh, 980px); max-width: var(--container); margin: 0 auto; padding: 78px var(--gutter) 56px; }
.hero h1 { font-size: clamp(52px, 5vw + 20px, 132px); margin: 22.4px 0; }
.hero-copy { font-size: clamp(17px, 0.4vw + 12px, 21px); color: var(--muted); max-width: 52ch; margin-bottom: 33.6px; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark .logo { width: 100%; max-width: clamp(320px, 24vw, 600px); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.btn-row { display: flex; flex-wrap: wrap; gap: 11.2px; }

/* generic page head */
.page { max-width: var(--container); margin: 0 auto; padding: 67px var(--gutter); }
.page h1 { font-size: clamp(46px, 6vw, 104px); margin: 22.4px 0 44.8px; }
.section-h2 { font-size: clamp(36px, 4.2vw, 72px); }

/* intro band */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 44.8px; max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter); }
.intro-col { display: flex; flex-direction: column; gap: 16.8px; color: var(--muted); }

/* grids */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22.4px; }
.grid-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 33.6px; }
.card-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 22.4px; }
.card-body .label { margin-bottom: 8.4px; }
.card-body strong { display: block; font-family: var(--display); font-size: 32px; font-weight: 400; line-height: 1; letter-spacing: 0.01em; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--bg); padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc:hover { background: var(--surface); }
.svc-num { font-size: 12px; letter-spacing: 0.14em; color: var(--accent-ink); margin-bottom: 16.8px; }
.svc h3 { font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1; letter-spacing: 0.02em; margin-bottom: 11.2px; }
.svc p { font-size: 15px; color: var(--muted); }

/* rental */
.chips { display: flex; flex-wrap: wrap; gap: 8.4px; margin-bottom: 33.6px; }
.chips .btn { padding: 8.4px 16.8px; letter-spacing: 0.1em; }
.chips .btn[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16.8px; }
.kit { display: flex; flex-direction: column; }
.kit[hidden] { display: none; }
.kit-shot { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--elev); overflow: hidden; }
.kit-shot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: lighten; }
html[data-theme='light'] .kit-shot img { mix-blend-mode: normal; }
.kit-shot span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); }
.kit-text { display: flex; flex: 1; flex-direction: column; gap: 5.6px; padding: 16.8px; }
.kit-text p:first-child { font-size: 15px; line-height: 1.3; }
.kit-desc { flex: 1; font-size: 13px; color: var(--muted); }
.kit-price { font-size: 13px; letter-spacing: 0.08em; color: var(--accent-ink); }

/* case detail */
.case-hero { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 44.8px; }
.case-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 33.6px; margin-bottom: 56px; color: var(--muted); }
.case-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 33.6px; border-top: 1px solid var(--line); padding-top: 33.6px; }
.case-services h3 { font-size: 19px; margin-bottom: 16.8px; }
.case-services ul { list-style: none; display: flex; flex-direction: column; gap: 8.4px; margin: 0; padding: 0; }
.case-services li { font-size: 14.5px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 11.2px; }

/* marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee linear infinite; }
.marquee-row { display: flex; align-items: center; }
.logo-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-band .marquee { padding: 22.4px 0 44.8px; }
.logo-band .marquee-row { gap: 67px; padding-right: 67px; }
.logo-band img { width: auto; object-fit: contain; opacity: 0.75; }
html[data-theme='light'] .logo-band img { filter: invert(1); }
.quotes .marquee-row { gap: 22.4px; padding: 0 11.2px; }
.quote { width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote p:first-child { font-size: 18px; line-height: 1.4; margin-bottom: 22.4px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* closing CTA + footer */
.cta { background: var(--surface); border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 33.6px; align-items: center; max-width: var(--container); margin: 0 auto; padding: 78px var(--gutter); }
.cta h2 { font-size: clamp(46px, 6vw, 108px); }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 22.4px; }
.cta-side p { color: var(--muted); max-width: 44ch; }
.site-foot { border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 33.6px; max-width: var(--container); margin: 0 auto; padding: 44.8px var(--gutter); }
.foot-brand { display: inline-block; margin-bottom: 16.8px; }
.foot-brand .logo { height: 64px; }
.foot-links { display: flex; flex-direction: column; gap: 8.4px; align-items: flex-start; }
.foot-links a { font-size: 14px; color: var(--text); }
.foot-links a:hover { color: var(--accent-ink); }
.foot-note { border-top: 1px solid var(--line); }
.foot-note div { max-width: var(--container); margin: 0 auto; padding: 22.4px var(--gutter); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.foot-addr { font-size: 14px; margin-bottom: 22.4px; }

@media (max-width: 820px) {
  .head-row { flex-wrap: wrap; row-gap: 11.2px; }
  .head-nav { flex: 1 1 100%; order: 3; justify-content: flex-start; gap: 14px; }
  .head-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 44.8px var(--gutter); gap: 28px; }
  .hero-mark { justify-content: flex-start; }
  .hero-mark .logo { max-width: 300px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 22.4px; padding: 44.8px var(--gutter); }
  .page { padding: 44.8px var(--gutter); }
  .quote { width: 78vw; max-width: 360px; }
  .logo-band .marquee-row { gap: 36px; padding-right: 36px; }
  .cta-grid { padding: 56px var(--gutter); }
}

@media (max-width: 560px) {
  .head-nav { gap: 11.2px; }
  .hero-mark .logo { max-width: 260px; }
  .head-brand .logo { height: 40px; }
}

/* expertise panel (was scoped in ExpertisePanel.astro) */
.exp { position: relative; overflow: hidden; min-height: clamp(620px, 70vh, 900px); background: #0b0c0c; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exp-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; background-size: cover; background-position: center; }
.exp-layer[data-on='true'] { opacity: 1; }
.exp-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 12, 0.95) 0%, rgba(11, 12, 12, 0.86) 55%, rgba(11, 12, 12, 0.72) 100%); }
.exp-inner { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22.4px; min-height: clamp(620px, 70vh, 900px); max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter); }
.exp-top { display: flex; align-items: center; justify-content: space-between; gap: 22.4px; }
.exp-kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #eceded; }
.exp-hint { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #eceded; }
.exp-rows { display: flex; flex-direction: column; }
.exp-row { display: flex; align-items: center; justify-content: space-between; gap: 22.4px; padding: 22.4px 0; border-top: 1px solid rgba(236, 237, 237, 0.16); color: #eceded; }
.exp-row:hover { color: #eceded; }
.exp-title { font-family: var(--display); font-size: clamp(40px, 5.6vw, 96px); line-height: 0.95; letter-spacing: 0.01em; transition: color 0.25s; }
.exp-cta { flex: 0 0 auto; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.25s; }
.exp-row[data-on='true'] .exp-title, .exp-row[data-on='true'] .exp-cta { color: #c90000; }
.exp-blurb { max-width: 46ch; min-height: 3em; font-size: 15px; color: #eceded; }
@media (max-width: 820px) {
  .exp, .exp-inner { min-height: 0; }
  .exp-inner { padding: 44.8px var(--gutter); }
}

/* closing CTA uses the brand pattern too */
.cta.brand-bg { background: var(--bg) var(--pattern) center / cover no-repeat; }
@media (max-width: 560px) { .hero-mark .logo { max-width: 200px; } }

/* hero video sits above the pattern, faded with the v1 curve (0 → 22% → 52% visible, left to right) */
.hero video {
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.22) 58%, rgba(0,0,0,0.52) 100%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.22) 58%, rgba(0,0,0,0.52) 100%);
}

/* large displays (1440p, ultrawide, 4K): slightly larger UI text */
@media (min-width: 2200px) {
  body { font-size: 17px; }
  .head-nav a, .btn, .kicker, .label { font-size: 13px; }
  .head-brand .logo { height: 60px; }
}
