/* ---- PROGRAMS (2026-11-09) ----
   The four paid programs: Scout, Circle, Torch, Bridge. Shared shell for the
   four pages plus the "Four ways in" section on the homepage. Homepage cards
   keep the speech-bubble outline; the program pages stay plain: titles,
   paragraphs, the one diagram, and photo slots. */
:root { --ink: var(--text-primary); --flame: #FF6A1A; }

/* Homepage section */
.progs { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(40px, 6vw, 90px); }
.progs__kicker, .prog-kicker {
    font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, 1.1vw, 16px);
    letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.progs__title {
    margin-top: 14px; font-family: var(--font-display); font-weight: 700; color: var(--ink);
    font-size: clamp(40px, 7vw, 112px); line-height: .96; letter-spacing: -.045em;
}
.progs__title em, .prog-hero h1 em, .prog-big em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 50%, #7EB3FF 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.progs__grid {
    margin-top: clamp(40px, 5vw, 70px);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.6vw, 24px);
}
.prog-card {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    padding: 28px 26px 26px; min-height: 340px;
    background: var(--bg-white); color: var(--ink); text-decoration: none;
    border: 4px solid var(--ink); border-radius: 28px;
    box-shadow: 8px 8px 0 var(--accent);
    transition: transform .18s ease, box-shadow .18s ease;
}
.prog-card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--accent); }
.prog-card:nth-child(odd)  { rotate: -1deg; }
.prog-card:nth-child(even) { rotate: 1deg; }
.prog-card svg { width: 64px; height: 64px; }
.prog-card__name {
    margin-top: 6px; font-family: var(--font-display); font-weight: 700;
    font-size: clamp(34px, 3vw, 46px); letter-spacing: -.04em; line-height: 1;
}
.prog-card__line { font-size: 18px; line-height: 1.35; font-weight: 600; }
.prog-card__who { margin-top: auto; padding-right: 34px; font-size: 14px; color: var(--text-muted); }
.prog-card__go {
    position: absolute; right: 22px; bottom: 22px; font-size: 22px; font-weight: 700; color: var(--accent);
    transition: transform .18s ease;
}
.prog-card:hover .prog-card__go { transform: translateX(4px); }

/* Glyph strokes */
.g { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.g-a { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.g-f { fill: var(--accent); stroke: none; }
.g-fl { fill: var(--flame); stroke: none; }

/* Program page shell */
.prog-page .nav { position: relative; }
.prog-hero { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(30px, 5vw, 70px); }
.prog-hero h1 {
    margin-top: 12px; font-family: var(--font-display); font-weight: 700; color: var(--ink);
    font-size: clamp(64px, 15vw, 240px); line-height: .86; letter-spacing: -.06em;
}
.prog-hero__line {
    margin-top: 26px; max-width: 22em; font-family: var(--font-display); font-weight: 600; color: var(--ink);
    font-size: clamp(22px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.02em;
}
.prog-hero__who { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-muted); }

.prog-sec { padding-top: clamp(50px, 7vw, 110px); padding-bottom: clamp(30px, 4vw, 60px); }
.prog-big {
    font-family: var(--font-display); font-weight: 700; color: var(--ink);
    font-size: clamp(30px, 4.6vw, 70px); line-height: 1.02; letter-spacing: -.04em; max-width: 16em;
}
.prog-hero__intro {
    margin-top: 22px; max-width: 36em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--text-muted);
}

/* Plain text sections: title left, paragraphs right. No boxes. */
.prog-text {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 5vw, 80px);
    padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(10px, 2vw, 20px);
}
.prog-text h2 {
    font-family: var(--font-display); font-weight: 700; color: var(--ink);
    font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.035em;
}
.prog-text__body { max-width: 38em; }
.prog-text__body p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink); }
.prog-text__body p + p { margin-top: 14px; }

/* Photo slots (only rendered once a file is uploaded) */
.prog-photo { margin-top: clamp(30px, 4vw, 60px); margin-bottom: clamp(10px, 2vw, 30px); }
.prog-photo img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: 24px; }
.prog-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); }

.prog-cta { padding: clamp(70px, 9vw, 130px) 0; text-align: center; }
.prog-cta h2 {
    font-family: var(--font-display); font-weight: 700; color: var(--ink);
    font-size: clamp(36px, 6vw, 92px); line-height: 1; letter-spacing: -.045em;
}
.prog-cta h2 em { font-style: normal; }
.prog-cta .btn-primary { margin-top: 34px; font-size: clamp(17px, 1.5vw, 21px); padding: 20px 44px; }

.prog-others { padding-bottom: 60px; }
.prog-others__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.prog-others a {
    padding: 6px 4px; font-family: var(--font-display); font-weight: 700; font-size: 18px;
    color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent;
}
.prog-others__row { gap: 28px; }
.prog-others a:hover { color: var(--ink); }
.prog-others a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

/* SCOUT: the year at a glance */
.scout-year {
    margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px;
}
.scout-m {
    display: flex; flex-direction: column; gap: 8px; min-height: 130px; padding: 14px 0 0;
    border-top: 2px solid var(--ink);
}
.scout-m__n { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.scout-chip {
    display: block; padding: 6px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700; line-height: 1.2;
    background: var(--tag-bg); color: var(--tag-text);
}
.scout-chip--call { background: var(--accent); color: #fff; }
.scout-any {
    margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); color: var(--accent);
}
/* CIRCLE: the ring */
.circle-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.circle-ring { width: 100%; max-width: 560px; justify-self: center; }
.circle-ring .seat { fill: var(--bg-white); stroke: var(--ink); stroke-width: 1.6; }
.circle-ring .founder { fill: var(--bg-white); stroke: var(--ink); stroke-width: 4; }
.circle-ring text { font-family: var(--font-display); font-weight: 700; fill: var(--ink); }
.circle-ring .ring-label { font-size: 15px; letter-spacing: .12em; fill: var(--text-muted); }
.circle-ring .table-top { fill: var(--tag-bg); stroke: none; }
.circle-ring .table .seat { stroke-width: 1.4; }
.circle-ring .table.is-mine .table-top { fill: var(--accent); }
.circle-ring .table.is-mine .seat { fill: var(--accent); stroke: var(--accent); }
.circle-ring .ring-label--mine { fill: var(--accent); font-size: 13px; }
.circle-ring .pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .5;
    transform-origin: 300px 300px; animation: ring-pulse 3.2s ease-out infinite; }
@keyframes ring-pulse { from { transform: scale(.55); opacity: .55; } to { transform: scale(1); opacity: 0; } }

/* TORCH: the route */
.torch-route { position: relative; margin-top: 40px; padding-left: 70px; }
.torch-route::before {
    content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px; width: 0;
    border-left: 4px dashed var(--ink);
}
.torch-stop { position: relative; padding: 4px 0 46px; }
.torch-stop:last-child { padding-bottom: 0; }
.torch-stop::before {
    content: ""; position: absolute; left: -56px; top: 6px; width: 26px; height: 26px;
    background: var(--bg-white); border: 4px solid var(--ink); border-radius: 50%;
}
.torch-stop.is-lit::before { background: var(--flame); border-color: var(--flame); box-shadow: 0 0 0 8px rgba(255,106,26,.18); }
.torch-stop b { font-family: var(--font-display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.torch-stop h3 { margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.035em; line-height: 1.02; }
.torch-stop p { margin-top: 8px; max-width: 34em; color: var(--text-muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.torch-flame { width: 72px; height: 96px; animation: flicker 1.6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes flicker { from { transform: scale(1) rotate(-2deg); } to { transform: scale(1.06, .97) rotate(2deg); } }
/* BRIDGE: the crossing */
.bridge-x { margin-top: 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; }
.bridge-bank {
    display: flex; align-items: center; justify-content: center; padding: 20px 22px;
    background: var(--ink); color: #fff; border-radius: 22px;
    font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); text-align: center; line-height: 1.15;
}
.bridge-bank--far { background: var(--accent); }
.bridge-planks { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 0 10px; }
.bridge-planks::before, .bridge-planks::after {
    content: ""; position: absolute; left: 0; right: 0; height: 4px; background: var(--ink);
}
.bridge-planks::before { top: 0; }
.bridge-planks::after { bottom: 0; }
.bridge-plank {
    margin: 14px 0; padding: 16px 10px; min-height: 150px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: var(--tag-bg); border-radius: 12px;
}
.bridge-plank b { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--accent); }
.bridge-plank span { font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.2; }
/* CIRCLE: price */
.circle-price { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); }
.circle-price__opt { padding-top: 22px; border-top: 2px solid var(--border); }
.circle-price__opt--best { border-top-color: var(--accent); }
.circle-price__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.circle-price__opt--best .circle-price__name { color: var(--accent); }
.circle-price__num { margin-top: 8px; font-family: var(--font-display); font-weight: 700; color: var(--ink);
    font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; }
.circle-price__num span { margin-left: 8px; font-size: .32em; letter-spacing: 0; color: var(--text-muted); }
.circle-price__was { margin-top: 10px; font-size: 18px; color: var(--text-muted); }
.circle-price__was del { text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.circle-price__note { margin-top: 10px; font-size: 18px; line-height: 1.5; color: var(--text-muted); }
.circle-price__same { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.prog-text__body a { color: var(--accent); }

@media (max-width: 1180px) { .progs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) {
    .progs__grid { grid-template-columns: repeat(2, 1fr); }
    .scout-year { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .progs__grid { grid-template-columns: 1fr; }
    .prog-card { min-height: 0; border-width: 3px; box-shadow: 6px 6px 0 var(--accent); }
    .scout-year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .scout-m { min-height: 0; }
    .prog-text { grid-template-columns: 1fr; gap: 14px; }
    .circle-price { grid-template-columns: 1fr; }
    .circle-wrap { grid-template-columns: 1fr; }
    .bridge-x { grid-template-columns: 1fr; }
    .bridge-planks { grid-template-columns: 1fr; padding: 10px 0; gap: 0; }
    .bridge-planks::before, .bridge-planks::after { left: 22px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
    .bridge-planks::after { left: auto; right: 22px; }
    .bridge-plank { margin: 5px 36px; min-height: 0; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
    .torch-route { padding-left: 54px; }
    .torch-route::before { left: 18px; }
    .torch-stop::before { left: -48px; }
}
@media (prefers-reduced-motion: reduce) {
    .torch-flame, .circle-ring .pulse { animation: none; }
}

/* Painted program pictures (animated WebP). On phones the labels get too small,
   so the HTML versions marked .only-narrow take over there. */
.prog-art { margin: 40px 0 0; background: transparent; }
.prog-art img { display: block; width: 100%; height: auto; }
.only-narrow { display: none !important; }
@media (max-width: 700px) {

    .only-narrow { display: grid !important; }
}

/* Mirror: the four steps, shown on phones instead of the picture */
/* Steps as a journey (narrow screens only; desktop tells it in the art). George, Nov 18:
   no dark borders, even spacing. A soft line threads numbered dots from the first step to the last. */
.mirror-steps { position: relative; margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.mirror-steps::before { content: ''; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px;
    background: linear-gradient(to bottom, rgba(26,92,255,0.10), rgba(26,92,255,0.35)); border-radius: 2px; }
.mirror-steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; align-items: center; padding: 10px 0; }
.mirror-steps b { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-display); font-size: 15px; line-height: 1; color: var(--accent);
    background: #fff; box-shadow: 0 0 0 1.5px rgba(26,92,255,0.28), 0 4px 14px rgba(26,92,255,0.10); }
.mirror-steps li:last-child b { color: #fff; background: var(--accent); box-shadow: 0 6px 18px rgba(26,92,255,0.30); }
.mirror-steps span { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--ink); }

/* Circle: three times in turn, and the "where are you?" picker (2026-11-18) */
.cw-slots { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.cw-slots li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: var(--ink); }
.cw-slots b { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.cw-pick { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cw-pick label { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cw-pick select {
    font: 600 18px/1.2 var(--font-display); color: var(--ink); background: var(--bg-white);
    border: 2px solid var(--ink); border-radius: 999px; padding: 10px 40px 10px 18px; max-width: 100%;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.cw-pick select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.prog-text__body .cw-fit { margin-top: 16px; font-size: 17px; color: var(--text-muted); }
.cw-list { list-style: none; margin: 10px 0 22px; padding: 0; border-top: 2px solid var(--border); }
.cw-list li {
    display: grid; grid-template-columns: minmax(0, 1.3fr) 90px minmax(0, 1.6fr); gap: 12px; align-items: baseline;
    padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 18px; color: var(--ink);
}
.cw-t { font-family: var(--font-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.cw-n { font-size: 15px; color: var(--text-muted); }
.cw-list li.is-night { opacity: .45; }
@media (max-width: 560px) {
    .cw-list li { grid-template-columns: 1fr auto; }
    .cw-n { grid-column: 1 / -1; margin-top: -6px; }
}
