/* Page-local styles for thanford.com
   Applies Glyphew DS tokens to the Thanford LLC marketing site.
   All color values must use var(--gw-*) — no hardcoded hex. */

/* ── Display type scale (not in shared DS — page-local overrides) ── */
:root {
  --fs-display-72: clamp(48px, 6vw, 72px);
  --fs-display-56: clamp(40px, 5vw, 56px);
  --fs-display-48: clamp(36px, 4vw, 48px);
  --fs-display-42: clamp(32px, 4vw, 42px);
  --fs-display-36: clamp(28px, 3vw, 36px);
}

/* ── Visited link override (global DS dims visited links; unwanted on marketing page) ── */
.site-nav a:visited,
.site-footer a:visited {
  opacity: 1;
}

/* ── Combo demo pulse animation ── */
@keyframes combo-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1;   }
}
.combo-pulse {
  animation: combo-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .combo-pulse { animation: none; }
}

/* ── Orb (added by orb.js — styles declared here so they load before JS) ── */
#glyphew-orb {
  position: fixed;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gw-surface);
  border: 1.5px solid var(--gw-accent);
  cursor: pointer;
  z-index: 50;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#glyphew-orb:hover {
  border-width: 2.5px;
}
#glyphew-orb img {
  width: 60%;
  height: 60%;
  pointer-events: none;
}
@media (max-width: 600px) {
  #glyphew-orb {
    width: 40px;
    height: 40px;
  }
}

/* ────────────────────────────────────────────────────────────────────
   Page layout — translated from design handoff Thanford LLC.html
   All hardcoded hex values mapped to var(--gw-*) tokens.
   ──────────────────────────────────────────────────────────────────── */

/* ── Page scaffold ── */
*, *::before, *::after { box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Top nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 8, 37, 0.85);
  border-bottom: 1px solid var(--gw-border);
  backdrop-filter: none; /* DS rule: no blur */
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gw-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
}
.brand:hover { color: var(--gw-text); text-decoration: none; }
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}
.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--gw-text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--gw-text); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gw-accent);
  color: var(--gw-on-primary);
  padding: 10px 18px;
  border-radius: var(--gw-radius);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 120ms ease-out;
}
.nav-cta:hover { background: var(--gw-accent-hover); color: var(--gw-on-primary); text-decoration: none; }

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 22px; height: 22px; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 120px 0 110px;
  border-bottom: 1px solid var(--gw-border);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gw-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gw-accent);
}
.hero h1 {
  font-size: var(--fs-display-72);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gw-accent);
}
.hero p.lede {
  font-size: 22px;
  color: var(--gw-text-muted);
  line-height: 1.5;
  max-width: 540px;
  margin: 0 0 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* hero side panel — quiet stat block, no gradients */
.hero-side {
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  background: var(--gw-surface);
  padding: 36px;
  display: grid;
  gap: 28px;
}
.hero-side-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gw-border);
}
.hero-side-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-side-label {
  color: var(--gw-text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.hero-side-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--gw-text);
  letter-spacing: -0.01em;
}
.hero-side-value.accent { color: var(--gw-accent); }
.hero-side-sub {
  grid-column: 1 / -1;
  color: var(--gw-text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: -12px 0 0;
}

/* watermark mark behind hero */
.hero-watermark {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 720px;
  height: 720px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* ── Section base ── */
section {
  padding: 110px 0;
  border-bottom: 1px solid var(--gw-border);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .kicker {
  color: var(--gw-text-dim);
  margin-bottom: 14px;
}
.section-head .kicker::before { display: none; }
.section-title {
  font-size: var(--fs-display-48);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--gw-text);
}
.section-title em {
  font-style: normal;
  color: var(--gw-accent);
}
.section-blurb {
  color: var(--gw-text-muted);
  font-size: 19px;
  line-height: 1.55;
  max-width: 600px;
  margin: 0;
}

/* ── Principles grid ── */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gw-border);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  overflow: hidden;
}
.principle {
  background: var(--gw-surface);
  padding: 36px 32px;
  transition: background-color 120ms ease-out;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.principle:hover { background: var(--gw-surface-hover); }
.principle-num {
  color: var(--gw-text-dim);
  font-family: var(--gw-font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
}
.principle h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--gw-text);
  letter-spacing: -0.01em;
}
.principle p {
  color: var(--gw-text-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

/* ── Glyphew product card ── */
.product {
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  background: var(--gw-surface);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.product-copy {
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gw-text-muted);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
.product-meta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gw-accent);
}
.product h2 {
  font-size: var(--fs-display-56);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--gw-text);
  margin: 0;
}
.product .tagline {
  color: var(--gw-accent);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.product p.body {
  color: var(--gw-text-muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 480px;
}
.product-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.product-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--gw-text);
  font-size: 16px;
  line-height: 1.45;
}
.product-list .icon {
  width: 22px;
  height: 22px;
  color: var(--gw-accent);
  margin-top: 2px;
}
.product-list li p { margin: 0; }
.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* product visual side — combo input demo */
.product-visual {
  background: var(--gw-bg);
  border-left: 1px solid var(--gw-border);
  padding: 56px;
  display: grid;
  place-items: center;
  position: relative;
}
/* Homepage Video-category mock with central next-window combo */
.hp-frame {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  background: var(--gw-surface);
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
}
.hp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}
.hp-kind {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gw-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hp-kind-glyph {
  color: var(--gw-accent);
  font-size: 11px;
}
.hp-dots {
  display: inline-flex;
  gap: 6px;
}
.hp-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gw-border-strong);
}
.hp-dots i.on {
  background: var(--gw-accent);
}
.hp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 6px;
  place-items: center;
}
.hp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
}
.hp-tile {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--brand, var(--gw-surface-raised));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}
.hp-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gw-text);
  white-space: nowrap;
}
.hp-label--accent {
  color: var(--gw-accent);
}
.hp-caption {
  margin-top: 16px;
  padding: 0 4px;
  color: var(--gw-accent);
  font-size: 12px;
  font-family: var(--gw-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hp-caption .dot {
  width: 6px;
  height: 6px;
  background: var(--gw-accent);
  border-radius: 50%;
  animation: combo-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Timeline ── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: tl;
}
.tl-item {
  border-top: 1px solid var(--gw-border);
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl-year {
  font-family: var(--gw-font-mono);
  font-size: 13px;
  color: var(--gw-accent);
  letter-spacing: 0.12em;
}
.tl-item h4 {
  color: var(--gw-text);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.tl-item p {
  color: var(--gw-text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ── About / facts ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-prose p {
  color: var(--gw-text-muted);
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.about-prose p:first-child::first-letter {
  font-size: 64px;
  line-height: 1;
  float: left;
  color: var(--gw-accent);
  padding: 6px 12px 0 0;
  font-weight: 700;
}
.facts {
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  background: var(--gw-surface);
}
.fact-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--gw-border);
  align-items: baseline;
}
.fact-row:last-child { border-bottom: 0; }
.fact-key {
  color: var(--gw-text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.fact-val {
  color: var(--gw-text);
  font-size: 17px;
  font-weight: 500;
}
.fact-val a { color: var(--gw-accent); }

/* ── Contact band ── */
.contact-band {
  background: var(--gw-accent);
  color: var(--gw-on-primary);
  border: 0;
  border-radius: 0;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.contact-band .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact-band h2 {
  color: var(--gw-on-primary);
  font-size: var(--fs-display-56);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 20px;
}
.contact-band p {
  color: var(--gw-on-primary);
  opacity: 0.78;
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
  max-width: 460px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gw-on-primary);
  color: var(--gw-accent);
  padding: 22px 26px;
  border-radius: var(--gw-radius);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background-color 120ms ease-out;
}
.contact-link:hover {
  background: var(--gw-bg);
  color: var(--gw-accent);
  text-decoration: none;
}
.contact-link .icon {
  width: 22px;
  height: 22px;
  color: var(--gw-accent);
}
.contact-link small {
  display: block;
  color: var(--gw-text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-watermark {
  position: absolute;
  left: -180px;
  bottom: -180px;
  width: 600px;
  height: 600px;
  opacity: 0.08;
  pointer-events: none;
}

/* ── Footer ── */
footer.foot {
  background: var(--gw-bg);
  padding: 56px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot-col h5 {
  color: var(--gw-text-dim);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 16px;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.foot-col a {
  color: var(--gw-text-muted);
  font-size: 14px;
}
.foot-col a:hover {
  color: var(--gw-accent);
  text-decoration: none;
}
.foot-brand {
  margin-bottom: 14px;
}
.foot-brand-line {
  color: var(--gw-text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 320px;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--gw-border);
  color: var(--gw-text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.foot-bolt {
  color: var(--gw-accent);
  vertical-align: -3px;
  display: inline-block;
  margin-right: 4px;
}
.foot-bottom .icon {
  vertical-align: -3px;
  display: inline-block;
  margin-right: 4px;
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .hero h1 { font-size: var(--fs-display-56); }
  .hero-grid,
  .product,
  .about,
  .contact-band .wrap { grid-template-columns: 1fr; }
  .product-visual {
    border-left: 0;
    border-top: 1px solid var(--gw-border);
  }
  .product-copy,
  .product-visual { padding: 40px; }
  .principles,
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 80px 0 70px; }
  .hero h1 { font-size: var(--fs-display-42); }
  .section-title,
  .product h2,
  .contact-band h2 { font-size: var(--fs-display-36); }
  section { padding: 72px 0; }
  .principles,
  .timeline { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; gap: 12px; }
  .product-copy,
  .product-visual { padding: 28px; }
  .wrap { padding: 0 20px; }
}
