/* =============================================================
   The Ground Effect — Foundations
   Colors, type, spacing, and semantic styles.
   Import this file to inherit the full system.
   ============================================================= */

/* Fonts: Fraunces (serif, display) + Inter (sans, UI/body).
   Loaded from Google Fonts. If offline, swap in the woff2 files
   in /fonts/ and rewrite these @import rules as @font-face. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ----- Colors (raw tokens) ----- */
  --warm-white:   #fafaf7;   /* page background — never #fff */
  --near-black:   #1a1a1a;   /* body, headings */
  --warm-gray:    #5a5a5a;   /* secondary text, metadata */
  --deep-pine:    #2a4a3a;   /* the one accent */
  --pale-sand:    #e5e3dc;   /* rules, dividers, subtle borders */

  /* ----- Semantic colors ----- */
  --bg:           var(--warm-white);
  --bg-inverse:   var(--near-black);
  --fg:           var(--near-black);
  --fg-muted:     var(--warm-gray);
  --fg-inverse:   var(--warm-white);
  --accent:       var(--deep-pine);
  --rule:         var(--pale-sand);
  --link:         var(--deep-pine);
  --link-hover-opacity: 0.7;

  /* ----- Type families ----- */
  --font-serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* ----- Type scale (matches the spec table) ----- */
  --fs-h1:        clamp(2rem, 4vw, 2.75rem);
  --fs-h2:        0.85rem;    /* small tracked uppercase label */
  --fs-h3:        1.05rem;
  --fs-lede:      1.15rem;
  --fs-body:      1rem;        /* 17px base via html { font-size: 17px } */
  --fs-quote:     1.05rem;
  --fs-small:     0.875rem;
  --fs-brand:     1.15rem;

  --lh-tight:     1.15;
  --lh-snug:      1.4;
  --lh-normal:    1.55;
  --lh-body:      1.6;

  --tracking-tight:  -0.02em;
  --tracking-label:  0.08em;
  --tracking-brand:  -0.02em;

  /* ----- Spacing scale ----- */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   2.5rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;

  /* ----- Layout ----- */
  --container-max:  720px;
  --measure:        62ch;       /* body copy line-length */
  --container-pad:  1.5rem;

  /* ----- Borders & rules ----- */
  --rule-width:     1px;
  --quote-border:   2px;
  --radius:         0;          /* system is flat; no rounded corners */

  /* ----- Motion ----- */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   120ms;
  --dur-med:    200ms;
}

/* -------------------------------------------------------------
   Base
   ------------------------------------------------------------- */
html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: 'ss01', 'cv11';
}

/* -------------------------------------------------------------
   Semantic typography
   ------------------------------------------------------------- */
h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 var(--space-sm);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-xs);
}

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
  max-width: var(--measure);
}

p {
  margin: 0 0 var(--space-sm);
  max-width: var(--measure);
  text-wrap: pretty;
}

small, .small {
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}

a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity var(--dur-fast) var(--ease);
}
a:hover { opacity: var(--link-hover-opacity); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

blockquote {
  margin: var(--space-lg) 0;
  padding-left: 1.25rem;
  border-left: var(--quote-border) solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-quote);
  line-height: var(--lh-normal);
  max-width: var(--measure);
  color: var(--fg);
}
blockquote cite {
  display: block;
  margin-top: var(--space-xs);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--fg-muted);
}

hr, .rule {
  border: 0;
  border-top: var(--rule-width) solid var(--rule);
  margin: var(--space-xl) 0;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* -------------------------------------------------------------
   Components
   ------------------------------------------------------------- */

/* Brand wordmark — lowercase "the ground effect", single line */
.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-brand);
  letter-spacing: var(--tracking-brand);
  color: var(--accent);
  text-transform: lowercase;
  white-space: nowrap;
  text-decoration: none;
}
.wordmark.on-dark { color: var(--fg-inverse); }

/* Monogram — lowercase g, for favicon/avatar contexts */
.monogram {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
  text-transform: lowercase;
  line-height: 1;
}

/* Section label (H2 with a 1px top rule + breathing room) */
.section {
  border-top: var(--rule-width) solid var(--rule);
  padding: var(--space-xl) 0;
}
.section:first-of-type { border-top: 0; }

/* Item block — bold title, muted body, stacked */
.item {
  margin-bottom: var(--space-lg);
}
.item:last-child { margin-bottom: 0; }
.item h3 { margin-bottom: var(--space-xs); }
.item p  { color: var(--fg-muted); }

/* Footer */
.site-footer {
  border-top: var(--rule-width) solid var(--rule);
  margin-top: var(--space-3xl);
  padding-top: var(--space-lg);
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.site-footer a { color: var(--fg-muted); }
.site-footer .sep::before { content: ' · '; color: var(--fg-muted); }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Button — used sparingly; inline-text "reach out" is preferred */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-body);
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--fg-inverse);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease);
}
.btn:hover { opacity: var(--link-hover-opacity); }
.btn--ghost {
  background: transparent;
  color: var(--accent);
}

/* Form field — label is a statement, not an instruction */
.field { display: block; margin-bottom: var(--space-md); }
.field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--fg);
  margin-bottom: var(--space-xs);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}


/* ================================================================
   The Ground Effect — Website v3
   Hierarchy, offering cards, post cards, newsletter, dark contact.
   Same 5 colors, 2 fonts, no gradients/shadows/radii.
   ================================================================ */

.tge-app {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  padding: var(--space-2xl) 0 var(--space-3xl);
  --content-max: 720px;
}
.tge-app .container { max-width: var(--content-max); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.tge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-sm) 0 var(--space-3xl);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-2xl);
}
.tge-nav { display: flex; gap: var(--space-lg); }
.tge-nav__link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--fg);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
}
.tge-nav__link:hover { opacity: 0.7; }

/* ---------- Section scaffolding (numbered labels + thin rule) ---------- */
.tge-section {
  border-top: 1px solid var(--rule);
  padding: var(--space-2xl) 0;
}
.tge-section:first-child,
.tge-section--hero { border-top: 0; padding-top: 0; }

.tge-h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 var(--space-lg);
}
.tge-h2__num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0;
}

/* ---------- Hero ---------- */
.tge-section--hero { padding-bottom: var(--space-3xl); }

.tge-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 var(--space-md);
}

.tge-h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 var(--space-3xl);
  text-wrap: balance;
}
.tge-h1__accent { color: var(--accent); font-style: italic; }

.tge-hero-sub {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--fg);
  margin: 0 0 var(--space-sm);
  max-width: 58ch;
}

.lede {
  max-width: 58ch;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* ---------- Section 00 — The ninety percent ---------- */
.tge-ninety-lead {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--fg);
  max-width: 22ch;
  margin: 0 0 var(--space-xl);
  text-wrap: balance;
}
.tge-ninety-body {
  max-width: 64ch;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
}
.tge-ninety-body p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 var(--space-md);
}
.tge-ninety-body p:last-child { margin-bottom: 0; }
.tge-ninety-quote {
  margin: var(--space-xl) 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--fg);
  max-width: 28ch;
}

/* ---------- Section 00 — Framework (legacy, kept for kit reference) ---------- */
.tge-framework-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--fg);
  max-width: 56ch;
  margin: 0 0 var(--space-2xl);
}
.tge-framework { margin: 0; }
.tge-framework__track {
  position: relative;
  height: 1px;
  background: var(--rule);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
}
.tge-framework__dot {
  width: 9px; height: 9px;
  background: var(--bg);
  border: 1px solid var(--fg-muted);
  transform: translateY(-4px);
}
.tge-framework__dot:last-child {
  background: var(--accent);
  border-color: var(--accent);
}
.tge-framework__stages {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.tge-framework__stages li { padding-top: var(--space-xs); }
.tge-framework__stages li.is-current h3 { color: var(--accent); }
.tge-framework__tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-xs);
}
.tge-framework__stages h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 var(--space-xs);
  line-height: 1.2;
}
.tge-framework__stages p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}
.tge-framework figcaption {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--fg);
  max-width: 64ch;
}
.tge-framework-thesis {
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  max-width: 64ch;
}

/* ---------- Buttons (used throughout) ---------- */
.tge-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 11px 18px;
  background: var(--accent);
  color: var(--fg-inverse);
  border: 1px solid var(--accent);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.tge-btn:hover { opacity: 0.7; }
.tge-btn--small {
  padding: 9px 14px;
  font-size: 0.875rem;
}

/* ---------- Section 01 — Offerings ---------- */
.tge-offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tge-offer {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-md) var(--space-xl) 0;
  border-right: 1px solid var(--rule);
  min-height: 360px;
}
.tge-offer:last-child { border-right: 0; padding-right: 0; }
.tge-offer + .tge-offer { padding-left: var(--space-md); }

.tge-offer__head { margin-bottom: var(--space-md); }
.tge-offer__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-xs);
}
.tge-offer__kind {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--fg-muted);
  margin: 0;
}

.tge-offer__body { flex: 1; }
.tge-offer__body p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 var(--space-sm);
}
.tge-offer__audience {
  color: var(--fg-muted) !important;
  font-style: italic;
}

.tge-offer__foot {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}
.tge-offer__price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}

/* Wayfinding — smaller, muted, italic */
.tge-wayfinding {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 70ch;
  margin: var(--space-xl) 0 0;
}

/* ---------- Section 02 — Writing ---------- */
.tge-writing-lede {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--fg);
  max-width: 56ch;
  margin: 0 0 var(--space-2xl);
}

.tge-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-2xl);
}
.tge-post {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md) var(--space-lg) 0;
  border-right: 1px solid var(--rule);
  color: var(--fg);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
  min-height: 180px;
}
.tge-post:last-child { border-right: 0; padding-right: 0; }
.tge-post + .tge-post { padding-left: var(--space-md); }
.tge-post:hover { opacity: 0.7; }
.tge-post__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
  margin: 0 0 var(--space-sm);
}
.tge-post__summary {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 var(--space-md);
  flex: 1;
}
.tge-post__link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

/* Testimonials */
.tge-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.tge-quote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}
.tge-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 var(--space-sm);
}
.tge-quote p em { font-style: normal; font-weight: 600; color: var(--accent); }
.tge-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.tge-quote cite .sep::before { content: ' · '; }

/* Newsletter — inline minimal */
.tge-newsletter-block {
  padding-top: 0;
}
.tge-newsletter-copy {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 var(--space-md);
  max-width: 60ch;
}
.tge-newsletter {
  display: flex;
  gap: var(--space-xs);
  max-width: 480px;
}
.tge-newsletter.is-sent { max-width: none; }
.tge-newsletter input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease);
}
.tge-newsletter input:focus {
  outline: none;
  border-color: var(--accent);
}
.tge-newsletter__sent {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin: 0;
}

/* ---------- Section 03 — Contact (black, constrained to container) ---------- */
.tge-section--contact {
  background: var(--fg);
  color: var(--fg-inverse);
  margin: var(--space-2xl) 0 0;
  padding: var(--space-2xl) var(--space-xl);
  border-top: 0;
}
.tge-section--contact .tge-h2 { color: rgba(250,250,247,0.55); margin-bottom: var(--space-xl); }
.tge-section--contact .tge-h2__num { color: #b9d4c3; }
.tge-contact { max-width: 100%; }
.tge-contact__lede {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg-inverse);
  margin: 0 0 var(--space-lg);
  max-width: 26ch;
  text-wrap: balance;
}
.tge-contact__email {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: #b9d4c3;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  letter-spacing: -0.01em;
}
.tge-contact__email:hover { opacity: 0.7; }
.tge-contact__note {
  margin: var(--space-sm) 0 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: rgba(250,250,247,0.55);
}

/* ---------- Footer ---------- */
.site-footer {
  color: var(--fg-muted);
  padding-top: var(--space-lg);
}
.site-footer a { color: var(--fg-muted); }

/* ---------- Workpacks page ---------- */
.tge-workpack__num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-sm);
}
.tge-workpack__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0 0 var(--space-sm);
}
.tge-workpack__platform {
  font-style: italic;
  font-weight: 400;
  font-size: 0.65em;
  color: var(--fg-muted);
}
.tge-workpack__promise {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.4;
  color: var(--accent);
  max-width: 44ch;
  margin: 0 0 var(--space-xl);
}

/* Screenshot slot — flat placeholder, ready to drop an <img> into */
.tge-workpack__media {
  margin: 0 0 var(--space-xl);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--pale-sand) 45%, var(--warm-white));
  display: flex;
  align-items: center;
  justify-content: center;
}
.tge-workpack__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tge-workpack__media-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Animated cockpit demo — same-origin iframe, JS auto-sizes height */
.tge-demo {
  margin: 0 0 var(--space-xl);
}
.tge-demo__frame {
  display: block;
  width: 100%;
  height: 720px; /* pre-JS default; script fits to content */
  border: var(--rule-width) solid var(--rule);
  background: var(--warm-white);
}
.tge-demo__fallback {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  border: var(--rule-width) solid var(--rule);
}

/* Product screenshot — flat framed (radius 0), centered, height-capped */
.tge-shot {
  margin: 0 0 var(--space-xl);
}
.tge-shot img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border: var(--rule-width) solid var(--rule);
  background: #fff;
}
.tge-shot--portrait img { max-width: 420px; }
.tge-shot--contents img { max-width: 360px; }
.tge-shot__cap {
  margin: var(--space-sm) auto 0;
  max-width: 46ch;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  color: var(--fg-muted);
}

/* Full-width explanatory diagram */
.tge-diagram {
  margin: 0 0 var(--space-xl);
}
.tge-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--rule-width) solid var(--rule);
}

.tge-workpack__inside-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-md);
}
.tge-workpack__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  border-top: 1px solid var(--rule);
  max-width: 64ch;
}
.tge-workpack__list li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-muted);
}
.tge-workpack__list li strong {
  color: var(--fg);
  font-weight: 600;
}

.tge-workpack__more {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .tge-framework__stages,
  .tge-offers,
  .tge-posts,
  .tge-quotes { grid-template-columns: 1fr; }
  .tge-offer,
  .tge-post {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    min-height: 0;
    padding: var(--space-lg) 0;
  }
  .tge-offer + .tge-offer,
  .tge-post + .tge-post { padding-left: 0; }
  .tge-offers > :last-child,
  .tge-posts > :last-child { border-bottom: 0; }
  .tge-section--contact {
    margin: var(--space-xl) 0 0;
    padding: var(--space-xl) var(--space-md);
  }
  .tge-newsletter { flex-direction: column; }
}
