/* Structonix — dual-tone split + comparison rows
   Palette taken from the hexagonal mark: slate ink on cool paper. */

:root {
  --ink:         #202830;
  --ink-2:       #283038;
  --slate:       #304048;
  --slate-mid:   #38444c;
  --slate-lift:  #4a5a64;
  --paper:       #f3f3f3;
  --paper-2:     #e8eaea;
  --white:       #f8f8f8;
  --on-dark:     #f4f5f6;
  --on-dark-dim: #c5ccd0;
  --line-dark:   #3a4850;
  --line-light:  #d4d8d8;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --header-h:    72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .wordmark, .member-n, .row-kicker, .eyebrow, .nav-cta {
  font-family: "Barlow Condensed", "Karla", system-ui, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; letter-spacing: 0.04em; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 2px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  font-family: "Karla", sans-serif;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary {
  background: var(--ink); color: var(--on-dark);
  box-shadow: 0 10px 24px -12px rgba(32, 40, 48, .45);
}
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-light);
}

/* ===== Dual-tone header (dark left / light right, matching the hero) ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
}
.header-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  position: relative;
}
.header-dark, .header-light {
  display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 56px);
  transition: background .3s var(--ease);
}
.header-dark { justify-content: flex-start; }
.header-light { justify-content: flex-end; gap: 12px; }

.site-header.scrolled .header-dark {
  background: rgba(32, 40, 48, .94);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header.scrolled .header-light {
  background: rgba(243, 243, 243, .94);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-light);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--on-dark); }
.brand img { width: 40px; height: 40px; border-radius: 6px; background: var(--paper); }
.brand-name { font-size: 22px; letter-spacing: 0.14em; font-weight: 700; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--slate); font-weight: 500; transition: color .2s var(--ease); }
.nav .nav-cta {
  color: var(--ink); border: 1px solid var(--ink); padding: 8px 16px;
  letter-spacing: 0.12em; font-size: 13px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero 50/50 ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
}
.hero-split > * { min-width: 0; }

.hero-dark {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 56px) 72px;
  overflow: hidden;
  min-height: 100vh;
}
.hero-light {
  background: var(--paper);
  color: var(--ink);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 56px) 72px;
  min-height: 100vh;
}

.hex-field {
  position: absolute; inset: 0;
  color: rgba(197, 204, 208, .14);
  pointer-events: none;
}
.hex-lattice {
  width: 140%; height: 140%;
  position: absolute; top: -12%; left: -18%;
  animation: latticeDrift 28s linear infinite;
}
@keyframes latticeDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(28px, 32px); }
}

.hex-mark {
  position: absolute;
  top: 22%;
  right: 10%;
  width: min(280px, 52%);
  color: var(--on-dark-dim);
  opacity: .85;
  filter: drop-shadow(0 0 24px rgba(244, 245, 246, .08));
  animation: hexFloat 8s ease-in-out infinite;
}
@keyframes hexFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hex-draw {
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: hexDraw 2.6s var(--ease) .2s forwards;
}
.hex-s {
  stroke-width: 3.2;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation-duration: 2.1s;
  animation-delay: 1s;
}
@keyframes hexDraw {
  to { stroke-dashoffset: 0; }
}

.hero-datum {
  position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--on-dark-dim) 18%, var(--on-dark-dim) 82%, transparent);
  transform-origin: top;
  animation: datumDrop 1.6s var(--ease) both;
}
@keyframes datumDrop {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.mark-stack { position: relative; z-index: 2; max-width: 28rem; }
.mark-kicker, .row-kicker, .eyebrow {
  font-size: 13px; letter-spacing: 0.22em; font-weight: 600; margin: 0 0 16px;
}
.mark-kicker { color: var(--on-dark-dim); }
.wordmark {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  font-weight: 800;
  color: var(--on-dark);
}
.mark-sub { margin-top: 18px; color: var(--on-dark-dim); font-size: 1rem; letter-spacing: 0.04em; }

.hero-copy { max-width: 34rem; }
.eyebrow { color: var(--slate-lift); }
.hero-lede {
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--slate);
  max-width: 38ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; border-top: 1px solid var(--line-light); padding-top: 22px;
}
.hero-facts li { font-size: 13px; color: var(--slate-lift); }
.hero-facts span {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); font-weight: 700; margin-bottom: 2px;
}

/* ===== Comparison rows ===== */
.load-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  min-height: 280px;
}
.load-side, .resist-side {
  padding: 64px clamp(20px, 5vw, 56px);
}
.load-side {
  background: var(--ink-2);
  color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--line-dark);
}
.resist-side {
  background: var(--white);
  color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--line-light);
}
.load-side .row-kicker { color: var(--on-dark-dim); }
.resist-side .row-kicker { color: var(--slate-lift); }
.load-side h2, .resist-side h2 { margin-bottom: 14px; }
.load-side p { color: var(--on-dark-dim); max-width: 38ch; margin-left: auto; width: 100%; }
.resist-side p { color: var(--slate); max-width: 38ch; }
.load-side h2, .load-side .row-kicker, .load-side p { margin-right: 28px; text-align: right; }
.resist-side h2, .resist-side .row-kicker, .resist-side p { margin-left: 28px; }

.row-seam {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 42px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 2;
}
.row-seam span {
  width: 42px; height: 42px;
  border: 1px solid var(--slate-mid);
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700; letter-spacing: 0.08em;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  font-size: 13px;
}
.row-seam::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--slate-lift) 0 8px,
    transparent 8px 16px
  );
  transform: translateX(-50%);
  animation: seamFlow 8s linear infinite;
  z-index: -1;
}
@keyframes seamFlow {
  from { background-position: 0 0; }
  to { background-position: 0 48px; }
}

/* ===== Practice split ===== */
.practice-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.practice-dark, .practice-light {
  padding: 80px clamp(20px, 5vw, 56px);
}
.practice-dark {
  background: var(--ink);
  color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center;
}
.practice-dark .row-kicker { color: var(--on-dark-dim); }
.practice-dark h2 { margin-bottom: 18px; max-width: 16ch; }
.practice-dark p { color: var(--on-dark-dim); max-width: 38ch; }
.practice-light { background: var(--paper); }

.member-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.member {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.member:first-child { border-top: 1px solid var(--line-light); }
.member-n {
  color: var(--slate-lift);
  font-size: 1.2rem; letter-spacing: 0.12em;
  padding-top: 4px;
}
.member h3 { margin-bottom: 6px; }
.member p { color: var(--slate); font-size: .98rem; }

/* ===== Quote band ===== */
.quote-band {
  background: var(--ink-2);
  color: var(--on-dark);
  padding: 88px clamp(20px, 6vw, 80px);
  text-align: center;
  border-block: 1px solid var(--line-dark);
}
.quote-band blockquote { margin: 0; }
.quote-band p {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.05;
}
.quote-band cite {
  display: block; margin-top: 18px;
  font-style: normal; color: var(--on-dark-dim);
  font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
}

/* ===== FAQ split ===== */
.faq-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.faq-dark, .faq-light { padding: 80px clamp(20px, 5vw, 56px); }
.faq-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.faq-dark .row-kicker { color: var(--on-dark-dim); }
.faq-dark h2 { margin-bottom: 16px; max-width: 14ch; }
.faq-dark p { color: var(--on-dark-dim); max-width: 36ch; }
.faq-light { background: var(--white); }

.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item:first-child { border-top: 1px solid var(--line-light); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; text-align: left; color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
}
.faq-ico {
  width: 14px; height: 14px; position: relative; flex-shrink: 0;
}
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq-ico::before { width: 14px; height: 2px; top: 6px; left: 0; }
.faq-ico::after { width: 2px; height: 14px; top: 0; left: 6px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); }
.faq-a { display: none; padding: 0 0 20px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--slate); max-width: 48ch; }

/* ===== Contact split ===== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.contact-dark, .contact-light { padding: 80px clamp(20px, 5vw, 56px); }
.contact-dark {
  background: var(--ink-2);
  color: var(--on-dark);
}
.contact-dark .row-kicker { color: var(--on-dark-dim); }
.contact-dark h2 { margin-bottom: 14px; }
.contact-dark p { color: var(--on-dark-dim); max-width: 36ch; }
.contact-email {
  display: inline-block; margin-top: 28px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
  color: var(--on-dark);
  border-bottom: 2px solid var(--on-dark-dim);
  padding-bottom: 4px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.contact-light {
  background: var(--paper);
  display: flex; align-items: center;
}
.contact-card {
  border: 1px solid var(--line-light);
  background: var(--white);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card .row-kicker { color: var(--slate-lift); }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--slate); margin-bottom: 22px; }

/* ===== Footer (dark, near-white) ===== */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 48px clamp(20px, 5vw, 56px) 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 28px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line-dark);
}
.footer-tag { color: var(--on-dark-dim); margin-top: 12px; font-size: .95rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--on-dark-dim); font-size: 15px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--on-dark-dim); font-size: 14px; padding-top: 20px;
}

/* ===== Reveal (must sit before hover transforms) ===== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hex-lattice, .hex-mark, .hex-draw, .hero-datum, .row-seam::before { animation: none !important; }
  .hex-draw { stroke-dashoffset: 0; }
}

/* Hover AFTER .reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-3px);
    background: var(--slate);
    box-shadow: 0 16px 32px -12px rgba(32, 40, 48, .55);
  }
  .btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--ink);
    background: var(--white);
  }
  .nav a:hover { color: var(--ink); }
  .nav .nav-cta:hover { background: var(--ink); color: var(--on-dark); }
  .load-row:hover .load-side { background: #243038; }
  .load-row:hover .resist-side {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--slate-mid);
  }
  .member:hover {
    transform: translateY(-4px);
    background: var(--white);
  }
  .faq-q:hover { color: var(--slate-lift); }
  .faq-item:hover { background: var(--paper); }
  .contact-email:hover { border-bottom-color: var(--on-dark); transform: translateY(-2px); }
  .contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -24px rgba(32, 40, 48, .45);
  }
  .footer-nav a:hover { color: var(--on-dark); }
}

/* ===== Tablet: still split if possible, tighten type ===== */
@media (max-width: 980px) {
  .wordmark { font-size: clamp(2.6rem, 9vw, 4.4rem); }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; }
  .load-side h2, .load-side .row-kicker, .load-side p,
  .resist-side h2, .resist-side .row-kicker, .resist-side p {
    margin-left: 0; margin-right: 0; text-align: left;
  }
  .load-side p, .resist-side p { margin-left: 0; }
}

/* ===== Mobile: stacked, dark panel first ===== */
@media (max-width: 860px) {
  .header-split,
  .hero-split,
  .load-row,
  .practice-split,
  .faq-split,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .hero-dark, .hero-light { min-height: auto; }
  .hero-dark {
    min-height: 78vh;
    padding: calc(var(--header-h) + 36px) 22px 48px;
  }
  .hero-light { padding: 48px 22px 56px; }

  .hero-datum {
    top: auto; right: auto; left: 22px; right: 22px; bottom: 0;
    width: auto; height: 1px;
    background: linear-gradient(to right, transparent, var(--on-dark-dim), transparent);
  }

  .hex-mark { width: min(200px, 48%); top: 18%; right: 8%; }

  .load-side, .resist-side,
  .practice-dark, .practice-light,
  .faq-dark, .faq-light,
  .contact-dark, .contact-light {
    padding: 44px 22px;
  }

  .row-seam {
    position: relative; left: auto; transform: none;
    width: 100%; height: 0;
    background: var(--ink);
  }
  .row-seam span {
    position: absolute; left: 22px; top: -21px;
  }
  .row-seam::before { display: none; }

  .hero-facts { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .quote-band { padding: 64px 22px; }
  .contact-card { max-width: none; }
}

@media (max-width: 720px) {
  .header-split { grid-template-columns: 1fr; background: var(--ink); }
  .header-dark, .header-light {
    padding: 0 18px;
    background: transparent;
    border-bottom: 0;
  }
  .header-light {
    position: absolute; inset: 0 0 auto 0; height: var(--header-h);
    justify-content: flex-end; pointer-events: none;
  }
  .header-light .nav-toggle { pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: var(--on-dark); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 8px 22px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    pointer-events: auto;
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    color: var(--on-dark-dim); padding: 14px 0; font-size: 17px;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav .nav-cta {
    text-align: center; margin-top: 14px; color: var(--on-dark);
    border-color: var(--on-dark-dim);
  }

  .site-header.scrolled .header-dark,
  .site-header.scrolled .header-light {
    background: var(--ink);
    border-bottom-color: var(--line-dark);
  }

  .hero-actions .btn-ghost { color: var(--ink); }
}

@media (max-width: 430px) {
  :root { --header-h: 64px; }
  .hero-dark { min-height: 72vh; padding: calc(var(--header-h) + 28px) 18px 40px; }
  .hero-light, .load-side, .resist-side,
  .practice-dark, .practice-light,
  .faq-dark, .faq-light,
  .contact-dark, .contact-light { padding-left: 18px; padding-right: 18px; }
  .wordmark { font-size: clamp(2.4rem, 12vw, 3.2rem); letter-spacing: 0.06em; }
  .hero-facts { grid-template-columns: 1fr; }
  .member { grid-template-columns: 40px 1fr; }
  .footer-inner { flex-direction: column; }
  .contact-email { font-size: 1.35rem; word-break: break-word; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .quote-band { padding: 52px 18px; }
}
