/* Program site · layout, photographs and the 3D layer, added on top of the brand kit. brand.css is not edited.
   3D here is CSS transforms on real page elements: no canvas, no rendering library, native document scroll.
   Every 3D rule sits behind prefers-reduced-motion, and the content underneath is complete without it. */

/* ---------- photographs ---------- */
.photo{margin:0;overflow:hidden;border-radius:var(--r-card);border:1px solid var(--border);background:var(--surface-2)}
.photo img{display:block;width:100%;height:100%;object-fit:cover}
.photo figcaption{font:500 .78rem/1.5 var(--mono);color:var(--text-2);padding:10px 14px;border-top:1px solid var(--border);background:var(--surface)}
.card-photo{display:flex;flex-direction:column;overflow:hidden}
.card-photo > img{display:block;width:calc(100% + 2 * var(--pad));max-width:none;margin:calc(-1 * var(--pad)) calc(-1 * var(--pad)) 16px;aspect-ratio:4/3;height:auto;object-fit:cover;border-bottom:1px solid var(--border)}
.team-grid{display:grid;gap:var(--gap);align-items:center}
.team-grid .photo img{aspect-ratio:3/2;height:auto}
@media(min-width:900px){.team-grid{grid-template-columns:.9fr 1.1fr;gap:44px}}
.band-photo{position:relative;isolation:isolate;overflow:hidden}
.band-photo .band-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;max-width:none}
.band-photo::before{content:"";position:absolute;inset:0;background:var(--umber);opacity:.86;z-index:-1}   /* dash-gate: a full-bleed scrim over the photograph */
[data-theme="dark"] .band-photo::before{background:#2F2014;opacity:.9}
.instructor-note{border-left:4px solid var(--accent);padding:4px 0 4px 18px;margin:22px 0}
.instructor-note p{margin:0 0 .6em}
.instructor-note .sig{font:600 .78rem/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--rust)}

/* ---------- header: each of the six section links stays on one line, down to the width where the menu button takes over ---------- */
.site-header .nav a{white-space:nowrap}
@media(min-width:1000px) and (max-width:1199px){.site-header .nav{gap:14px}.site-header .nav a{font-size:.875rem}}

/* ---------- hero ---------- */
.hero{overflow-x:clip}
/* On a phone the first screen carries the outcome, the dates, the price and the first button, so the hero starts a little higher. */
@media(max-width:599px){.hero{padding-top:28px}}
.hero-price{margin:0 0 20px;font-weight:600;font-size:.98rem}   /* the price sits above the buttons, so a phone shows it on the first screen */
/* Four plain sentences in a strip, each with its fact in bold: one column on a phone, two on a tablet, four on a desktop. */
.facts{margin:34px 0 0;display:grid;grid-template-columns:minmax(0,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:var(--r-card);overflow:hidden}
.facts > div{background:var(--surface);padding:16px 18px}
.facts p{margin:0;line-height:1.45;color:var(--text-2)}
.facts strong{font-weight:700;color:var(--ink)}
@media(min-width:560px){.facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.facts{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* The example workflow. Flat, it is a card with an ordered list. */
.stage{min-width:0}
.stage-board{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);box-shadow:var(--shadow);padding:0 20px 18px}
.stage-bar{height:6px;background:var(--gradient);margin:0 -20px 18px;border-radius:var(--r-card) var(--r-card) 0 0}
.stage-title{display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap;margin-bottom:14px}
.stage-title b{font:700 1.2rem/1.2 var(--display)}
.stage-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.stage-steps li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);font-size:.92rem;line-height:1.35}
.stage-foot{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--border);font:500 .78rem/1.5 var(--mono);color:var(--text-2);display:flex;flex-wrap:wrap;gap:4px 16px;justify-content:space-between}
/* In depth: the board leans back, each step floats a little nearer than the last, and one run passes down the list. */
@media(prefers-reduced-motion:no-preference){
  .stage-scene{perspective:1100px;perspective-origin:50% 35%;padding:10px 0 18px}
  .stage-board{--bx:5deg;--by:-6deg;transform-style:preserve-3d;transform:rotateX(calc(var(--bx) + var(--rx,0deg))) rotateY(calc(var(--by) + var(--ry,0deg)));transition:transform .28s ease-out}
  .stage-steps{transform-style:preserve-3d}
  .stage-title,.stage-foot{translate:0 0 10px}
  .stage-steps li{translate:0 0 calc(14px + var(--i) * 5px);box-shadow:0 12px 18px -14px rgba(60,42,27,.5);animation:stage-run 9s calc(var(--i) * 1.5s) infinite both}
  .stage.is-paused .stage-steps li{animation-play-state:paused}
  @keyframes stage-run{0%,2%{transform:translateZ(0);border-color:var(--border)}7%,15%{transform:translateZ(40px);border-color:var(--accent)}21%,100%{transform:translateZ(0);border-color:var(--border)}}
}
@media(prefers-reduced-motion:no-preference) and (min-width:1000px){.stage-board{--bx:9deg;--by:-15deg}.stage-scene{padding:26px 10px 34px 34px}}

/* ---------- depth on cards and photographs: answers a mouse, never a finger ---------- */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  [data-tilt]{transform:perspective(900px) rotateX(var(--tx,0deg)) rotateY(var(--ty,0deg));transition:transform .3s ease-out,box-shadow .3s ease-out}
  [data-tilt].is-tilting{transition:transform .08s linear;box-shadow:var(--shadow)}
}
/* Cards settle into place as they scroll in. The scroll position drives it, so it cannot get stuck half way,
   and a browser without the feature simply shows the cards. They move and grow a little but never fade: text on a card
   that is still arriving is at full strength, so it meets the contrast bar from its first pixel on screen. */
@supports (animation-timeline:view()){
  @media(prefers-reduced-motion:no-preference){
    .depth-in{animation:depth-in linear both;animation-timeline:view();animation-range:entry 0% entry 90%}
    @keyframes depth-in{from{translate:0 30px;scale:.95}to{translate:0 0;scale:1}}
  }
}

/* ---------- curriculum: the six-sided block ---------- */
.course{display:grid;gap:28px}
.course-main{min-width:0}
.cube-col{display:none}
@media(min-width:1100px){
  .course{grid-template-columns:292px minmax(0,1fr);gap:48px;align-items:start}
  .cube-col{display:block;position:sticky;top:104px}
  .cube-scene{--s:204px;width:var(--s);height:var(--s);margin:44px auto 84px;perspective:1400px;position:relative}
  .cube{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(-12deg) rotateY(-27deg) rotateX(var(--ax,0deg)) rotateY(var(--ay,0deg));transition:transform .95s cubic-bezier(.2,.7,.2,1)}
  .cube-face{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:9px;padding:20px;background:var(--surface-2);color:var(--ink);border:1.5px solid var(--border);border-radius:12px;backface-visibility:hidden}
  .cube-face b{font:700 1.22rem/1.15 var(--display)}
  .cube-face small{font-size:.84rem;line-height:1.4;color:var(--text-2)}
  /* Only the side turned to the reader carries its words: the session's name and what you leave with. The other sides stay quiet. */
  .cube-face b,.cube-face small{opacity:0;transition:opacity .45s}
  .cube .f1{transform:rotateY(0deg) translateZ(calc(var(--s) / 2))}
  .cube .f2{transform:rotateY(90deg) translateZ(calc(var(--s) / 2))}
  .cube .f3{transform:rotateY(180deg) translateZ(calc(var(--s) / 2))}
  .cube .f4{transform:rotateY(-90deg) translateZ(calc(var(--s) / 2))}
  .cube .f5{transform:rotateX(90deg) translateZ(calc(var(--s) / 2))}
  .cube .f6{transform:rotateX(-90deg) translateZ(calc(var(--s) / 2))}
  .cube[data-face="1"]{--ax:0deg;--ay:0deg}
  .cube[data-face="2"]{--ax:0deg;--ay:-90deg}
  .cube[data-face="3"]{--ax:0deg;--ay:-180deg}
  .cube[data-face="4"]{--ax:0deg;--ay:-270deg}
  .cube[data-face="5"]{--ax:-90deg;--ay:-360deg}
  .cube[data-face="6"]{--ax:90deg;--ay:-360deg}
  .cube[data-face="1"] .f1,.cube[data-face="2"] .f2,.cube[data-face="3"] .f3,.cube[data-face="4"] .f4,.cube[data-face="5"] .f5,.cube[data-face="6"] .f6{border-color:var(--accent);background:var(--surface)}
  .cube[data-face="1"] .f1 > *,.cube[data-face="2"] .f2 > *,.cube[data-face="3"] .f3 > *,.cube[data-face="4"] .f4 > *,.cube[data-face="5"] .f5 > *,.cube[data-face="6"] .f6 > *{opacity:1}
  .cube-cap{font:500 .78rem/1.5 var(--mono);color:var(--text-2);text-align:center;margin:0;max-width:30ch;margin-inline:auto}
  .course-main .g2{grid-template-columns:1fr}
}
/* With reduced motion the block is not shown at all: its words are in the session cards, and the curriculum takes the full width. */
@media(prefers-reduced-motion:reduce){.cube-col{display:none!important}.course{grid-template-columns:1fr!important}}
.session{scroll-margin-top:96px}
/* 2.1.1: each session is one card that opens on a tap. Closed, it shows its date, its name and what you leave with, so the six
   read at a glance without the page running long; open, it adds what happens in it. */
.sessions{display:grid;gap:12px}
@media(min-width:760px) and (max-width:1099px){.sessions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
.session > summary{list-style:none;cursor:pointer;display:grid;gap:4px;position:relative;padding-right:34px}
.session > summary::-webkit-details-marker{display:none}
.session > summary::after{content:"";position:absolute;right:4px;top:8px;width:10px;height:10px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);transition:transform .15s}
.session[open] > summary::after{transform:rotate(-135deg);top:12px}
.session .when{font:600 .9rem/1.4 var(--body);color:var(--rust)}
.session .s-name{font:700 1.3rem/1.2 var(--display);color:var(--ink)}
.session .out{font-weight:600;line-height:1.45;color:var(--text-2);font-size:.95rem}
.session > p{margin:14px 0 0;color:var(--text-2);font-size:.95rem}
.session > p + p{margin-top:.6em}
.sessions-note{margin:16px 0 0}

/* ---------- batches, price, the question form ---------- */
.batch .price{font:800 1.5rem/1.1 var(--display)}
.batch .price small{display:block;font:500 .8rem/1.4 var(--body);color:var(--text-2);margin-top:4px}
/* A longer batch name wraps the button to two lines. Every card keeps the same button height so the row stays level. */
.batch .btn{min-height:62px;text-wrap:balance}
.bench .card h3{font-size:1.12rem}
/* "15 of 15 left": the count is set in the fixed-width face, so the word after it needs its own space. */
.batch dd > .mono{margin-right:.3em}
/* A placeholder that runs onto a second line keeps a closed box on each line. */
.tbc{-webkit-box-decoration-break:clone;box-decoration-break:clone}
/* The line that tells a college how to ask goes when Settings hold no group price and the sentence before it is empty. */
[data-bind="price-group"]:empty + .group-how{display:none}
.nowrap{white-space:nowrap}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
#q-form{margin-top:22px}

/* ---------- footer on a phone: each link in the two columns is a full 38 px row for a thumb ---------- */
@media(max-width:767px){
  .footer-grid ul{gap:0}
  .footer-grid li > a{display:inline-flex;align-items:center;min-height:38px}
  .footer-grid .footer-addr{padding:7px 0}
}
/* The certificate check on a narrow phone: the label sits above its value, so the code keeps its one line and the page does not scroll sideways. */
@media (max-width:420px){.cert-facts div{grid-template-columns:1fr;gap:2px}}

/* ---------- the tree of organisations (evamb.io/organisations) ----------
   2.1.1: nested groups set apart by indents and cards, with no lines drawn between them and no mark beside a name. Each branch
   folds: closed, it shows its name and its sentence; a tap opens the kinds of organisation inside it. */
.otree-hero{padding-bottom:36px}
.otree-lede{max-width:44em;color:var(--text-2);margin:0}
.otree-jump{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.otree{min-width:0}
.otree ul{list-style:none;margin:0;padding:0}
.otree-root{display:inline-block;margin:0 0 6px;padding:10px 18px;border:1.5px solid var(--accent);border-radius:999px;background:var(--bg);font-weight:700;font-size:1rem}
.otree-trunks > li{padding-top:26px}
.otree-branches{display:grid;gap:10px;margin:12px 0 0 clamp(0px,3vw,28px)}
.otree-node{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);padding:16px 18px;max-width:820px}
.otree-node h2{font-size:clamp(1.45rem,3.6vw,1.9rem);margin:0 0 6px}
.otree-node h3{font-size:1.15rem;margin:0 0 4px}
.otree-node p{margin:0;color:var(--text-2)}
.otree-node-trunk{border-color:var(--accent);background:var(--bg)}
.otree-trunk,.otree-leaf{scroll-margin-top:100px}
.otree-fold{max-width:820px}
.otree-fold > summary{list-style:none;cursor:pointer;position:relative;padding-right:46px}
.otree-fold > summary::-webkit-details-marker{display:none}
.otree-fold > summary::after{content:"";position:absolute;right:20px;top:24px;width:10px;height:10px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);transition:transform .15s}
.otree-fold[open] > summary::after{transform:rotate(-135deg);top:28px}
.otree-fold > summary:hover{border-color:var(--accent)}
.otree-fold[open] > summary{border-color:var(--accent);border-bottom-left-radius:0;border-bottom-right-radius:0}
.otree-leaves{display:grid;gap:16px;padding:16px 18px 18px;background:var(--bg);border:1px solid var(--accent);border-top:0;border-radius:0 0 var(--r-card) var(--r-card)}
@media(min-width:760px){.otree-leaves{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px}}
.otree-leaf > h4{margin:0;font-size:1.02rem;line-height:1.35}
.otree-leaf > h4 a{color:var(--rust);font-weight:700}
.otree-leaf > h4 a:hover,.otree-leaf > h4 a:focus-visible,.otree-leaf:target > h4 a{color:var(--ink)}
.otree-leaf > p{margin:4px 0 0;color:var(--text-2);font-size:.95rem;max-width:62ch}

/* ---------- 2.1.1: less scrolling, the final up front ----------
   On a phone the program page was 26 screens long. Groups of cards now sit in one row that swipes sideways below 900 px, the six
   sessions open on a tap, and sections keep less air. */
@media(max-width:599px){.section{padding:44px 0}.band{padding:48px 0}.hero{padding-bottom:36px}.section-head{margin-bottom:22px}}
.facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.facts > div{padding:14px 14px}
.facts p{font-size:.92rem}
@media(min-width:1000px){.facts{grid-template-columns:repeat(4,minmax(0,1fr))}.facts > div{padding:16px 18px}.facts p{font-size:1rem}}

/* The final: neekOSathon 1.0 is a neekOS event, so its band wears the neekOS.si identity (2.1.1, from the owner's neekOS.si logo
   system v1.0.0): Ink ground, Cream type, the reversed lockup as given. Copper stays inside the lockup, on the cursor and ".si". */
.athon{--n-ink:#05060B;--n-cream:#F0E8D8;--n-soft:#C9C2B4;background:var(--n-ink);color:var(--n-cream);padding:56px 0;position:relative;overflow:hidden}
.athon-grid{display:grid;gap:28px;align-items:center}
.athon-logo{display:block;width:auto;height:44px;margin:0 0 26px}
.athon .eyebrow{color:var(--n-soft)}
.athon h2{color:var(--n-cream);font-size:clamp(2.4rem,7vw,4.2rem);margin-bottom:12px}
.athon .lead{color:var(--n-soft)}
.athon .lead strong{color:var(--n-cream)}
.athon-note{color:var(--n-soft);font-weight:600}
.athon .btn-primary{background:var(--n-cream);color:var(--n-ink);border-color:var(--n-cream)}
.athon .btn-primary:hover{background:#FFFFFF;color:var(--n-ink)}
.athon :focus-visible{outline-color:var(--n-cream)}
.athon-photo{border-color:#2A2C36}
.athon-photo img{aspect-ratio:16/9;height:auto}
@media(max-width:599px){.athon{padding:44px 0}.athon-photo{display:none}}
@media(min-width:900px){.athon-grid{grid-template-columns:1.1fr .9fr;gap:48px}.athon-photo img{aspect-ratio:4/3}}

/* A row of cards that swipes sideways on phones and tablets. Each card is a little narrower than the screen, so the next one shows
   at the edge and says there is more. From 900 px the same cards sit in a plain grid. */
.swipe{display:grid;grid-auto-flow:column;grid-auto-columns:min(82%,340px);gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
  scroll-padding-inline:20px;margin-inline:-20px;padding:4px 20px 14px;scrollbar-width:thin}
.swipe > *{scroll-snap-align:start;min-width:0}
.swipe:focus-visible{outline-offset:-3px}
.swipe-hint{font-size:.85rem;color:var(--text-2);margin:4px 0 0;font-weight:600}
@media(min-width:900px){
  .swipe{grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;margin-inline:0;padding:0}
  .swipe-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .swipe-hint{display:none}
}
.aud h3{font-size:1.3rem;margin-bottom:8px}
.aud p{margin:0 0 .6em;color:var(--text-2);font-size:.95rem}
.aud .aud-plus{margin:auto 0 0;padding-top:10px;border-top:1px solid var(--border);color:var(--ink);font-weight:600;font-size:.9rem}
.need{margin:22px 0 0;max-width:60em;color:var(--text-2)}
.need strong{color:var(--ink)}
#outcomes .swipe .card h3{font-size:1.15rem}
#outcomes .swipe .card p{margin:0;color:var(--text-2);font-size:.95rem}
.neekos-mark{display:block;width:40px;height:40px;margin:0 0 12px}
.bench{margin-top:22px}
.bench h3{font-size:1.3rem}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.chips span{padding:7px 12px;border-radius:999px;background:var(--bg);border:1px solid var(--border);font-weight:600;font-size:.88rem;color:var(--ink)}

/* Batch cards on a phone: each label sits beside its value, so a card is about half as tall. */
@media(max-width:679px){
  .batch dl{grid-template-columns:auto minmax(0,1fr);gap:8px 16px;align-items:baseline}
  .batch dd{margin:0}
  .batch .btn{min-height:50px}
}
@media(max-width:599px){.team-photo{display:none}}

/* On a phone the batches swipe too, and the example map drops its footnote line. */
@media(max-width:679px){
  #s-batches{grid-auto-flow:column;grid-auto-columns:min(80%,320px);grid-template-columns:none;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    scroll-padding-inline:20px;margin-inline:-20px;padding:4px 20px 14px}
  #s-batches > *{scroll-snap-align:start;min-width:0}
}
@media(min-width:680px){.batches-hint{display:none}}
@media(max-width:599px){.stage-foot{display:none}.stage-board{padding-bottom:12px}.stage-steps li{padding:9px 11px}}
/* guides page (evamb.io/guides): profiles with a monogram in the brand gradient. Site tokens only. */
.guides{display:grid;gap:var(--gap)}
.guide{display:grid;gap:16px 30px;align-items:start}
.guide-mono{width:72px;height:72px;border-radius:50%;padding:3px;background:var(--gradient)}
.guide-mono span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:var(--surface);color:var(--ink);font:800 1.6rem/1 var(--display);letter-spacing:.02em}
.section-alt .guide-mono span{background:var(--bg)}
.guide-mono img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;background:var(--surface-2)}
.guide h2{font-size:clamp(1.6rem,3.2vw,2.15rem);margin:0 0 2px}
.guide-role{font-weight:600;color:var(--rust);margin:0 0 16px}
.guide-body > p:not(.guide-role){max-width:68ch}
.guide h3{font-size:1.15rem;margin:22px 0 10px}
.guide-topics{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.guide-topics li{padding:7px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-weight:600;font-size:.88rem;color:var(--ink)}
@media(min-width:760px){.guide{grid-template-columns:auto minmax(0,1fr);padding:30px 32px}.guide-mono{width:96px;height:96px}.guide-mono span{font-size:2.1rem}}
