:root{
  --bg:#FAFAF6;
  --ink:#171512;
  --accent:#1C6AB4;
  --accent-dark:#12507F;
  --paper-line:#E4DFD3;
  --muted:#6E6A60;
  --card-bg:#FFFFFE;
  --maxw:1080px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Source Sans 3', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--accent); color:#fff; padding:12px 20px; font-weight:700; text-decoration:none;
}
.skip-link:focus{ left:12px; top:12px; }
a:focus-visible, button:focus-visible, textarea:focus-visible{
  outline:2px solid var(--accent); outline-offset:3px;
}

body::before{
  content:"";
  position:fixed; inset:0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.035) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events:none;
  z-index:0;
}

/* ---------- HEADER / NAV ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,250,246,0.9);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--paper-line);
}
.headbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px; max-width:var(--maxw); margin:0 auto; gap:20px;
}
.wordmark{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:900; font-size:22px; letter-spacing:0.02em;
  text-transform:uppercase; text-decoration:none; flex-shrink:0;
}
.wordmark span{color:var(--accent);}
nav.primary-nav{display:flex; gap:26px; font-size:14px; font-weight:600; margin-right:auto; margin-left:36px;}
nav.primary-nav a{text-decoration:none; opacity:0.72; transition:opacity .15s; white-space:nowrap;}
nav.primary-nav a:hover{opacity:1;}
nav.primary-nav a.active{opacity:1; border-bottom:2px solid var(--accent); padding-bottom:2px;}
.hamburger{
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; padding:0; flex-shrink:0;
  border:2px solid var(--ink); background:transparent; border-radius:2px; cursor:pointer;
}
.hamburger span{ display:block; height:2px; width:18px; margin:0 auto; background:var(--ink); transition:transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.mobile-nav{
  display:none; flex-direction:column;
  max-height:0; overflow:hidden;
  background:var(--bg); border-bottom:1px solid var(--paper-line);
  transition: max-height .25s ease;
}
.mobile-nav.open{ max-height:360px; }
.mobile-nav a{
  padding:16px 28px; font-weight:600; font-size:15px; text-decoration:none;
  border-top:1px solid var(--paper-line);
}
.mobile-nav a.active{ color:var(--accent); }
@media (max-width:760px){
  nav.primary-nav{display:none;}
  .hamburger{display:flex;}
  .mobile-nav{display:flex;}
  .headbar .btn.accent{display:none;}
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 28px;
  font-weight:700; font-size:15px;
  border-radius:2px;
  border:2px solid var(--ink);
  background:var(--ink); color:var(--bg);
  text-decoration:none; cursor:pointer;
  transition:transform .15s ease, background .15s ease;
  font-family:inherit;
}
.btn:hover{transform:translateY(-2px);}
.btn.ghost{background:transparent; color:var(--ink);}
.btn.accent{background:var(--accent); border-color:var(--accent); color:#fff;}

/* ---------- HERO (home) ---------- */
.hero{
  position:relative;
  padding:96px 28px 80px;
  max-width:var(--maxw); margin:0 auto;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}
.hero-content{ flex:1; min-width:0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--accent);
  margin-bottom:22px;
}
.eyebrow::before{content:"●"; font-size:8px;}
h1.hero-title{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:900; text-transform:uppercase; line-height:0.92;
  font-size:clamp(48px, 7.5vw, 108px);
  color:var(--ink);
}
h1.hero-title .stroke{
  -webkit-text-stroke: 2px var(--ink);
  color:transparent;
}
.hero-sub{
  max-width:560px;
  font-size:19px;
  line-height:1.55;
  color:#3A3730;
  margin-top:26px;
}
.hero-cta-row{
  margin-top:38px;
  display:flex; gap:16px; flex-wrap:wrap; align-items:center;
}

/* Rotating stamp — normal flow flex item (not absolutely positioned), so it can
   never lose its container and jump around at narrow widths. */
.stamp-deco{
  position:relative;
  flex-shrink:0;
  width:260px; height:260px;
}
.stamp-ring{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  animation: spin 26s linear infinite;
  opacity:0.9;
}
.stamp-ring svg{width:100%; height:100%;}
.stamp-balance{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:36%; height:auto; object-fit:contain;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .stamp-ring{animation:none;} }

@media (max-width:900px){
  .hero{ flex-direction:column; text-align:left; gap:28px; padding-top:56px; }
  .stamp-deco{ width:170px; height:170px; align-self:center; order:-1; }
}

/* ---------- PAGE HEADER (subpages) ---------- */
.page-header{
  padding:64px 28px 44px;
  max-width:var(--maxw); margin:0 auto;
  border-bottom:2px solid var(--ink);
  position:relative; z-index:1;
}
.page-header h1{
  font-family:'Big Shoulders Display', sans-serif;
  font-weight:900; text-transform:uppercase; line-height:0.92;
  font-size:clamp(38px, 7vw, 72px);
  color:var(--ink);
}
.page-header h1 .accent-text{ color:var(--accent); }
.page-header p{ max-width:600px; font-size:17px; line-height:1.6; color:#3A3730; margin-top:16px; }

/* ---------- SECTIONS ---------- */
.section{
  padding:70px 28px;
  max-width:var(--maxw); margin:0 auto;
  position:relative; z-index:1;
}
.section-head{
  display:flex; align-items:baseline; gap:16px; margin-bottom:38px;
  border-bottom:2px solid var(--ink); padding-bottom:16px;
}
.section-num{ font-family:'Big Shoulders Display'; font-weight:900; font-size:15px; color:var(--accent); }
.section-title{ font-family:'Big Shoulders Display'; font-weight:900; text-transform:uppercase; font-size:clamp(26px,4vw,38px); }

/* ---------- VALUES GRID ---------- */
.values-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--paper-line); border:1px solid var(--paper-line);
}
@media (max-width:760px){ .values-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:480px){ .values-grid{grid-template-columns:1fr;} }
.value-card{
  background:var(--bg); padding:30px 24px; min-height:170px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.value-num{ font-family:'Big Shoulders Display'; font-weight:900; font-size:34px; -webkit-text-stroke:1px var(--muted); color:transparent;}
.value-name{ font-weight:700; font-size:18px; margin-top:14px; }
.value-desc{ font-size:14.5px; color:var(--muted); margin-top:6px; line-height:1.5;}

/* ---------- GENERATOR (card page) ---------- */
.generator{
  background:var(--ink); color:var(--bg);
  padding:60px 28px 70px;
  position:relative; z-index:1;
}
.generator .wrap{ max-width:var(--maxw); }
.generator .section-head{ border-bottom-color:#3a372f; }
.generator .section-title{ color:var(--bg); }
.generator .section-num{ color:var(--accent); }
.gen-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
@media (max-width:820px){ .gen-grid{grid-template-columns:1fr; gap:40px;} }
.gen-form label{
  display:block; font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:#B8B4A8; margin-bottom:10px;
}
.gen-form textarea{
  width:100%; min-height:90px; resize:vertical;
  background:#211E19; border:1px solid #3a372f; color:var(--bg);
  padding:16px; font-family:'Source Sans 3'; font-size:16px; border-radius:2px;
  line-height:1.5;
}
.gen-form textarea:focus{ outline:2px solid var(--accent); outline-offset:2px; }
.char-count{ font-size:12px; color:#8A8677; margin-top:8px; }
.gen-form .btn{ margin-top:22px; width:100%; justify-content:center; }

.card-preview-wrap{ display:flex; justify-content:center; }
#cardCanvas{
  width:100%; max-width:380px; height:auto;
  border-radius:6px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.card-actions{ display:flex; gap:12px; margin-top:18px; justify-content:center; flex-wrap:wrap; }
.card-actions .btn{ padding:11px 20px; font-size:13.5px; }

.theme-picker{ display:flex; gap:10px; margin-top:18px; }
.theme-swatch{
  width:34px; height:34px; border-radius:50%; cursor:pointer;
  border:2px solid transparent; padding:0;
}
.theme-swatch[aria-pressed="true"]{ border-color:#fff; }
.theme-swatch.t-forest{ background:#1F5C3F; }
.theme-swatch.t-cobalt{ background:#1D4E9B; }

/* ---------- MOMENTUM STRIP (home) ---------- */
.momentum{
  padding:60px 28px;
  max-width:var(--maxw); margin:0 auto;
  position:relative; z-index:1;
}
.momentum-strip{
  display:flex; gap:0; flex-wrap:wrap;
  border-top:2px solid var(--ink); border-bottom:2px solid var(--ink);
}
.momentum-item{
  flex:1; min-width:150px;
  padding:26px 20px;
  border-right:1px solid var(--paper-line);
}
.momentum-item:last-child{ border-right:none; }
@media (max-width:600px){
  .momentum-strip{ flex-direction:column; }
  .momentum-item{
    border-right:none; border-bottom:1px solid var(--paper-line);
    width:100%;
  }
  .momentum-item:last-child{ border-bottom:none; }
}
.momentum-value{ font-family:'Big Shoulders Display'; font-weight:900; font-size:40px; color:var(--accent); }
.momentum-label{ font-size:13px; color:var(--muted); margin-top:4px; font-weight:600; }
.momentum-note{ font-size:14px; color:var(--muted); margin-top:20px; max-width:640px; line-height:1.6; }

/* ---------- STEPS ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
@media (max-width:760px){ .steps{grid-template-columns:1fr;} }
.step{ border-left:3px solid var(--accent); padding-left:20px; }
.step-num{ font-family:'Big Shoulders Display'; font-weight:900; font-size:15px; color:var(--accent); letter-spacing:0.05em;}
.step-title{ font-weight:700; font-size:19px; margin-top:8px; }
.step-desc{ font-size:14.5px; color:var(--muted); margin-top:8px; line-height:1.55; }

/* ---------- VIDEO GRID ---------- */
.video-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.video-filter{
  padding:9px 18px; border:1.5px solid var(--ink); border-radius:20px;
  background:transparent; font-weight:700; font-size:13.5px; cursor:pointer; font-family:inherit;
}
.video-filter[aria-pressed="true"]{ background:var(--ink); color:var(--bg); }
.video-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
@media (max-width:900px){ .video-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .video-grid{grid-template-columns:1fr;} }
.video-card{
  border:1px solid var(--paper-line); background:var(--card-bg);
  cursor:pointer; text-align:left; font-family:inherit;
  display:flex; flex-direction:column; overflow:hidden; border-radius:4px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.video-card:hover{ transform:translateY(-3px); box-shadow:0 16px 30px -14px rgba(0,0,0,0.25); }
.video-thumb{
  aspect-ratio:9/13; background:linear-gradient(155deg,#211E19,#171512);
  position:relative; display:flex; align-items:center; justify-content:center;
}
.video-thumb .play-btn{
  width:56px; height:56px; border-radius:50%; background:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.video-thumb .play-btn::after{
  content:""; border-style:solid; border-width:9px 0 9px 15px;
  border-color:transparent transparent transparent #fff; margin-left:4px;
}
.video-thumb .video-tag{
  position:absolute; top:12px; left:12px;
  font-size:11px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
  background:rgba(250,250,246,0.15); color:#fff; padding:5px 10px; border-radius:20px;
}
.video-thumb .video-status{
  position:absolute; bottom:12px; right:12px;
  font-size:10.5px; font-weight:700; color:#B8B4A8;
}
.video-meta{ padding:16px 18px 20px; }
.video-title{ font-weight:700; font-size:15.5px; line-height:1.35; }
.video-desc{ font-size:13.5px; color:var(--muted); margin-top:6px; line-height:1.5; }

.video-modal{
  position:fixed; inset:0; background:rgba(10,9,8,0.88);
  display:none; align-items:center; justify-content:center; z-index:150; padding:24px;
}
.video-modal.open{ display:flex; }
.video-modal-box{
  background:var(--ink); color:var(--bg); max-width:420px; width:100%;
  border-radius:6px; padding:28px; position:relative;
}
.video-modal-close{
  position:absolute; top:14px; right:14px; background:none; border:none; color:var(--bg);
  font-size:22px; cursor:pointer; line-height:1;
}
.video-modal-frame{
  aspect-ratio:9/16; width:100%; background:#0F0D0B; border-radius:4px;
  display:flex; align-items:center; justify-content:center; text-align:center; padding:24px;
  color:#B8B4A8; font-size:14px; line-height:1.6;
}
.video-modal-title{ font-weight:700; font-size:18px; margin-top:18px; }
.video-modal-desc{ font-size:14px; color:#B8B4A8; margin-top:8px; line-height:1.55; }

/* ---------- FAQ ---------- */
.faq-list{ max-width:760px; border-top:1px solid var(--paper-line); }
.faq-item{ border-bottom:1px solid var(--paper-line); }
.faq-q{
  width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px;
  background:none; border:none; text-align:left; cursor:pointer;
  padding:20px 4px; font-size:16.5px; font-weight:700; color:var(--ink); font-family:'Source Sans 3';
}
.faq-icon{ font-size:22px; color:var(--accent); font-weight:400; transition:transform .2s ease; flex-shrink:0; }
.faq-q[aria-expanded="true"] .faq-icon{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a p{ padding:0 4px 20px; font-size:15px; line-height:1.6; color:var(--muted); max-width:640px; }

/* ---------- FOOTER ---------- */
footer{
  border-top:2px solid var(--ink);
  padding:44px 28px 36px;
  position:relative; z-index:1;
}
footer .wrap{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; }
.foot-transparency{
  font-size:13px; color:var(--muted); max-width:480px; line-height:1.6;
}
.foot-col-title{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); margin-bottom:12px; }
.foot-links{ display:flex; flex-direction:column; gap:10px; font-size:13.5px; font-weight:600; }
.foot-links a{ text-decoration:none; opacity:0.85; }
.foot-social{ display:flex; gap:10px; }
.social-pill{
  font-size:13px; font-weight:700; padding:8px 16px;
  border:1.5px solid var(--ink); border-radius:20px; text-decoration:none;
}
.foot-bottom{ margin-top:32px; padding-top:20px; border-top:1px solid var(--paper-line); font-size:12.5px; color:var(--muted); }

/* ---------- TOAST ---------- */
.toast{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(20px);
  background:var(--ink); color:var(--bg);
  padding:14px 24px; border-radius:4px; font-size:14px; font-weight:600;
  opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease;
  z-index:100; box-shadow:0 10px 30px rgba(0,0,0,0.3);
  max-width:90vw; text-align:center;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ---------- ABOUT PAGE EXTRAS ---------- */
.prose{ max-width:720px; font-size:16px; line-height:1.75; color:#3A3730; }
.prose + .prose{ margin-top:18px; }
