/* Haldeman Services LLC — site stylesheet */
@font-face {
  font-family: "Syne";
  src: url("/assets/fonts/syne.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff") format("woff");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy-0: #040b14;
  --navy-1: #071525;
  --navy-2: #0b1f3a;
  --navy-3: #143056;
  --navy-4: #1b3c68;
  --gold: #c9a227;
  --gold-2: #e8c547;
  --gold-3: #f3d97a;
  --ivory: #f3efe4;
  --ivory-2: #e6e0d2;
  --ink: #f3efe4;
  --ink-soft: #c5cdd8;
  --muted: #8b97a8;
  --line: rgba(232, 197, 71, 0.28);
  --line-strong: rgba(232, 197, 71, 0.55);
  --bg: var(--navy-1);
  --bg-2: var(--navy-2);
  --card: rgba(16, 36, 64, 0.72);
  --card-border: rgba(232, 197, 71, 0.16);
  --header: rgba(7, 21, 37, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --focus: #e8c547;
  --danger-soft: #c9a227;
  --radius: 1.15rem;
  --radius-sm: 0.7rem;
  --header-h: 4.5rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 70ch;
  --wide: 72rem;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-2: #ebe6db;
  --ink: #0b1f3a;
  --ink-soft: #33445c;
  --muted: #5c6b7d;
  --card: #fffcf6;
  --card-border: rgba(11, 31, 58, 0.1);
  --header: rgba(244, 241, 234, 0.86);
  --shadow: 0 18px 40px rgba(11, 31, 58, 0.08);
  --line: rgba(11, 31, 58, 0.12);
  --line-strong: rgba(201, 162, 39, 0.65);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  overflow-x: clip;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  min-height: 100svh;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold-2);
  color: var(--navy-2);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0.4rem;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), height 0.35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--header);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(100%, calc(var(--wide) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}
.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}
.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.58rem;
  color: var(--gold-2);
  margin-top: 0.12rem;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
}
.nav a, .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover, .nav-btn:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}
.nav a[aria-current="page"] { color: var(--gold-2); }

.has-sub { position: relative; }
.subnav {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 16rem;
  background: var(--navy-2);
  color: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  display: none;
  z-index: 90;
}
[data-theme="light"] .subnav {
  background: #fffcf6;
  color: var(--ink);
}
.has-sub:hover .subnav,
.has-sub:focus-within .subnav,
.has-sub.open .subnav { display: block; }
.subnav a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  width: 100%;
  color: inherit;
}
.subnav a strong { font-weight: 600; font-size: 0.95rem; }
.subnav a span { font-size: 0.78rem; color: var(--muted); font-weight: 400; }

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 0.35rem;
}
.icon-btn:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.nav-toggle { display: none; }
.nav-toggle .bar {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle .bar::before { top: -5px; }
.nav-toggle .bar::after { top: 5px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    margin: 0;
    background: var(--navy-1);
    color: var(--ivory);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem var(--gutter) 2rem;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    overflow-y: auto;
  }
  [data-theme="light"] .nav { background: #f4f1ea; color: var(--ink); }
  .site-header.is-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav a, .nav-btn {
    width: 100%;
    padding: 0.9rem 0.2rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    justify-content: space-between;
  }
  .has-sub .subnav {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.5rem 0.8rem;
    min-width: 0;
  }
  .subnav a { padding: 0.55rem 0; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #0b1f3a;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.22);
}
.btn-gold:hover { background: linear-gradient(180deg, #f3d97a, var(--gold-2)); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: color-mix(in srgb, var(--navy-2) 20%, transparent);
}
[data-theme="light"] .btn-ghost { background: #fffcf6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Layout ---------- */
.container {
  width: min(100%, calc(var(--wide) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
}
.section-tight { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin: 0 0 0.85rem;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.6rem;
}
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--gold-2); text-underline-offset: 0.18em; }
[data-theme="light"] .prose a { color: #8a6d12; }
.hairline {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f3efe4;
  background: #071525;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 70% 40%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,11,20,0.15) 0%, rgba(7,21,37,0.45) 45%, rgba(4,11,20,0.92) 100%),
    linear-gradient(90deg, rgba(7,21,37,0.72) 0%, rgba(7,21,37,0.2) 55%, rgba(7,21,37,0.35) 100%);
  z-index: 1;
}
.hero-glow {
  position: absolute;
  inset: auto auto 18% 0;
  width: min(46vw, 100%);
  height: 40vh;
  background: radial-gradient(ellipse at center, rgba(201,162,39,0.16), transparent 65%);
  z-index: 1;
  pointer-events: none;
  animation: glowshift 18s ease-in-out infinite alternate;
}
@keyframes glowshift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(8%, -6%, 0) scale(1.1); opacity: 1; }
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, calc(var(--wide) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) var(--gutter) clamp(3rem, 8vh, 5.5rem);
}
.hero h1 { color: #f3efe4; max-width: 14ch; }
.hero .lede { color: #c5cdd8; }
.hero-rule {
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-2), transparent);
  border: 0;
  margin: 0 0 1.6rem;
}
.scroll-cue {
  margin-top: 2.8rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #9aa4b5;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue i {
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, var(--gold-2), transparent);
  display: block;
}

.page-hero {
  padding: clamp(5.5rem, 14vh, 8rem) 0 3.5rem;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201,162,39,0.12), transparent 45%),
    linear-gradient(180deg, var(--navy-1), var(--bg));
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .page-hero {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201,162,39,0.16), transparent 45%),
    linear-gradient(180deg, #f7f3ea, var(--bg));
}

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card-num {
  font-family: var(--display);
  color: var(--gold-2);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { margin: 0; color: var(--ink-soft); flex: 1; }
.card .more {
  margin-top: 1.2rem;
  color: var(--gold-2);
  font-weight: 600;
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.mission {
  background: var(--navy-2);
  color: #f3efe4;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .mission {
  background: #0b1f3a;
  color: #f3efe4;
}
.mission p {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0;
  color: #f3efe4;
}
.mission .kicker { color: var(--gold-2); }

.product-visual {
  background: #050b14;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
}
.product-visual img { width: min(100%, 22rem); }

/* ---------- Apps ---------- */
.app-hero-mark {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--gold-2);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}
.app-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.app-features li {
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--gold);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--ink-soft);
}

/* ---------- Forms / contact ---------- */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}
label .req { color: var(--gold-2); }
.field {
  display: grid;
  gap: 0.35rem;
}
.field span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
input[type="file"] {
  width: 100%;
  max-width: 100%;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  border: 1px solid var(--card-border);
  border-radius: 0.7rem;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus-visible, textarea:focus-visible {
  border-color: var(--gold);
}
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.placeholder-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  background: color-mix(in srgb, var(--gold) 6%, transparent);
}
.placeholder-box strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.4rem;
}
.placeholder-box p { margin: 0; color: var(--ink-soft); }

/* ---------- Legal ---------- */
.draft-banner {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
  color: var(--ink);
  font-size: 0.95rem;
}
.draft-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.draft-banner a:hover { color: var(--gold-2); }
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 1.5rem;
  background: var(--navy-0);
  color: #e6e0d2;
}
[data-theme="light"] .site-footer {
  background: #0b1f3a;
  color: #e6e0d2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer a { color: #c5cdd8; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer h2 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.45rem; }
.footer-brand { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; color: #f3efe4; margin-bottom: 1rem; }
.footer-brand img { width: 2.4rem; height: 2.4rem; }
.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232,197,71,0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: #8b97a8;
  font-size: 0.85rem;
}
.preview-flag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* ---------- Motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-media img { transform: none !important; }
}

/* ---------- Theme-specific hero text stays ivory on photo ---------- */
.hero .kicker { color: #e8c547; }

/* Utility */
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Theme toggle icons */
.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Keep the photo hero ivory even when the rest of the site is in light mode */
.hero .lede, .hero h1, .hero .scroll-cue { color: #c5cdd8; }
.hero h1 { color: #f3efe4; }

/* Avoid a flash of the wrong theme icon before JS */
html:not([data-theme]) .icon-sun { display: none; }

/* Long legal lines and code-like URLs */
.legal a { overflow-wrap: anywhere; }

/* Don't let 100vw cause horizontal scroll (scrollbar gutter) */
.hero-glow { max-width: 100%; }

.split-start { align-items: start; }

/* Header stays dark in both themes so the lockup and nav remain readable over the hero */
.site-header,
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 21, 37, 0.82);
  border-bottom-color: rgba(232, 197, 71, 0.18);
  color: #f3efe4;
}
.site-header .brand-name { color: #f3efe4; }
.site-header .brand-sub { color: #e8c547; }
.site-header .nav a,
.site-header .nav-btn { color: #c5cdd8; }
.site-header .nav a:hover,
.site-header .nav-btn:hover,
.site-header .nav a[aria-current="page"] {
  color: #e8c547;
  background: rgba(201, 162, 39, 0.12);
}
.site-header .icon-btn {
  color: #f3efe4;
  border-color: rgba(232, 197, 71, 0.28);
}
.site-header .subnav {
  background: #0b1f3a;
  color: #f3efe4;
}
[data-theme="light"] .site-header .subnav {
  background: #0b1f3a;
  color: #f3efe4;
}
.site-header .subnav a span { color: #8b97a8; }
@media (max-width: 1100px) {
  .nav,
  [data-theme="light"] .nav {
    background: #071525;
    color: #f3efe4;
  }
}

.card-thumb {
  margin: 0 0 1.1rem;
  background: #070f1b;
  border: 1px solid var(--card-border);
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.card-thumb.is-light { background: #f6f2e9; }
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.7rem;
}
.card-product .card-num { letter-spacing: 0.16em; }

.stock-note {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.stock-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.card-product .stock-note {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}
.prose .stock-note { margin-top: 1.4rem; }

.contact-points {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.contact-points .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.contact-points a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}
.contact-points a:hover { color: var(--gold-2); }

.footer-contact {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: #c5cdd8;
  font-size: 0.95rem;
}
.footer-contact li { margin: 0 0 0.35rem; }
.footer-contact a { color: #e8c547; text-decoration: none; }
.footer-contact a:hover { color: #f3d97a; }

.product-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: center;
}
@media (max-width: 860px) {
  .product-gallery { grid-template-columns: 1fr; }
}
.product-gallery .product-visual { margin: 0; }
.product-gallery .product-visual.is-light {
  background: #f6f2e9;
}
.in-box {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.in-box li {
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--gold);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--ink-soft);
}
