/* Enigma Technology Services — Evolution Layer (Additive Overrides)
   Target: Private Prototype Candidate
   Retains: Baseline palette, typography, shell, focus, motion conventions.
   Scope: Visual composition adjustments per DESIGN.md contract.
*/

/* 1. Utility: Visually Hidden Helper (Required by generated HTML) */
.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;
}

/* 2. Hero Composition Adjustments */
/* Shorten first-screen composition, ensure CTAs fit on small screens */
.hero {
  /* Reduce min-height slightly to tighten vertical rhythm on mobile */
  min-height: 90svh;
  padding-bottom: 32px;
}

.hero-shell {
  /* Tighten gap between copy and film controls */
  gap: clamp(32px, 6vh, 80px);
}

.hero h1 {
  /* Ensure headline doesn't clip at 320px by reducing max-width constraint slightly */
  max-width: 16ch;
  /* Adjust font-size clamp for better mobile fit */
  font-size: clamp(2.8rem, 5.5vw, 6.2rem);
}

.lede {
  /* Shorten lede visually by reducing max-width */
  max-width: 48ch;
  margin-top: 24px;
}

.actions {
  /* Ensure two equal audience actions sit beside each other on desktop */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: 32px;
}

.actions .button {
  /* Content-sized buttons with deliberate gap, not stretching full width */
  flex: 0 1 auto;
  min-width: 140px;
  /* Ensure text fits without clipping */
  padding: 0 16px;
  font-size: 0.76rem;
}

/* Stack actions at small widths as per contract */
@media (max-width: 767px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .actions .button {
    width: 100%;
    min-height: 48px;
  }
}

/* 3. Audience Invitations (Open Ruled Columns on Carbon) */
.audience-invitations {
  padding: 80px 0;
  background: var(--carbon);
  border-top: 1px solid var(--rule-dark);
}

.invitation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.invitation-card {
  /* Open ruled column style: no background, no border-radius, just rules */
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  /* Ruled separation */
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 32px;
}

.invitation-card .eyebrow {
  margin-bottom: 12px;
}

.invitation-card h3 {
  /* 30-38px heading range */
  font-size: clamp(1.875rem, 2.5vw, 2.375rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.invitation-card p {
  color: var(--on-dark-muted);
  margin-bottom: 20px;
  font-size: 1rem;
}

.invitation-card .text-link {
  font-size: 0.85rem;
}

@media (max-width: 767px) {
  .invitation-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .invitation-card {
    padding-bottom: 24px;
  }
}

/* 4. Approach (Asymmetrical, Three Readable Columns) */
.approach {
  padding: 100px 0;
  background: var(--graphite);
  border-top: 1px solid var(--rule-dark);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.approach-intro {
  grid-column: 1 / span 5;
}

.approach-intro h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-top: 24px;
  margin-bottom: 24px;
}

.approach-intro p {
  color: var(--on-dark-muted);
  max-width: 40ch;
}

.approach-intro > p + p {
  margin-top: 18px;
}

.approach-intro p em {
  color: var(--canvas-shadow);
  font-family: var(--serif);
  font-style: italic;
}

.sequence {
  /* Override inherited baseline .sequence placement and margins */
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  border-top: 1px solid var(--rule-dark-strong);
  padding-top: 32px;
}

/* Explicitly override retained baseline .sequence li + li { padding-left: 28px; } */
.sequence li + li {
  padding-left: 0;
}

.sequence li {
  /* Readable columns, not cards */
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  border-right: 1px solid var(--rule-dark);
  padding-right: 24px;
}

.sequence li:last-child {
  border-right: 0;
  padding-right: 0;
}

.sequence li span {
  color: var(--signal);
  font: 650 0.7rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.sequence h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.sequence p {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .approach-intro {
    grid-column: 1 / span 12;
    margin-bottom: 40px;
  }
  .sequence {
    grid-column: 1 / span 12;
  }
}

@media (max-width: 767px) {
  .sequence {
    grid-template-columns: 1fr;
    gap: 24px;
    border-top: 0;
    padding-top: 0;
  }
  .sequence li {
    border-right: 0;
    border-bottom: 1px solid var(--rule-dark);
    padding-right: 0;
    padding-bottom: 24px;
  }
  .sequence li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* 5. Compounding (Canvas Chapter, Editorial Plus Rhythm) */
.compounding {
  padding: 120px 0;
  background: var(--canvas);
  color: var(--carbon);
  border-top: 1px solid var(--rule-dark);
}

.compounding .folio {
  color: var(--on-canvas-muted);
}

.compounding .folio span {
  color: var(--carbon);
}

.compounding .folio::after {
  background: var(--deep-ochre);
}

.compounding-intro {
  max-width: 60ch;
  margin-bottom: 64px;
}

.compounding-intro h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 24px;
  margin-bottom: 24px;
}

.compounding-intro h2 em {
  color: var(--deep-ochre);
}

.compounding-intro p {
  color: var(--on-canvas-muted);
  font-size: 1.1rem;
}

.compounding-sequence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.compounding-item {
  flex: 1 1 200px;
  text-align: center;
}

.compounding-label {
  display: block;
  font: 650 0.8rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--carbon);
  margin-bottom: 8px;
}

.compounding-item p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--on-canvas-muted);
}

.compounding-plus {
  font-size: 2rem;
  color: var(--deep-ochre);
  font-weight: 300;
  line-height: 1;
}

.compounding-closing {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 64px;
  color: var(--carbon);
}

/* Current Lanes: Secondary */
.lanes-secondary {
  border-top: 1px solid var(--rule-canvas);
  padding-top: 48px;
}

.lanes-secondary h3 {
  font: 650 0.8rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-canvas-muted);
  margin-bottom: 24px;
}

.lane-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lane-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--carbon);
}

.lane-item p {
  font-size: 0.9rem;
  color: var(--on-canvas-muted);
}

@media (max-width: 767px) {
  .compounding-sequence {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .compounding-plus {
    display: none;
  }
  .compounding-item {
    /* Reset desktop flex basis to auto for simple stacked rows */
    flex: 1 1 auto;
    border-bottom: 1px solid var(--rule-canvas);
    padding-bottom: 16px;
    text-align: left;
  }
  .compounding-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .lane-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Transcript refinement candidate: film treatment and global motion toggle. */
.film-foot,
.film-control {
  display: none !important;
}

.invitation-card h3 em {
  color: var(--canvas-shadow);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.motion-toggle {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-dark-faint);
  cursor: pointer;
  font: 500 0.7rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.motion-toggle:hover,
.motion-toggle:focus-visible { color: var(--canvas); }

.inquiry-form [hidden] { display: none !important; }

@media (max-width: 767px) {
  .motion-toggle {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }
}

/* 6. Builder Invitation (Second Film, Editorial Margin Benefits) */
.builder-invitation {
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 80svh;
  padding: 120px 0 60px;
  background: var(--carbon);
  border-top: 1px solid var(--rule-dark);
}

/* Explicit dark cinematic scrim for the builder film */
.film-builder .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 9, 0.85) 0%, rgba(8, 10, 9, 0.4) 50%, rgba(8, 10, 9, 0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

.builder-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: end;
  min-width: 0;
}

.builder-copy {
  grid-column: 1 / span 7;
  min-width: 0;
}

.builder-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 24px;
  margin-bottom: 24px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.builder-copy h2 em {
  color: var(--canvas-shadow);
}

.builder-copy p {
  color: var(--on-dark-muted);
  max-width: 50ch;
  margin-bottom: 32px;
}

.builder-benefits {
  grid-column: 9 / span 4;
  border-top: 1px solid var(--rule-dark-strong);
  padding-top: 24px;
  min-width: 0;
}

.builder-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.builder-benefits li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--canvas);
  font-size: 0.95rem;
}

.builder-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 1px;
  background: var(--signal);
}

.builder-invitation .film-foot {
  grid-column: 1 / -1;
  margin-top: 40px;
}

@media (max-width: 1023px) {
  .builder-copy {
    grid-column: 1 / span 12;
  }
  .builder-benefits {
    grid-column: 1 / span 12;
    margin-top: 32px;
  }
}

/* 7. Founders (Retain Typography) */
.founders {
  padding: 120px 0;
  background: var(--carbon);
  border-top: 1px solid var(--rule-dark);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.founders-heading {
  grid-column: 1 / span 5;
  min-width: 0;
}

.founders-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-top: 24px;
  margin-bottom: 24px;
}

.founders-heading h2 em {
  color: var(--canvas-shadow);
}

.founders-heading p {
  color: var(--on-dark-muted);
}

.founder-list {
  grid-column: 7 / span 6;
  border-top: 1px solid var(--rule-dark-strong);
  min-width: 0;
}

.founder {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-dark-strong);
}

.founder:last-child {
  border-bottom: 0;
}

.founder h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.founder .role {
  color: var(--signal);
  font: 650 0.7rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.founder p:last-child {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .founders-heading {
    grid-column: 1 / span 12;
    margin-bottom: 40px;
  }
  .founder-list {
    grid-column: 1 / span 12;
  }
}

/* 8. Contact (Retain Form Typography) */
.contact {
  padding: 120px 0;
  background: var(--graphite);
  border-top: 1px solid var(--rule-dark);
}

.contact-grid {
  display: grid;
  /* Use minmax(0, 1fr) to prevent overflow at narrow widths */
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px;
}

.contact-copy {
  grid-column: 1 / span 5;
  /* Prevent overflow */
  min-width: 0;
}

.contact-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-top: 24px;
  margin-bottom: 32px;
}

.contact-copy h2 em {
  color: var(--canvas-shadow);
}

.engage {
  margin-bottom: 24px;
}

.engage .eyebrow {
  margin-bottom: 8px;
}

.engage p {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.notice {
  margin-top: 32px;
  padding-left: 16px;
  border-left: 2px solid var(--signal);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
}

.notice strong {
  color: var(--canvas);
}

.inquiry-form {
  grid-column: 7 / span 6;
  display: grid;
  /* Use minmax(0, 1fr) to prevent overflow */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  /* Prevent overflow */
  min-width: 0;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--on-dark-muted);
  font: 600 0.7rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Prevent overflow */
  min-width: 0;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule-dark-strong);
  background: transparent;
  color: var(--canvas);
  font-family: var(--display);
  font-size: 1rem;
  /* Prevent overflow */
  min-width: 0;
}

.inquiry-form textarea {
  min-height: 100px;
  resize: vertical;
}

.inquiry-form fieldset {
  grid-column: 1 / -1;
  border: 0;
  padding: 0;
  margin: 0;
  /* Prevent overflow */
  min-width: 0;
}

.inquiry-form legend {
  display: block;
  margin-bottom: 12px;
  color: var(--on-dark-muted);
  font: 600 0.7rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inquiry-form fieldset label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  text-transform: none;
  font-family: var(--display);
  color: var(--canvas);
}

.inquiry-form fieldset input[type="radio"] {
  width: auto;
  accent-color: var(--signal);
}

.form-wide {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: center;
}

.reset-button {
  background: transparent;
  border: 0;
  color: var(--on-dark-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.form-status {
  grid-column: 1 / -1;
  color: var(--signal);
  font-size: 0.85rem;
}

.noscript-note {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid var(--rule-dark-strong);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
}

@media (max-width: 1023px) {
  .contact-copy {
    grid-column: 1 / span 12;
    margin-bottom: 40px;
  }
  .inquiry-form {
    grid-column: 1 / span 12;
    /* True single-column layout */
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 9. Footer (Neutral) */
.site-footer {
  padding: 48px 0;
  background: var(--carbon);
  border-top: 1px solid var(--rule-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.brand-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-footer img {
  width: 32px;
  height: 32px;
}

.brand-footer span {
  display: grid;
  line-height: 1.2;
}

.brand-footer strong {
  font-size: 0.85rem;
  color: var(--canvas);
}

.brand-footer small {
  font-size: 0.7rem;
  color: var(--on-dark-muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--on-dark-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--canvas);
}

.site-footer > .shell > p {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  color: var(--on-dark-faint);
  font-size: 0.7rem;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .brand-footer {
    justify-content: center;
  }
  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* 10. Mobile Specifics & No-JS Fallback */
@media (max-width: 479px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .compounding-intro h2 {
    font-size: 2.2rem;
  }
  .builder-copy h2 {
    font-size: 2.2rem;
  }
  .founders-heading h2 {
    font-size: 2.2rem;
  }
  .contact-copy h2 {
    font-size: 2.2rem;
  }
}

/* Ensure no horizontal scroll at 320px */
@media (max-width: 320px) {
  :root {
    --shell: calc(100vw - 24px);
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .actions .button {
    font-size: 0.7rem;
    padding: 0 12px;
  }
}

/* No-JS Readability: Ensure content visible without JS */
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

html:not(.js) .film-foot {
  display: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js .film video {
    opacity: 1;
  }
}

/* 11. Browser-Backed Mobile Repairs */

/* Repair 1: Override retained 100vw shell sizing for proper gutters */
@media (max-width: 767px) {
  .shell {
    width: calc(100% - 40px);
    min-width: 0;
  }
}

@media (max-width: 320px) {
  .shell {
    width: calc(100% - 32px);
    min-width: 0;
  }
}

/* Repair 2: Prevent contact overflow at narrow widths */
/* Already applied in section 8, but ensuring explicit coverage here for clarity */
.contact-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.contact-copy,
.inquiry-form,
.inquiry-form label,
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select,
.inquiry-form fieldset {
  min-width: 0;
}

@media (max-width: 1023px) {
  .inquiry-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Repair 3: Prevent builder overflow at narrow widths */
.builder-shell {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-width: 0;
}

.builder-copy,
.builder-benefits {
  min-width: 0;
}

.builder-copy h2 {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Repair 4: Prevent approach/founder grid overflow */
.approach-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.approach-intro,
.sequence {
  min-width: 0;
}

.founders-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.founders-heading,
.founder-list {
  min-width: 0;
}/* Bounded final CSS repair: Contact grid overflow at 390px/320px */
/* Target: prototypes/04-mission-fit/evolution.css */

@media (max-width: 1023px) {
  /* 1. Collapse the 12-track grid to a single fluid track */
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  /* 2. Ensure direct children span the single track and respect min-width */
  .contact-copy,
  .inquiry-form {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  /* 3. Prevent form controls from forcing horizontal overflow */
  .inquiry-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .inquiry-form label,
  .inquiry-form input,
  .inquiry-form textarea,
  .inquiry-form select,
  .inquiry-form fieldset,
  .inquiry-form legend {
    min-width: 0;
    max-width: 100%;
  }

  /* 4. Allow long labels/headings to wrap without breaking layout */
  .contact-copy h2,
  .inquiry-form label,
  .inquiry-form legend {
    overflow-wrap: break-word;
    word-break: break-word;
  }
}/* Bounded final CSS repair: Mobile grid overflow at 320px for Builder, Approach, Founders */
/* Target: prototypes/04-mission-fit/evolution.css */

@media (max-width: 767px) {
  /* 1. Collapse Builder Shell to single track */
  .builder-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder-copy,
  .builder-benefits {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  /* 2. Collapse Approach Grid to single track */
  .approach-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .approach-intro,
  .sequence {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  /* 3. Collapse Founders Grid to single track */
  .founders-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .founders-heading,
  .founder-list {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }
}/* Bounded repair: Compounding folio overflow at 320px */
/* Target: prototypes/04-mission-fit/evolution.css */

@media (max-width: 767px) {
  .compounding-intro .folio {
    /* Allow wrapping to prevent horizontal overflow */
    white-space: normal;
    /* Explicit compact sizing to override paragraph inheritance */
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 16px;
  }
}

@media (max-width: 320px) {
  .compounding-intro .folio::after {
    /* Hide decorative rule at very narrow widths to save space */
    display: none;
  }
}
/* Bounded final CSS repair: Compounding folio gap at <=767px */
/* Target: prototypes/04-mission-fit/evolution.css */

@media (max-width: 767px) {
  .compounding-intro .folio span {
    /* Add inline-end gap to separate number from label */
    padding-inline-end: 0.5em;
    /* Ensure the span itself doesn't collapse */
    display: inline-block;
  }
}
/* Bounded additive override: Compounding pairing band redesign */
/* Target: prototypes/04-mission-fit/evolution.css */
/* Scope: .compounding-sequence, .compounding-item, .compounding-label, .compounding-item p, .compounding-plus */

.compounding-sequence {
  /* Reset inherited flex layout to grid */
  display: grid;
  flex-wrap: unset;
  align-items: unset;
  justify-content: unset;
  
  /* Unified carbon/graphite inset band */
  background: var(--graphite);
  border: 1px solid var(--rule-dark-strong);
  border-radius: 0;
  box-shadow: none;
  
  /* Three equal columns with fine vertical rules */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  
  /* Layout constraints */
  padding: 32px 0;
  margin-bottom: 48px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.compounding-item {
  /* Reset inherited flex basis */
  flex: unset;
  
  /* Column styling */
  padding: 0 24px;
  border-right: 1px solid var(--rule-dark);
  border-bottom: 0;
  border-top: 0;
  border-left: 0;
  
  /* Alignment and overflow */
  text-align: left;
  min-width: 0;
  display: block;
}

.compounding-item:last-child {
  border-right: 0;
}

.compounding-label {
  /* Large canvas label */
  display: block;
  font: 650 1.1rem var(--display);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--canvas);
  margin-bottom: 8px;
  line-height: 1.2;
}

.compounding-item p {
  /* Smaller warm muted phrase */
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--on-dark-muted);
  margin: 0;
  line-height: 1.4;
}

.compounding-plus {
  /* Hide existing plus separators in grid layout */
  display: none;
}

/* Mobile: <=767px */
@media (max-width: 767px) {
  .compounding-sequence {
    /* Single column stacked rows */
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 0;
    gap: 0;
  }
  
  .compounding-item {
    /* Horizontal rules between stacked items */
    border-right: 0;
    border-bottom: 1px solid var(--rule-dark);
    padding: 16px 24px;
    text-align: left;
  }
  
  .compounding-item:last-child {
    border-bottom: 0;
  }
  
  .compounding-label {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  .compounding-item p {
    font-size: 0.9rem;
  }
}

/* The pairing band reads as inputs and an outcome on wider screens. */
@media (min-width: 768px) {
  .compounding-sequence { position: relative; }
  .compounding-plus {
    display: block;
    position: absolute;
    top: 50%;
    left: 33.333%;
    transform: translate(-50%, -50%);
    padding: 6px;
    background: var(--graphite);
    color: var(--signal);
    font-size: 1.35rem;
  }
  .compounding-plus:nth-of-type(2) { left: 66.666%; }
}
