/* ============================================================
   人才事務所 Talent Office — refined dark theme
   Brand: #1c1c1c dark base / #c9a84c gold accent
   ============================================================ */

/* Premium conversion pass */
.hero {
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 9% 6% auto auto;
  width: min(44vw, 620px);
  height: min(44vw, 620px);
  border: 1px solid rgba(230, 203, 130, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(201, 168, 76, 0.025), 0 0 100px rgba(201, 168, 76, 0.12);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  max-width: 820px;
}

.hero-copy {
  max-width: 620px;
  color: rgba(241, 235, 221, 0.78);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.9;
}

.hero h1 {
  letter-spacing: -0.025em;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

.contact-form {
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: 0 28px 80px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.1);
}

.form-intro {
  margin: 0 0 4px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

.form-button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.framework-hint {
  margin: -4px 0 18px;
  color: var(--section-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.framework-card {
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
}

.framework-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.framework-card:hover,
.framework-card.is-expanded {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(89, 67, 25, .16);
}

.framework-details {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transition: max-height .5s var(--ease-out), opacity .35s ease, margin-top .5s var(--ease-out);
}

.framework-details > * { min-height: 0; }
.framework-details strong { color: var(--section-accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.framework-details p { margin: 5px 0 14px; color: var(--section-fg); font-size: 14px; line-height: 1.65; }
.framework-details ul { margin: 5px 0 14px; padding-left: 18px; color: var(--section-fg); font-size: 14px; line-height: 1.8; }
.framework-details li::marker { color: var(--section-accent); }

.framework-card.is-expanded .framework-details {
  grid-template-rows: 1fr;
  max-height: 330px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-gold);
  opacity: 1;
}

/* Replace dashboard-like hero panels with a human consulting moment. */
.hero-portrait {
  position: absolute;
  top: 13%;
  right: clamp(32px, 8vw, 140px);
  z-index: 2;
  width: min(36vw, 510px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(230, 203, 130, .35);
  border-radius: 24px;
  background: #27231a;
  box-shadow: 0 30px 90px rgba(0,0,0,.42), 0 0 0 10px rgba(201,168,76,.045);
  transform: rotate(2deg);
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,13,9,.02) 42%, rgba(15,13,9,.86) 100%);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.72) sepia(.12) contrast(1.02);
}

.hero-portrait-note {
  position: absolute;
  right: 28px;
  bottom: 26px;
  left: 28px;
  z-index: 1;
  color: var(--text);
}

.hero-portrait-note span {
  display: block;
  margin-bottom: 11px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-portrait-note strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.25;
}

@media (max-width: 980px) {
  .hero-portrait { right: 4vw; width: min(38vw, 390px); }
}

@media (max-width: 680px) {
  .hero-portrait {
    position: relative;
    top: auto;
    right: auto;
    width: min(86vw, 390px);
    margin: 34px auto 0;
    transform: rotate(1deg);
  }
}

/* Full-bleed team collaboration hero treatment. */
.hero-portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15,13,9,.96) 0%, rgba(15,13,9,.84) 28%, rgba(15,13,9,.25) 62%, rgba(15,13,9,.18) 100%);
}

.hero-portrait::after {
  z-index: 2;
  background: linear-gradient(0deg, rgba(15,13,9,.66) 0%, transparent 35%);
}

.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) sepia(.1) contrast(1.02);
}

.hero-portrait-note { display: none; }
.hero-content { position: relative; z-index: 3; }
.hero-proof { z-index: 4; }

@media (max-width: 680px) {
  .hero-portrait { position: absolute; inset: 0; width: auto; }
  .hero-portrait img { object-position: 58% center; }
  .hero-portrait::before { background: linear-gradient(90deg, rgba(15,13,9,.92), rgba(15,13,9,.42)); }
}

:root {
  --bg: #14120e;
  --bg-soft: #1c1a15;
  --bg-raise: #211e18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-gold: rgba(201, 168, 76, 0.32);
  --gold: #c9a84c;
  --gold-bright: #e6cb82;
  --gold-deep: #9d7f33;
  --coral: #d3684f;
  --terra: #c4552d;
  --terra-ink: #a8431f;
  --text: #f1ebdd;
  --text-dim: rgba(233, 224, 205, 0.68);
  --text-faint: rgba(233, 224, 205, 0.45);
  --ink-on-gold: #1b160c;
  --section-bg: var(--bg);
  --section-fg: var(--text);
  --section-accent: var(--gold);
  --radius: 14px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Noto Serif TC", "Songti TC", serif;
  font-family:
    "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Warm-ivory light theme — sections opt in via data-theme="light".
   Legacy color vars are re-mapped so existing component rules adapt. */
[data-theme="light"] {
  --section-bg: #f6f1e7;
  --section-fg: #231f1a;
  --section-accent: #a8862f;
  --text: #231f1a;
  --text-dim: rgba(35, 31, 26, 0.78);
  --text-faint: rgba(35, 31, 26, 0.66);
  --gold: #a8862f;
  --gold-bright: #8a6d24;
  --gold-deep: #7c621f;
  --line: rgba(35, 31, 26, 0.14);
  --line-soft: rgba(35, 31, 26, 0.1);
  --line-gold: rgba(168, 134, 47, 0.5);
  --surface: rgba(255, 253, 248, 0.8);
  --surface-strong: #fffdf8;
}

@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film-grain noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.015em;
}

::selection {
  background: rgba(201, 168, 76, 0.35);
  color: #fff;
}

/* Keeps trailing word + full-width period together so the
   punctuation never wraps onto its own line. */
.nb {
  white-space: nowrap;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(160px, 230px) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 0 clamp(20px, 5vw, 64px);
  border-bottom: 1px solid transparent;
  background: rgba(20, 18, 14, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(18, 16, 12, 0.86);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Over ivory sections the frosted glass would go muddy and drop text
   contrast — switch to a near-solid dark bar (logo/nav stay legible). */
.site-header.on-light {
  background: rgba(16, 14, 11, 0.94);
  border-bottom-color: rgba(35, 31, 26, 0.2);
  box-shadow: 0 10px 30px rgba(35, 31, 26, 0.16);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: min(230px, 22vw);
  min-width: 160px;
  height: 46px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--text-dim);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 0.3s var(--ease-out);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

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

.nav-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-weight: 700;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
}

.nav-cta,
.button.primary {
  color: var(--ink-on-gold);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, #b3913c 100%);
  border-color: rgba(201, 168, 76, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 30px rgba(201, 168, 76, 0.16);
}

.nav-cta {
  font-size: 14px;
}

.nav-cta:hover,
.button.primary:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 85, 45, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 14px 38px rgba(196, 85, 45, 0.3);
}

/* Shine sweep */
.nav-cta::before,
.button.primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-out);
}

.nav-cta:hover::before,
.button.primary:hover::before {
  left: 130%;
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  border-color: var(--line-gold);
  background: var(--surface-strong);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(800px, calc(100svh - 54px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(72px, 11vw, 132px) clamp(20px, 5vw, 64px) 96px;
  color: var(--text);
  background: #12100c;
}

/* Aurora — slow drifting warm glow */
.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: -3;
  filter: blur(70px);
}

.hero-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
}

.hero-aurora i:nth-child(1) {
  top: 8%;
  left: 4%;
  width: 56vw;
  height: 56vw;
  background: radial-gradient(circle at 30% 30%, rgba(201, 168, 76, 0.2), transparent 62%);
  animation: aurora-a 26s ease-in-out infinite alternate;
}

.hero-aurora i:nth-child(2) {
  right: -4%;
  top: 30%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle at 60% 40%, rgba(150, 96, 38, 0.16), transparent 60%);
  animation: aurora-b 32s ease-in-out infinite alternate;
}

.hero-aurora i:nth-child(3) {
  left: 26%;
  bottom: -12%;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle at 50% 60%, rgba(230, 203, 130, 0.1), transparent 58%);
  animation: aurora-c 38s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(9%, 6%, 0) scale(1.14); }
}

@keyframes aurora-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to { transform: translate3d(-7%, -5%, 0) scale(0.94); }
}

@keyframes aurora-c {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6%, -8%, 0) scale(1.1); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* Dot grid, fading toward the left where the copy sits */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(233, 224, 205, 0.13) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(100deg, transparent 6%, #000 46%, #000 100%);
  -webkit-mask-image: linear-gradient(100deg, transparent 6%, #000 46%, #000 100%);
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.tool-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  color: var(--text);
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.08;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

/* Gold shimmer on the second line */
.hero h1 .shimmer {
  background: linear-gradient(
    100deg,
    var(--gold-deep) 0%,
    var(--gold) 32%,
    #f4e3ae 50%,
    var(--gold) 68%,
    var(--gold-deep) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  animation: shimmer 5.5s linear infinite;
}

@keyframes shimmer {
  to { background-position: -220% center; }
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--text-dim);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* Hero marquee */
.hero-proof {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  background: rgba(16, 14, 10, 0.4);
  backdrop-filter: blur(10px);
}

.marquee {
  display: flex;
  overflow: hidden;
  gap: 44px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 44px;
  min-width: 100%;
  justify-content: space-around;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(calc(-100% - 44px)); }
}

.marquee-track span {
  position: relative;
  color: var(--text-faint);
  font-size: 14px;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold-deep);
  transform: translateY(-50%);
}

/* Hero floating panels */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.system-panel {
  position: absolute;
  width: min(260px, 27vw);
  min-width: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(26, 23, 17, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  animation: floaty 7s ease-in-out infinite;
}

.panel-b { animation-delay: -2.4s; }
.panel-c { animation-delay: -4.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.system-panel span {
  display: block;
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.system-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
}

.system-panel strong em {
  font-style: normal;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.system-panel p {
  margin: 10px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.5;
}

.panel-a { right: 11%; top: 19%; }
.panel-b { right: 25%; bottom: 22%; }
.panel-c { right: 5%; bottom: 36%; }

.mini-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  height: 58px;
  margin-top: 14px;
}

.mini-bars i,
.status-row i,
.status-row b,
.status-row em {
  display: block;
  border-radius: 3px 3px 0 0;
  background: rgba(233, 224, 205, 0.28);
}

.mini-bars i:nth-child(2) { background: var(--gold); }
.mini-bars i:nth-child(4) { background: var(--gold-bright); }

.status-row {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.44fr;
  gap: 8px;
  margin-top: 18px;
}

.status-row i,
.status-row b,
.status-row em {
  height: 8px;
  border-radius: 999px;
}

.status-row b { background: var(--gold); }
.status-row em { background: rgba(201, 168, 76, 0.5); }

/* ------------------------------------------------------------
   Sections — alternating dark surfaces
   ------------------------------------------------------------ */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 64px);
  background: var(--section-bg);
  color: var(--section-fg);
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.contact-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Hairline separators between stacked light sections */
[data-theme="light"] + [data-theme="light"] {
  border-top: 1px solid rgba(35, 31, 26, 0.08);
}

/* Soft dark → light hand-off below the hero */
.pain-section {
  padding-top: calc(clamp(72px, 9vw, 118px) + 44px);
}

.pain-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, #12100c 0%, rgba(18, 16, 12, 0) 100%);
}

/* Light → dark hand-off at the bottom of the stages section */
.stages-section {
  padding-bottom: calc(clamp(72px, 9vw, 118px) + 92px);
}

.stages-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 190px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 18, 14, 0) 0%, var(--bg) 100%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading.wide {
  max-width: 850px;
}

.section-heading h2,
.partner-layout h2,
.proof-layout h2,
.contact-layout h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.18;
}

.section-heading p,
.contact-layout > div > p {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.85;
}

/* ------------------------------------------------------------
   Reveal on scroll
   ------------------------------------------------------------ */

/* Gated behind html.js so content stays visible without JS (also safer for crawlers) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-aurora i,
  .system-panel,
  .marquee-track,
  .hero h1 .shimmer,
  .border-beam::before {
    animation: none !important;
  }

  .js .icon-draw :is(path, circle) {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none !important;
  }

  .card-icon,
  .framework-icon {
    transition: none;
  }

  .pain-card:hover .card-icon,
  .process-list li:hover .card-icon,
  .framework-card:hover .framework-icon {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------
   Cards — glass base + mouse spotlight
   ------------------------------------------------------------ */

.glow-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 168, 76, 0.13),
    transparent 65%
  );
  transition: opacity 0.45s var(--ease-out);
}

.glow-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

.glow-card:hover::after {
  opacity: 1;
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

/* Border beam — travelling light on featured cards */
.border-beam {
  position: relative;
}

.border-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 288deg,
    rgba(201, 168, 76, 0.05) 306deg,
    var(--gold) 340deg,
    #f4e3ae 352deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: beam-rotate 7s linear infinite;
}

@keyframes beam-rotate {
  to { --beam-angle: 360deg; }
}

/* Light-theme cards: white surface + hairline border + soft shadow
   (dark-glass glow doesn't read on ivory) */
[data-theme="light"] .glow-card {
  border-color: rgba(35, 31, 26, 0.1);
  background: linear-gradient(180deg, #fffdf9 0%, #fbf6ec 100%);
  box-shadow:
    0 1px 2px rgba(35, 31, 26, 0.05),
    0 10px 30px rgba(35, 31, 26, 0.06);
}

[data-theme="light"] .glow-card::after {
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(168, 134, 47, 0.12),
    transparent 65%
  );
}

[data-theme="light"] .glow-card:hover {
  border-color: rgba(168, 134, 47, 0.55);
  box-shadow:
    0 2px 4px rgba(35, 31, 26, 0.05),
    0 22px 44px rgba(35, 31, 26, 0.13);
}

/* Deep-gold border beam for featured cards on ivory */
[data-theme="light"] .border-beam::before {
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 288deg,
    rgba(168, 134, 47, 0.06) 306deg,
    #a8862f 340deg,
    #6f5417 352deg,
    transparent 360deg
  );
}

/* Small text on ivory needs the deepest gold to clear WCAG AA */
[data-theme="light"] .section-kicker,
[data-theme="light"] .framework-card span,
[data-theme="light"] .stage-card span {
  color: var(--gold-deep);
}

[data-theme="light"] .framework-card b {
  color: #6f5417;
  border-color: rgba(124, 98, 31, 0.45);
  background: rgba(168, 134, 47, 0.14);
}

[data-theme="light"] .framework-card.is-live {
  background: linear-gradient(180deg, rgba(168, 134, 47, 0.12) 0%, #fffdf9 70%);
}

/* ------------------------------------------------------------
   Human line icons — unified stroke, draw-in on scroll
   ------------------------------------------------------------ */

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: var(--gold);
  transition: transform 0.45s var(--ease-out);
}

.process-list .card-icon {
  width: 38px;
  height: 38px;
}

.pain-card:hover .card-icon,
.process-list li:hover .card-icon {
  transform: translateY(-3px) rotate(-3deg);
}

.framework-icon {
  position: absolute;
  top: 20px;
  right: 18px;
  z-index: 1;
  width: 22px;
  height: 22px;
  color: var(--gold);
  opacity: 0.5;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.framework-card:hover .framework-icon {
  opacity: 0.95;
  transform: scale(1.1);
}

.partner-illustration {
  display: block;
  width: min(360px, 100%);
  height: auto;
  margin-top: 36px;
  color: var(--gold);
}

/* Partner photo — warm brand duotone (deep brown shadows, warm gold
   highlights) built from a grayscaled image + two blend layers. */
.partner-photo {
  position: relative;
  overflow: hidden;
  width: min(440px, 100%);
  margin: 36px 0 0;
  border: 1px solid rgba(168, 134, 47, 0.45);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(35, 31, 26, 0.05),
    0 16px 38px rgba(35, 31, 26, 0.12);
}

.partner-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.02) brightness(1.04);
}

.partner-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #38290f;
  mix-blend-mode: lighten;
}

.partner-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #e2c37e;
  mix-blend-mode: multiply;
}

.terra-stroke {
  stroke: var(--terra);
}

/* Stroke draw-in (elements carry pathLength="1") */
.js .icon-draw :is(path, circle) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .icon-draw.is-drawn :is(path, circle) {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}

.js .icon-draw.is-drawn :is(path, circle):nth-child(2) { transition-delay: 0.12s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(3) { transition-delay: 0.24s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(4) { transition-delay: 0.36s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(5) { transition-delay: 0.48s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(6) { transition-delay: 0.6s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(7) { transition-delay: 0.72s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(8) { transition-delay: 0.84s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(9) { transition-delay: 0.96s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(10) { transition-delay: 1.08s; }
.js .icon-draw.is-drawn :is(path, circle):nth-child(n + 11) { transition-delay: 1.2s; }

/* Terracotta — three sanctioned uses only:
   pain numbers, CTA hover glow, keyword emphasis */
.kw {
  color: var(--terra);
}

/* ------------------------------------------------------------
   Pain section
   ------------------------------------------------------------ */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pain-card {
  min-height: 250px;
  padding: 32px;
}

.pain-card span {
  display: block;
  padding-top: 6px;
  color: var(--terra-ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.pain-card h3 {
  margin: 22px 0 12px;
  color: var(--text);
  font-size: clamp(26px, 3.6vw, 34px);
}

.pain-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.85;
}

/* ------------------------------------------------------------
   Partner section
   ------------------------------------------------------------ */

.partner-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(420px, 1.24fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.partner-layout > [data-reveal]:first-child {
  padding-top: clamp(16px, 5vw, 76px);
}

.partner-lead {
  max-width: 430px;
  margin: 30px 0 0;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.85;
}

.partner-steps {
  display: grid;
  gap: 0;
  max-width: 430px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: partner-step;
}

.partner-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}

.partner-steps span {
  grid-row: span 2;
  color: var(--section-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.partner-steps strong {
  color: var(--section-fg);
  font-size: 16px;
}

.partner-steps small {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 13px;
}

.partner-copy .partner-photo {
  width: 100%;
  margin: 0 0 30px;
  border-radius: 18px;
}

.partner-copy .partner-photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.partner-copy p,
.partner-copy li {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.9;
}

.partner-copy p {
  margin: 0 0 22px;
}

.partner-copy ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-copy li {
  position: relative;
  padding: 18px 0 18px 26px;
  border-top: 1px solid var(--line-soft);
}

.partner-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

/* ------------------------------------------------------------
   Framework section
   ------------------------------------------------------------ */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.tier-grid article {
  min-height: 160px;
  padding: 26px;
}

.tier-grid span {
  display: inline-flex;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.tier-grid span em {
  font-style: normal;
  margin-right: 4px;
}

.tier-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 17px;
}

.tier-grid p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.framework-card {
  min-height: 266px;
  padding: 24px;
}

.framework-card span {
  display: inline-flex;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.14em;
}

.framework-card small {
  display: block;
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.framework-card h3 {
  margin: 16px 0 10px;
  color: var(--text);
  font-size: 20px;
}

.framework-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
}

.framework-card b {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.framework-card.is-live {
  background:
    linear-gradient(180deg, rgba(201, 168, 76, 0.09) 0%, rgba(201, 168, 76, 0.02) 60%);
}

/* ------------------------------------------------------------
   Stages
   ------------------------------------------------------------ */

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stage-card {
  min-height: 264px;
  padding: 30px;
}

.stage-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.stage-card h3 {
  margin: 28px 0 14px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.25;
}

.stage-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.85;
}

/* ------------------------------------------------------------
   Systems / tools
   ------------------------------------------------------------ */

.systems-section {
  background: var(--bg);
}

.system-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.tab-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--surface);
  cursor: pointer;
  transition:
    color 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.tab-button:hover {
  color: var(--text);
  border-color: var(--line-gold);
}

.tab-button.active {
  color: var(--ink-on-gold);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  border-color: rgba(201, 168, 76, 0.7);
  font-weight: 700;
}

.tool-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(440px, 1.22fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.tool-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
}

.tool-copy p {
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
}

.tool-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tool-copy li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.75;
}

.tool-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 20px;
  border: 1px solid rgba(201, 168, 76, 0.7);
  border-radius: var(--radius-sm);
  color: var(--ink-on-gold);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, #b3913c 100%);
  font-weight: 700;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.tool-link:hover,
.tool-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(196, 85, 45, 0.65);
  box-shadow: 0 14px 38px rgba(196, 85, 45, 0.3);
}

/* App-window mock stays light, as a real product screenshot frame */
.product-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f4ed;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 110px rgba(0, 0, 0, 0.5);
}

.preview-topbar {
  display: flex;
  gap: 8px;
  height: 42px;
  align-items: center;
  padding: 0 15px;
  background: #262119;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #d3684f;
}

.preview-topbar span:nth-child(2) { background: #c9a84c; }
.preview-topbar span:nth-child(3) { background: #6fa06d; }

.preview-body {
  color: #171412;
}

/* Real product screenshot (per-tab asset; falls back to the mock
   below when the tab's image file isn't available yet) */
.preview-shot {
  display: block;
  width: 100%;
  height: auto;
}

.preview-shot[hidden] {
  display: none;
}

.preview-mock {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 392px;
}

.preview-mock[hidden] {
  display: none;
}

.preview-sidebar {
  padding: 24px 18px;
  background: #ffffff;
  border-right: 1px solid #e6e0d5;
}

.preview-sidebar b,
.preview-sidebar i {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: #171412;
}

.preview-sidebar b {
  width: 84%;
  margin-bottom: 30px;
}

.preview-sidebar i {
  width: 100%;
  margin: 16px 0;
  background: #e3dccf;
}

.preview-sidebar i:nth-child(3) {
  background: #e0cf9e;
}

.preview-main {
  padding: clamp(18px, 4vw, 34px);
}

.preview-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.preview-stat-row div {
  min-height: 100px;
  padding: 16px;
  border: 1px solid #e6e0d5;
  border-radius: var(--radius-sm);
  background: #fff;
}

.preview-stat-row span {
  display: block;
  color: #6f6355;
  font-size: 13px;
}

.preview-stat-row strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(24px, 4vw, 38px);
}

.preview-table {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #e6e0d5;
  border-radius: var(--radius-sm);
  background: #fff;
}

.preview-table span {
  height: 13px;
  border-radius: 999px;
  background: #ddd5c8;
}

.preview-table span:nth-child(3n) { background: #e0cf9e; }
.preview-table span:nth-child(5n) { background: #c9b98f; }

/* ------------------------------------------------------------
   Proof
   ------------------------------------------------------------ */

.proof-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
}

.proof-list {
  display: grid;
  gap: 0;
}

.proof-list p {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
}

.proof-list p:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.proof-list strong {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ------------------------------------------------------------
   Process
   ------------------------------------------------------------ */

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 240px;
  padding: 24px;
}

.process-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink-on-gold);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.process-list h3 {
  margin: 22px 0 10px;
  color: var(--text);
  font-size: 19px;
}

.process-list p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-points span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}

.contact-links a:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.contact-links .contact-link-primary {
  color: var(--ink-on-gold);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  border-color: rgba(201, 168, 76, 0.7);
}

.contact-links .contact-link-primary:hover {
  background: linear-gradient(180deg, #f0d896 0%, var(--gold) 100%);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-faint);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a84c' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-form select option {
  color: #171412;
  background: #fff;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.contact-form textarea {
  resize: vertical;
}

.form-hint {
  margin: -2px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
}

.form-button {
  width: 100%;
  margin-top: 4px;
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--gold-bright);
  font-size: 14px;
  line-height: 1.6;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 32px clamp(20px, 5vw, 64px);
  color: var(--text-faint);
  background: #100e0b;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text-dim);
  transition: color 0.3s var(--ease-out);
}

.site-footer a:hover {
  color: var(--gold-bright);
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(150px, 205px) auto;
  }

  .site-nav {
    display: none;
  }

  .partner-layout,
  .tool-showcase,
  .proof-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .pain-grid,
  .stage-grid,
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .framework-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-a { right: -30px; }
  .panel-b { display: none; }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
    gap: 12px;
  }

  .brand-mark {
    width: min(172px, calc(100vw - 148px));
    min-width: 132px;
    height: 40px;
  }

  .nav-cta {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 13px;
  }

  /* Floating panels get clipped at narrow widths and the tall
     min-height leaves dead space under the CTA — drop both. */
  .hero {
    min-height: auto;
    padding: 92px 18px 96px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-grid {
    display: none;
  }

  .marquee-track {
    animation-duration: 20s;
  }

  .section {
    padding-inline: 18px;
  }

  .pain-grid,
  .stage-grid,
  .tier-grid,
  .framework-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .pain-card,
  .stage-card,
  .framework-card,
  .tier-grid article,
  .process-list li {
    min-height: auto;
  }

  .framework-card {
    padding-bottom: 30px;
  }

  .system-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab-button {
    padding-inline: 10px;
    font-size: 14px;
    border-radius: var(--radius-sm);
  }

  .preview-mock {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-stat-row {
    grid-template-columns: 1fr;
  }

  .contact-links {
    display: grid;
  }

  .contact-links a {
    width: 100%;
    min-height: 44px;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
  }
}
