/* =========================================================================
   Southern Stabilization — field-grade industrial
   Palette pulled from logo: orange #FF5900 · green #00BF63 · soil #A1723B
   ========================================================================= */

:root {
  /* Brand */
  --orange: #ff5900;
  --orange-deep: #e14e00;
  --green: #00bf63;
  --green-deep: #029a52;
  --soil: #a1723b;
  --soil-deep: #7d5728;

  /* Surfaces (warm, clay-tinted) */
  --paper: #f5efe4;
  --paper-2: #efe7d8;
  --paper-3: #e8dec9;
  --night: #16130f;
  --night-2: #211c16;
  --line: #d9cdb6;
  --line-strong: #c6b794;

  /* Ink */
  --ink: #1a160f;
  --ink-soft: #5c5446;
  --ink-faint: #675f50;
  --on-night: #f2ecdd;
  --on-night-soft: #b7ad99;

  /* Type */
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Motion (Emil curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Rhythm */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(26, 22, 15, 0.06), 0 2px 8px rgba(26, 22, 15, 0.05);
  --shadow-md: 0 4px 14px rgba(26, 22, 15, 0.08), 0 14px 40px rgba(26, 22, 15, 0.1);
  --shadow-lg: 0 10px 30px rgba(26, 22, 15, 0.12), 0 30px 80px rgba(26, 22, 15, 0.18);
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ----------------------------------------------------------- grain layer */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000;
  opacity: 0.4; mix-blend-mode: multiply;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- layout */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* eyebrow / kicker */
.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 700;
}
.kicker::before {
  content: ""; width: 1.6em; height: 2px; background: var(--orange);
  display: inline-block;
}
.kicker--green { color: var(--green-deep); }
.kicker--green::before { background: var(--green); }
.on-dark .kicker { color: #ffb083; }
.on-dark .kicker::before { background: var(--orange); }

/* headings */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-size: clamp(2.7rem, 1.6rem + 6.6vw, 6.4rem);
}
.h-sec {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
.lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); color: var(--ink-soft); line-height: 1.5; max-width: 46ch; text-wrap: pretty; }

.text-orange { color: var(--orange-deep); }
.text-green { color: var(--green-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.92rem;
  padding: 0.95em 1.5em; border-radius: 100px;
  transition: transform 0.16s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease-out); }
.btn:hover { box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn--primary { --btn-bg: var(--orange); --btn-fg: #1a160f; }
.btn--primary:hover { --btn-bg: var(--orange-deep); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); box-shadow: var(--shadow-md); }
.on-dark .btn--ghost { --btn-fg: var(--on-night); box-shadow: inset 0 0 0 2px rgba(242,236,221,0.4); }
.on-dark .btn--ghost:hover { --btn-bg: var(--on-night); --btn-fg: var(--night); }
.btn--lg { padding: 1.1em 1.8em; font-size: 1rem; }

.textlink {
  font-family: var(--mono); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--ink); padding-bottom: 2px;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.3s var(--ease-out);
}
.textlink svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease-out); }
.textlink:hover { background-size: 100% 2px; }
.textlink:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s var(--ease-out);
  padding-block: 1.1rem;
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; flex-shrink: 0; }
.brand img { height: clamp(46px, 5.06vw, 59px); width: auto; transition: height 0.3s var(--ease-out); }
.site-header.is-stuck { background: rgba(245,239,228,0.82); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); padding-block: 0.7rem; }
.site-header.is-stuck .brand img { height: 44px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; padding: 0.55em 0.85em; border-radius: 8px; color: var(--ink);
  position: relative; transition: background-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { background: rgba(26,22,15,0.06); }
.nav a.is-active { color: var(--orange-deep); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0.85em; right: 0.85em; bottom: 0.28em; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.phone-link {
  font-family: var(--mono); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap;
}
.phone-link svg { width: 1em; height: 1em; color: var(--orange-deep); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s ease; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1001; background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  height: 100vh;            /* fallback for old browsers */
  height: 100dvh;           /* dynamic viewport: tracks the mobile URL bar so the menu can't
                               keep a stale height when opened while scrolled (no logo↔nav gap) */
  overflow-y: auto;         /* never clip the nav on short screens */
  clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease-drawer);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu a.m-link {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 11vw, 3.4rem);
  line-height: 1.05; padding: 0.18em 0; color: var(--on-night); display: flex; align-items: baseline; gap: 0.6rem;
  opacity: 0; transform: translateY(18px); transition: opacity 0.4s ease, transform 0.5s var(--ease-out), color 0.2s ease;
}
.mobile-menu.is-open a.m-link { opacity: 1; transform: none; }
.mobile-menu.is-open a.m-link:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.is-open a.m-link:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.is-open a.m-link:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open a.m-link:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu.is-open a.m-link:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.is-open a.m-link:nth-child(6) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu a.m-link { transition-delay: 0s !important; }
}
.mobile-menu a.m-link span { font-family: var(--mono); font-size: 0.8rem; color: var(--orange); font-weight: 700; }
.mobile-menu a.m-link:hover { color: var(--orange); }
.mobile-menu .m-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.4rem; color: var(--on-night-soft); font-family: var(--mono); font-size: 0.9rem; }
.mobile-menu .m-foot a { color: var(--on-night); }
.m-close { position: absolute; top: 1.4rem; right: var(--gutter); width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgba(242,236,221,0.3); }
.m-brand { position: absolute; top: 1.4rem; left: var(--gutter); display: flex; align-items: center; height: 46px; }
.m-brand img { height: 46px; width: auto; }   /* +~10% per owner request */

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding-top: clamp(7rem, 12vh, 9rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title { margin-bottom: 1.5rem; }
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span { display: block; }
.hero__sub { margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__trust { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.trust-chip { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.5em; }
.trust-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* hero media frame (portrait video) */
.hero__media { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 0; padding-bottom: 155.556%; background: var(--night-2);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(26,22,15,0.08);
}
.media-frame video, .media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22,19,15,0.5)); pointer-events: none; }
.media-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(245,239,228,0.92); backdrop-filter: blur(6px); color: var(--ink);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
  padding: 0.5em 0.8em; border-radius: 100px; display: inline-flex; align-items: center; gap: 0.5em;
}
.media-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,89,0,0.6); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,89,0,0.55); } 70%,100% { box-shadow: 0 0 0 9px rgba(255,89,0,0); } }
.hero__spec {
  position: absolute; right: -10px; top: 20px; z-index: 3;
  background: var(--paper); box-shadow: var(--shadow-md); border-radius: 14px; padding: 0.85rem 1rem;
  display: grid; gap: 0.1rem; border: 1px solid var(--line);
}
.hero__spec b { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.hero__spec small { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

/* contour backdrop */
.contours { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.contours svg { position: absolute; width: 140%; height: auto; opacity: 0.5; }

/* ------------------------------------------------------------- marquee */
.marquee {
  background: var(--orange); color: #1a160f; overflow: hidden; border-block: 2px solid var(--ink);
  padding-block: 0.7rem; --gap: 2.5rem;
}
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1rem; display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--soil-deep); font-size: 0.8em; }
@keyframes scroll-x { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* --------------------------------------------------------------- panels */
.panel--paper2 { background: var(--paper-2); }

/* ground rule divider */
.ground-rule { height: 14px; background: repeating-linear-gradient(90deg, var(--soil) 0 16px, var(--soil-deep) 16px 20px); opacity: 0.9; }

/* ------------------------------------------------------ section heading */
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: end; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head .lede { grid-column: 1; }
.sec-head__title { margin-top: 1rem; }
.sec-head__aside { text-align: right; align-self: end; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } .sec-head__aside { text-align: left; } }

/* ---------------------------------------------------------- service list */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.svc {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 22rem); gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  background: var(--paper); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem);
  transition: background-color 0.35s var(--ease-out);
  position: relative;
}
.svc:hover { background: var(--paper-3); }
.svc__no { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--orange-deep); align-self: start; padding-top: 0.3rem; }
.svc__body h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); text-transform: uppercase; margin-bottom: 0.5rem; }
.svc__body p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 1rem; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-soft); padding: 0.35em 0.7em; border-radius: 100px; background: rgba(26,22,15,0.05); }
.svc__body, .svc__media { min-width: 0; }
.svc__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); align-self: stretch; }
/* Absolutely positioned so the media fills the aspect-ratio box on iOS Safari too
   (height:100% against an aspect-ratio-only parent collapses to 0 there). */
.svc__media img, .svc__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover .svc__media img, .svc:hover .svc__media video { transform: scale(1.05); }
}
@media (max-width: 860px) {
  .svc { grid-template-columns: 3rem minmax(0, 1fr); }
  /* On its own full-width row the box must self-size. iOS Safari collapses an
     aspect-ratio-only box whose children are all position:absolute, so give it a
     definite height via padding-bottom (% of width) — always sized correctly on iOS. */
  .svc__media { grid-column: 1 / -1; order: 3; align-self: start; aspect-ratio: auto; height: 0; padding-bottom: 75%; }
}

/* ----------------------------------------------------------- feature band */
.feature {
  position: relative; min-height: clamp(420px, 60vh, 640px); display: grid; align-items: end;
  color: var(--on-night); overflow: hidden; isolation: isolate;
}
.feature__media { position: absolute; inset: 0; z-index: -1; }
.feature__media img, .feature__media video { width: 100%; height: 100%; object-fit: cover; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,19,15,0.15) 0%, rgba(22,19,15,0.35) 50%, rgba(22,19,15,0.85) 100%); }
.feature__inner { padding-block: clamp(2.5rem, 6vw, 5rem); }
.feature__cap { max-width: 40ch; }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 0.8rem; min-height: 220px; position: relative; transition: background-color 0.3s ease; }
.step:hover { background: var(--paper-3); }
.step__no { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-faint); }
.step__icon { width: 40px; height: 40px; color: var(--orange-deep); }
.step h3 { font-size: 1.25rem; text-transform: uppercase; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }
.step__bar { position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--soil), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.step:hover .step__bar { transform: scaleX(1); }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat b { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.8rem); line-height: 1; }
.stat span { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.panel--night .stat span { color: var(--on-night-soft); }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ cta band */
.cta-band { background: var(--night); color: var(--on-night); border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,89,0,0.5), transparent 65%); filter: blur(20px); }
.cta-band h2 { color: var(--on-night); position: relative; }
.cta-band__actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; position: relative; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band__actions { align-items: center; } .cta-band .kicker { justify-content: center; } }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--night); color: var(--on-night); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 2.5rem; align-items: start; padding-bottom: 3rem; border-bottom: 1px solid rgba(242,236,221,0.14); }
.footer-brand img { width: 100%; max-width: 320px; height: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--on-night-soft); max-width: 32ch; }
.footer-col h3 { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange); margin-bottom: 1.1rem; font-weight: 700; }
.footer-col a:not(.btn), .footer-col p { color: var(--on-night-soft); display: block; padding: 0.28em 0; transition: color 0.2s ease; }
.footer-col a:not(.btn):hover { color: var(--on-night); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem; font-family: var(--mono); font-size: 0.74rem; color: var(--on-night-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-bottom a:hover { color: var(--on-night); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } .footer-col a:not(.btn) { padding: 0.55em 0; } }

/* --------------------------------------------------------- page header */
.page-hero { padding-top: clamp(8rem, 14vh, 11rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero__title { margin-block: 1.4rem 1.2rem; }
.breadcrumb { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--orange-deep); }

/* --------------------------------------------------------- gallery grid */
/* No-JS fallback: simple multicolumn. JS upgrades this to balanced flex masonry. */
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery--masonry { columns: auto; display: flex; align-items: flex-start; gap: 1rem; }
.gallery__col { display: flex; flex-direction: column; gap: 1rem; flex: 1 1 0; min-width: 0; }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); background: var(--paper-3); transform: translateZ(0); isolation: isolate; }
.gallery--masonry .gallery__item { margin-bottom: 0; }
.gallery__item img, .gallery__item video { width: 100%; height: auto; display: block; border-radius: inherit; transition: transform 0.6s var(--ease-out); backface-visibility: hidden; transform: translateZ(0); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem 0.9rem; color: var(--on-night); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; background: linear-gradient(transparent, rgba(22,19,15,0.85)); opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s var(--ease-out); }
@media (hover: hover) { .gallery__item:hover img, .gallery__item:hover video { transform: scale(1.04); } .gallery__item:hover figcaption { opacity: 1; transform: none; } }
@media (hover: none) { .gallery__item figcaption { opacity: 1; } }
.gallery__item:focus-within figcaption { opacity: 1; transform: none; }

/* --------------------------------------------------------- shop cards */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.product__shot { position: relative; height: 0; padding-bottom: 100%; background: #fff; overflow: hidden; }
.product__shot .badge { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; padding: 0.4em 0.7em; border-radius: 100px; background: var(--ink); color: var(--paper); }

/* product image slider */
.slider { position: absolute; inset: 0; }
.slider__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; background: #fff; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(245,239,228,0.92); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--ink); z-index: 2; opacity: 0; transition: opacity 0.2s ease, transform 0.14s var(--ease-out), background-color 0.2s ease; }
.slider__nav svg { width: 18px; height: 18px; }
.slider__nav--prev { left: 10px; } .slider__nav--next { right: 10px; }
.slider__nav:hover { background: var(--paper); }
.slider__nav:active { transform: translateY(-50%) scale(0.9); }
@media (hover: hover) and (pointer: fine) { .product:hover .slider__nav { opacity: 1; } }
.product:focus-within .slider__nav { opacity: 1; }
@media (hover: none) { .slider__nav { opacity: 0.95; } }
.slider__dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.slider__dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; background: rgba(26,22,15,0.28); transition: background-color 0.2s ease, width 0.2s var(--ease-out); }
.slider__dots button.is-active { background: var(--orange); width: 18px; border-radius: 4px; }
.slider__count { position: absolute; top: 10px; right: 10px; z-index: 2; font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; background: rgba(26,22,15,0.72); color: var(--paper); padding: 0.32em 0.6em; border-radius: 100px; }
.slider__count b { font-weight: 700; }
.product__info { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product__info h3 { font-size: 1.12rem; line-height: 1.1; text-transform: none; letter-spacing: -0.01em; font-weight: 800; }
.product__info p { color: var(--ink-soft); font-size: 0.88rem; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.product__price { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.product__price small { font-family: var(--mono); font-weight: 400; font-size: 0.6rem; color: var(--ink-faint); display: block; text-transform: uppercase; letter-spacing: 0.08em; }

/* --------------------------------------------------------- form / contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--night); color: var(--on-night); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem); display: grid; gap: 1.6rem; }
/* Only make the info card sticky on the wide 2-column layout — never on mobile,
   where it would scroll over and cover the form. Placed after the base rule so it wins. */
@media (min-width: 881px) { .info-card { position: sticky; top: 100px; } }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row__icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,89,0,0.16); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.info-row__icon svg { width: 20px; height: 20px; }
.info-row__label { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-night-soft); font-weight: 700; margin: 0 0 0.25rem; }
.info-row a, .info-row p { font-size: 1.1rem; font-weight: 600; color: var(--on-night); overflow-wrap: anywhere; }
.info-row a:hover { color: var(--orange); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.5rem; }
.field label .req { color: var(--orange-deep); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 0.8em 0.95em;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
/* Custom dropdown arrow inset from the right edge (native arrow sits flush). */
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6em;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292%22%20height%3D%22292%22%3E%3Cpath%20fill%3D%22%2316130f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat; background-position: right 1.25em center; background-size: 11px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: var(--paper); box-shadow: 0 0 0 4px rgba(255,89,0,0.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }
.form__submit { width: 100%; justify-content: center; }
.form-note { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); margin-top: 1rem; text-align: center; letter-spacing: 0.02em; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.is-on { display: block; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; animation: pop 0.5s var(--ease-out); }
.form-success .check svg { width: 32px; height: 32px; }
@keyframes pop { 0% { transform: scale(0.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.form-success h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.form-success p { color: var(--ink-soft); }
.is-submitting .form__submit { opacity: 0.7; pointer-events: none; }

/* --------------------------------------------------------- prose / misc */
.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }
.prose p.big { font-size: 1.2rem; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .framed { order: 2; } }
/* padding-bottom ratio (not aspect-ratio) so iOS Safari never collapses the box — children are absolute.
   --ratio = height/width as a % (default 75% = 4:3 landscape; set per element, e.g. 133.333% for 3:4 portrait). */
.framed { position: relative; height: 0; padding-bottom: var(--ratio, 75%); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.framed img, .framed video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* GSWCC Level IA credential — the "blue card" */
.cert { display: flex; gap: 1rem; align-items: center; margin-top: 1.8rem; padding: 1rem 1.2rem; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); }
.cert__card { flex-shrink: 0; width: 58px; height: 38px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2b7fe0, #14478f); box-shadow: 0 4px 10px rgba(20,71,143,0.35), inset 0 1px 0 rgba(255,255,255,0.35); }
.cert__card svg { width: 22px; height: 22px; }
.cert__body strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1.02rem; }
.cert__body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0.2rem 0 0; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }
.value { padding: 1.6rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.value__icon { width: 38px; height: 38px; color: var(--green-deep); margin-bottom: 0.9rem; }
.value h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.value p { color: var(--ink-soft); font-size: 0.95rem; }

/* ------------------------------------------------------------- founders */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (max-width: 680px) { .team-grid { grid-template-columns: 1fr; } }
.founder { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .founder:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.founder__photo { position: relative; height: 0; padding-bottom: 125%; overflow: hidden; background: var(--paper-3); }
.founder__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .founder:hover .founder__photo img { transform: scale(1.04); }
}
.founder__photo .pin { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--ink); background: rgba(245,239,228,0.92); backdrop-filter: blur(6px); padding: 0.45em 0.75em; border-radius: 100px; }
.founder__body { padding: 1.4rem 1.5rem 1.6rem; }
.founder__role { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange-deep); font-weight: 700; }
.founder__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-transform: uppercase; margin: 0.3rem 0 0.7rem; }
.founder__body p { color: var(--ink-soft); font-size: 0.95rem; }

.area-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.area-list li { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; padding: 0.5em 0.9em; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.04em; }

/* ----------------------------------------------------- scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: 0.07s; }
[data-reveal][data-d="2"] { transition-delay: 0.14s; }
[data-reveal][data-d="3"] { transition-delay: 0.21s; }
[data-reveal][data-d="4"] { transition-delay: 0.28s; }

/* hero load stagger */
.hero [data-load] { opacity: 0; transform: translateY(20px); }
.is-loaded .hero [data-load] { animation: heroIn 0.8s var(--ease-out) forwards; }
.is-loaded .hero [data-load][data-d="1"] { animation-delay: 0.05s; }
.is-loaded .hero [data-load][data-d="2"] { animation-delay: 0.13s; }
.is-loaded .hero [data-load][data-d="3"] { animation-delay: 0.21s; }
.is-loaded .hero [data-load][data-d="4"] { animation-delay: 0.29s; }
.is-loaded .hero [data-load][data-d="5"] { animation-delay: 0.4s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ----------------------------------------------------- responsive nav */
@media (max-width: 980px) {
  .nav, .header-actions .phone-link, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { gap: 0.4rem; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 360px; }
  .media-frame { padding-bottom: 133.333%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero [data-load] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}
