/* ============================================================
   West Valley Fastpitch — Brand Guide
   Editorial, heritage-driven, athletic. Built on the WVFP system.
   ============================================================ */

:root {
  /* Brand palette */
  --gold:        #F3C12C;
  --red:         #B61816;
  --deep-red:    #821415;
  --cream:       #FFF7E8;
  --heritage:    #E3D2AE;
  --brown:       #4A3426;
  --teal:        #2E6B6A;

  /* Working tokens */
  --ink:         #3A2A1E;   /* warm near-black for body text on cream */
  --ink-soft:    #6b5847;
  --paper:       #FBF2DF;   /* a hair deeper than cream for alternating bands */
  --line:        rgba(74, 52, 38, 0.16);
  --line-strong: rgba(74, 52, 38, 0.28);

  /* Type */
  --f-display: "Roboto Slab", Georgia, serif;
  --f-editorial: "EB Garamond", Georgia, serif;
  --f-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(74,52,38,.10);
  --shadow-md: 0 14px 34px rgba(74,52,38,.16);
  --shadow-lg: 0 26px 60px rgba(74,52,38,.24);

  --header-h: 74px;
}

/* ---------- Reset / base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1,h2,h3,h4 { margin: 0; font-family: var(--f-display); font-weight: 900; line-height: 1.04; color: var(--red); letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul,ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.editorial { font-family: var(--f-editorial); }
.star { color: var(--gold); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--red); color: var(--cream); padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
  font-weight: 700; font-size: .9rem;
}
.skip-link:focus { left: 0; }

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--deep-red);
  transition: box-shadow .3s ease;
  border-bottom: 1px solid rgba(243,193,44,.30);
}
.site-header.is-solid { box-shadow: 0 6px 24px rgba(58,20,15,.30); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(var(--wrap), 100% - (var(--gutter) * 2)); }

.brand-lockup { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--cream); }
.brand-lockup__mark { width: 58px; height: 58px; }
.brand-lockup__label {
  font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; letter-spacing: .01em; color: var(--cream);
  border-left: 1px solid rgba(255,247,232,.32); padding-left: .75rem; line-height: 1.05;
}

.primary-nav { display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
  text-decoration: none; color: var(--cream); font-weight: 700; font-size: .82rem;
  letter-spacing: .05em; text-transform: uppercase; padding: .5rem .7rem; border-radius: 8px;
  position: relative; transition: color .2s ease, background .2s ease;
}
.primary-nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .28rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active:not(.nav-cta) { color: var(--gold); }
.primary-nav .nav-cta {
  background: var(--gold); color: var(--deep-red); margin-left: .4rem;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: #ffd34d; }
/* keep the CTA legible when it's the active section; show an active ring instead of the underline */
.primary-nav .nav-cta.is-active { color: var(--deep-red); box-shadow: inset 0 0 0 2px var(--deep-red); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px; border-radius: 8px;
}
.nav-toggle span { height: 2.5px; background: var(--cream); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(2.5rem, 7vw, 5rem);
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__kicker {
  font-weight: 900; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  color: var(--red); margin: 0 0 1.1rem; display: inline-flex; align-items: center; gap: .5rem;
}
.hero__title {
  color: var(--red); font-size: clamp(2.9rem, 7vw, 5rem); line-height: .98; margin: 0 0 1.2rem;
}
.hero__title::after {
  content: ""; display: block; width: 96px; height: 6px; background: var(--gold);
  margin-top: 1.1rem; border-radius: 4px;
}
.hero__lede {
  font-family: var(--f-editorial); font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.5;
  max-width: 48ch; color: var(--ink-soft); margin: 0 0 1.8rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; }
.hero__meta { font-size: .88rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .01em; margin: 0; }
.hero__mark { display: grid; place-items: center; }
.hero__mark img { width: min(340px, 82%); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--f-body); font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  font-size: .84rem; padding: .95rem 1.6rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--deep-red); box-shadow: var(--shadow-md); }
.btn--ghost { background: rgba(255,247,232,.08); color: var(--cream); border-color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--deep-red); }
.btn--outline { background: transparent; color: var(--deep-red); border-color: var(--deep-red); }
.btn--outline:hover { background: var(--deep-red); color: var(--cream); }
.btn--small { padding: .6rem 1.1rem; font-size: .74rem; background: var(--red); color: var(--cream); }
.btn--small:hover { background: var(--deep-red); }
.btn--file {
  padding: .5rem .95rem; font-size: .76rem; letter-spacing: .06em; background: #fff; color: var(--deep-red);
  border: 1.5px solid var(--line-strong); box-shadow: none;
}
.btn--file:hover { background: var(--red); color: var(--cream); border-color: var(--red); }
.btn--disabled { background: transparent; color: var(--ink-soft); border-color: var(--line-strong); cursor: not-allowed; }
.btn--disabled:hover { transform: none; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(3.6rem, 9vh, 7rem) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--brown { background: var(--brown); color: #f3e6d2; }
.section--red { background: var(--red); color: var(--cream); }

.section-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.kicker {
  font-weight: 900; text-transform: uppercase; letter-spacing: .2em; font-size: .78rem;
  color: var(--gold); margin: 0 0 .9rem; display: inline-flex; align-items: center;
}
.kicker::before { content: "★"; margin-right: .55rem; color: var(--gold); }
.section--brown .kicker, .section--red .kicker { color: var(--gold); }
.section-title { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin: 0 0 1.1rem; }
.section--brown .section-title, .section--red .section-title, .section-head--light .section-title { color: var(--cream); }
.section-intro { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.section--brown .section-intro, .section--red .section-intro, .section-head--light .section-intro { color: rgba(255,247,232,.9); }

.minor-label { font-weight: 900; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--red); margin: 0 0 1.2rem; }
.minor-label--light { color: var(--gold); }
.minor-label .hint, .hint { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-size: .8rem; }
.minor-label--light .hint { color: rgba(255,247,232,.7); }
.eyebrow { font-weight: 900; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--red); margin: 0 0 .8rem; }

/* ============================================================
   FOUNDATION — pillars
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--red); }
.pillar:nth-child(2)::before { background: var(--gold); }
.pillar:nth-child(3)::before { background: var(--teal); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar__num { font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; color: var(--gold); letter-spacing: .1em; }
.pillar h3 { font-size: 1.5rem; margin: .6rem 0 .7rem; }
.pillar p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   LOGO
   ============================================================ */
.logo-primary {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.logo-primary__stage {
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--cream) 70%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.6rem);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  position: relative;
}
.logo-primary__stage::after {
  content: ""; position: absolute; inset: 14px; border: 1.5px dashed var(--line-strong); border-radius: 10px; pointer-events: none;
}
.logo-primary__stage img { width: min(340px, 78%); }
.logo-primary__copy h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .9rem; }
.logo-primary__copy > p { color: var(--ink-soft); margin-bottom: 1.4rem; }

.rules { display: grid; gap: .7rem; }
.rules li { position: relative; padding-left: 1.9rem; color: var(--ink); font-size: .98rem; }
.rules li::before {
  content: "★"; position: absolute; left: 0; top: -1px; color: var(--gold); font-size: 1rem;
}

/* on-background demo */
.logo-backgrounds { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.bg-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bg-swatch {
  border-radius: var(--radius); padding: 1.6rem 1rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.bg-swatch img { width: 96px; }
.bg-swatch span { font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.bg-swatch--dark span { color: rgba(255,247,232,.85); }

/* two versions of the badge */
.badge-versions { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.badge-versions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.8rem); margin-bottom: 1.2rem; }
.badge-version { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.badge-version__stage { background: var(--cream); display: grid; place-items: center; padding: clamp(1.6rem, 4vw, 2.6rem); }
.badge-version__stage img { width: min(180px, 55%); }
.badge-version figcaption { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--line); }
.badge-version figcaption p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.badge-version figcaption strong { color: var(--ink); }
.badge-version__tag {
  display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--red);
  margin-bottom: .5rem;
}

/* secondary marks */
.section-subhead { max-width: 640px; margin-bottom: 2rem; }
.section-subhead h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .7rem; }
.section-subhead p { color: var(--ink-soft); margin: 0; }
.secondary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.8rem); margin-bottom: 2rem; align-items: stretch; }
.secondary-mark { margin: 0; display: flex; flex-direction: column; }
.secondary-mark__stage {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem); height: clamp(180px, 26vw, 260px); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.secondary-mark__stage img { max-width: min(78%, 360px); max-height: 62%; width: auto; }
.secondary-mark figcaption { margin-top: .9rem; font-size: .86rem; color: var(--ink-soft); font-weight: 600; }

/* callouts */
.callout { border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.callout p { margin: 0; }
.callout--warn { background: rgba(182,24,22,.07); border: 1px solid rgba(182,24,22,.25); color: var(--deep-red); }
.callout--warn strong { color: var(--red); }
.callout--onred { background: rgba(255,247,232,.12); border: 1px solid rgba(255,247,232,.3); color: var(--cream); max-width: 760px; }
.callout--onred strong { color: var(--gold); }

/* ============================================================
   COLOR
   ============================================================ */
.signal { border: 1px solid rgba(255,247,232,.2); border-radius: var(--radius); padding: 1.6rem; background: rgba(0,0,0,.12); }
.signal__chips { display: flex; flex-wrap: wrap; align-items: stretch; gap: .8rem; }
.signal__chip {
  flex: 1 1 160px; min-height: 76px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .84rem; color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.signal__chip--dark { color: var(--deep-red); }
.signal__plus { display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; color: var(--gold); }

.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.swatch {
  text-align: left; cursor: pointer; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,247,232,.22);
  box-shadow: var(--shadow-sm); font-family: var(--f-body); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; padding: 0;
}
.swatch:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.swatch__chip { height: 120px; background: var(--c); display: block; box-shadow: inset 0 0 0 1px rgba(74,52,38,.12); }
.swatch--bordered .swatch__chip { box-shadow: inset 0 0 0 1px var(--line-strong); }
.swatch__name { font-weight: 900; font-size: .95rem; color: var(--ink); padding: .85rem 1rem .1rem; }
.swatch__hex { font-size: .82rem; color: var(--ink-soft); font-weight: 700; letter-spacing: .06em; padding: 0 1rem 1rem; font-variant-numeric: tabular-nums; }
.swatch__hex::after { content: " ⧉"; opacity: .5; font-size: .78rem; }

.color-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.color-note { border-top: 3px solid var(--gold); padding-top: 1rem; }
.color-note:nth-child(2) { border-top-color: var(--cream); }
.color-note:nth-child(3) { border-top-color: var(--teal); }
.color-note h4 { color: var(--cream); font-size: 1.15rem; margin-bottom: .5rem; }
.color-note p { color: rgba(243,230,210,.85); margin: 0; font-size: .96rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.type-specimens { display: grid; gap: 1.2rem; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.specimen {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.2rem, 3vw, 3rem); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.specimen__meta .specimen__font { font-weight: 900; color: var(--ink); font-size: 1.05rem; margin: 0 0 .5rem; }
.specimen__use { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.specimen__sample { margin: 0; color: var(--red); }
.specimen__sample--display { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.specimen__sample--editorial { font-family: var(--f-editorial); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; color: var(--brown); }
.specimen__sample--editorial em { color: var(--red); }
.specimen__sample--utility { color: var(--ink); }
.specimen__sample--utility p { font-size: 1.05rem; margin: 0 0 .5rem; }
.specimen__sample--utility p:first-child { font-size: 1.25rem; }

.do-avoid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.do-avoid__col { border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.do-avoid__col--do { background: rgba(46,107,106,.08); border: 1px solid rgba(46,107,106,.28); }
.do-avoid__col--avoid { background: rgba(182,24,22,.06); border: 1px solid rgba(182,24,22,.22); }
.do-avoid h4 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin-bottom: 1rem; }
.do-avoid__col--do h4 { color: var(--teal); }
.do-avoid__col--do .mark { color: var(--teal); }
.do-avoid__col--avoid h4 { color: var(--red); }
.do-avoid__col--avoid .mark { color: var(--red); }
.do-avoid .mark { font-family: var(--f-body); font-weight: 900; }
.do-avoid ul { display: grid; gap: .6rem; }
.do-avoid li { color: var(--ink); padding-left: 1rem; position: relative; }
.do-avoid li::before { content: "—"; position: absolute; left: 0; color: var(--ink-soft); }

/* ============================================================
   PHOTOGRAPHY
   ============================================================ */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.photo-grid__item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-grid__item:hover img { transform: scale(1.05); }
.photo-grid__item--tall { grid-row: span 2; }
.photo-grid__item--wide { grid-column: span 2; }

.tag-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.tag-list li {
  font-weight: 700; font-size: .82rem; letter-spacing: .04em; padding: .45rem 1rem; border-radius: 999px;
  background: rgba(74,52,38,.06); border: 1px solid var(--line); color: var(--brown);
}

/* ============================================================
   VOICE
   ============================================================ */
.phrases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.4rem; margin: 0 0 2.6rem; }
.phrases li {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.1;
  color: var(--cream); padding: 1.1rem 0; border-bottom: 1px solid rgba(255,247,232,.22);
  display: flex; align-items: baseline; gap: .8rem;
}
.phrases li::before { content: "“"; font-family: var(--f-editorial); color: var(--gold); font-size: 1.6em; line-height: 0; position: relative; top: .2em; }
.phrases li:last-child { border-bottom: 0; }

/* naming guideline (lives in the red Voice section) */
.naming { margin-top: clamp(2.6rem, 5vw, 4rem); padding-top: clamp(2.2rem, 4vw, 3rem); border-top: 1px solid rgba(255,247,232,.22); }
.naming__head { max-width: 70ch; margin-bottom: 1.8rem; }
.eyebrow--onred { color: var(--gold); }
.naming__head h3 { color: var(--cream); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .9rem; }
.naming__intro { color: rgba(255,247,232,.9); margin: 0; font-size: 1.02rem; }
.naming__intro strong { color: var(--cream); }
.naming__intro em { color: var(--gold); font-style: italic; }

.naming__tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.name-tier {
  background: rgba(255,247,232,.10); border: 1px solid rgba(255,247,232,.24); border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem;
}
.name-tier__form { font-weight: 900; color: var(--cream); font-size: 1rem; line-height: 1.2; }
.name-tier__form--display { font-family: var(--f-display); font-weight: 900; letter-spacing: .01em; color: var(--gold); }
.name-tier__label { font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--gold); }
.name-tier p { margin: 0; font-size: .88rem; color: rgba(255,247,232,.82); }

.naming__examples { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.naming__col { background: var(--cream); border-radius: var(--radius); padding: 1.4rem 1.6rem 1.5rem; }
.naming__col h4 { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; margin-bottom: 1rem; }
.naming__col .mark { font-family: var(--f-body); font-weight: 900; }
.naming__col--do h4, .naming__col--do .mark { color: var(--teal); }
.naming__col--avoid h4, .naming__col--avoid .mark { color: var(--red); }
.naming__col ul { display: grid; gap: .6rem; }
.naming__col li { color: var(--ink); font-size: .95rem; line-height: 1.4; }
.naming__col--do li { padding-left: 1rem; position: relative; }
.naming__col--do li::before { content: "—"; position: absolute; left: 0; color: var(--ink-soft); }
.naming__col--avoid li { padding-left: 1rem; position: relative; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(182,24,22,.5); }
.naming__col--avoid li::before { content: "—"; position: absolute; left: 0; color: var(--ink-soft); text-decoration: none; }
.naming__col li em { font-style: italic; color: var(--ink-soft); }
.naming__col li .name-tier__form { color: var(--ink); font-size: .95rem; }
.ex-display { font-family: var(--f-display); font-weight: 900; color: var(--red); letter-spacing: .02em; }
.naming__why { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--ink-soft); font-style: italic; }

/* ============================================================
   APPLICATIONS
   ============================================================ */
.app-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: clamp(2.6rem, 5vw, 3.8rem); }
.app-card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.app-card--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.app-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.app-card:hover img { transform: scale(1.05); }
.app-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.2rem 1.1rem; color: var(--cream);
  background: linear-gradient(0deg, rgba(40,14,10,.9) 0%, rgba(40,14,10,.55) 55%, transparent 100%);
  font-size: .9rem; font-weight: 600;
}
.app-card__tag {
  display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem;
  color: var(--gold); margin-bottom: .3rem;
}
.app-card--feature figcaption { font-size: 1rem; padding-top: 3.5rem; }

.app-domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.app-domain { border-top: 3px solid var(--red); padding-top: 1rem; }
.app-domain:nth-child(2) { border-top-color: var(--gold); }
.app-domain:nth-child(3) { border-top-color: var(--teal); }
.app-domain:nth-child(4) { border-top-color: var(--brown); }
.app-domain h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.app-domain p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* ============================================================
   ASSETS / LOGO DOWNLOADS
   ============================================================ */
/* Download-all banner */
.get-all {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; flex-wrap: wrap;
  background: var(--brown); color: #f3e6d2; border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1.4rem;
}
.get-all__text { max-width: 62ch; }
.get-all__text h3 { color: var(--cream); font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: .4rem; }
.get-all__text p { color: rgba(243,230,210,.88); margin: 0; font-size: .96rem; }
.get-all .btn { flex: none; }

/* Which file helper */
.file-help {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); margin-bottom: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-sm);
}
.file-help__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.6rem; margin-bottom: 1.1rem; }
.file-help__grid li { display: flex; align-items: baseline; gap: .7rem; color: var(--ink); font-size: .95rem; }
.tagpill {
  flex: none; display: inline-block; background: var(--red); color: var(--cream); font-weight: 900;
  font-size: .68rem; letter-spacing: .06em; padding: .28rem .6rem; border-radius: 999px; min-width: 52px; text-align: center;
}
.file-help__note { margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.file-help__note strong { color: var(--deep-red); }
.file-help__note em { font-style: normal; font-weight: 700; color: var(--ink); }

/* Logo cards */
.logo-lib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.logo-lib__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.logo-lib__preview { display: grid; grid-template-columns: 1fr 1fr; height: 180px; }
.logo-lib__preview--single { grid-template-columns: 1fr; }
.logo-lib__swatch { display: grid; place-items: center; padding: 1.2rem; }
.logo-lib__swatch img { max-width: 78%; max-height: 110px; width: auto; }
.logo-lib__swatch--dark { box-shadow: inset 1px 0 0 rgba(0,0,0,.08); }
.logo-lib__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.logo-lib__body h3 { font-size: 1.4rem; }
.logo-lib__use { color: var(--ink-soft); margin: .2rem 0 .5rem; font-size: .94rem; }
.badge-flag {
  align-self: flex-start; display: inline-block; margin: 0; font-weight: 900; text-transform: uppercase;
  letter-spacing: .06em; font-size: .68rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--gold); color: var(--deep-red);
}
.badge-flag--alt { background: rgba(74,52,38,.1); color: var(--brown); }
.dl-groups { display: grid; gap: .9rem; margin-top: .2rem; }
.dl-group__label { display: block; font-weight: 900; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--brown); margin-bottom: .45rem; }
.dl-group__label em { font-style: normal; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }
.dl-group__btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.logo-lib__note { margin: auto 0 0; padding-top: .9rem; font-size: .82rem; color: var(--ink-soft); font-style: italic; border-top: 1px dashed var(--line); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--deep-red); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.footer-brand img { width: 84px; margin-bottom: 1rem; }
.footer-tag { font-size: 1.4rem; color: var(--cream); font-weight: 500; line-height: 1.3; max-width: 18ch; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { text-decoration: none; color: rgba(255,247,232,.85); font-weight: 700; font-size: .9rem; letter-spacing: .03em; width: fit-content; transition: color .2s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-meta p { color: rgba(255,247,232,.82); font-size: .92rem; margin: 0 0 .6rem; }
.footer-meta strong { color: var(--cream); }
.footer-fine { font-size: .82rem !important; color: rgba(255,247,232,.6) !important; font-style: italic; }
.footer-rule {
  border-top: 1px solid rgba(255,247,232,.2); padding: 1.2rem 0; text-align: center;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem;
  color: rgba(255,247,232,.9); display: flex; align-items: center; justify-content: center; gap: .8rem;
}

/* ============================================================
   FLOATING UI
   ============================================================ */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: var(--cream); border: 2px solid var(--gold); font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--deep-red); }

.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px); z-index: 120;
  background: var(--brown); color: var(--cream); padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease; border: 1.5px solid var(--gold);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-grid__item img, .app-card img { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .logo-primary { grid-template-columns: 1fr; }
  .logo-primary__stage { order: -1; }
  .app-gallery { grid-template-columns: repeat(2, 1fr); }
  .app-card--feature { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  .app-domains, .color-notes { grid-template-columns: repeat(2, 1fr); }
  .logo-lib { grid-template-columns: 1fr; max-width: 640px; }
  .naming__tiers { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero__mark { order: -1; justify-items: start; }
  .hero__mark img { width: min(200px, 46%); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 90; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep-red); padding: .6rem var(--gutter) 1.4rem; box-shadow: 0 20px 40px rgba(58,20,15,.35);
    transform: translateY(-120%); transition: transform .35s ease; border-bottom: 3px solid var(--gold);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav a { padding: .9rem .4rem; font-size: .95rem; border-bottom: 1px solid rgba(255,247,232,.12); }
  .primary-nav a::after { display: none; }
  .primary-nav .nav-cta { margin: .9rem 0 0; text-align: center; border-radius: 999px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .pillars { grid-template-columns: 1fr; }
  .bg-swatches { grid-template-columns: repeat(2, 1fr); }
  .secondary-grid { grid-template-columns: 1fr; }
  .badge-versions__grid { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(2, 1fr); }
  .signal__chips { flex-direction: column; }
  .signal__plus { display: none; }
  .specimen { grid-template-columns: 1fr; gap: 1.2rem; }
  .do-avoid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .photo-grid__item--wide { grid-column: span 2; }
  .photo-grid__item--tall { grid-row: auto; }
  .phrases { grid-template-columns: 1fr; }
  .naming__tiers { grid-template-columns: 1fr; }
  .naming__examples { grid-template-columns: 1fr; }
  .file-help__grid { grid-template-columns: 1fr; }
  .btn--file { padding: .62rem 1.1rem; }  /* comfier tap target on mobile */
  .color-notes, .app-domains { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .get-all { flex-direction: column; align-items: flex-start; }
  .brand-lockup__mark { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .app-gallery { grid-template-columns: 1fr; }
  .app-card--feature { grid-column: auto; }
  .hero__actions .btn, .get-all .btn { width: 100%; justify-content: center; }
  .hero__actions { width: 100%; }
}
