/* ============================================================
   LIGHTSTACK TECHNOLOGIES — Bespoke Theme
   Palette: Forest Green #376044 · Antique Gold #A7824B · White
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --green:        #376044;
  --green-deep:   #2a4a34;
  --green-darker: #1d3324;
  --gold:         #a7824b;
  --gold-light:   #c19a5f;
  --gold-soft:    #e8dcc6;
  --white:        #ffffff;
  --paper:        #f7f6f1;   /* warm white */
  --ink:          #14160f;   /* near-black, green-tinted */
  --ink-soft:     #4a4d44;
  --line:         rgba(20, 22, 15, 0.12);

  /* Headings: Bricolage Grotesque · Body: Outfit
     (var names kept as --serif/--sans for continuity) */
  --serif: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:  "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
  --container: 1480px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

/* ---------- Utility ---------- */
.container { width: min(100% - 4rem, var(--container)); margin-inline: auto; }
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 1.05em 2.1em; border-radius: 0;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  background: var(--green); color: var(--white);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--green-deep); transform: translateY(-3px); box-shadow: 0 18px 40px -18px var(--green); }
.btn--gold { background: var(--gold); }
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 18px 40px -18px var(--gold); }
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 4vw, 3.5rem);
  mix-blend-mode: difference; /* logo/nav stays legible over light & dark */
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--white); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__logo { height: 30px; width: auto; display: block; }
@media (max-width: 600px) { .brand__logo { height: 25px; } }
.nav { display: flex; gap: clamp(1.1rem, 2.2vw, 2.4rem); }
.nav a {
  color: var(--white); font-weight: 600; font-size: 0.95rem;
  position: relative; padding: 0.2em 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--white); transition: width 0.45s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav-toggle { display: none; color: var(--white); font-weight: 700; font-size: 1rem; }

/* Mobile slide-down menu */
.mobile-menu { position: fixed; inset: 0; z-index: 300; background: var(--green-darker); color: #fff; transform: translateY(-100%); transition: transform 0.5s var(--ease); padding: 1.6rem clamp(1.5rem,5vw,2.5rem); display: flex; flex-direction: column; visibility: hidden; }
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__close { align-self: flex-end; font-size: 2.6rem; line-height: 1; color: #fff; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 1.4rem; justify-content: center; flex: 1; }
.mobile-menu__nav a { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 7vw, 2.6rem); color: #fff; }
.mobile-menu__nav a::after { display: none; }
.mobile-menu__nav a.is-active { color: var(--gold-light); }

/* left word folded into mobile hero panels */
.h-mobile-pre { display: block; font-family: var(--sans); font-weight: 500; font-size: clamp(1.3rem, 5vw, 1.9rem); opacity: 0.92; margin-bottom: 0.4rem; }

/* ============================================================
   HERO — scroll-driven split slides
   ============================================================ */
.hero { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 38% 62%; height: 100%;
}

/* LEFT column (white, serif word, right-aligned) */
.hero__left { position: relative; background: var(--paper); }
.h-left {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  text-align: right; padding: 0 clamp(1.5rem, 3vw, 3rem) 0 clamp(1.5rem, 6vw, 6rem);
}
.h-left__word {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.0; color: var(--ink);
  letter-spacing: -0.02em;
}
.h-left__copy {
  margin-top: 2rem; max-width: none; font-size: 0.98rem; color: var(--ink-soft);
  line-height: 1.6;
}

/* RIGHT column (color panel + bg image + bold word) */
.hero__right { position: relative; }
.h-right {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(2rem, 5vw, 5.5rem);
}
.h-right__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
/* light, neutral legibility scrim only (no colour wash) — darker where the text sits */
.h-right__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0) 100%); }
.h-right__inner { position: relative; z-index: 2; color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.h-right__word {
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.8rem, 7.5vw, 7rem);
  line-height: 0.92; letter-spacing: -0.035em; max-width: 14ch;
}
.h-right__word--sentence { font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.0; max-width: 18ch; }
.h-right__copy { margin-top: 1.6rem; max-width: none; font-size: 1.05rem; opacity: 0.92; }
.h-right .btn { margin-top: 2.2rem; background: var(--white); color: var(--ink); }
.h-right .btn:hover { background: var(--gold-soft); }

/* Faint decorative line motif on panel */
.h-right__motif {
  position: absolute; right: -8%; top: -10%; width: 60%; height: 120%; z-index: 1;
  border: 1.5px solid rgba(255,255,255,0.12); border-radius: 50%;
  pointer-events: none;
}

/* Progress dots */
.hero__progress {
  position: absolute; right: clamp(1rem, 2.5vw, 2.2rem); top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 0.85rem;
}
.hero__progress button {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.45);
  transition: all 0.4s var(--ease);
}
.hero__progress button.is-active { background: var(--white); transform: scale(1.5); }

/* Left-container decoration (homepage): logo watermark + numbered slide markers */
.hero__watermark { position: absolute; left: clamp(1.5rem, 6vw, 5rem); bottom: 7%; width: clamp(88px, 15vw, 190px); opacity: 0.07; pointer-events: none; z-index: 0; }
.hero__markers { position: absolute; left: clamp(1.5rem, 6vw, 5rem); bottom: clamp(2rem, 5vh, 3.4rem); display: flex; gap: 1rem; z-index: 6; }
.hero__markers button { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink-soft); opacity: 0.45; position: relative; padding-bottom: 0.5rem; transition: all 0.4s var(--ease); }
.hero__markers button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--green); transition: width 0.45s var(--ease); }
.hero__markers button.is-active { opacity: 1; color: var(--green); }
.hero__markers button.is-active::after { width: 100%; }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 38%; bottom: 1.8rem; transform: translateX(-50%);
  z-index: 80; color: var(--white); font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i {
  width: 1px; height: 38px; background: rgba(255,255,255,0.6);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding: clamp(5rem, 11vw, 11rem) 0; }
.section--tight { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.section__head { max-width: none; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__title {
  font-family: var(--serif); font-weight: 340; letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.02; margin-top: 1rem;
}
.section__title b { font-family: var(--serif); font-weight: 800; color: var(--green); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--green-darker); color: var(--white); position: relative; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__title {
  font-family: var(--serif); font-weight: 340; font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.0; letter-spacing: -0.02em;
}
.contact__title b { font-family: var(--serif); font-weight: 800; color: var(--gold-light); }
.contact__lead { margin-top: 1.6rem; max-width: none; opacity: 0.85; font-size: 1.08rem; }
.contact__meta { margin-top: 2.6rem; display: grid; gap: 1.1rem; }
.contact__meta a, .contact__meta span { display: block; }
.contact__meta .label { color: var(--gold-light); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.contact__meta .val { font-size: 1.15rem; font-weight: 600; }

.form { display: grid; gap: 1.3rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--white);
  border: none; border-bottom: 1.5px solid rgba(255,255,255,0.28);
  padding: 1.1rem 0 0.7rem; font-size: 1rem; font-family: inherit;
  transition: border-color 0.4s var(--ease);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select {
  width: 100%; background: transparent; color: var(--white);
  border: none; border-bottom: 1.5px solid rgba(255,255,255,0.28);
  padding: 1.1rem 0 0.7rem; font-size: 1rem; font-family: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none; transition: border-color 0.4s var(--ease);
}
.field select:focus { outline: none; border-color: var(--gold-light); }
.field select option { color: #14160f; }
.field--select { position: relative; }
.field--select::after { content: "\25BE"; position: absolute; right: 0.2rem; top: 1.1rem; color: var(--gold-light); pointer-events: none; }
.field label {
  position: absolute; left: 0; top: 1.1rem; color: rgba(255,255,255,0.55);
  pointer-events: none; transition: all 0.35s var(--ease); font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-light); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  top: -0.5rem; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold-light);
}
.form .btn { justify-self: start; margin-top: 0.6rem; background: var(--gold); }
.form .btn:hover { background: var(--gold-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); padding: clamp(3.5rem,7vw,6rem) 0 2.5rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.footer__brand { max-width: 22rem; }
.footer__brand .brand { color: var(--white); margin-bottom: 1.2rem; }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(2.5rem, 6vw, 5rem); }
.footer__col h4 { color: var(--gold-light); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col a { display: block; padding: 0.35rem 0; opacity: 0.78; transition: opacity 0.3s, color 0.3s; }
.footer__col a:hover { opacity: 1; color: var(--gold-light); }
.footer__bottom {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.85rem; opacity: 0.6;
}

/* ============================================================
   PAGE HERO (inner pages — services / about / projects intro)
   ============================================================ */
.page-hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; padding: 8rem 0 clamp(3rem,6vw,5rem); overflow: hidden; }
.page-hero--dark { background: var(--green-darker); color: var(--white); }
.page-hero__eyebrow { color: var(--gold-light); }
.page-hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 9vw, 8rem); line-height: 0.92; letter-spacing: -0.03em; margin-top: 1rem; }
.page-hero__title b { font-weight: 800; }
.page-hero__lead { margin-top: 1.6rem; max-width: none; font-size: 1.15rem; opacity: 0.85; }

/* Side label used on services/about heroes */
.hero__side {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 2rem; padding-left: clamp(1.5rem, 4vw, 3.5rem);
}
.hero__side-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.hero-nav { display: flex; flex-direction: column; gap: 1rem; border-left: 1.5px solid var(--line); padding-left: 1.4rem; }
.hero-nav button {
  text-align: left; font-size: 1rem; font-weight: 600; color: var(--ink-soft);
  opacity: 0.5; transition: all 0.4s var(--ease); position: relative; line-height: 1.2;
}
.hero-nav button.is-active { opacity: 1; color: var(--green); transform: translateX(6px); }
.hero-nav button.is-active::before {
  content: ""; position: absolute; left: -1.4rem; top: 0; bottom: 0; width: 2px; background: var(--green);
}
.h-right__word .arrow-circle {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 0.9em; height: 0.9em; border: 2px solid currentColor; border-radius: 50%; margin-left: 0.25em; font-size: 0.5em;
}
/* services / about: "We do" sits right-aligned, close to the colour panel */
.hero__left--services .h-left { align-items: flex-end; text-align: right; padding-right: clamp(1.5rem, 2.5vw, 2.5rem); padding-left: clamp(7rem, 12vw, 11rem); }

/* ============================================================
   PROJECTS — horizontal scroll gallery
   ============================================================ */
.projects-intro { padding: 9rem 0 3rem; }
.proj-pin { position: relative; height: 100vh; overflow: hidden; }
.proj-track { display: flex; height: 100vh; align-items: center; gap: 1.5rem; padding: 0 clamp(1.5rem,4vw,3.5rem); will-change: transform; }
.pcard {
  position: relative; flex: none; width: clamp(300px, 40vw, 560px); height: 78vh;
  border-radius: 18px; overflow: hidden; background: var(--green-darker);
  display: block; color: var(--white);
  transform: translateZ(0); backface-visibility: hidden;
}
.pcard__img { position: absolute; inset: 0; background-size: cover; background-position: top center; transition: transform 0.9s var(--ease); will-change: transform; }
.pcard:hover .pcard__img { transform: scale(1.06); }
.pcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,16,0) 35%, rgba(20,24,16,0.85) 100%); transition: background 0.6s var(--ease); }
.pcard:hover .pcard__shade { background: linear-gradient(180deg, rgba(42,74,52,0.45) 0%, rgba(20,24,16,0.92) 100%); }
.pcard__num { position: absolute; top: 1.4rem; left: 1.6rem; font-size: 0.8rem; letter-spacing: 0.2em; opacity: 0.8; }
.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; z-index: 2; }
.pcard__cat { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.pcard__name { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.0; margin-top: 0.4rem; }
.pcard__reveal { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.6s var(--ease); }
.pcard:hover .pcard__reveal { max-height: 200px; opacity: 1; margin-top: 1rem; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pcard__tags span { font-size: 0.72rem; padding: 0.35em 0.8em; border: 1px solid rgba(255,255,255,0.4); border-radius: 100px; }
.pcard__cta { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1rem; font-weight: 700; color: var(--gold-light); }
.proj-progress { position: absolute; left: clamp(1.5rem,4vw,3.5rem); right: clamp(1.5rem,4vw,3.5rem); bottom: 1.5rem; height: 3px; background: var(--line); border-radius: 3px; z-index: 6; }
.proj-progress i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 3px; }
.proj-hint { position: absolute; right: clamp(1.5rem,4vw,3.5rem); top: 6.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); z-index: 6; }

/* Fallback grid for mobile / reduced-motion */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.2rem; }

/* ============================================================
   CASE STUDY (project detail)
   ============================================================ */
/* dark hero */
.cs-hero { position: relative; min-height: 74vh; display: flex; align-items: flex-end; padding: 9rem 0 clamp(3rem,6vw,5rem); overflow: hidden; color: #fff; }
.cs-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: top center; transform: scale(1.05); }
.cs-hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,24,16,0.9), rgba(42,74,52,0.7)); }
.cs-hero__inner { position: relative; z-index: 2; }
.cs-hero__h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.6rem,7vw,6rem); line-height: 0.95; letter-spacing: -0.03em; margin: 0.6rem 0 1rem; }
.cs-hero__tag { font-size: 1.3rem; opacity: 0.9; margin-bottom: 2rem; }
.cs-hero .btn { background: var(--gold); color: var(--ink); }
.cs-hero .btn:hover { background: var(--gold-light); }

/* overlapping challenge card */
.cs-card { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.5rem,4vw,3rem); background: #fff; margin-top: clamp(2.5rem,5vw,4rem); position: relative; z-index: 5; padding: clamp(1.8rem,4vw,3rem); border: 1px solid var(--line); box-shadow: 0 40px 90px -60px rgba(20,24,16,0.4); }
.cs-card__label { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); border-top: 2px solid var(--green); padding-top: 0.8rem; margin-bottom: 1rem; }
.cs-card__main p { font-size: 1.25rem; line-height: 1.6; color: var(--ink); }
.cs-card__side ul li { padding: 0.4rem 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.cs-card__side ul li:first-child { color: var(--green); font-weight: 700; }

/* device showcase */
.cs-showcase { position: relative; overflow: hidden; background: var(--paper); }
.cs-accent { position: absolute; pointer-events: none; }
.cs-accent--1 { top: 10%; left: -15%; width: 55%; height: 130px; background: var(--green); opacity: 0.06; transform: rotate(-18deg); }
.cs-accent--2 { bottom: 12%; right: -8%; width: 45%; height: 10px; background: var(--gold); opacity: 0.6; transform: rotate(-18deg); }
.cs-devices { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; min-height: 52vh; }
.device { flex: none; }
.device-laptop { width: min(56%, 660px); z-index: 2; }
.device-laptop__bar { background: #1d1f1a; border-radius: 12px 12px 0 0; padding: 0.6rem 0.9rem; display: flex; gap: 0.45rem; }
.device-laptop__bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a4d44; }
.device-laptop__screen { height: clamp(240px, 34vw, 420px); overflow: hidden; border: 2px solid #1d1f1a; border-top: none; background: #fff; }
.device-laptop__screen img { width: 100%; display: block; }
.device-laptop::after { content: ""; display: block; height: 14px; background: #1d1f1a; border-radius: 0 0 16px 16px; margin: 0 -5%; }
/* tablet behind, left */
.device-tablet { width: clamp(150px, 19vw, 280px); order: -1; margin-right: -3%; margin-bottom: 1.5rem; z-index: 1; }
.device-tablet__screen { border: 8px solid #1d1f1a; border-radius: 18px; overflow: hidden; height: clamp(210px, 25vw, 360px); background: #fff; box-shadow: 0 30px 60px -35px rgba(20,24,16,0.5); }
.device-tablet__screen img { width: 100%; display: block; }
/* phone front, right */
.device-phone { width: clamp(115px, 13vw, 175px); margin-left: -4%; margin-bottom: 0; z-index: 3; }
.device-phone__screen { border: 6px solid #1d1f1a; border-radius: 26px; overflow: hidden; height: clamp(240px, 27vw, 360px); background: #fff; box-shadow: 0 30px 60px -28px rgba(20,24,16,0.55); }
.device-phone__screen img { width: 100%; display: block; }

/* gallery (masonry) */
.cs-gallery { columns: 3; column-gap: 1rem; }
.cs-gallery__item { display: block; margin-bottom: 1rem; break-inside: avoid; overflow: hidden; border: 1px solid var(--line); }
.cs-gallery__item img { width: 100%; display: block; transition: transform 0.6s var(--ease); }
.cs-gallery__item:hover img { transform: scale(1.04); }

.cs-shot { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; box-shadow: 0 30px 70px -45px rgba(20,24,16,0.6); }
.cs-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* full-bleed feature image on case studies */
.cs-feature { width: 100%; aspect-ratio: 21/9; background-size: cover; background-position: center; border-radius: 16px; box-shadow: 0 40px 90px -55px rgba(20,24,16,0.45); }

/* service detail two-column */
.sv-detail { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.sv-detail__main .section__title { margin-bottom: 1.8rem; }
.sv-detail__side { position: sticky; top: 6rem; background: var(--paper); border: 1px solid var(--line); padding: 1.8rem; }
.sv-offer { margin: 1.2rem 0 1.8rem; }
.sv-offer li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; }
.sv-offer li:last-child { border-bottom: none; }
.cs-body { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2.5rem,6vw,6rem); align-items: start; }
.cs-block { margin-bottom: 3rem; }
.cs-block h3 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--green); }
.cs-block p { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.7; }
.cs-side { position: sticky; top: 6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; }
.cs-side .row { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.cs-side .row:last-child { border-bottom: none; }
.cs-side .label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.cs-side .val { font-weight: 600; margin-top: 0.2rem; }
.cs-side .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.cs-side .tags span { font-size: 0.75rem; padding: 0.3em 0.7em; background: var(--gold-soft); color: var(--green-deep); border-radius: 100px; }
.cs-results { background: var(--green); color: var(--white); border-radius: 18px; padding: clamp(2rem,5vw,3.5rem); display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; text-align: center; }
.cs-results .num { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem,4vw,3.2rem); }
.cs-results .cap { opacity: 0.85; margin-top: 0.3rem; }
.cs-next { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem,6vw,4rem) 0; border-top: 1px solid var(--line); }
.cs-next .next-name { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem,4vw,3rem); color: var(--green); }

/* ============================================================
   SERVICE DETAIL extras
   ============================================================ */
.sv-points { display: grid; grid-template-columns: repeat(2,1fr); gap: 2.5rem; }
.sv-point h3 { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--green); margin-bottom: 0.5rem; }
.sv-point p { color: var(--ink-soft); }
.sv-deliver { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.sv-deliver span { padding: 0.7em 1.2em; border: 1px solid var(--line); border-radius: 100px; font-weight: 600; }
.sv-list { display: grid; gap: 0; }
.sv-list a { display: flex; align-items: center; justify-content: space-between; padding: clamp(1.5rem,3vw,2.4rem) 0; border-top: 1px solid var(--line); transition: padding 0.4s var(--ease); }
.sv-list a:last-child { border-bottom: 1px solid var(--line); }
.sv-list a:hover { padding-left: 1.5rem; }
.sv-list .n { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem,4vw,2.6rem); }
.sv-list a:hover .n { color: var(--green); }
.sv-list .arrow { font-size: 1.6rem; color: var(--green); opacity: 0; transition: all 0.4s var(--ease); }
.sv-list a:hover .arrow { opacity: 1; transform: translateX(8px); }

/* ============================================================
   STATS / VALUES strips
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.stat .num { font-family: var(--serif); font-weight: 800; font-size: clamp(2.4rem,5vw,4rem); color: var(--green); line-height: 1; }
.stat .cap { color: var(--ink-soft); margin-top: 0.5rem; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.value-card { padding: 2rem; border: 1px solid var(--line); border-radius: 16px; transition: all 0.5s var(--ease); }
.value-card:hover { background: var(--green); color: var(--white); transform: translateY(-6px); }
.value-card:hover p { color: rgba(255,255,255,0.85); }
.value-card .vc-num { font-family: var(--serif); color: var(--gold); font-weight: 800; }
.value-card:hover .vc-num { color: var(--gold-light); }
.value-card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin: 0.6rem 0; }
.value-card p { color: var(--ink-soft); }

/* ============================================================
   RICH PROSE
   ============================================================ */
.sv-prose { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.8; }
.sv-prose p { margin-bottom: 1.3rem; }
.sv-prose p:last-child { margin-bottom: 0; }
.cs-block p + p { margin-top: 1.1rem; }

/* ============================================================
   INDUSTRIES — grid of tiles
   ============================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.itile { position: relative; height: 58vh; min-height: 360px; overflow: hidden; display: block; color: #fff; }
.itile__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.9s var(--ease); }
.itile:hover .itile__img { transform: scale(1.07); }
.itile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,16,0.15) 0%, rgba(20,24,16,0.85) 100%); transition: background 0.5s var(--ease); }
.itile:hover .itile__shade { background: linear-gradient(180deg, rgba(42,74,52,0.5) 0%, rgba(20,24,16,0.92) 100%); }
.itile__body { position: absolute; inset: auto 0 0 0; padding: 2rem; z-index: 2; }
.itile__name { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; }
.itile__lead { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.55s var(--ease); }
.itile:hover .itile__lead { max-height: 200px; opacity: 0.92; margin-top: 0.8rem; }
.itile .pcard__cta { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 0.9rem; font-weight: 700; color: var(--gold-light); }

/* INDUSTRY detail (markets/non-profits style) */
.ind-hero { position: relative; min-height: 80vh; display: flex; align-items: flex-end; padding: 9rem 0 clamp(3rem,6vw,5rem); overflow: hidden; color: #fff; }
.ind-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.ind-hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,24,16,0.86), rgba(42,74,52,0.58)); }
.ind-hero__inner { position: relative; z-index: 2; }
.ind-hero__q { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1.0; letter-spacing: -0.03em; margin: 1rem 0; max-width: 22ch; }
.ind-row__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.ind-row--rev .ind-row__media { order: 2; }
.ind-row__media { display: grid; gap: 1rem; }
.ind-row__img { aspect-ratio: 4/3; background-size: cover; background-position: top center; border-radius: 14px; box-shadow: 0 30px 70px -45px rgba(20,24,16,0.6); }
.ind-row__img--stack { aspect-ratio: 16/10; margin-left: 14%; }
.ind-row__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem,3.5vw,3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0.6rem 0 1.2rem; }
.ind-row__title b { font-weight: 800; color: var(--green); }
.ind-row__text p { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.75; margin-bottom: 1rem; }

/* ============================================================
   RESPONSIVE additions
   ============================================================ */
@media (max-width: 900px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-row__grid { grid-template-columns: 1fr; }
  .ind-row--rev .ind-row__media { order: 0; }
  .cs-card { grid-template-columns: 1fr; margin-top: 2rem; }
  .cs-devices { flex-direction: column; align-items: center; gap: 1.5rem; }
  .device-laptop { width: 100%; }
  .device-tablet { width: 62%; order: 0; margin: 0; }
  .device-phone { width: 42%; margin-left: 0; }
  .cs-gallery { columns: 1; }
  .ind-row__img--stack { margin-left: 0; }
  .sv-detail { grid-template-columns: 1fr; }
  .sv-detail__side { position: static; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-side { position: static; }
  .cs-results, .stats { grid-template-columns: 1fr 1fr; }
  .sv-points, .values { grid-template-columns: 1fr; }
  .proj-pin { height: auto; }
  .proj-track { flex-direction: column; height: auto; gap: 1rem; padding: 1.5rem; }
  .pcard { width: 100%; height: 60vh; }
  .hero__side { display: none; }
  .hero__left--services .h-left { padding-left: clamp(1.5rem,6vw,4rem); }
}

/* ============================================================
   TRAINING / BOOTCAMP
   ============================================================ */
.tr-hero { position: relative; overflow: hidden; color: #fff; padding: 9rem 0 clamp(3rem,6vw,5rem); min-height: 90vh; display: flex; align-items: center; }
.tr-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.tr-hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,24,16,0.92), rgba(42,74,52,0.78)); }
.tr-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.tr-badge { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.55em 1.1em; }
.tr-hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem,6vw,5rem); line-height: 1.0; letter-spacing: -0.03em; margin: 1.2rem 0; }
.tr-hero__title b { font-weight: 800; }
.tr-hero__lead { font-size: 1.2rem; max-width: 48ch; opacity: 0.9; }
.tr-hero__cta { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.tr-hero__meta { font-size: 0.85rem; opacity: 0.8; letter-spacing: 0.04em; }
.tr-hero__flyer img { width: 100%; border-radius: 14px; box-shadow: 0 40px 90px -45px rgba(0,0,0,0.75); }

.tr-week { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.2rem,2.5vw,1.8rem) 0; border-top: 1px solid var(--line); }
.tr-week:last-child { border-bottom: 1px solid var(--line); }
.tr-week .n { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem,3vw,2rem); }
.tr-week__d { color: var(--ink-soft); text-align: right; }
.tr-status { font-size: 0.9rem; margin-top: 0.4rem; opacity: 0.95; line-height: 1.5; }

@media (max-width: 900px) {
  .tr-hero__grid { grid-template-columns: 1fr; }
  .tr-hero__flyer { max-width: 360px; }
  .tr-week { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .tr-week__d { text-align: left; }
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -42px rgba(20,24,16,0.5); }
.post-card__img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.post-card__img--ph { display: flex; align-items: flex-end; padding: 1rem 1.2rem; background: linear-gradient(135deg, var(--green) 0%, var(--green-darker) 100%); }
.post-card__img--ph span { color: rgba(255,255,255,0.85); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card__cat { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.post-card__title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: var(--ink); }
.post-card__excerpt { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.post-card__meta { margin-top: auto; color: var(--ink-soft); font-size: 0.82rem; }
.blog-pagination { margin-top: 3rem; }
.blog-pagination .nav-links { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.blog-pagination a, .blog-pagination span { padding: 0.6em 1em; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.blog-pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

.post-hero { position: relative; padding: 9rem 0 clamp(2.5rem,5vw,4rem); overflow: hidden; }
.post-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.post-hero__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,24,16,0.88), rgba(42,74,52,0.7)); }
.post-hero__inner { position: relative; z-index: 2; max-width: 60rem; }
.post-hero__inner--img { color: #fff; }
.post-hero__inner--img .eyebrow { color: var(--gold-light); }
.post-hero__title { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem,5vw,3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0.8rem 0; }
.post-hero__meta { color: var(--ink-soft); font-size: 0.92rem; }
.post-hero__inner--img .post-hero__meta { color: rgba(255,255,255,0.8); }

.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(2rem,5vw,4rem); align-items: start; }
.post-body { font-size: 1.12rem; color: var(--ink-soft); line-height: 1.8; }
.post-body h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem,3vw,2rem); color: var(--ink); margin: 2.2rem 0 0.8rem; line-height: 1.15; }
.post-body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--green); margin: 1.8rem 0 0.6rem; }
.post-body p { margin-bottom: 1.2rem; }
.post-body ul, .post-body ol { margin: 0 0 1.3rem 1.2rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--gold); }
.post-body blockquote { border-left: 3px solid var(--gold); padding-left: 1.2rem; margin: 1.5rem 0; font-style: italic; color: var(--ink-soft); }
.post-side { position: sticky; top: 6rem; }
.post-cta { background: var(--green-darker); color: #fff; padding: 1.8rem; }
.post-cta h3 { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 0.6rem; }
.post-cta p { opacity: 0.85; margin-bottom: 1.2rem; font-size: 0.98rem; }
.post-cta .btn { background: var(--gold); color: var(--ink); }
.post-cta__alt { display: inline-block; margin-top: 1rem; color: var(--gold-light); font-weight: 600; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; }
}

/* ============================================================
   REVEAL ANIMATION HOOKS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .hero { height: auto; }
  .hero__grid { grid-template-columns: 1fr; height: auto; }
  .hero__left { display: none; } /* mobile folds the left word into each panel */
  .hero__right .h-right { position: relative; inset: auto; min-height: 90vh; }
  .h-right__word { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .h-right__word--sentence { font-size: clamp(2rem, 9vw, 3rem); }
  .hero__progress { display: none; }
  .scroll-cue { display: none; }
  .contact__grid, .footer__top { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .cs-feature { aspect-ratio: 16/10; }
  .cs-hero { min-height: 64vh; }
  .ind-hero { min-height: 60vh; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 2.4rem, var(--container)); }
  .site-header { padding: 1.1rem 1.3rem; }
  .h-right { padding: 0 1.4rem; }
  .hero__right .h-right { min-height: 84vh; }
  .section { padding: clamp(3.5rem, 12vw, 5rem) 0; }
  .section--tight { padding: clamp(2.5rem, 9vw, 3.5rem) 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cs-results { grid-template-columns: 1fr; gap: 1.2rem; }
  .cs-card { padding: 1.4rem; }
  .cs-hero__h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .contact__meta .val { font-size: 1.02rem; }
}
