/* ---- PROGRAMS: Circle, Torch, Space (2026-11-24) ----
   The twin of mr6.com/programs.css: same layout, Foundation red and orange.
   Scoped to .prog-page. If one site's layout changes, change the other. */
.prog-page {
    --bg-white: #fff; --text-primary: var(--ink); --text-muted: var(--muted); --accent: var(--red);
    --accent-glow: var(--orange); --accent-dark: #a91c25; --border: #f0dfd3; --flame: #ffb02e;
    --font-display: "Space Grotesk", sans-serif;
    background: #fff9f5; font-family: var(--font-display); position: relative; line-height: 1.6;
}
.prog-page main { position: relative; z-index: 1; }
:where(.prog-page main) :where(h1,h2,h3,p,ul,ol,figure) { margin: 0; padding: 0; }
.prog-page .container { max-width: 1200px; margin-inline: auto; padding-left: 60px; padding-right: 60px; position: relative; box-sizing: border-box; }
.prog-page .accent { color: var(--accent); }
@media (max-width: 1024px) { .prog-page .container { padding-left: 40px; padding-right: 40px; } }
@media (max-width: 768px) { .prog-page .container { padding-left: 28px; padding-right: 28px; } }
.prog-page::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(210,38,48,.07) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(255,122,24,.07) 0%, transparent 50%); }
.bg-watermark { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; z-index: 0; }
.bg-watermark img { width: clamp(400px,50vw,700px); opacity: .022; filter: grayscale(1); }
.prog-page .fade-up { opacity: 1; }
.js .prog-page .fade-up { opacity: 0; transform: translateY(30px); transition: all .7s cubic-bezier(.22,1,.36,1); }
.js .prog-page .fade-up.visible { opacity: 1; transform: none; }
.prog-page .btn-primary { display: inline-flex; align-items: center; gap: 8px; position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow)); color: #fff; border-radius: 100px; text-decoration: none;
    font-family: var(--font-display); font-weight: 700; animation: pbtn-pulse 2.4s ease-in-out infinite; transition: transform .3s; }
.prog-page .btn-primary:hover { transform: translateY(-3px) scale(1.03); }
@keyframes pbtn-pulse { 0%,100% { box-shadow: 0 6px 24px rgba(210,38,48,.3), 0 0 0 0 rgba(210,38,48,.4); } 50% { box-shadow: 0 10px 36px rgba(210,38,48,.45), 0 0 0 12px rgba(210,38,48,0); } }
@media (prefers-reduced-motion: reduce) { .prog-page .btn-primary { animation: none; } .js .prog-page .fade-up { opacity: 1; transform: none; transition: none; } }
.prog-page .only-narrow { padding: 0; }


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

/* Program page shell */
.prog-page .nav { position: relative; }
.prog-page .prog-hero { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(30px, 5vw, 70px); }
.prog-page .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-page .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-page .prog-hero__who { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-muted); }

.prog-page .prog-sec { padding-top: clamp(50px, 7vw, 110px); padding-bottom: clamp(30px, 4vw, 60px); }
.prog-page .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-page .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-page .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-page .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-page .prog-text__body { max-width: 38em; }
.prog-page .prog-text__body p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink); }
.prog-page .prog-text__body p + p { margin-top: 14px; }

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

.prog-page .prog-cta { padding: clamp(70px, 9vw, 130px) 0; text-align: center; }
.prog-page .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-page .prog-cta h2 em { font-style: normal; }
.prog-page .prog-cta .btn-primary { margin-top: 34px; font-size: clamp(17px, 1.5vw, 21px); padding: 20px 44px; }

.prog-page .prog-others { padding-bottom: 60px; }
.prog-page .prog-others__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.prog-page .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-page .prog-others__row { gap: 28px; }
.prog-page .prog-others a:hover { color: var(--ink); }
.prog-page .prog-others a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

/* TORCH: the route */
.prog-page .torch-route { position: relative; margin-top: 40px; padding-left: 70px; }
.prog-page .torch-route::before {
    content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px; width: 0;
    border-left: 4px dashed var(--ink);
}
.prog-page .torch-stop { position: relative; padding: 4px 0 46px; }
.prog-page .torch-stop:last-child { padding-bottom: 0; }
.prog-page .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%;
}
.prog-page .torch-stop.is-lit::before { background: var(--flame); border-color: var(--flame); box-shadow: 0 0 0 8px rgba(255,176,46,.18); }
.prog-page .torch-stop b { font-family: var(--font-display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.prog-page .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; }
.prog-page .torch-stop p { margin-top: 8px; max-width: 34em; color: var(--text-muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.prog-page .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); } }
.prog-page .prog-text__body a { color: var(--accent); }

@media (max-width: 768px) {
    .prog-page .prog-text { grid-template-columns: 1fr; gap: 14px; }
    .prog-page .torch-route { padding-left: 54px; }
    .prog-page .torch-route::before { left: 18px; }
    .prog-page .torch-stop::before { left: -48px; }
}
@media (prefers-reduced-motion: reduce) {
    .prog-page .torch-flame { 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-page .prog-art { margin: 40px 0 0; background: transparent; }
.prog-page .prog-art img { display: block; width: 100%; height: auto; }
.prog-page .only-narrow { display: none !important; }
@media (max-width: 700px) {

    .prog-page .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. */
.prog-page .mirror-steps { position: relative; margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.prog-page .mirror-steps::before { content: ''; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px;
    background: linear-gradient(to bottom, rgba(210,38,48,0.10), rgba(210,38,48,0.35)); border-radius: 2px; }
.prog-page .mirror-steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; align-items: center; padding: 10px 0; }
.prog-page .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(210,38,48,0.28), 0 4px 14px rgba(210,38,48,0.10); }
.prog-page .mirror-steps li:last-child b { color: #fff; background: var(--accent); box-shadow: 0 6px 18px rgba(210,38,48,0.30); }
.prog-page .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) */
.prog-page .cw-slots { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.prog-page .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); }
.prog-page .cw-slots b { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.prog-page .cw-pick { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.prog-page .cw-pick label { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.prog-page .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;
}
.prog-page .cw-pick select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.prog-page .prog-text__body .cw-fit { margin-top: 16px; font-size: 17px; color: var(--text-muted); }
.prog-page .cw-list { list-style: none; margin: 10px 0 22px; padding: 0; border-top: 2px solid var(--border); }
.prog-page .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);
}
.prog-page .cw-t { font-family: var(--font-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.prog-page .cw-n { font-size: 15px; color: var(--text-muted); }
.prog-page .cw-list li.is-night { opacity: .45; }
@media (max-width: 560px) {
    .prog-page .cw-list li { grid-template-columns: 1fr auto; }
    .prog-page .cw-n { grid-column: 1 / -1; margin-top: -6px; }
}

/* Kicker, orange full stop and headline gradient (shared with mr6.com's homepage block) */
.prog-page .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); }
.prog-page .prog-hero h1 em, .prog-page .prog-big em {
    font-style: normal; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* The question form under Torch and Space */
.prog-page .prog-cta button.btn-primary { border: 0; cursor: pointer; }
.prog-page [hidden] { display: none !important; }
.prog-page .prog-ask { max-width: 560px; margin: 34px auto 0; display: grid; gap: 16px; text-align: left; }
.prog-page .prog-ask label { display: grid; gap: 6px; font: 600 15px/1.3 var(--font-display); }
.prog-page .prog-ask input:not([type=hidden]), .prog-page .prog-ask textarea { font: 400 17px/1.4 var(--font-display); padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(26,22,19,.18); background: #fff; width: 100%; box-sizing: border-box; }
.prog-page .prog-ask input:focus, .prog-page .prog-ask textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.prog-page .prog-cta .prog-ask .btn-primary { margin-top: 4px; }
.prog-page .prog-ask__err { background: #fff1f0; color: #a8071a; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.prog-page .prog-ask__done { margin-top: 26px; font-size: 20px; }

/* Success box */
.ok-lb .lb-box { text-align: center; border-radius: 18px; border-top: 0; margin-top: 24vh; }
.ok-lb .lb-box h2 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.035em; margin: 6px 0 14px; background: linear-gradient(135deg, var(--red), var(--orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ok-lb .lb-box p { margin: 0 0 24px; font-size: 18px; }
