/* Layer progression: decorative flow is behind content and above the next section. */
.foundation { overflow:visible; }
.architecture::before { pointer-events:none; }
.foundation-detail .architecture::before { top:38%; height:180px; }
.home-page .foundation { position:relative; isolation:isolate; z-index:2; padding-bottom:64px; }
.home-page .foundation > .wrap { position:relative; z-index:1; }
.home-page .foundation::after {
  content:""; position:absolute; z-index:0; pointer-events:none;
  left:max(12px,calc((100% - 1320px)/2 + 32px));
  right:max(14px,calc((100% - 1320px)/2 + 28px));
  bottom:-48px; height:230px;
  background:linear-gradient(90deg,#dfdfd7,#a3c1b1);
  clip-path:polygon(0 30%,88% 30%,88% 0,100% 50%,88% 100%,88% 70%,0 70%);
}
.home-page .compact::before { display:none; }
.foundation-lead { align-self:end; }
.foundation-lead p { color:var(--muted); margin-bottom:22px; }
.foundation-link { position:relative; }
.progression-summary { margin:26px 0 0; position:relative; font-size:14px; color:var(--ink); }
.home-page .partner-note { position:relative; z-index:0; padding-top:110px; }
.platforms > div { gap:22px; }
.platforms img { flex-shrink:0; }
.platforms span { white-space:nowrap; }
.platforms img[src$="amazonaws.svg"] { width:32px; height:26px; }

/* Commerce is a disclosure navigation group, with ordinary keyboard-focusable links. */
header { z-index:30; }
.nav-commerce { position:relative; }
.commerce-toggle {
  display:flex; align-items:center; gap:7px; padding:10px 0;
  border:0; background:none; font:inherit; color:inherit;
}
.commerce-toggle svg { width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.6; transition:transform .2s; }
.commerce-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.commerce-toggle:hover, .commerce-toggle.section-current { color:var(--green); }
.commerce-submenu {
  position:absolute; left:-22px; top:calc(100% + 12px); width:280px;
  padding:10px 20px; background:#fcfbf8; border:1px solid var(--line);
  border-top:3px solid var(--green); box-shadow:0 12px 28px #1c293315; z-index:40;
}
.commerce-submenu > a { display:block; padding:13px 3px; font-size:16px; line-height:1.4; }
.commerce-submenu > a + a { border-top:1px solid var(--line); }
.commerce-submenu small { display:block; color:var(--muted); font-size:13px; font-weight:400; margin-top:5px; }
.commerce-submenu a:hover, .commerce-submenu a[aria-current="page"] { color:var(--green); }
.commerce-submenu a[aria-current="page"] { text-decoration:underline; text-underline-offset:5px; }

/* The commercial cycle: four inspectable stages, each with a distinct visual. */
.commercial-cycle { margin:0 0 64px; }
.cycle-instruction { color:var(--muted); font-size:16px; margin-bottom:28px; }
.cycle-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid var(--line); gap:18px; }
.cycle-tabs button {
  display:flex; flex-direction:column; align-items:flex-start; gap:15px; text-align:left;
  padding:0 0 23px; border:0; border-bottom:3px solid transparent;
  background:none; color:var(--muted); font-size:16px; font-weight:500;
}
.cycle-tabs button:hover { color:var(--green); }
.cycle-tabs button[aria-selected="true"] { color:var(--green); border-bottom-color:var(--green); }
.cycle-icon { width:42px; height:42px; }
.cycle-panel { display:grid; grid-template-columns:1fr 1.1fr; gap:50px; padding:38px 0 28px; align-items:center; }
.cycle-copy h3 { font-size:30px; font-weight:500; line-height:1.16; letter-spacing:-.035em; margin-bottom:20px; }
.cycle-copy > p:not(.eyebrow) { color:var(--muted); font-size:16px; }
.cycle-copy .cycle-outcome { border-left:2px solid var(--copper); padding-left:17px; color:var(--ink)!important; }
.cycle-module-links { margin-top:25px; }
.cycle-module-links > span { display:block; font-size:12px; letter-spacing:.1em; font-weight:600; color:var(--muted); margin-bottom:10px; }
.cycle-module-links > a { display:block; width:fit-content; font-size:14px; color:var(--green); padding:5px 0; text-decoration:underline; text-underline-offset:4px; }
.cycle-loop-note { font-size:14px; color:var(--muted); border-top:1px solid var(--line); padding-top:20px; margin:0; }
.cycle-visual { min-width:0; }
.range-visual { position:relative; height:370px; overflow:hidden; }
.range-visual img { width:100%; height:100%; object-fit:cover; }
.range-visual > div { position:absolute; inset:auto 0 0; background:#103e3bf0; color:white; padding:24px; }
.range-visual span { font-size:12px; letter-spacing:.1em; text-transform:uppercase; }
.range-visual strong { display:block; font-family:Georgia,serif; font-weight:400; font-size:28px; line-height:1.2; margin-top:10px; }
.range-visual p { font-size:14px; color:#e2e8df; margin:13px 0 0; }
.planning-visual,.allocation-visual,.learning-visual { padding:28px; min-height:370px; background:var(--ivory); }
.visual-label { font-size:12px; letter-spacing:.1em; font-weight:600; color:var(--green); }
.visual-footnote { font-size:14px; color:var(--muted); margin:24px 0 0; }
.demand-source,.stock-source { padding:20px; background:var(--green); color:white; font-size:24px; letter-spacing:-.025em; line-height:1.3; text-align:center; }
.demand-source small,.stock-source small { display:block; font-size:13px; margin-top:9px; letter-spacing:0; color:#deebe4; }
.planning-branches { display:grid; grid-template-columns:repeat(2,1fr); gap:13px; padding-top:22px; position:relative; }
.planning-branches::before { content:""; width:1px; height:22px; background:var(--copper); position:absolute; top:0; left:50%; }
.planning-branches > span { padding:13px; font-size:20px; line-height:1.3; background:#fcfbf8; border-top:2px solid var(--copper); }
.planning-branches small,.stock-destinations small { display:block; font-size:13px; margin-top:7px; color:var(--muted); }
.stock-destinations { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-top:38px; position:relative; }
.stock-destinations::before { content:""; position:absolute; height:20px; top:18px; left:24%; right:24%; border:1px solid var(--copper); border-bottom:0; }
.stock-destinations::after { content:""; position:absolute; width:1px; height:18px; top:0; left:50%; background:var(--copper); }
.stock-destinations > span { text-align:center; background:#fcfbf8; border:1px solid var(--line); padding:18px 8px; font-size:22px; line-height:1.3; }
.constraint-strip { display:flex; flex-wrap:wrap; gap:8px; margin-top:25px; }
.constraint-strip > span { font-size:13px; padding:5px 10px; border:1px solid #bcc8bc; }
.learning-ring { height:225px; position:relative; max-width:350px; margin:20px auto 0; }
.learning-ring::before { content:""; position:absolute; inset:28px 38px; border:2px solid #9fb7a7; border-radius:50%; }
.learning-ring > span { position:absolute; background:#fcfbf8; border:1px solid var(--line); padding:12px; font-size:14px; text-align:center; line-height:1.4; width:145px; z-index:1; }
.learning-ring > span:nth-child(1) { top:0; left:0; color:var(--green); }
.learning-ring > span:nth-child(2) { top:45px; right:0; }
.learning-ring > span:nth-child(3) { bottom:10px; right:0; }
.learning-ring > span:nth-child(4) { bottom:50px; left:0; background:var(--green); color:white; border-color:var(--green); }
.module-directory-heading { padding-top:20px; }
.module-directory-heading h3 { font-size:28px; font-weight:500; letter-spacing:-.03em; margin-bottom:15px; }
.module-directory-heading p { color:var(--muted); margin-bottom:30px; }
.copy-example { max-width:900px; border-left:3px solid var(--copper); padding:15px 0 15px 30px; }
.copy-example h3 { font-size:29px; font-weight:500; line-height:1.2; letter-spacing:-.03em; }
.copy-example > p:not(.eyebrow) { color:var(--muted); }
.copy-example small { font-size:13px; color:var(--muted); }

@media(max-width:1100px) {
  .platforms { flex-direction:column; align-items:flex-start; }
  .cycle-panel { gap:32px; }
  .planning-visual,.allocation-visual,.learning-visual { padding:23px; }
}
@media(max-width:950px) {
  .commerce-toggle { padding:13px 0; width:100%; justify-content:space-between; font-size:16px; }
  .commerce-submenu { position:static; width:100%; box-shadow:none; border:0; border-left:2px solid var(--green); padding:0 0 0 20px; margin:0 0 15px; }
  #nav { max-height:calc(100dvh - 82px); overflow-y:auto; }
  .foundation-detail .architecture::before { top:-10px; bottom:-15px; height:auto; }
}
@media(max-width:760px) {
  .foundation-lead { margin-top:24px; }
  .foundation-link { font-size:14px; }
  .home-page .foundation { padding-bottom:60px; }
  .home-page .foundation::after { left:calc(50% - 55px); right:auto; width:110px; height:calc(100% - 400px); bottom:-36px; min-height:260px; clip-path:polygon(35% 0,65% 0,65% calc(100% - 55px),100% calc(100% - 55px),50% 100%,0 calc(100% - 55px),35% calc(100% - 55px)); background:linear-gradient(#dfdfd7,#a3c1b1); }
  .home-page .partner-note { padding-top:82px; }
  .progression-summary { text-align:center; margin-top:24px; }
  .commercial-cycle { margin-bottom:45px; }
  .cycle-tabs { grid-template-columns:repeat(2,1fr); gap:22px 18px; }
  .cycle-tabs button { flex-direction:row; align-items:center; gap:12px; font-size:14px; padding-bottom:15px; }
  .cycle-icon { width:33px; height:33px; flex-shrink:0; }
  .cycle-panel { display:flex; flex-direction:column; align-items:stretch; gap:28px; padding-top:28px; }
  .cycle-copy h3 { font-size:28px; }
  .range-visual { height:310px; }
  .planning-visual,.allocation-visual,.learning-visual { min-height:340px; }
  .learning-ring { max-width:340px; }
  .learning-ring > span { width:135px; font-size:13px; }
  .stock-destinations > span { font-size:20px; }
  .copy-example { padding-left:20px; }
}
@media(prefers-reduced-motion:reduce) { .commerce-toggle svg { transition:none; } }
