/* Heirstone Ventures
   Identity: Delta green + Nile mint on limestone white. Switzer throughout.
   Shapes: square corners (2px) on buttons, media and cards. */

@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --delta: #0E3A33;
  --delta-deep: #0A2B26;
  --delta-ink: #072420;
  --mint: #3CD5A0;
  --mint-text: #12A679;
  --mint-soft: #E6F7F0;
  --bg: #F8F9F8;
  --white: #FFFFFF;
  --ink: #111816;
  --ink-2: #47524F;
  --ink-3: #6B7673;
  --line: #E1E5E3;
  --line-dark: rgba(255, 255, 255, 0.18);

  --max: 1440px;
  --pad: clamp(20px, 2.8vw, 40px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: 'Switzer', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; letter-spacing: -0.025em; line-height: 1.08; }
p { text-wrap: pretty; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--delta); color: #fff; font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn .arr { width: 11px; height: 11px; transition: transform 0.45s var(--ease); }
.btn:hover .arr, .link-arrow:hover .arr { transform: translate(2px, -2px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--mint-soft); }
.btn-green { background: var(--delta); color: #fff; height: 40px; font-size: 13px; padding: 0 16px; }
.btn-green:hover { background: var(--delta-deep); }
.btn-green .arr { color: var(--mint); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: #fff;
}
.link-arrow .arr { width: 11px; height: 11px; transition: transform 0.45s var(--ease); }

/* ------------------------------------------------------------ header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.6s var(--ease);
}
.site-header::after {
  content: '';
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 0;
  height: 1px;
  background: var(--line-dark);
  transition: background-color 0.5s var(--ease), left 0.5s var(--ease), right 0.5s var(--ease);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
}
.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark .m-line { stroke: currentColor; }
.logo-mark .m-key { fill: var(--mint); }
.logo-word { display: grid; line-height: 1; }
.logo-word b { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; }
.logo-word small { margin-top: 5px; font-size: 8.5px; font-weight: 500; letter-spacing: 0.52em; opacity: 0.75; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links > a,
.dd > button {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--nav-h);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.25s;
}
.nav-links > a:hover, .dd > button:hover, .dd.open > button { opacity: 1; }
.dd { position: relative; }
.dd > button svg { width: 8px; height: 8px; transition: transform 0.3s var(--ease); }
.dd.open > button svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute;
  top: calc(var(--nav-h) - 6px);
  left: 50%;
  width: 640px;
  translate: -50% 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 28px 28px 24px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(7, 36, 32, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0.3s;
}
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel h3 { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.dd-panel li + li { margin-top: 2px; }
.dd-panel a { display: block; padding: 6px 0; }
.dd-panel a b { display: block; font-size: 14px; font-weight: 500; }
.dd-panel a span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.dd-panel a:hover b { color: var(--mint-text); }

.nav-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.nav-right .btn { height: 38px; font-size: 13px; padding: 0 15px; }
.site-header .btn-nav { background: #fff; color: var(--ink); }
.site-header .btn-nav:hover { background: var(--mint-soft); }

.site-header.is-solid { background: rgba(248, 249, 248, 0.94); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-solid::after { background: var(--line); left: 0; right: 0; }
.site-header.is-solid .btn-nav { background: var(--delta); color: #fff; }
.site-header.is-solid .btn-nav:hover { background: var(--delta-deep); }
.site-header.is-solid .btn-nav .arr { color: var(--mint); }
.site-header.is-hidden { transform: translateY(-100%); }

.burger { display: none; justify-self: end; width: 44px; height: 44px; place-items: center; }
.burger span, .burger span::before {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.35s var(--ease);
}
.burger span::before { content: ''; position: absolute; left: 0; top: 6px; }
.burger span { transform: translateY(-3px); }
.menu-open .burger span { transform: rotate(45deg); }
.menu-open .burger span::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 32px) var(--pad) 32px;
  background: var(--delta);
  color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header { background: transparent; color: #fff; }
.menu-open .site-header::after { background: var(--line-dark); }
.mobile-menu nav a { display: block; padding: 10px 0; font-size: 30px; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .mm-companies { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; color: rgba(255,255,255,0.75); }
.mobile-menu .btn { align-self: flex-start; }
html.menu-open { overflow: hidden; }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: var(--delta-ink);
}
.hero-media { position: absolute; inset: -6% 0 0 0; height: 112%; will-change: transform; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 18, 16, 0.55) 0%, rgba(4, 18, 16, 0) 22%),
    linear-gradient(0deg, rgba(4, 18, 16, 0.78) 0%, rgba(4, 18, 16, 0.35) 42%, rgba(4, 18, 16, 0.12) 70%);
}
.hero-veil { position: absolute; inset: 0; background: #F2F4F3; z-index: 3; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-content { padding-bottom: clamp(40px, 7vh, 72px); }
.hero-title {
  color: #fff;
  font-size: clamp(2.35rem, 4.3vw, 3.9rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  max-width: 15em;
}
.hero-sub { margin-top: 22px; max-width: 30rem; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.hero-bar {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* split-line masks */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ------------------------------------------------------------ portfolio (products) */
.products { position: relative; z-index: 2; background: var(--bg); padding: clamp(80px, 11vw, 150px) 0 clamp(80px, 9vw, 130px); }
.products-grid {
  display: grid;
  grid-template-columns: minmax(170px, 2fr) 10fr;
  column-gap: clamp(24px, 3vw, 48px);
}
.products-top { grid-column: 2; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 34px; margin-bottom: 26px; }
.tab {
  position: relative;
  padding: 4px 0;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.25s;
}
.tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.products-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.products-head h2 { font-size: clamp(1.75rem, 2.55vw, 2.35rem); max-width: 17em; }
.products-head .btn { flex: none; margin-bottom: 4px; }

.products-aside {
  grid-column: 1; grid-row: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 40px;
}
.products-aside p { font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 15.5em; }
.car-ctrl { display: flex; gap: 4px; margin-top: 32px; padding-bottom: 46px; }
.car-btn {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 2px;
  background: var(--delta); color: #fff;
  transition: background-color 0.3s, opacity 0.3s;
}
.car-btn svg { width: 12px; height: 12px; }
.car-btn:hover { background: var(--delta-deep); }
.car-btn:disabled { background: #E3E7E5; color: var(--ink-3); cursor: default; }

.carousel {
  grid-column: 2; grid-row: 2;
  margin-top: 40px;
  margin-right: calc(-1 * (var(--pad) + (100vw - min(100vw, var(--max))) / 2));
  min-width: 0;
}
.track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-right: calc(var(--pad) + (100vw - min(100vw, var(--max))) / 2);
  overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 clamp(250px, 22vw, 318px); scroll-snap-align: start; }
.pcard[hidden] { display: none; }
.pcard a { position: relative; display: block; aspect-ratio: 3 / 3.9; overflow: hidden; border-radius: 2px; background: #DDE2E0; isolation: isolate; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard a::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(4, 18, 16, 0.72) 0%, rgba(4, 18, 16, 0.18) 38%, rgba(4, 18, 16, 0) 60%);
}
.pcard-corner {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 2px;
  background: #fff; color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.pcard-corner svg { width: 9px; height: 9px; }
.pcard-cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  color: #fff; font-size: 15px; line-height: 1.28; font-weight: 500; letter-spacing: -0.01em;
  transition: opacity 0.3s var(--ease);
}
.pcard-cap b { display: block; font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-bottom: 6px; }
.pcard-panel {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 14px 14px;
  background: var(--delta);
  color: #fff;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s var(--ease-io);
}
.pcard-panel b { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.pcard-panel strong { display: block; font-size: 15px; line-height: 1.28; font-weight: 500; }
.pcard-panel span { display: block; margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.pcard-panel em { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.16); font-style: normal; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.pcard a:hover .pcard-panel, .pcard a:focus-visible .pcard-panel { clip-path: inset(0 0 0 0); }
.pcard a:hover .pcard-corner, .pcard a:focus-visible .pcard-corner { background: var(--mint); color: var(--delta-ink); }
.pcard a:hover img { transform: scale(1.06); }
.pcard-note { margin-top: 10px; padding-right: 10px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* ------------------------------------------------------------ statement */
.statement { background: var(--bg); padding: clamp(40px, 6vw, 90px) 0 0; }
.statement-title {
  text-align: center;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.statement-title em { font-style: normal; color: var(--mint-text); }
.rule { height: 1px; background: var(--line); margin-top: clamp(32px, 4vw, 52px); transform-origin: left center; border: 0; }
.statement-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 11fr); margin-top: clamp(36px, 4vw, 56px); }
.statement-body > div { grid-column: 2; max-width: 23rem; }
.statement-body p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.statement-body .btn { margin-top: 20px; }

/* ------------------------------------------------------------ pillars */
.pillars { background: var(--bg); padding-bottom: clamp(60px, 8vw, 120px); }
.pillar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(48px, 8vh, 96px);
}
.pillar:first-child { min-height: 0; padding-top: clamp(40px, 5vw, 72px); }
.p-big { grid-row: 1; }
.p-side { grid-row: 1; display: flex; flex-direction: column; }
.pillar--a .p-big { grid-column: 1 / span 7; }
.pillar--a .p-side { grid-column: 9 / span 4; padding-top: clamp(12px, 3vw, 40px); }
.pillar--b .p-side { grid-column: 1 / span 4; padding-top: clamp(12px, 3vw, 40px); }
.pillar--b .p-big { grid-column: 6 / span 7; }

.p-frame { position: relative; overflow: hidden; border-radius: 2px; background: #DDE2E0; will-change: transform; }
.p-big .p-frame { aspect-ratio: 10 / 9.2; }
.p-small .p-frame { aspect-ratio: 1 / 0.96; }
.p-frame img, .p-frame video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

.p-text { margin-top: 22px; }
.p-text .kicker { font-size: 10px; }
.p-text h3 { margin-top: 6px; font-size: clamp(1.05rem, 1.25vw, 1.2rem); font-weight: 500; letter-spacing: -0.015em; }
.p-text ul { margin-top: 12px; display: grid; gap: 7px; }
.p-text li { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); max-width: 30em; }

/* ------------------------------------------------------------ group */
.group { background: var(--bg); padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.group-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 80px);
}
.group-copy { grid-column: 1 / span 5; }
.group-copy h2 { margin-top: 14px; font-size: clamp(1.75rem, 2.55vw, 2.35rem); }
.group-copy p { margin-top: 20px; max-width: 30rem; font-size: 15px; color: var(--ink-2); }
.group-copy .btn { margin-top: 26px; }
.group-facts { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.group-facts div { background: var(--bg); padding: 22px 20px 20px; }
.group-facts b { display: block; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 400; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.group-facts span { display: block; margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

/* ------------------------------------------------------------ contact */
.contact { background: var(--white); padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.contact-copy { grid-column: 1 / span 5; }
.contact-copy h2 { margin-top: 14px; font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: -0.03em; }
.contact-copy h2 em { font-style: normal; color: var(--mint-text); }
.contact-copy p { margin-top: 22px; max-width: 26rem; font-size: 15px; }
.contact-meta { margin-top: 44px; display: grid; gap: 18px; }
.contact-meta div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.contact-meta dt { font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.contact-meta dd { color: var(--ink); }

.form { grid-column: 7 / span 6; display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.field label span { letter-spacing: 0.04em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid #C9D0CD;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2347524F' stroke-width='1.4'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 14px;
}
.field input::placeholder, .field textarea::placeholder { color: #7D8885; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--delta); box-shadow: 0 1px 0 0 var(--delta); }
.field .error { display: none; font-size: 12.5px; color: #B23A2B; }
.field.invalid input, .field.invalid textarea { border-bottom-color: #B23A2B; }
.field.invalid .error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { font-size: 12.5px; color: var(--ink-3); max-width: 32ch; }
.form-foot small a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { display: none; padding: 14px 16px; font-size: 14px; line-height: 1.5; border-left: 2px solid; }
.form-status.ok { display: block; background: var(--mint-soft); border-color: var(--mint-text); color: var(--ink); }
.form-status.err { display: block; background: #FBEDEA; border-color: #B23A2B; color: var(--ink); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--delta); color: rgba(255, 255, 255, 0.72); padding: clamp(64px, 8vw, 100px) 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; }
.footer-brand { grid-column: 1 / span 4; color: #fff; }
.footer-brand p { margin-top: 22px; max-width: 22rem; font-size: 14px; color: rgba(255, 255, 255, 0.66); }
.footer-col { grid-column: span 2; }
.footer-col.wide { grid-column: 6 / span 4; }
.footer-col h2 { font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col.wide ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.82); transition: color 0.2s; }
.footer-col a:hover { color: var(--mint); }
.footer-bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(56px, 7vw, 96px);
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bar a:hover { color: #fff; }

/* ------------------------------------------------------------ simple pages */
.page { padding: calc(var(--nav-h) + 80px) 0 110px; min-height: 80vh; }
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); letter-spacing: -0.03em; }
.prose h2 { margin-top: 40px; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.015em; }
.prose p, .prose li { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); }
.prose ul { padding-left: 1.1em; list-style: disc; }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.prose .btn { margin-top: 24px; }
.page-header { background: var(--bg); color: var(--ink); }
.page-header::after { background: var(--line); left: 0; right: 0; }
.page-header .btn-nav { background: var(--delta); color: #fff; }
.page-header .btn-nav .arr { color: var(--mint); }
.page-header .nav { grid-template-columns: 1fr auto; }
.footer-bar.flush { margin-top: 0; }
.site-footer.slim { padding-top: 0; }
@media (max-width: 860px) { .nav-right.always { display: flex; } }

/* ------------------------------------------------------------ motion fallbacks */
.hero-veil { display: none; }
.js-anim .hero-veil { display: block; animation: veil-out 0.8s ease 3.2s forwards; } /* safety net if scripts never run */
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .hero-veil { display: none !important; }
  .pcard-panel, .pcard img, .btn .arr { transition: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav-links { gap: 24px; }
  .dd-panel { width: 560px; }
  .products-grid { grid-template-columns: 1fr; }
  .products-top, .carousel, .products-aside { grid-column: 1; }
  .products-aside { grid-row: auto; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 28px; }
  .products-aside p { max-width: 34rem; }
  .car-ctrl { margin-top: 0; padding-bottom: 0; }
  .carousel { grid-row: auto; margin-top: 28px; }
  .group-copy { grid-column: 1 / -1; }
  .group-facts { grid-column: 1 / -1; margin-top: 40px; }
  .contact-copy, .form { grid-column: 1 / -1; }
  .form { margin-top: 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col.wide { grid-column: 1 / span 6; }
  .footer-col { grid-column: span 3; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-right { display: none; }
  .burger { display: grid; }
  .products-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .statement-body { grid-template-columns: 1fr; }
  .statement-body > div { grid-column: 1; }
  .pillar, .pillar:first-child { min-height: 0; padding-block: 40px; row-gap: 16px; }
  .pillar--a .p-big, .pillar--b .p-big { grid-column: 1 / -1; grid-row: 1; }
  .pillar--a .p-side, .pillar--b .p-side { grid-column: 1 / -1; grid-row: 2; padding-top: 0; display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: start; }
  .pillar--b .p-side .p-small { order: 0; }
  .p-text { margin-top: 0; }
  .footer-col.wide { grid-column: 1 / -1; }
  .footer-col { grid-column: span 6; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-bar span:last-child { display: none; }
  .tabs { gap: 6px 22px; }
  .products-aside { flex-direction: column; align-items: flex-start; }
  .pcard { flex-basis: 76vw; }
  .pillar--a .p-side, .pillar--b .p-side { grid-template-columns: 1fr; }
  .p-small .p-frame { aspect-ratio: 4 / 3; }
  .group-facts { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-meta div { grid-template-columns: 1fr; gap: 4px; }
  .footer-col, .footer-col.wide { grid-column: 1 / -1; }
}
