/* Homepage exploration. Deliberately scoped; other pages retain their design. */
body:has(.home-section) { --paper:#080a09; --paper-raised:#121613; --ink:#f4f0e6; --ink-soft:#c2c9c0; --ink-faint:#a5b19f; --rule:#303a32; --accent:#b9d797; --accent-soft:#1c2a20; color-scheme:dark; background:var(--paper); color:var(--ink); }
body:has(.home-section) .masthead { max-width:none; margin:0; justify-content:flex-start; border-bottom:1px solid var(--rule); padding-block:20px; }
body:has(.home-section) .brand { --logo-h:64px; }
body:has(.home-section) .nav { margin-left:0; justify-content:flex-start; gap:22px; }
.home-section .wrap { max-width:1320px; }
.hero.home-section { padding-top:32px; padding-bottom:0; text-align:left; }
.hero.home-section h1 { font-size:clamp(3.6rem,8.6vw,7.7rem); letter-spacing:-.045em; margin:0 0 22px; max-width:12ch; line-height:.98; }
.hero.home-section .eyebrow { color:var(--accent); font-size:11px; letter-spacing:.18em; }
.hero.home-section .wrap > p { margin-inline:0; max-width:53ch; }
.hero.home-section h1 + p { max-width:min(100%, calc(clamp(3.6rem, 8.6vw, 7.7rem) * 7.4)); font-size:clamp(1.05rem,1.8vw,1.3rem); line-height:1.6; }
.hero.home-section .wrap > p:has(a) { margin-block:28px 44px; font-size:14px; }
.hero.home-section .wrap > p:has(a) a:first-child, .home-section:last-child p a:first-child { display:inline-block; padding:13px 23px; border-radius:5px; background:var(--ink); color:var(--paper); text-decoration:none; margin:0 8px 8px 0; }
.workshop { margin:0; border:1px solid #c9cdbd; border-radius:10px 10px 0 0; overflow:hidden; background:#eee9da; text-align:left; }
.workshop-top, .workshop figcaption { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:15px 22px; font-size:10px; letter-spacing:.12em; }
.workshop-top i { display:inline-block; width:7px; height:7px; background:#4b7950; margin-right:8px; box-shadow:0 0 0 4px #4b79501a; }
.workshop img { display:block; width:100%; height:auto; max-height:660px; object-fit:cover; object-position:center; image-rendering:pixelated; }
.workshop figcaption { letter-spacing:0; font-size:12px; background:#eee9da; color:#354b39; }
.section.home-section { padding-block:90px; }
.home-section h2 { font-size:clamp(2.1rem,4.2vw,3.8rem); max-width:20ch; line-height:1.08; }
.section.home-section:nth-of-type(2) .wrap, .section.home-section:nth-of-type(4) .wrap { display:grid; grid-template-columns:1fr 1fr; column-gap:8%; }
.section.home-section:nth-of-type(2) h2, .section.home-section:nth-of-type(4) h2 { grid-column:1; grid-row:1 / 3; }
.section.home-section:nth-of-type(2) p, .section.home-section:nth-of-type(4) p { grid-column:2; }
.home-section .point { border-top:1px solid var(--rule); padding-top:22px; padding-bottom:8px; }
.home-section .point strong { display:block; margin-bottom:7px; font-size:1.3rem; }
.meeting-demo { margin-top:40px; display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--rule); gap:7%; padding-top:32px; }
.meeting-note > p { font-family:var(--display); font-size:clamp(1.5rem,2.4vw,2.1rem); line-height:1.4; color:var(--ink); }
.meeting-actions details { border-top:1px solid var(--rule); padding:18px 0; }
.meeting-actions summary { cursor:pointer; font-size:18px; font-weight:500; }
.meeting-actions summary span { font-size:11px; color:var(--ink-soft); margin:0 10px; }
.meeting-actions details p { font-size:15px; margin:16px 0 0; }
.section.home-section:nth-of-type(3) { background:#15271c; --ink:#fff8e8; --ink-soft:#d6ded0; --accent:#c5d69c; color:var(--ink); }
.section.home-section:nth-of-type(3) .wrap { max-width:1020px; }
.section.home-section:nth-of-type(3) p { max-width:65ch; }
.home-section:last-child { background:#101410; text-align:left; }
.home-section:last-child h2, .home-section:last-child p { margin-inline:0; }
@media (prefers-reduced-motion:no-preference) { .hero.home-section h1 { animation:home-enter .65s ease-out both; } .hero.home-section .workshop { animation:home-enter .85s ease-out both; } @keyframes home-enter { from { opacity:0; transform:translateY(12px); } to {opacity:1;transform:none;} } }
@media(max-width:900px) { body:has(.home-section) .masthead { justify-content:flex-start; } body:has(.home-section) .nav { margin:0; justify-content:flex-start; } .section.home-section:nth-of-type(2) .wrap, .section.home-section:nth-of-type(4) .wrap { display:block; } .meeting-demo { grid-template-columns:1fr; gap:25px; } .section.home-section { padding-block:58px; } .workshop-top span:last-child, .workshop figcaption span:last-child { display:none; } }
@media(max-width:600px) { body:has(.home-section) .brand { --logo-h:54px; } .hero.home-section { padding-top:32px; } .hero.home-section h1 { font-size:3.7rem; } .workshop-top,.workshop figcaption { padding:12px; font-size:10px; } .workshop img { min-height:300px; object-fit:cover; } body:has(.home-section) .nav { gap:9px 15px; } body:has(.home-section) .nav a { font-size:12px; } }

body:has(.home-section) .brand-logo-light { display:block !important; }
body:has(.home-section) .brand-logo-dark { display:none !important; }

.partnership { margin:0; overflow:hidden; background:var(--paper); }
.partnership canvas { display:block; width:100%; height:auto; image-rendering:pixelated; }
.partnership figcaption { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--rule); padding:16px 0; font-size:13px; color:var(--ink-soft); }
.partnership figcaption div { display:flex; gap:12px; }
.partnership button { background:transparent; color:var(--ink); border:1px solid var(--rule); border-radius:4px; padding:8px 14px; font:inherit; cursor:pointer; }
.partnership button:hover { background:var(--accent-soft); }
@media(max-width:600px) { .partnership canvas { width:160%; max-width:none; margin-left:-30%; } .partnership figcaption { align-items:flex-start; } }

/* Hero CTA color trial: orange outline and circuit-green text. */
.hero.home-section .wrap > p:has(a) a:first-child { background:transparent; border:1px solid #FF8A1F; color:#B8F0A0; }
.hero.home-section .wrap > p:has(a) a:first-child:hover { background:#FF8A1F14; }
.hero.home-section .wrap > p:has(a) a:first-child:focus-visible { outline:2px solid #B8F0A0; outline-offset:4px; }

/* Warm-white copy with light-green section headings. */
body:has(.home-section) .section.home-section,
body:has(.home-section) .footer {
  --ink:#f4f0e6;
  --ink-soft:#f4f0e6;
  --ink-faint:#f4f0e6;
  --accent:#B8F0A0;
  color:#f4f0e6;
}
body:has(.home-section) .nav-cta,
body:has(.home-section) .home-section:last-child p a:first-child {
  background:transparent;
  border:1px solid #FF8A1F;
  color:#B8F0A0;
}
body:has(.home-section) .nav-cta:hover,
body:has(.home-section) .home-section:last-child p a:first-child:hover {
  background:#FF8A1F14;
}
body:has(.home-section) .nav-cta:focus-visible {
  outline:2px solid #B8F0A0;
  outline-offset:4px;
}

body:has(.home-section) .section.home-section h2,
body:has(.home-section) .section.home-section h3,
body:has(.home-section) .section.home-section .point strong { color:#B8F0A0; }

/* Complete the heading treatment across the homepage. */
body:has(.home-section) .home-section h1,
body:has(.home-section) .home-section h2,
body:has(.home-section) .home-section h3,
body:has(.home-section) .home-section .eyebrow,
body:has(.home-section) .meeting-actions summary,
body:has(.home-section) .meeting-actions summary span { color:#B8F0A0; }
body:has(.home-section) .hero.home-section h1 + p,
body:has(.home-section) .partnership figcaption { color:#f4f0e6; }

/* The hero stays on its own plane as the original sections pass over it. */
body:has(.home-section) { overflow-x:clip; }
body:has(.home-section) main { position:relative; isolation:isolate; }
.hero.home-section {
  position:sticky;
  top:0;
  z-index:0;
}
.section.home-section {
  position:relative;
  z-index:1;
  margin-block:12vh 0;
  background:var(--paper);
}
/* Keep the existing section colors, without card borders, gradients or shadows. */
.section.home-section:nth-of-type(3) { background:#15271c; }
.section.home-section:last-child { background:#101410; }
@media(prefers-reduced-motion:reduce) {
  .hero.home-section { position:relative; }
  .section.home-section { margin-block:0; }
}

/* Keep navigation visible above the pinned hero and passing sections. */
body:has(.home-section) .masthead {
  position:sticky;
  top:0;
  z-index:20;
  background:#080a09;
}
.hero.home-section { top:var(--home-nav-height,120px); }
body:has(.home-section) { scroll-padding-top:var(--home-nav-height,120px); }
html:has(.home-section) { scroll-padding-top:var(--home-nav-height,120px); }
.partnership { border-top:0; padding-top:0; }
.logo-panel.home-section { position:relative; z-index:1; background:var(--paper); border-top:1px solid var(--rule); padding-top:18px; }
@media(prefers-reduced-motion:reduce) {
  .hero.home-section { top:auto; }
}

/* Static final frame while the character animation is parked. */
.partnership-static { position:relative; width:100%; aspect-ratio:1100 / 420; }
.partnership-static img { position:absolute; left:23.63636%; top:21.42857%; width:52.72727%; height:auto; }
.partnership-static > span { position:absolute; left:43%; top:66%; color:#a5b19f; font-family:var(--text); font-size:clamp(8px,1.7vw,24px); letter-spacing:.18em; text-transform:uppercase; white-space:nowrap; line-height:1; }

/* Principles: a coordinated icon set, with heading and body sharing a text edge. */
.home-section .point:has(.principle-icon) { padding-left:42px; }
.home-section .point:has(.principle-icon) strong { position:relative; }
.home-section .principle-icon { position:absolute; left:-42px; top:2px; color:#B8F0A0; }

/* Join the logo panel directly to the first content section. */
.logo-panel.home-section + .section.home-section { margin-top:0; }

/* Center the logo caption without a separating rule. */
.partnership figcaption { justify-content:center; text-align:center; border-top:0; }

/* Balance the caption in the space between the tagline and lower section rule. */
.partnership:has(.partnership-static) { position:relative; padding-bottom:54px; }
.partnership:has(.partnership-static) figcaption {
  position:absolute; left:0; right:0; top:80%;
  transform:translateY(-50%); padding:0;
  justify-content:center; text-align:center;
}
