/* /foundations: what is under the records. The marketing look's rules hold: the serif at its book
   weight, one label style, flat with hairlines, and one chartreuse line, which is the link. */

.und .section-heading { margin: 0 0 clamp(24px, 3vw, 38px); max-width: none; }
.und .section-heading h2 { max-width: 24ch; }

/* The hero */
.und-hero { padding: clamp(48px, 6.5vw, 96px) 0 clamp(44px, 5vw, 72px); }
.und-hero-grid { display: grid; gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.und-hero h1 {
    margin: 14px 0 0; max-width: 15ch; color: var(--ink-900);
    font-family: var(--font-head); font-weight: var(--w-disp);
    font-size: clamp(44px, 6vw, 76px); line-height: 1.04; letter-spacing: -.012em;
}
.und-hero p { margin: 20px 0 0; max-width: 56ch; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.und-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.und-more {
    color: var(--ink-900); font-weight: 600;
    text-decoration: underline; text-decoration-color: var(--mk-hair-2); text-underline-offset: 3px;
}
.und-more:hover { text-decoration-color: currentColor; }
.und-hero .rf-drawing { width: 100%; aspect-ratio: 360 / 170; border-radius: 18px; overflow: hidden; }
.und-hero .rf-drawing svg { display: block; width: 100%; height: 100%; }

/* The map. Each layer is opaque, so the line behind them shows only in the gaps. */
.und-map-section { padding: clamp(24px, 3vw, 40px) 0 clamp(52px, 6vw, 84px); }
.und-map {
    position: relative; display: grid; gap: 22px; padding: clamp(14px, 2.4vw, 28px);
    border-radius: 22px; background: var(--mk-night);
}
.und-map::before {
    content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 3px; margin-left: -1.5px;
    border-radius: 2px; background: #D9F25C;
}
.und-layer {
    position: relative; padding: 16px clamp(14px, 2vw, 22px) clamp(16px, 2vw, 22px);
    border: 1px solid var(--mk-hair-dark); border-radius: 14px; background: var(--mk-night-2);
}
body.marketing .und-layer h3 {
    margin: 0 0 12px; color: var(--mk-on-dark-3);
    font: var(--mk-label); letter-spacing: var(--mk-label-track); text-transform: uppercase;
}
.und-layer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.und-layer li { display: flex; min-width: 0; }
.und-box {
    display: block; flex: 1; min-width: 0; padding: 11px 13px;
    border: 1px solid var(--mk-hair-dark); border-radius: 10px;
    color: var(--mk-on-dark); text-decoration: none;
}
/* Two classes: body.marketing a { color: inherit } outweighs one, and a name then draws in the
   page's ink on the night. */
.und .und-layer a.und-box { color: var(--mk-on-dark); }
a.und-box { transition: border-color .15s ease, background .15s ease; }
a.und-box:hover { border-color: var(--mk-hair-dark-2); background: rgba(251, 248, 241, .05); }
a.und-box:focus-visible { outline: 2px solid var(--mk-accent-text); outline-offset: 2px; }
.und-box b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.und-box small { display: block; margin-top: 3px; color: var(--mk-on-dark-2); font-size: 12.5px; line-height: 1.35; }
.und-box.is-ai { border-color: var(--mk-accent-text); }
.und-box.is-ai b { color: var(--mk-accent-text); }
.und-map-note { margin: 18px 0 0; max-width: 66ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.und-map-note strong { color: var(--ink-900); font-weight: 600; }

/* Part by part */
.und-parts { padding: clamp(20px, 3vw, 36px) 0 clamp(52px, 6vw, 84px); }
.und-part {
    display: grid; gap: 10px clamp(28px, 4vw, 64px); padding: clamp(22px, 2.6vw, 32px) 0;
    border-top: 1px solid var(--mk-hair);
}
body.marketing .und-part h3 {
    margin: 0; color: var(--ink-900);
    font-family: var(--font-head); font-weight: var(--w-disp);
    font-size: clamp(25px, 2.5vw, 32px); line-height: 1.15; letter-spacing: -.005em;
}
.und-tech { margin: 8px 0 0; max-width: 34ch; color: var(--ink-400); font-size: 13.5px; line-height: 1.45; }
.und-part > div > p { margin: 0; max-width: 62ch; color: var(--ink-900); font-size: 17px; line-height: 1.55; }
.und-part ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; max-width: 62ch; list-style: none; }
.und-part li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.und-part li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--ink-400); }

/* The honest edges */
.und-limits { padding: clamp(44px, 5vw, 68px) 0; border-top: 1px solid var(--mk-hair); }
.und-limits-list { display: grid; gap: 18px clamp(24px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.und-limits-list li { padding-top: 14px; border-top: 1px solid var(--mk-hair); color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.und-limits-list strong { display: block; margin-bottom: 4px; color: var(--ink-900); font-weight: 600; }
.und-limits-list a { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--mk-hair-2); text-underline-offset: 3px; }

@media (min-width: 900px) {
    .und-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .und-part { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
    .und-limits-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The line would run through the middle of the boxes' text on a phone if a layer were not opaque;
   it is, so only the gaps change. */
@media (max-width: 560px) {
    .und-map { gap: 16px; }
    .und-layer ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .und-box { padding: 10px 11px; }
}
