/* ==========================================================================
   SBJ CANNABIS — BOOF PROOF
   Design system derived directly from the sunburst logo mark.
   Palette sampled from Black Color Squre Logo.ico (exact hex values).
   ========================================================================== */

:root {
  /* --- Brand spectrum: sampled from the logo, not invented --- */
  --sbj-gold:    #e5b16e;
  --sbj-orange:  #ed956b;
  --sbj-rose:    #dd676f;
  --sbj-magenta: #bf5490;

  /* Derived deep tone for shadows / gradients */
  --sbj-plum:    #7f3860;

  /* Text-safe accents. The raw logo colours clear 4.5:1 on the dark
     background but not on white, so light mode swaps in darkened
     equivalents of the same hues. Verified with a contrast calculator —
     do not substitute the raw brand hex here. */
  --accent-text: var(--sbj-orange);
  --grad-1: var(--sbj-gold);
  --grad-2: var(--sbj-orange);
  --grad-3: var(--sbj-rose);
  --grad-4: var(--sbj-magenta);

  /* --- Theme: dark is default --- */
  --bg:          #08080a;
  --bg-raised:   #111114;
  --bg-sunken:   #050506;
  --hairline:    rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.20);
  --ink:         #ffffff;
  --ink-muted:   rgba(255, 255, 255, 0.62);
  --ink-faint:   rgba(255, 255, 255, 0.52);
  --on-accent:   #08080a;

  /* --- Type --- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.4vw, 4.6rem);
  --step-5:  clamp(2.9rem, 1.8rem + 5vw, 6.2rem);

  /* --- Space --- */
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --section-y: clamp(4rem, 2.5rem + 7vw, 9rem);
  --measure: 68ch;
  --max: 1200px;
  --max-narrow: 780px;

  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg:          #ffffff;
  --bg-raised:   #f6f6f7;
  --bg-sunken:   #efeff1;
  --hairline:    rgba(0, 0, 0, 0.12);
  --hairline-strong: rgba(0, 0, 0, 0.26);
  --ink:         #08080a;
  --ink-muted:   rgba(8, 8, 10, 0.66);
  --ink-faint:   rgba(8, 8, 10, 0.62);
  --on-accent:   #ffffff;

  /* Darkened brand hues — same family, WCAG AA on white */
  --accent-text: #c2551f;   /* 4.55:1 */
  --grad-1:      #8f6524;   /* 5.18:1 */
  --grad-2:      #b34d1c;   /* 5.26:1 */
  --grad-3:      #b8323c;   /* 5.90:1 */
  --grad-4:      #93356b;   /* 7.09:1 */
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--sbj-magenta); color: #fff; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */

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

.wrap--narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--sunken { background: var(--bg-sunken); }
.section--raised { background: var(--bg-raised); }

.rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* ==========================================================================
   THE SUNBURST MARK
   The logo is not decoration — it is the system. Eight bars, 45° apart,
   warm spectrum, open center. Everything else radiates from this.
   ========================================================================== */

.burst { display: block; overflow: visible; }

/* NOTE: never set transform-origin on .bar — each bar's rotation origin is
   baked into its SVG transform attribute, and a CSS origin fights it and
   scatters the ring. */

/* Slow ambient rotation for large decorative bursts only */
.burst--ambient .burst-group {
  transform-origin: 50% 50%;
  animation: burst-spin 90s linear infinite;
}

@keyframes burst-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Bars stagger in on load. Opacity only — animating transform here would
   clobber each bar's rotation attribute. */
.burst--reveal .bar {
  opacity: 0;
  animation: bar-in 0.7s var(--ease) forwards;
}
.burst--reveal .bar:nth-child(1) { animation-delay: 0.00s; }
.burst--reveal .bar:nth-child(2) { animation-delay: 0.06s; }
.burst--reveal .bar:nth-child(3) { animation-delay: 0.12s; }
.burst--reveal .bar:nth-child(4) { animation-delay: 0.18s; }
.burst--reveal .bar:nth-child(5) { animation-delay: 0.24s; }
.burst--reveal .bar:nth-child(6) { animation-delay: 0.30s; }
.burst--reveal .bar:nth-child(7) { animation-delay: 0.36s; }
.burst--reveal .bar:nth-child(8) { animation-delay: 0.42s; }

@keyframes bar-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* A thin arc of bars used as a section divider */
.divider {
  display: flex;
  justify-content: center;
  padding-block: clamp(2rem, 1rem + 3vw, 4rem);
}
.divider svg { width: min(300px, 62%); opacity: 0.9; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand svg { width: 30px; height: 30px; }
.brand__word {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.brand__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1;
  margin-top: 3px;
}
.brand__stack { display: flex; flex-direction: column; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 0.3rem + 1.4vw, 2rem);
}

.nav a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  padding-block: 0.5rem;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sbj-orange), var(--sbj-magenta));
}

.header-tools { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.3s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--hairline-strong);
  color: var(--ink);
  transform: rotate(35deg);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.nav-burger svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .nav-burger { display: grid; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a {
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--hairline);
    font-size: 1.05rem;
    color: var(--ink);
  }
  .nav .btn { margin-top: 1rem; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(96deg, var(--sbj-orange), var(--sbj-magenta));
  color: #fff;
  box-shadow: 0 6px 24px -8px rgba(191, 84, 144, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(191, 84, 144, 0.85);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.05rem 2rem; font-size: var(--step-0); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* Text link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--accent-text);
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.7rem; }

/* ==========================================================================
   ATOMS
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--sbj-orange), var(--sbj-magenta));
}

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 58ch;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.prose > * + * { margin-top: 1.35em; }
.prose p { color: var(--ink-muted); max-width: var(--measure); }
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.4em;
  letter-spacing: -0.035em;
}
.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.9em;
  font-weight: 700;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul { padding-left: 1.15rem; color: var(--ink-muted); max-width: var(--measure); }
.prose li + li { margin-top: 0.55rem; }
.prose li::marker { color: var(--accent-text); }
.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent-text) 45%, transparent);
}
.prose a:hover { text-decoration-color: var(--accent-text); }

.gradient-text {
  background: linear-gradient(96deg, var(--grad-1), var(--grad-2) 30%,
                              var(--grad-3) 62%, var(--grad-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 8vw, 8rem) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}

.hero__burst {
  position: absolute;
  top: 50%; right: 3%;
  translate: 0 -50%;
  width: min(440px, 36vw);
  opacity: 0.5;
  pointer-events: none;
  filter: blur(0.6px);
  z-index: 0;
}

@media (max-width: 1080px) {
  .hero__burst { opacity: 0.14; right: -18%; width: 68vw; }
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 {
  font-size: var(--step-5);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.hero .lede { margin-bottom: 2.2rem; }

/* --- The voice toggle: raw vs. professional --- */

.voice-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg-raised);
  margin-bottom: 2.4rem;
  position: relative;
}

.voice-switch__thumb {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: 999px;
  background: linear-gradient(96deg, var(--sbj-orange), var(--sbj-magenta));
  transition: transform 0.42s var(--ease), width 0.42s var(--ease);
  z-index: 0;
}

.voice-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}
.voice-switch button[aria-selected="true"] { color: #fff; }

.voice-panel[hidden] { display: none; }

.voice-panel {
  animation: voice-in 0.5s var(--ease);
}
@keyframes voice-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.voice-hint {
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-top: 1.6rem;
  font-style: italic;
}

/* ==========================================================================
   BOOF DEFINITION BLOCK
   ========================================================================== */

.definition {
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--sbj-gold), var(--sbj-magenta)) 1;
  padding-left: clamp(1.2rem, 0.6rem + 2vw, 2.2rem);
}

.definition__term {
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.15rem;
}
.definition__pos {
  font-size: var(--step--1);
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 1.1rem;
}

/* Traits list — the characteristics of boof */
.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  list-style: none;
  padding: 0;
}
.traits li {
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.traits li:hover {
  border-color: var(--sbj-rose);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.6rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.4rem);
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  min-height: 100%;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--card-accent, var(--sbj-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.card:hover { transform: translateY(-5px); border-color: var(--hairline-strong); }
.card:hover::before { transform: scaleX(1); }

.card__num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--card-accent, var(--sbj-orange));
  margin-bottom: 1rem;
}

.card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.7rem;
  letter-spacing: -0.035em;
}

.card p {
  color: var(--ink-muted);
  font-size: var(--step--1);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.card .link-arrow { margin-top: auto; color: var(--card-accent, var(--sbj-orange)); }

/* ==========================================================================
   SPLIT / FEATURE ROWS
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

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

/* Sidebars track the reader on long pages */
@media (min-width: 900px) {
  .split--top > aside { position: sticky; top: 100px; }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(1.2rem, 0.5rem + 2vw, 2.5rem);
}

.stat__value {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ==========================================================================
   TRUSTED BY
   ========================================================================== */

.trusted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
}

.trusted__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.trusted__logo {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease);
}
.trusted__logo:hover { color: var(--ink); }

/* Placeholder slot styling — replaced when real logo files arrive */
.slot {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  color: var(--ink-faint);
  font-size: var(--step--1);
  background:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 10px,
      color-mix(in srgb, var(--ink) 3%, transparent) 10px,
      color-mix(in srgb, var(--ink) 3%, transparent) 20px
    );
  min-height: 220px;
}
.slot strong {
  display: block;
  color: var(--ink-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.65rem;
  margin-bottom: 0.4rem;
}
.slot--tall { min-height: 380px; }
.slot--wide { aspect-ratio: 16 / 9; min-height: 0; }

/* ==========================================================================
   CTA BLOCK
   ========================================================================== */

.cta-block {
  position: relative;
  overflow: hidden;
  background: var(--bg-sunken);
  border-block: 1px solid var(--hairline);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.cta-block__glow {
  position: absolute;
  top: 50%; right: 4%;
  translate: 0 -50%;
  width: min(400px, 32vw);
  opacity: 0.5;
  filter: blur(0.6px);
  pointer-events: none;
}

@media (max-width: 1080px) {
  .cta-block__glow { opacity: 0.14; right: -20%; width: 62vw; }
}

.cta-block__inner { position: relative; z-index: 1; }

.cta-block h2 {
  font-size: var(--step-4);
  max-width: 18ch;
  margin-bottom: 1.1rem;
}

.cta-block p {
  color: var(--ink-muted);
  font-size: var(--step-1);
  max-width: 46ch;
  margin-bottom: 2rem;
}

/* ==========================================================================
   BLOG / SUNBURN
   ========================================================================== */

/* Sunburn gets a warmer, more editorial treatment than the consulting pages */
.sunburn-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
  background:
    radial-gradient(120% 130% at 12% 0%,
      color-mix(in srgb, var(--sbj-magenta) 22%, transparent) 0%,
      transparent 58%),
    radial-gradient(100% 120% at 88% 100%,
      color-mix(in srgb, var(--sbj-orange) 20%, transparent) 0%,
      transparent 60%);
}

.sunburn-hero h1 {
  font-size: var(--step-5);
  letter-spacing: -0.055em;
}

.post-list { display: grid; gap: 0; }

.post-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 0.4rem + 2vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.4rem);
  border-bottom: 1px solid var(--hairline);
  transition: padding-inline 0.35s var(--ease);
}
.post-item:first-child { border-top: 1px solid var(--hairline); }
.post-item:hover { padding-inline: 0.75rem; }
.post-item:hover .post-item__title { color: var(--accent-text); }

.post-item__date {
  font-size: var(--step--1);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.post-item__title {
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  transition: color 0.25s var(--ease);
  margin-bottom: 0.5rem;
}

.post-item__excerpt {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-muted);
  max-width: 60ch;
}

.post-item__tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .post-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .post-item__tag { justify-self: start; }
}

.post-header { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) 0; }
.post-header h1 { font-size: var(--step-4); max-width: 22ch; margin-bottom: 1.3rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--sbj-rose);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: clamp(1.2rem, 0.8rem + 1.2vw, 1.8rem);
}
.callout p { color: var(--ink-muted); max-width: none; }
.callout strong { color: var(--ink); }

/* Countdown to the Nov 12 2026 hemp deadline */
.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.3rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.countdown__num {
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.countdown__label {
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.35;
}

/* ==========================================================================
   FORM
   ========================================================================== */

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }

.field label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-text);
  outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 2rem;
  background: var(--bg-sunken);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(1.8rem, 1rem + 2.5vw, 3.5rem);
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-col a {
  font-size: var(--step--1);
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent-text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--ink-faint);
  max-width: 70ch;
  line-height: 1.6;
  margin-top: 1.5rem;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

/* Reveal is opt-in via the .js class set by an inline script in <head>.
   If JavaScript is unavailable or fails, every .reveal stays fully visible
   rather than leaving the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   PHOTOGRAPHY
   Real facility and product imagery. Every image carries explicit
   width/height so nothing shifts as it loads.
   ========================================================================== */

.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
}

.figure { margin: 0; }

.figure figcaption {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
  line-height: 1.45;
}

/* Hero photo with a spectrum wash so text stays legible over it */
.hero--photo { padding-block: 0; }

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 34vw + 180px, 640px);
  display: grid;
  align-items: center;
}

.hero-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      color-mix(in srgb, var(--bg) 97%, transparent) 0%,
      color-mix(in srgb, var(--bg) 94%, transparent) 38%,
      color-mix(in srgb, var(--bg) 72%, transparent) 68%,
      color-mix(in srgb, var(--bg) 45%, transparent) 100%),
    linear-gradient(0deg,
      color-mix(in srgb, var(--bg) 80%, transparent) 0%,
      transparent 50%);
}

.hero-media__inner { position: relative; z-index: 2; width: 100%; }

@media (max-width: 720px) {
  .hero-media::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 62%, transparent) 0%,
      color-mix(in srgb, var(--bg) 93%, transparent) 55%);
  }
}

/* Image + text pair used through the service pages */
.media-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 0.8rem + 2.5vw, 3rem);
  align-items: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.8rem, 0.4rem + 1.2vw, 1.4rem);
}

/* ==========================================================================
   CLIENT LOGOS
   Each mark was designed for its own background, so every one sits on a
   white plate. Keeps the row coherent instead of a patchwork.
   ========================================================================== */

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(0.8rem, 0.4rem + 1vw, 1.4rem);
  align-items: stretch;
}

.logo-plate {
  display: grid;
  place-items: center;
  padding: 1.4rem 1.2rem;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  min-height: 116px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.logo-plate:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.5);
}
.logo-plate img,
.logo-plate svg {
  max-height: 76px;
  width: auto;
  max-width: 84%;
  object-fit: contain;
}

/* Logos are pre-trimmed to their own artwork (see build notes), so a single
   optical rule works for all four. Moonlight is a wide wordmark and needs a
   width cap instead of a height cap. */
.logo-plate img { max-height: 78px; }
.logo-plate img[src*="moonlight"] { max-height: none; width: 88%; }

.logo-note {
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-top: 1rem;
}

/* ==========================================================================
   RESULTS — real figures from the Good Weed operation
   ========================================================================== */

.results {
  display: grid;
  /* 8 cells. Fixed counts (4 / 2 / 1) instead of auto-fit, which was
     resolving to 5 columns and leaving an empty cell in row two. */
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.result {
  background: var(--bg);
  padding: clamp(1.3rem, 0.9rem + 1.2vw, 2rem);
}

.result__value {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.result__label {
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.5;
}

.result__note {
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

/* ==========================================================================
   STATES
   ========================================================================== */

.states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.state {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.state:hover { border-color: var(--accent-text); color: var(--accent-text); }
.state--soon {
  border-style: dashed;
  border-color: var(--hairline);
  color: var(--ink-faint);
  font-weight: 600;
}

/* ==========================================================================
   SPEAKING / CREDENTIALS
   ========================================================================== */

.credits { display: grid; gap: 0; }

.credit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.credit:first-child { border-top: 1px solid var(--hairline); }

.credit__event { font-weight: 700; font-size: var(--step-0); }
.credit__talk { color: var(--ink-muted); font-size: var(--step--1); flex: 1 1 240px; }
.credit__year {
  color: var(--ink-faint);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .results { grid-template-columns: 1fr; } }

/* Keep the hero's supporting line inside the text column so it never
   runs out across the photograph. */
.hero--photo .voice-hint,
.hero--photo .lede { max-width: 56ch; }
.hero--photo .voice-hint { max-width: 62ch; }

/* Photo grids: normalise mixed source aspect ratios to one row height so
   the grid never goes ragged. */
.photo-grid .photo {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  height: auto;
}
