/* ─── HALFTONE DESIGN TOKENS ─── */
:root {
  --ht-bg:          #ECEAE0;
  --ht-ink:         #2A2A28;
  --ht-ink-mid:     #3C3C3A;
  --ht-accent:      #3454D1;
  --ht-accent-sage: #9BC1BC;
  --ht-ink-raw:     42, 42, 40;
  --ht-bg-raw:      236, 234, 224;
  --ht-cell:        6px;
  --ht-dot-sm:      1px;
  --ht-dot-md:      2.2px;
  --ht-dot-lg:      4.5px;
  --font-display: "Anton", Impact, "Arial Black", sans-serif;
  --font-ui:      "Barlow Condensed", "Franklin Gothic Medium", Arial, sans-serif;
  --font-body:    "Barlow", Arial, sans-serif;
  /* Legacy aliases */
  --brand-blue: #3454D1;
  --brand-sage: #9BC1BC;
  --text-cream: #ECEAE0;
  --font-title: "Anton", Impact, "Arial Black", sans-serif;
  --font-text:  "Barlow", Arial, sans-serif;
}

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

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

html {
  height: 100%;
  background: var(--ht-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  scrollbar-color: var(--ht-ink) var(--ht-bg);
  scrollbar-width: thin;
}

body {
  background: transparent;
  color: var(--ht-ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ht-bg); }
::-webkit-scrollbar-thumb { background: var(--ht-ink); border: 2px solid var(--ht-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ht-ink-mid); }

#canvas-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── SITE NAV ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 58px;
  background: var(--ht-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  border-bottom: 2px solid var(--ht-ink);
}

.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand-logo { height: 36px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; gap: 0; margin: 0; padding: 0; align-self: stretch; }
.nav-links li { display: flex; align-items: stretch; margin: 0; }

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 100%;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ht-ink);
  border-left: 1px solid var(--ht-ink);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--ht-ink); color: var(--ht-bg); }

/* ─── MAIN CONTAINER ─── */
.container {
  width: 92%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 56px 0 80px;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* ─── PAGE HEADER ─── */
.page-header {
  margin-bottom: 48px;
  border-bottom: 2px solid var(--ht-ink);
  padding-bottom: 32px;
}

.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.page-title-block { display: flex; flex-direction: column; gap: 6px; }

.page-overline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ht-ink-mid);
  opacity: 0.7;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  text-transform: uppercase;
  color: var(--ht-ink);
  letter-spacing: -1px;
  line-height: 0.9;
  margin: 0;
}

h2 { font-weight: 600; }
h3 { font-weight: 600; }

.page-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ht-ink-mid);
  margin-top: 8px;
  opacity: 0.75;
}

.page-count {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--ht-ink);
  opacity: 0.08;
  letter-spacing: -0.5px;
  line-height: 1;
  text-transform: uppercase;
  align-self: flex-end;
  user-select: none;
}

/* ─── GRID & CARDS ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 2px solid var(--ht-ink);
}

@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── CARD THUMBNAIL ─── */
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  background-image: radial-gradient(circle, var(--ht-ink) var(--ht-dot-sm), transparent var(--ht-dot-sm));
  background-size: var(--ht-cell) var(--ht-cell);
  background-color: var(--ht-bg);
  border-bottom: 1.5px solid var(--ht-ink);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.card:hover .card-thumb img {
  transform: scale(1.04);
  filter: grayscale(1) contrast(1.4) invert(1);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-decoration: none;
  color: var(--ht-ink);
  background: var(--ht-bg);
  border-right: 2px solid var(--ht-ink);
  border-bottom: 2px solid var(--ht-ink);
  min-height: 240px;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}

.card-dot-strip {
  height: 40px;
  flex-shrink: 0;
  background-image: radial-gradient(circle, var(--ht-ink) var(--ht-dot-lg), transparent var(--ht-dot-lg));
  background-size: var(--ht-cell) var(--ht-cell);
  background-color: var(--ht-bg);
  opacity: 0.5;
  transition: opacity 0.15s, background-color 0.15s;
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0px;
  line-height: 1.05;
  color: var(--ht-ink);
  margin: 0;
  transition: color 0.15s;
}

.card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ht-ink-mid);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  transition: color 0.15s;
}

.card-arrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ht-accent);
  align-self: flex-end;
  margin-top: 12px;
  transition: transform 0.15s, color 0.15s;
  line-height: 1;
}

.card:hover { background: var(--ht-ink); }
.card:hover .card-dot-strip {
  background-image: radial-gradient(circle, var(--ht-bg) var(--ht-dot-lg), transparent var(--ht-dot-lg));
  background-color: var(--ht-ink);
  opacity: 0.35;
}
.card:hover h2 { color: var(--ht-bg); }
.card:hover p  { color: rgba(var(--ht-bg-raw), 0.75); }
.card:hover .card-arrow { transform: translate(4px, -4px); color: var(--ht-bg); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--ht-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  border-top: 2px solid var(--ht-ink);
  width: 100%;
  text-align: center;
  padding: 18px 24px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ht-ink);
  position: relative;
  z-index: 1;
}
.site-footer a, .footer-link { color: var(--ht-ink); text-decoration: none; transition: color 0.12s; }
.site-footer a:hover, .footer-link:hover { color: var(--ht-accent); text-decoration: underline; }
.separator { margin: 0 10px; opacity: 0.35; }

/* ─── PRIVACY PAGE ─── */
.privacy-page .container { max-width: 900px; }

.panel {
  background: var(--ht-bg);
  border: 2px solid var(--ht-ink);
  padding: 40px 48px;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background-image: radial-gradient(circle, var(--ht-ink) var(--ht-dot-md), transparent var(--ht-dot-md));
  background-size: var(--ht-cell) var(--ht-cell);
  background-color: var(--ht-bg);
  opacity: 0.5;
}

.privacy-page .panel h1,
.privacy-page .panel h2,
.privacy-page .panel h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--ht-ink);
}

.privacy-page .panel h1 { font-size: 2.4rem; letter-spacing: 0px; margin-bottom: 4px; }
.privacy-page .panel h2 { font-size: 1.2rem; letter-spacing: 0px; margin-top: 36px; margin-bottom: 12px; border-bottom: 1px solid var(--ht-ink); padding-bottom: 6px; }
.privacy-page .panel h3 { font-size: 1rem; letter-spacing: 0px; margin-top: 20px; }
.privacy-page .panel p, .privacy-page .panel li { font-family: var(--font-body); color: var(--ht-ink-mid); line-height: 1.7; margin-bottom: 8px; }
.privacy-page .panel ul { margin: 8px 0 16px 20px; }
.privacy-page .panel a { color: var(--ht-accent); text-decoration: underline; font-weight: 600; }
.privacy-page .panel a:hover { color: var(--ht-ink); }

.privacy-page .panel strong { color: var(--ht-ink); font-weight: 700; }

/* Privacy nav buttons */
.privacy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  justify-content: flex-start;
}

.privacy-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ht-ink);
  border: 2px solid var(--ht-ink);
  background: transparent;
  transition: background 0.12s, color 0.12s;
}

.privacy-nav a:hover {
  background: var(--ht-ink);
  color: var(--ht-bg);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card { min-height: 200px; }
  .panel { padding: 28px 24px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 3.5rem; letter-spacing: -0.5px; }
  .card { min-height: 160px; }
  .nav-link { padding: 0 12px; font-size: 0.72rem; letter-spacing: 1.5px; }
  .page-count { display: none; }
  .panel { padding: 20px 16px; }
}

@media (max-width: 420px) {
  .nav-link { padding: 0 10px; font-size: 0.7rem; letter-spacing: 1px; }
}

/* ─── FAQ SHARED ─── */
.faq {
  margin: 3rem auto 2rem;
  max-width: 720px;
}

.faq h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ht-ink);
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ht-ink);
}

.faq a { color: var(--ht-accent); text-decoration: underline; }
.faq a:hover { color: var(--ht-ink); }

.faq details {
  border-bottom: 1px solid rgba(var(--ht-ink-raw),0.15);
  margin-bottom: 0;
}

.faq details:last-child { border-bottom: none; }

.faq summary {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ht-ink);
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.15s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ht-ink);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 0 1rem;
  color: var(--ht-ink);
  opacity: 0.8;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ─── ABOUT PANEL ───
   Replaces the old "wall of text" bottom-of-page blocks (plain h2 + stacked
   paragraphs + a Read more toggle) with a structured card: a bordered header,
   one short lede, then either a quick-facts grid or numbered steps. Deeper
   content goes in a nested .faq accordion instead of a hidden paragraph. */
.about-panel {
  max-width: 900px;
  margin: 2.5rem auto;
  border: 2px solid var(--ht-ink);
  background: var(--ht-bg);
  box-shadow: 5px 5px 0 rgba(var(--ht-ink-raw), 0.15);
}

.about-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 2px solid var(--ht-ink);
  background-image: radial-gradient(circle, var(--ht-ink) 1px, transparent 1px);
  background-size: 6px 6px;
  background-color: var(--ht-bg);
}

.about-panel-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ht-ink);
  color: var(--ht-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
}

.about-panel-header h2 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ht-ink);
  background: var(--ht-bg);
  padding: 5px 12px;
  border: 1.5px solid var(--ht-ink);
  margin: 0;
}

.about-panel-body { padding: 28px; }

.about-panel-lede {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ht-ink);
  margin: 0 0 24px;
}
.about-panel-body > .about-panel-lede:last-child { margin-bottom: 0; }

.about-panel-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(var(--ht-ink-raw), 0.15);
  border: 1.5px solid rgba(var(--ht-ink-raw), 0.2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.about-fact {
  background: var(--ht-bg);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.about-fact-icon { flex-shrink: 0; font-size: 1.1rem; line-height: 1.3; }

.about-fact-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ht-ink);
  margin-bottom: 3px;
}

.about-fact-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ht-ink-mid);
}

.about-panel-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.about-panel-steps li {
  counter-increment: step;
  background: rgba(var(--ht-ink-raw),0.04);
  border: 1.5px solid rgba(var(--ht-ink-raw),0.18);
  border-radius: 8px;
  padding: 14px 16px 14px 44px;
  position: relative;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ht-ink-mid);
}
.about-panel-steps li strong { color: var(--ht-ink); }
.about-panel-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ht-ink);
  color: var(--ht-bg);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-panel .faq { margin: 0; max-width: none; }
.about-panel .faq h2 { display: none; }

@media (max-width: 700px) {
  .about-panel-header { padding: 14px 18px; }
  .about-panel-body { padding: 22px 18px; }
}
@media (max-width: 360px) {
  .nav-link { padding: 0 8px; letter-spacing: 0.5px; }
}
