/* ============================================================
   YELLOW STONE TRADERS & GENERAL SUPPLIES
   Design tokens — LIGHT is the default theme; [data-theme="dark"]
   (set on <html> by assets/theme.js, toggled via the header button)
   overrides these to the original full-dark theme.
   ============================================================ */
:root{
  /* ---- theme-flippable: page/section backgrounds & body text ---- */
  --ink:        #f2efe6;  /* page background */
  --surface:    #f8f5ee;  /* card / section surface */
  --surface-2:  #ece6d6;  /* secondary surface (hover, alt rows) */
  --surface-3:  #ded6bd;  /* tertiary surface (gradients) */
  --line:       #d9d0b8;
  --line-soft:  rgba(32,26,16,0.08);

  --paper:      #201a10;  /* primary text */
  --paper-dim:  #5b5138;  /* secondary text */
  --muted:      #655c42;  /* tertiary text */

  /* restrained accent for small labels/icons/numbers — keeps gold reserved
     for buttons, active states and the hero's headline emphasis */
  --accent-text:   #7a4f0e;
  --accent-strong: #7a4f0e;

  --ok:    #255525;
  --error: #a63d2d;

  /* translucent dark/light wash, themed — header blur, hero scrim, badges */
  --scrim-rgb:      242,239,230;
  --header-bg:          rgba(242,239,230,0.86);
  --header-bg-scrolled: rgba(242,239,230,0.96);
  --text-halo-rgb:  255,255,255;

  /* ---- brand gold family: constant in both themes ---- */
  --gold:       #fdaf17;
  --gold-deep:  #b9791c;
  --gold-ink:   #7a4f0e; /* darker gold for small text on light surfaces — WCAG AA 4.5:1 */
  --gold-pale:  #f6d98a;
  --gold-line:  rgba(253,175,23,0.35);
  --rust:       #8a5a2b;

  /* fixed, NEVER flips — for text/chips that must always read as dark
     regardless of site theme (button text on gold, badge chips, the chat
     widget's own fixed light-panel design, text selection) */
  --true-dark:  #0a0906;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --wrap: 1240px;
  --radius: 2px;

  /* ---- fixed aliases for the admin dashboard (always light content +
     dark sidebar/login, independent of the public site's toggle) ---- */
  --ink-soft:   #1c170e;
  --navy:       #241d11;
  --navy-deep:  #0a0906;
  --sage:       var(--gold-pale);
  --sage-deep:  var(--gold-ink);
  --sage-pale:  #fdf0d6;
  --cream:      #faf3e2;
  --shadow-soft: 0 20px 50px -20px rgba(0,0,0,0.55);
}

/* ---- full original dark theme, applied when the person toggles dark mode ---- */
html[data-theme="dark"]{
  --ink:        #0a0906;
  --surface:    #131009;
  --surface-2:  #1c170e;
  --surface-3:  #241d11;
  --line:       #34291a;
  --line-soft:  rgba(244,232,201,0.09);

  --paper:      #f4ead1;
  --paper-dim:  #cabb98;
  --muted:      #9a8f74;

  --accent-text:   #cabb98;
  --accent-strong: #fdaf17;

  --ok:    #6f8f5c;
  --error: #f0897c;

  --scrim-rgb:      10,9,6;
  --header-bg:          rgba(10,9,6,0.72);
  --header-bg-scrolled: rgba(10,9,6,0.92);
  --text-halo-rgb:  0,0,0;
}

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

html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:700; letter-spacing:0.01em; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

::selection{ background:var(--gold); color:var(--true-dark); }

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

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 28px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--accent-text);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--accent-text);
  display:inline-block;
}

/* ---------------- header ---------------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:var(--header-bg);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:82px;
}
.brand{ display:flex; align-items:center; gap:14px; }
.brand img{ width:46px; height:46px; border-radius:50%; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong{
  font-family:var(--font-display);
  font-size:19px; letter-spacing:0.02em;
  color:var(--paper);
}
.brand-text span{
  font-family:var(--font-mono);
  font-size:9.5px; letter-spacing:0.16em;
  color:var(--accent-text);
  text-transform:uppercase;
}
.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-size:13.5px; font-weight:600; letter-spacing:0.03em;
  color:var(--paper-dim);
  text-transform:uppercase;
  position:relative;
  padding:6px 0;
  transition:color .2s ease;
}
.main-nav a:hover{ color:var(--accent-strong); }
.header-cta{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--gold); color:var(--true-dark);
  font-weight:700; font-size:13px; letter-spacing:0.03em;
  text-transform:uppercase;
  padding:11px 20px; border-radius:var(--radius);
  transition:transform .2s ease, background .2s ease;
}
.header-cta:hover{ background:var(--gold-pale); transform:translateY(-1px); }

.theme-toggle{
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; margin-left:14px;
  background:none; border:1px solid var(--line); border-radius:50%;
  color:var(--paper); cursor:pointer; transition:border-color .2s ease, color .2s ease;
  flex-shrink:0;
}
.theme-toggle:hover{ border-color:var(--accent-strong); color:var(--accent-strong); }
.theme-toggle svg{ width:19px; height:19px; }
.theme-toggle .icon-sun{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }

.nav-toggle{ display:none; }

/* ---------------- hero ---------------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; align-items:center;
  overflow:hidden;
  padding-top:82px;
  border-bottom:1px solid var(--line);
}
#heroCanvas{
  position:absolute; inset:0; z-index:0;
  opacity:0.9;
}
.blueprint-grid{
  position:absolute; inset:0; z-index:1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.15) 70%, transparent);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(var(--scrim-rgb),0.5) 0%, rgba(var(--scrim-rgb),0.62) 45%, rgba(var(--scrim-rgb),0.8) 75%, var(--ink) 100%);
  pointer-events:none;
}
.hero-inner{
  position:relative; z-index:2;
  width:100%;
}
.hero-tag{ margin-bottom:22px; }
.hero-tag .eyebrow{
  display:inline-flex; background:rgba(var(--scrim-rgb),0.88); padding:8px 14px 8px 10px;
  border-radius:999px; border:1px solid var(--line-soft);
}
.hero h1{
  font-size:clamp(44px, 7vw, 92px);
  line-height:0.98;
  color:var(--paper);
  max-width:16ch;
  text-transform:uppercase;
  text-shadow:0 4px 28px rgba(var(--text-halo-rgb),0.65);
}
.hero h1 em{
  font-style:normal;
  color:var(--accent-strong);
}
.hero-sub{
  max-width:52ch;
  margin-top:26px;
  font-size:17px;
  color:var(--paper-dim);
  text-shadow:0 2px 16px rgba(var(--text-halo-rgb),0.6);
}
.hero-actions{
  margin-top:38px;
  display:flex; align-items:center; gap:22px; flex-wrap:wrap;
}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:700; font-size:13.5px; letter-spacing:0.04em;
  text-transform:uppercase;
  padding:16px 30px;
  border-radius:var(--radius);
  transition:all .2s ease;
  border:1px solid transparent;
}
.btn-gold{ background:var(--gold); color:var(--true-dark); border-color:var(--gold-deep); }
.btn-gold:hover{ background:var(--gold-pale); transform:translateY(-2px); }
.btn-line{
  border-color:var(--line); color:var(--paper);
}
.btn-line:hover{ border-color:var(--accent-strong); color:var(--accent-strong); background:rgba(253,175,23,0.08); }

.hero-coords{
  position:absolute; z-index:2;
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.08em;
  color:var(--paper-dim);
  background:rgba(var(--scrim-rgb),0.88);
  padding:6px 10px;
  border-radius:3px;
  border:1px solid var(--line-soft);
}
.hero-coords.tl{ top:100px; left:28px; }
.hero-coords.br{ bottom:28px; right:28px; text-align:right; }

.hero-scroll{
  position:absolute; bottom:28px; left:28px; z-index:2;
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.1em;
  color:var(--muted); text-transform:uppercase;
}
.hero-scroll::after{
  content:""; width:1px; height:34px; background:var(--gold-line);
  animation:scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse{ 0%,100%{opacity:.2;} 50%{opacity:1;} }

/* ---------------- inner page header ---------------- */
.page-header{
  padding:170px 0 70px;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    var(--surface);
  background-size:64px 64px, 64px 64px, auto;
  border-bottom:1px solid var(--line);
}
.crumb{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.1em; color:var(--muted);
  text-transform:uppercase;
}
.crumb a{ color:var(--accent-strong); }
.page-header .crumb{
  margin-bottom:20px;
}
.page-header h1{
  font-size:clamp(38px,6vw,68px); text-transform:uppercase; color:var(--paper); max-width:18ch;
}
.page-header p{ margin-top:20px; max-width:56ch; color:var(--paper-dim); font-size:16.5px; }

/* ---------------- video gallery (projects page) ---------------- */
.video-gallery{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
.video-feature-card{
  border-radius:16px; overflow:hidden;
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:0 14px 34px rgba(0,0,0,0.14);
  display:flex; flex-direction:column;
}
.video-feature-card video{
  display:block; width:100%;
  aspect-ratio:9/16; object-fit:cover; background:#000;
}
.video-caption{ padding:18px 20px 22px; }
.video-caption h4{
  font-family:var(--font-display); font-weight:700; text-transform:uppercase;
  font-size:15px; color:var(--paper);
}
.video-caption p{ margin-top:8px; font-size:13px; line-height:1.55; color:var(--paper-dim); }

@media (max-width:980px){
  .video-gallery{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .video-gallery{ grid-template-columns:1fr; }
}

/* ---------------- showcase carousel ---------------- */
.showcase{
  background:var(--ink-soft);
  padding:96px 0;
  overflow:hidden;
  position:relative;
}
.showcase-grid{
  display:grid;
  grid-template-columns:0.78fr 1.6fr;
  gap:40px;
  align-items:center;
}
.showcase-intro{ color:var(--gold-pale); }
.showcase-intro .eyebrow{ color:var(--gold); }
.showcase-heading{
  margin-top:16px;
  font-family:var(--font-display);
  font-weight:800;
  text-transform:uppercase;
  font-size:clamp(30px,3.4vw,46px);
  line-height:1.04;
  color:var(--gold);
}
.showcase-copy{
  margin-top:20px;
  max-width:34ch;
  color:rgba(246,217,138,0.72);
  font-size:15.5px;
  line-height:1.6;
}
.showcase-link{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:26px;
  font-family:var(--font-mono);
  font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase;
  color:#fff; text-decoration:none;
  padding-bottom:4px; border-bottom:1px solid rgba(255,255,255,0.35);
  transition:border-color 0.15s ease, color 0.15s ease;
}
.showcase-link:hover{ color:var(--gold); border-color:var(--gold); }
.showcase-link span{ transition:transform 0.15s ease; }
.showcase-link:hover span{ transform:translateX(3px); }

.showcase-dots{ display:flex; gap:8px; margin-top:34px; }
.showcase-dots .dot{
  width:7px; height:7px; border-radius:50%;
  background:rgba(255,255,255,0.22);
  cursor:pointer; transition:all 0.2s ease;
}
.showcase-dots .dot.active{ width:22px; border-radius:4px; background:var(--gold); }

.showcase-carousel{ position:relative; min-width:0; }
.showcase-track{
  display:flex; gap:28px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scroll-behavior:smooth;
  scrollbar-width:none; -ms-overflow-style:none;
  padding:6px 4px 18px;
}
.showcase-track::-webkit-scrollbar{ display:none; }

.showcase-card{
  flex:none;
  scroll-snap-align:start;
  width:290px;
  border-radius:22px;
  overflow:hidden;
  background:var(--surface);
  box-shadow:0 18px 40px rgba(0,0,0,0.28);
}
.showcase-media{
  position:relative;
  height:190px;
  background-color:#0a0906;
  background-size:cover;
  background-position:center;
}
.showcase-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,9,6,0.05) 0%, rgba(10,9,6,0.15) 55%, rgba(10,9,6,0.78) 100%);
}
.showcase-num{
  position:absolute; top:14px; left:14px; z-index:1;
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.08em;
  color:var(--gold);
  background:rgba(10,9,6,0.55);
  border:1px solid rgba(253,175,23,0.4);
  padding:4px 9px; border-radius:20px;
}
.showcase-body{ padding:26px 24px 30px; }
.showcase-body h3{
  font-family:var(--font-display); font-weight:700; text-transform:uppercase;
  font-size:19px; letter-spacing:0.01em; color:var(--paper);
}
.showcase-body p{
  margin-top:12px; font-size:14px; line-height:1.55; color:var(--paper-dim);
}
.showcase-cta{
  display:inline-flex; align-items:center; gap:6px; margin-top:18px;
  font-family:var(--font-mono); font-size:12px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--accent-strong); text-decoration:none;
}
.showcase-cta span{ transition:transform 0.15s ease; }
.showcase-cta:hover span{ transform:translateX(3px); }

.showcase-arrow{
  position:absolute; top:95px; transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--gold); color:var(--true-dark); border:none;
  cursor:pointer; z-index:4;
  box-shadow:0 6px 18px rgba(0,0,0,0.35);
  transition:transform 0.15s ease, filter 0.15s ease;
}
.showcase-arrow:hover{ transform:translateY(-50%) scale(1.08); filter:brightness(1.06); }
.showcase-arrow:active{ transform:translateY(-50%) scale(0.95); }
.showcase-arrow svg{ width:19px; height:19px; }
.showcase-arrow-left{ left:-20px; }
.showcase-arrow-right{ right:-20px; }

@media (max-width:980px){
  .showcase-grid{ grid-template-columns:1fr; }
  .showcase-intro{ text-align:left; }
  .showcase-arrow{ top:105px; }
  .showcase-arrow-left{ left:4px; }
  .showcase-arrow-right{ right:4px; }
}
@media (max-width:560px){
  .showcase{ padding:70px 0; }
  .showcase-card{ width:240px; }
  .showcase-media{ height:150px; }
  .showcase-arrow{ width:34px; height:34px; top:80px; }
}

/* ---------------- section shell ---------------- */
section{ padding:128px 0; position:relative; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:40px; margin-bottom:64px; flex-wrap:wrap;
}
.section-head h2{
  font-size:clamp(32px, 4vw, 54px);
  text-transform:uppercase;
  max-width:14ch;
  line-height:1.02;
}
.section-head .lede{
  max-width:38ch; color:var(--paper-dim); font-size:15.5px; padding-bottom:6px;
}
.sheet-no{
  font-family:var(--font-mono); font-size:12px; color:var(--muted); letter-spacing:0.1em;
}


/* ---------------- about 2 ---------------- */
/* Container wrap fix */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---------------- about section ---------------- */
.about {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
  width: 100%;
}

.about-grid {
  display: grid;
  /* Replaced relative fractional units with fixed minimum column size */
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------------- about-mark (Founder Card) ---------------- */
.about-mark {
  border: 1px solid var(--line);
  padding: 36px 28px;
  background: var(--surface-2);
  position: sticky;
  top: 100px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.about-mark img.founder-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-strong);
  padding: 0;
  margin-bottom: 20px;
}

.about-mark .founder-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--paper);
  text-transform: uppercase;
  display: block;
}

.about-mark .founder-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

.about-mark .founder-quote {
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper-dim);
  font-style: italic;
  border-left: 2px solid var(--gold-line);
  padding-left: 16px;
}

.license-badge {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.7;
}

.license-badge strong {
  color: var(--accent-strong);
}

/* ---------------- profile tabs (Founder / Assistant Director switch) ---------------- */
.profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.profile-tab {
  flex: 1 1 0%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 8px;
  background: transparent;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.profile-tab:hover {
  border-color: var(--accent-strong);
  color: var(--paper);
}

.profile-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #201a10;
}

.profile-panel {
  display: none;
}

.profile-panel.active {
  display: block;
  animation: profileFade 0.3s ease;
}

@keyframes profileFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- team stack (About page: Founder + Assistant Director cards) ---------------- */
.team-stack {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-stack .about-mark {
  position: static;
  top: auto;
}

/* ---------------- story content ---------------- */
.about-story-col {
  min-width: 0; /* Prevents flex/grid children from exploding container width */
}

.about-copy p {
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--paper);
}

.about-copy .story-pull-quote {
  margin: 26px 0;
  font-size: 16px;
  color: var(--paper);
  font-style: italic;
  border-left: 2px solid var(--gold-line);
  padding-left: 18px;
}

.story-flex {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.story-flex .story-text {
  flex: 1 1 0%;
  min-width: 0;
}

.story-flex .story-image {
  flex: 0 0 260px;
  width: 260px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.story-flex .story-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}
/* ---------------- RESPONSIVE MEDIA QUERIES ----------------*/
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr; /* Stacks founder card on top of story content */
    gap: 32px;
  }

  .about-mark {
    position: static; /* Disables sticky positioning when stacked */
    width: 100%;
  }

  .team-stack {
    position: static;
    width: 100%;
  }

  .story-flex {
    flex-direction: column;
  }

  .story-flex .story-image {
    width: 100%;
    flex: 1 1 100%;
    order: -1; /* Puts image above story text on mobile */
  }

  .story-flex .story-image img {
    min-height: 240px;
  }
}

@media (max-width: 600px) {
  .pillars {
    grid-template-columns: 1fr; /* Stacks pillars vertically */
  }
}










/* ---------------- about ---------------- */


/* ---------------- founder message (video + transcript) ---------------- */
.founder-message{ background:var(--ink); border-bottom:1px solid var(--line); }
.founder-message-grid{
  display:grid; grid-template-columns:0.62fr 1.38fr; gap:60px; align-items:start;
}
.founder-message-video{
  border-radius:16px; overflow:hidden; border:1px solid var(--line);
  background:var(--surface); box-shadow:0 14px 34px rgba(0,0,0,0.28);
  position:sticky; top:110px;
}
.founder-message-video video{
  display:block; width:100%; aspect-ratio:9/16; object-fit:cover; background:#000;
}
.founder-message-video figcaption{ padding:16px 18px 20px; }
.founder-message-video figcaption strong{
  font-family:var(--font-display); text-transform:uppercase; font-size:15px; color:var(--paper);
}
.founder-message-video figcaption span{
  display:block; margin-top:4px; font-family:var(--font-mono); font-size:11px;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--accent-text);
}
.transcript-scene{ margin-bottom:30px; }
.transcript-scene:last-child{ margin-bottom:0; }
.transcript-scene .scene-tag{
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--accent-text);
}
.transcript-scene p{
  margin-top:12px; font-size:16px; line-height:1.75; color:var(--paper-dim);
}
.transcript-scene p + p{ margin-top:14px; }
@media (max-width:980px){
  .founder-message-grid{ grid-template-columns:1fr; }
  .founder-message-video{ position:static; max-width:320px; }
}



@media (max-width:1180px){
  .story-flex .story-image{ flex-basis:200px; width:200px; }
  .story-flex .story-image img{ min-height:320px; }
}
@media (max-width:760px){
  .story-flex{ flex-wrap:wrap; }
  .story-flex .story-image{ flex:1 1 100%; width:100%; order:-1; }
  .story-flex .story-image img{ min-height:220px; }
}
  

.pillars{
  margin-top:40px; display:grid; grid-template-columns:repeat(2,1fr); gap:18px;
}
.pillar{
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 36px rgba(0,0,0,0.28);
  border-color:var(--gold-line);
}
.pillar-image{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--surface); }
.pillar-image img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .6s ease;
}
.pillar:hover .pillar-image img{ transform:scale(1.08); }
.pillar-image::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.58) 100%);
}
.pillar-image .num{
  position:absolute; top:12px; left:12px; z-index:2;
  width:30px; height:30px; border-radius:50%;
  background:var(--gold); border:1px solid var(--gold-deep);
  color:var(--true-dark); font-family:var(--font-mono); font-weight:700; font-size:11.5px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 16px rgba(0,0,0,0.35);
}
.pillar-body{ padding:18px 18px 20px; }
.pillar-body h4{ font-size:15.5px; text-transform:uppercase; color:var(--paper); }
.pillar-body p{ margin-top:8px; font-size:13px; line-height:1.55; color:var(--paper-dim); }




/* ---------------- services ---------------- */
.services{ background:var(--surface); }
.service-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.service-card{
  background:var(--surface);
  padding:34px 28px;
  min-height:250px;
  display:flex; flex-direction:column;
  transition:background .25s ease;
}
.service-card:hover{ background:var(--surface-2); }
.service-card .num{
  font-family:var(--font-mono); font-size:12px; color:var(--accent-text); letter-spacing:0.08em;
}
.service-card .icon{ margin:22px 0 18px; color:var(--paper-dim); transition:color .2s ease; }
.service-card:hover .icon{ color:var(--accent-strong); }
.service-card h3{
  font-size:19px; text-transform:uppercase; color:var(--paper); line-height:1.15;
}
.service-card p{
  margin-top:12px; font-size:13.5px; color:var(--paper-dim); flex:1;
}
.service-card .tag{
  margin-top:16px; font-family:var(--font-mono); font-size:10.5px; color:var(--muted);
  text-transform:uppercase; letter-spacing:0.08em;
}


/* ---------------- process 1 ---------------- */
.proces{ background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.proces-rail{
  display:grid; grid-template-columns:repeat(5,1fr); gap:24px;
  position:relative;
}
.proces-rail::before{
  content:""; position:absolute; top:17px; left:0; right:0; height:1px;
  background:var(--line);
}
.proces-step{ position:relative; padding-top:44px; }
.proces-step .dot{
  position:absolute; top:0; left:0;
  width:34px; height:34px; border-radius:50%;
  background:var(--surface); border:1px solid var(--gold-line);
  color:var(--accent-text); font-family:var(--font-mono); font-size:12px;
  display:flex; align-items:center; justify-content:center;
}
.proces-step h4{ font-size:16.5px; text-transform:uppercase; color:var(--paper); }
.proces-step p{ margin-top:10px; font-size:13px; color:var(--paper-dim); }



/* ---------------- process 2---------------- */
.process{ background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.process-rail{
  display:grid; grid-template-columns:repeat(5,1fr); gap:22px;
}
.process-step{
  position:relative;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.process-step:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 44px rgba(0,0,0,0.3);
  border-color:var(--gold-line);
}
.process-image{
  position:relative; aspect-ratio:3/4; overflow:hidden;
  background:var(--surface);
}
.process-image img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .6s ease;
}
.process-step:hover .process-image img{ transform:scale(1.07); }
.process-image::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.62) 100%);
}
.process-image .dot{
  position:absolute; top:14px; left:14px; z-index:2;
  width:36px; height:36px; border-radius:50%;
  background:var(--gold); border:1px solid var(--gold-deep);
  color:var(--true-dark); font-family:var(--font-mono); font-weight:700; font-size:12px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 16px rgba(0,0,0,0.35);
}
.process-body{ padding:22px 20px 26px; }
.process-step h4{ font-size:16.5px; text-transform:uppercase; color:var(--paper); }
.process-step p{ margin-top:10px; font-size:13px; line-height:1.6; color:var(--paper-dim); }

/* ---------------- capabilities gallery ---------------- */
.capabilities{ background:var(--ink); }
.cap-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.cap-card{
  background:var(--surface-2);
  aspect-ratio:4/3;
  position:relative;
  overflow:hidden;
  display:flex; align-items:flex-end;
  padding:26px;
}
.cap-card .bg{
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(var(--scrim-rgb),0.88) 0%, rgba(var(--scrim-rgb),0.35) 45%, transparent 75%),
    radial-gradient(circle at 30% 20%, rgba(253,175,23,0.14), transparent 55%),
    linear-gradient(135deg, var(--surface-3), var(--surface-2));
}
.cap-card svg{ position:absolute; top:24px; right:24px; opacity:.5; }
.cap-card .label{ position:relative; z-index:1; }
.cap-card .label span{
  font-family:var(--font-mono); font-size:11px; color:var(--accent-text); letter-spacing:0.1em; text-transform:uppercase;
}
.cap-card .label h4{ margin-top:6px; font-size:19px; text-transform:uppercase; color:var(--paper); }

/* ---------------- stats / trust strip ---------------- */
.trust{ background:var(--surface-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:64px 0; }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:40px; }
.trust-item h3{ color:var(--accent-text); font-size:15px; text-transform:uppercase; letter-spacing:0.03em; }
.trust-item p{ margin-top:10px; color:var(--paper-dim); font-size:13.5px; }

/* ---------------- CTA band ---------------- */
.cta-band{
  background:linear-gradient(120deg, var(--surface-3), var(--surface));
  border-bottom:1px solid var(--line);
  text-align:center;
}
.cta-band h2{
  font-size:clamp(30px,5vw,56px); text-transform:uppercase; color:var(--paper);
}
.cta-band .lede{ max-width:52ch; margin:22px auto 0; color:var(--paper-dim); }
.cta-band .hero-actions{ justify-content:center; margin-top:36px; }

/* ---------------- contact ---------------- */
.contact{ background:var(--surface); }
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; }
.contact-info .item{ margin-bottom:30px; }
.contact-info .item span.k{
  font-family:var(--font-mono); font-size:11px; color:var(--accent-text); letter-spacing:0.12em; text-transform:uppercase;
}
.contact-info .item p{ margin-top:8px; font-size:16.5px; color:var(--paper); }
.contact-info .item small{ display:block; margin-top:4px; font-size:12.5px; color:var(--muted); }

.form{ display:flex; flex-direction:column; gap:18px; }
.form label{
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.1em; color:var(--paper-dim);
  text-transform:uppercase; margin-bottom:8px; display:block;
}
.form input, .form select, .form textarea{
  width:100%; background:var(--surface-2); border:1px solid var(--line);
  color:var(--paper); padding:14px 16px; font-family:var(--font-body); font-size:14.5px;
  border-radius:var(--radius);
}
.form input:focus, .form select:focus, .form textarea:focus{ border-color:var(--accent-strong); outline:none; }
.form textarea{ resize:vertical; min-height:120px; }
.form .row2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form .btn{ align-self:flex-start; border:none; }
.form-note{ font-size:12px; color:var(--muted); margin-top:6px; }
.form-note-success{ color:var(--ok); }
.form-note-error{ color:var(--error); }

.site-header.is-scrolled{ background:var(--header-bg-scrolled); }

@media (max-width: 980px){
  .nav-toggle{
    display:flex; align-items:center; justify-content:center;
    width:38px; height:38px; background:none; border:1px solid var(--line);
    color:var(--paper); font-size:18px; border-radius:var(--radius);
  }
  .main-nav{
    display:flex; flex-direction:column; align-items:flex-start; gap:0;
    position:fixed; top:82px; left:0; right:0; z-index:99;
    background:var(--ink); border-bottom:1px solid var(--line);
    max-height:0; overflow:hidden; padding:0 28px;
    transition:max-height .3s ease, padding .3s ease;
  }
  .main-nav.is-open{ max-height:320px; padding:18px 28px 28px; }
  .main-nav a{ padding:12px 0; width:100%; border-bottom:1px solid var(--line-soft); }
}

/* ---------------- footer ---------------- */
footer{ background:var(--ink); padding:64px 0 28px; position:relative; overflow:hidden; }
footer .prism-container{
  position:absolute; inset:0; z-index:0; opacity:0.5;
  mask-image:linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.8) 55%, rgba(0,0,0,0.3) 100%);
  -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.8) 55%, rgba(0,0,0,0.3) 100%);
  pointer-events:none;
}
footer .wrap{ position:relative; z-index:1; }
@media (max-width:700px){ footer .prism-container{ display:none; } }
@media (prefers-reduced-motion: reduce){ footer .prism-container{ display:none; } }
.footer-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:48px; border-bottom:1px solid var(--line);
}
.footer-brand{ display:flex; gap:14px; align-items:flex-start; }
.footer-brand img{ width:52px; }
.footer-brand strong{ font-family:var(--font-display); font-size:20px; text-transform:uppercase; color:var(--paper); }
.footer-brand p{ margin-top:10px; font-size:13.5px; color:var(--paper-dim); max-width:34ch; }
.footer-col h5{
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.12em; color:var(--accent-text);
  text-transform:uppercase; margin-bottom:18px;
}
.footer-col li{ margin-bottom:10px; }
.footer-col a{ font-size:13.5px; color:var(--paper-dim); transition:color .2s ease; }
.footer-col a:hover{ color:var(--accent-strong); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:24px; flex-wrap:wrap; gap:12px;
}
.footer-bottom p{ font-size:12px; color:var(--muted); }
.footer-bottom .socials{ display:flex; gap:16px; }
.footer-bottom .socials a{ font-size:12px; color:var(--paper-dim); }
.footer-bottom .socials a:hover{ color:var(--accent-strong); }
.footer-credit{
  margin-top:16px; padding-top:16px;
  border-top:1px solid var(--line);
  text-align:center;
}
.footer-credit p{ font-size:11.5px; color:var(--muted); letter-spacing:0.02em; }
.footer-credit a{ color:var(--gold); text-decoration:none; }
.footer-credit a:hover{ text-decoration:underline; }

/* ---------------- story / project / insight cards ---------------- */
.tab-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:44px; }
.tab-btn{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase;
  padding:10px 18px; border:1px solid var(--line); background:var(--surface-2); color:var(--paper-dim);
  border-radius:999px; cursor:pointer; transition:all .2s ease;
}
.tab-btn:hover{ border-color:var(--gold-line); color:var(--paper); }
.tab-btn.active{ background:var(--gold); border-color:var(--gold-deep); color:var(--true-dark); font-weight:700; }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

.story-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.story-card{ background:var(--surface); display:flex; flex-direction:column; }
.story-media{
  position:relative; aspect-ratio:16/10; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.story-media img, .story-media video{ width:100%; height:100%; object-fit:cover; }
.photo-tile{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:var(--accent-text); opacity:.55;
}
.photo-tile svg{ width:38px; height:38px; }
.tone-gold .photo-tile, .photo-tile.tone-gold{ background:radial-gradient(circle at 30% 20%, rgba(253,175,23,0.18), var(--surface-2)); }
.tone-navy .photo-tile, .photo-tile.tone-navy{ background:radial-gradient(circle at 30% 20%, rgba(107,125,255,0.14), var(--surface-2)); }
.tone-sage .photo-tile, .photo-tile.tone-sage{ background:radial-gradient(circle at 30% 20%, rgba(111,143,92,0.16), var(--surface-2)); }
.story-badge{
  position:absolute; top:14px; left:14px;
  font-family:var(--font-mono); font-size:10px; letter-spacing:0.1em; text-transform:uppercase;
  background:var(--true-dark); color:var(--gold); padding:5px 10px; border-radius:999px;
  border:1px solid var(--gold-line);
}
.story-body{ padding:26px; flex:1; display:flex; flex-direction:column; }
.story-body h3{ font-size:18px; text-transform:none; color:var(--paper); line-height:1.3; }
.story-body p{ margin-top:12px; font-size:13.5px; color:var(--paper-dim); flex:1; }
.story-link{
  margin-top:18px; font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--accent-strong); display:inline-flex; align-items:center; gap:6px; transition:opacity .2s ease;
}
.story-link:hover{ opacity:.7; }
.gallery-tile{ background:var(--surface-2); }

.empty-note{ font-size:13.5px; color:var(--muted); font-style:italic; padding:20px 0; }

@media (max-width: 980px){ .story-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px){ .story-grid{ grid-template-columns:1fr; } }

/* ---------------- reveal-on-scroll ---------------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------------- responsive ---------------- */
@media (max-width: 760px){
  .about-grid{ grid-template-columns:1fr; }
}
@media (max-width: 980px){
  .service-grid{ grid-template-columns:repeat(2,1fr); }
  .cap-grid{ grid-template-columns:repeat(2,1fr); }
  .process-rail{ grid-template-columns:repeat(2,1fr); row-gap:28px; }
  .trust-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px){
  section{ padding:84px 0; }
  .service-grid{ grid-template-columns:1fr; }
  .cap-grid{ grid-template-columns:1fr; }
  .process-rail{ grid-template-columns:1fr; }
  .pillars{ grid-template-columns:1fr; }
  .trust-grid{ grid-template-columns:1fr 1fr; }
  .form .row2{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .hero-coords{ display:none; }
  .header-cta{ display:none; }
  .theme-toggle{ margin-left:auto; }
}
