/**
 * About Us page (/about-us).
 *
 * Scoped to .twy-about-page so the editorial palette + type tokens don't
 * leak into the rest of the site (same pattern as science.css and
 * delivery.css per CLAUDE.md "Page-scoped editorial palette tokens").
 */

.twy-about-page {
  --ink: #14160F;
  --ink-2: #1d211a;
  --ink-3: #2a2f26;
  --cream: #f6fff2;
  --cream-2: #eaf6e2;
  --cream-3: #ddf0d0;
  --paper: #ffffff;
  --sage: #93db4c;
  --sage-2: #ffcf7a;
  --sage-deep: #d97a35;
  --clay: #93db4c;
  --clay-deep: #bde858;
  --stone: #8a8a7a;
  --stone-2: #6a6a5a;
  --line: rgba(20, 23, 15, 0.12);
  --line-strong: rgba(20, 23, 15, 0.22);

  --font-display: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.twy-about-page * { box-sizing: border-box; }
.twy-about-page a { color: inherit; text-decoration: none; }
.twy-about-page button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
/* Same heading override as science.css so each section can recolour h1/h2/h3
   without fighting global app.css `h1, h2 { color: var(--ink) }`. */
.twy-about-page h1,
.twy-about-page h2,
.twy-about-page h3,
.twy-about-page h4 { margin: 0; font-weight: 400; color: inherit; }
.twy-about-page svg { width: 1em; height: 1em; flex-shrink: 0; }
.twy-about-page p  { margin: 0; }
.twy-about-page ul { list-style: none; margin: 0; padding: 0; }

/* Match the .twy-header__row container (1440 / 24-48-64 padding) so hero copy
   aligns with the logo on the left and the cart icon on the right. */
.twy-about-page .wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .twy-about-page .wrap { padding: 0 48px; } }
@media (min-width: 1200px) { .twy-about-page .wrap { padding: 0 64px; } }

/* Shared editorial primitives */
.twy-about-page .abo-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.twy-about-page .abo-eyebrow.is-sage { color: var(--sage); }

/* Buttons (mirror science page so the closing CTA is identical site-wide) */
.twy-about-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}
.twy-about-page .btn-primary { background: var(--clay); color: var(--cream); }
.twy-about-page .btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); }
.twy-about-page .btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(243, 241, 232, 0.35);
}
.twy-about-page .btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(243, 241, 232, 0.06);
}
.twy-about-page .btn-arrow { display: inline-block; width: 14px; height: 14px; }

/* ==========================================================================
   1. HERO
   ========================================================================== */

.abo-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  color: var(--cream);
  /* 180px clears the 36px topbar + ~87px floating header — see CLAUDE.md
     "Overlay-header pattern". */
  padding: 180px 0 96px;
  background-image: var(--twy-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.abo-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 23, 15, 0.55) 0%,
      rgba(20, 23, 15, 0.35) 35%,
      rgba(20, 23, 15, 0.65) 75%,
      rgba(20, 23, 15, 0.85) 100%),
    radial-gradient(ellipse at 90% 10%, rgba(226, 106, 58, 0.22), transparent 55%),
    radial-gradient(ellipse at 5% 95%, rgba(111, 124, 74, 0.22), transparent 50%);
  pointer-events: none;
}
.abo-hero .wrap { position: relative; z-index: 1; }

.abo-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 64px;
  align-items: end;
}
.abo-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 22px;
}
.abo-hero-eyebrow .rule {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--sage);
}
.abo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.abo-hero h1 em {
  font-style: italic;
  color: var(--clay);
}
.abo-hero-side {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(243, 241, 232, 0.85);
  padding-bottom: 18px;
  max-width: 360px;
}
.abo-hero-badge {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.abo-hero-badge svg { width: 14px; height: 14px; color: var(--sage); flex-shrink: 0; }
.abo-hero-badge span { color: var(--cream); }

@media (max-width: 900px) {
  .abo-hero { padding: 160px 0 72px; }
  .abo-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .abo-hero-side { padding-bottom: 0; max-width: none; }
}

/* ==========================================================================
   3. ORIGIN / THESIS
   ========================================================================== */

.abo-thesis {
  background: var(--cream);
  padding: 120px 0 80px;
}
.abo-thesis-statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 980px;
  text-wrap: pretty;
  margin-top: 22px;
}
.abo-thesis-statement em { font-style: italic; color: var(--clay); }
.abo-thesis-body {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 880px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.abo-thesis-body p em { font-style: italic; }

@media (max-width: 900px) {
  .abo-thesis { padding: 80px 0 56px; }
  .abo-thesis-body { grid-template-columns: 1fr; gap: 18px; }
}

/* ==========================================================================
   4. PILLARS — three rules
   ========================================================================== */

.abo-pillars {
  background: var(--cream-2);
  padding: 96px 0;
}
.abo-section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
  margin-bottom: 56px;
}
.abo-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-top: 14px;
}
.abo-section-head h2 em { font-style: italic; color: var(--clay); }
.abo-section-head p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-3);
  padding-top: 8px;
  max-width: 560px;
}
@media (max-width: 900px) {
  .abo-section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
}

.abo-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.abo-pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.abo-pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(20, 23, 15, 0.08);
}
.abo-pillar-cover {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
/* Tonal gradient fallback if the photo fails to load. */
.abo-pillar-cover.is-heat  { background: linear-gradient(135deg, #5a3320 0%, #a85528 55%, #3a1f12 100%); }
.abo-pillar-cover.is-hydro { background: linear-gradient(135deg, #1f3a4a 0%, #3a6b85 55%, #0f1f2a 100%); }
.abo-pillar-cover.is-cold  { background: linear-gradient(135deg, #2a4e6a 0%, #6ba0c4 55%, #1a2e3f 100%); }
.abo-pillar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.abo-pillar:hover .abo-pillar-img { transform: scale(1.03); }
.abo-pillar-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(20, 23, 15, 0.5);
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 1;
}
.abo-pillar-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.abo-pillar-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.abo-pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--clay-deep);
}
.abo-pillar-row h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}
.abo-pillar-hits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.abo-pillar-hits li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.abo-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--ink);
}
.abo-check svg { width: 11px; height: 11px; }
.abo-check.is-clay { background: var(--clay); color: var(--cream); }

@media (max-width: 900px) {
  .abo-pillar-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5. WORKSHOP DEEP-DIVE
   ========================================================================== */

.abo-workshop {
  background: var(--cream);
  padding: 96px 0;
}
.abo-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.abo-cross-section {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 480px;
  background: linear-gradient(135deg, #3a2a1a 0%, #6b5238 55%, #1f1610 100%);
}
.abo-cross-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.abo-cross-section::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 23, 15, 0.45) 0%, transparent 18%, transparent 70%, rgba(20, 23, 15, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.abo-cross-tag {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(20, 23, 15, 0.45);
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}
.abo-cross-readouts {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  z-index: 2;
}
.abo-cross-readouts .label { opacity: 0.6; margin-bottom: 4px; }
.abo-cross-readouts .v {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  font-style: italic;
  letter-spacing: -0.01em;
}
.abo-cross-readouts .right { text-align: right; }

.abo-deep-dive {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.abo-deep-dive h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-top: 14px;
}
.abo-deep-dive h2 em { font-style: italic; color: var(--clay); }
.abo-deep-dive p.lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 540px;
}

.abo-stat-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.abo-stat-table .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.abo-stat-table .stat {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  font-style: italic;
  color: var(--clay);
}
.abo-stat-table .label {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.abo-stat-table .src {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .abo-two-col { grid-template-columns: 1fr; gap: 40px; }
  .abo-cross-section { min-height: 320px; }
  .abo-stat-table .row { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   6. THE PEOPLE (dark)
   ========================================================================== */

.abo-people {
  background: var(--ink);
  color: var(--cream);
  padding: 110px 0;
}
.abo-people .abo-section-head h2 { color: var(--cream); }
.abo-people .abo-section-head p  { color: rgba(243, 241, 232, 0.78); }

.abo-people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.abo-people-card {
  background: rgba(243, 241, 232, 0.04);
  border: 1px solid rgba(243, 241, 232, 0.10);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.abo-people-card:hover {
  border-color: rgba(243, 241, 232, 0.22);
  background: rgba(243, 241, 232, 0.06);
}
.abo-people-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.abo-people-name {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--cream);
}
.abo-people-blurb {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(243, 241, 232, 0.78);
}

@media (max-width: 900px) {
  .abo-people { padding: 72px 0; }
  .abo-people-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================================================
   7. CONTRAST — industry vs us
   ========================================================================== */

.abo-contrast {
  background: var(--cream-2);
  padding: 96px 0;
}
.abo-vs {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.abo-vs-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 32px 36px;
}
.abo-vs-side.is-them {
  /* Subtly muted — the comparison column. */
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}
.abo-vs-side.is-us {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  position: relative;
  overflow: hidden;
}
.abo-vs-side.is-us::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(226, 106, 58, 0.18), transparent 55%),
    radial-gradient(ellipse at 5% 95%, rgba(111, 124, 74, 0.18), transparent 55%);
  pointer-events: none;
}
.abo-vs-side > * { position: relative; z-index: 1; }
.abo-vs-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin-bottom: 22px;
}
.abo-vs-side.is-us .abo-vs-tag { color: var(--sage); }
.abo-vs-list { display: flex; flex-direction: column; gap: 14px; }
.abo-vs-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.abo-vs-side.is-us .abo-vs-list li { color: rgba(243, 241, 232, 0.92); }
.abo-vs-bullet {
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--stone);
  margin-top: 9px;
}

@media (max-width: 900px) {
  .abo-vs { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. NUMBERS
   ========================================================================== */

.abo-numbers {
  background: var(--cream);
  padding: 96px 0 110px;
}
.abo-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.abo-number {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.abo-number:last-child { border-right: none; }
.abo-number .stat {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  font-style: italic;
  color: var(--clay);
}
.abo-number .label {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.abo-number .src {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-2);
}

@media (max-width: 900px) {
  .abo-numbers-grid { grid-template-columns: 1fr 1fr; }
  .abo-number:nth-child(2) { border-right: none; }
  .abo-number:nth-child(1),
  .abo-number:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .abo-numbers-grid { grid-template-columns: 1fr; }
  .abo-number { border-right: none; border-bottom: 1px solid var(--line); }
  .abo-number:last-child { border-bottom: none; }
}

/* ==========================================================================
   9. CLOSING CTA
   ========================================================================== */

.abo-closing {
  background: var(--ink);
  color: var(--cream);
  padding: 120px 0 130px;
  position: relative;
  overflow: hidden;
}
.abo-closing::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(226, 106, 58, 0.20), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(111, 124, 74, 0.18), transparent 50%);
  pointer-events: none;
}
.abo-closing .wrap { position: relative; z-index: 1; }
.abo-closing-inner { max-width: 900px; }
.abo-closing .abo-eyebrow { color: var(--sage); }
.abo-closing h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-top: 18px;
  color: #ffffff;
}
.abo-closing h2 em { font-style: italic; color: var(--clay); }
.abo-closing p {
  margin-top: 26px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(243, 241, 232, 0.85);
}
.abo-closing-ctas {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
