/* ============================================================
   EYEWITNESS — eye-witness.org
   Design system. Brand: gold #C2743B, grey #3E3C38 (from
   "Eyewitness font colours" brand doc + live-site probe).
   Type: Montserrat (headings/nav, caps) + Lato (body) —
   as on the current live site.
   ============================================================ */

:root {
  --gold: #C2743B;
  --gold-dark: #A8622F;
  --ink: #3E3C38;
  --ink-soft: #5C594F;
  --paper: #FFFFFF;
  --cream: #F7F2EC;
  --line: #E6DED2;
  --max: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

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

/* ---------- Header ---------- */

.site-header {
  background: var(--gold);
  padding: 28px 0 26px;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo img { height: 58px; width: auto; }

/* Tall masthead variant (Home): nav up top, big wordmark splash below.
   Sized so band + hero split the first screen roughly in half. */
.site-header--tall { padding: 24px 0 30px; min-height: 42vh; display: flex; }
.site-header--tall .wrap { display: flex; flex-direction: column; width: 100%; }
.site-header--tall .site-nav { justify-content: center; }
.site-header--tall .logo { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 0 24px; }
.site-header--tall .logo img {
  height: auto;
  width: min(740px, 90%);
}

.hero--half { min-height: 46vh; display: flex; align-items: center; padding: 44px 0; }
.hero--half .wrap { width: 100%; }

/* Page-word masthead (inner pages): nav up top, branded title graphic below */
.site-header--page { padding: 24px 0 42px; }
.site-header--page .wrap { display: block; }
.site-header--page .site-nav { justify-content: center; margin-bottom: 38px; }
.page-word { text-align: center; line-height: 0; }
.page-word img {
  display: inline-block;
  height: clamp(54px, 8vw, 92px);
  width: auto;
  max-width: 84%;
  object-fit: contain;
}
/* Words without descenders fill their image edge-to-edge, so at equal CSS
   height their letters render ~26% larger. Compensate per measured ratios
   so every page word's letters match mission plan's. */
.page-word img.word--no-descender {
  height: clamp(43px, 6.3vw, 73px);
  /* descender-less words get the descender's depth back as margin, so the
     space from baseline to band bottom is equal on every page */
  margin-bottom: clamp(12px, 1.8vw, 21px);
}

/* Live-text page word in the brand face (Yeseva One, the wordmark font)
   for pages with no ready-made graphic. Ink sampled from the graphics. */
.page-word-text {
  font-family: 'Yeseva One', serif;
  /* sized so ascender-to-baseline (0.70em for this word) matches the
     graphics' letter height; tracking tightened to match their typesetting.
     The box is cropped to the glyphs (like the tight-cropped PNGs): height
     .70em with the glyph run shifted up by the measured leading (.2195em). */
  font-size: clamp(60px, 8.9vw, 102px);
  line-height: 1.05;
  color: #1D1D1B;
  letter-spacing: -0.05em;
  display: inline-block;
  height: .70em;
  position: relative;
  top: -.2195em;
  margin-bottom: .197em; /* matching descender-depth compensation */
}
.page-word-text .wi { color: #fff; }

/* Slim gold band carrying a branded word (e.g. join us) */
.word-band { background: var(--gold); padding: 36px 0; text-align: center; }
.word-band img {
  display: inline-block;
  height: clamp(46px, 6.5vw, 76px);
  width: auto;
  max-width: 80%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: rgba(255,255,255,.6); color: #fff; }
.site-nav a.active { border-bottom-color: #fff; }

.site-nav a.nav-cta {
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 9px 16px 8px;
}
.site-nav a.nav-cta:hover { background: #fff; color: var(--gold); }
.site-nav a.nav-cta.active { background: #fff; color: var(--gold); }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: 'Montserrat', sans-serif; }

h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gold);
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 20px; line-height: 1.65; color: var(--ink-soft); }

.kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 26px 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
}

blockquote cite { display: block; font-style: normal; font-size: 14px; margin-top: 8px; }

ul.plain { list-style: none; }
ul.tick { list-style: none; }
ul.tick li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
}
ul.tick li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Sections ---------- */

section { padding: clamp(52px, 7vw, 88px) 0; }
section.tight { padding: clamp(36px, 5vw, 56px) 0; }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h2 { color: #fff; }
.bg-ink .lede { color: rgba(255,255,255,.85); }
.bg-gold { background: var(--gold); color: #fff; }
.bg-gold h2 { color: #fff; }

.center { text-align: center; }

/* ---------- Hero ---------- */

.hero { padding: clamp(60px, 9vw, 110px) 0; text-align: center; }
.hero h1 { margin-bottom: 26px; }
.hero .lede { max-width: 640px; margin: 0 auto 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 15px 30px 14px;
  border-radius: 3px;
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: #fff; }

.btn--white { background: #fff; color: var(--gold); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }

.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Cards / doors ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}

.door {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  padding: 34px 30px 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.door h3 { color: var(--gold); }
.door p { font-size: 16px; flex: 1; }
.door .door-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-top: 18px;
}

/* ---------- Split rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.split .img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Photo band ---------- */

.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.photo-band img { width: 100%; height: 300px; object-fit: cover; }

.photo-credit {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .4px;
  margin-top: 10px;
  text-align: right;
}

/* ---------- Anchors (three ways we remember) ---------- */

.anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
  text-align: left;
}
.anchor { border-top: 2px solid var(--gold); padding-top: 18px; }
.anchor h3 { color: var(--ink); }
.anchor p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Tiers ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
  align-items: stretch;
}

.tier {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.tier--lead { border: 2px solid var(--gold); position: relative; }

.tier .tier-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 5px 14px 4px;
  border-radius: 2px;
  white-space: nowrap;
}

.tier h3 { color: var(--gold); font-size: 19px; }
.tier .tier-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.tier ul.tick { flex: 1; }
.tier ul.tick li { font-size: 15.5px; }

/* ---------- Phases ---------- */

.phase { border-left: 3px solid var(--gold); padding: 4px 0 4px 30px; margin-bottom: 40px; }
.phase:last-child { margin-bottom: 0; }
.phase .kicker { color: var(--gold); margin-bottom: 6px; }
.phase h3 { font-size: 20px; }

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  max-width: 640px;
  margin: 40px auto 0;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--ink-soft);
}

input[type=text], input[type=email], select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.checkline input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--gold); flex-shrink: 0; }

.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 16px; line-height: 1.6; }

/* ---------- Research page ---------- */

.study {
  border: 1px solid var(--line);
  background: #fff;
  padding: 28px 30px;
  margin-bottom: 22px;
}
.study h3 { margin-bottom: 6px; }
.study h3 a { color: var(--ink); }
.study h3 a:hover { color: var(--gold); }
.study p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 0; }
.study .src {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  padding: 56px 0 40px;
  font-size: 14.5px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer img { height: 34px; width: auto; margin-bottom: 16px; }

.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255,255,255,.8);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.footer-nav a:hover { color: #fff; }

.footer-meta { margin-top: 26px; font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.9; }
.footer-meta a { color: rgba(255,255,255,.7); }

/* ---------- Responsive ---------- */

/* Mobile nav: the links live behind a hamburger (three lines, top right).
   Pure CSS checkbox toggle — no JavaScript. Desktop is untouched. */
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 860px) {
  .doors, .anchors, .tiers { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .photo-band { grid-template-columns: 1fr; }
  .photo-band img { height: 240px; }
  .form-grid { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; }
  .site-header--tall { min-height: 0; }
  .hero--half { min-height: 0; }

  .site-header { position: relative; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    top: 18px;
    right: 16px;
    z-index: 30;
    padding: 10px;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav { display: none; }
  .nav-toggle:checked ~ .site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    padding: 40px 0 10px;
  }
  .site-nav a { padding: 9px 12px 7px; border-bottom: none; }
  .site-nav a.active { border-bottom: none; text-decoration: underline; text-underline-offset: 5px; }
  .site-nav a.nav-cta { margin-top: 8px; }
  .site-header--page .site-nav { margin-bottom: 18px; }
}
