/* The public pages: landing, sign-in, the screen index, assumptions. Brand register. */
.web { background: var(--bg); }
.wnav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 24px var(--gutter); }
.wnav .word { display: flex; align-items: center; gap: 12px; font: 650 30px/1 var(--font-display); font-stretch: 118%; color: var(--on-drench); text-decoration: none; }
.wnav .word .crest { --size: 40px; }
.wnav .links { display: flex; align-items: center; gap: var(--s-2); }
.wnav .links a { color: var(--on-drench-muted); text-decoration: none; padding: 10px 12px; border-radius: var(--r-ctl); font-size: var(--t-15); }
.wnav .links a:hover { color: var(--on-drench); background: oklch(1 0 0 / .08); }
.wnav .links .btn { color: var(--on-drench); }
@media (max-width: 760px) { .wnav .links a:not(.btn) { display: none; } }

/* Fold: drenched peacock; the crest draws itself over a hand drawing a kolam. */
.fold { position: relative; min-height: clamp(640px, 100vh, 980px); min-height: clamp(640px, 100svh, 980px); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; background: var(--drench); color: var(--on-drench); overflow: hidden; }
.fold .photo { position: absolute; inset: 0 0 0 44%; }
.fold .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; mix-blend-mode: luminosity; opacity: .5; }
.fold .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--drench) 0%, oklch(0.27 0.06 214 / .55) 34%, oklch(0.27 0.06 214 / .15) 100%); }
.fold .grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-7); align-items: center; padding: 0 var(--gutter); }
.fold h1 { font-size: var(--fs-display); font-stretch: var(--stretch-display); letter-spacing: var(--tracking-display); line-height: var(--lh-tight); max-width: 15ch; }
.fold .lead { color: var(--on-drench-muted); margin-top: var(--s-5); max-width: 54ch; }
.gen { justify-self: center; display: grid; justify-items: center; gap: var(--s-4); width: min(100%, 440px); }
.gen .stage { position: relative; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.gen .stage::before { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--drench-line); }
.gen .stage .crest { width: 74%; height: auto; aspect-ratio: 1; }
.gen .stage .kd { animation: pop .5s var(--ease-out) both; animation-delay: calc(var(--i) * 16ms); transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { scale: 0; } }
.gen label { width: 100%; font-size: var(--t-13); color: var(--on-drench-muted); display: grid; gap: 8px; }
.gen input { min-height: 50px; padding: 0 16px; border-radius: var(--r-ctl); border: 0; background: var(--rice); color: var(--ink); font-size: var(--t-16); }
.gen .meta { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: var(--t-13); color: var(--on-drench-muted); }
.gen .meta b { color: var(--on-drench); }
.swatches { display: flex; gap: 6px; }
.swatches button { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--c); }
.swatches button::after { content: ''; position: absolute; inset: -9px; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--drench), 0 0 0 4px var(--rice); }
.roleband { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: var(--s-6) var(--gutter) var(--s-4); }
.roleband a { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px; min-height: 92px; border-radius: var(--r-ctl); text-decoration: none; color: var(--on-drench);
  background: oklch(1 0 0 / .06); box-shadow: inset 0 0 0 1px var(--drench-line); transition: background var(--dur-2), box-shadow var(--dur-2); }
.roleband a:hover { background: oklch(1 0 0 / .12); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .45); color: var(--on-drench); }
.roleband a .ico { color: var(--accent); margin-bottom: 4px; }
.roleband strong { font: 560 var(--t-16)/1.2 var(--font-body); }
.roleband small { font-size: var(--t-13); line-height: 1.35; color: var(--on-drench-muted); }
.roleband a > .arr { position: absolute; right: 14px; top: 16px; opacity: .6; transition: translate var(--dur-2) var(--ease-out), opacity var(--dur-2); }
.roleband a:hover > .arr { translate: 3px 0; opacity: 1; }
.thread { position: relative; z-index: 2; padding: 0 var(--gutter) calc(var(--pocbar-h) + 20px); color: var(--on-drench); opacity: .45; }
.thread svg { display: block; width: 100%; height: 34px; }
.thread path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawline 2.6s var(--ease-draw, ease) .4s forwards; }
.thread circle { fill: currentColor; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .thread path { animation: none; stroke-dashoffset: 0; } .gen .stage .kd { animation: none; } }
@media (max-width: 1180px) {
  .fold .grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: var(--s-6); }
  .fold h1 { font-size: clamp(2.4rem, 1rem + 3.4vw, 3.6rem); max-width: 20ch; }
  .fold .lead { margin-top: var(--s-4); }
  .gen .stage { width: 220px; }
  .gen .meta > span:first-child { display: none; }
}
@media (max-width: 860px) {
  .fold .grid { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--s-4); }
  .fold .photo { inset: auto 0 0 0; height: 55%; }
  .fold .photo::after { background: linear-gradient(180deg, var(--drench), oklch(0.27 0.06 214 / .35)); }
  .gen { display: grid; grid-template-columns: 112px minmax(0, 1fr); justify-self: stretch; width: 100%; gap: 6px var(--s-4); align-items: center; }
  .gen .stage { width: 112px; grid-row: 1 / span 2; }
  .gen .lt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gen label { min-width: 0; }
  .gen input { min-height: 44px; width: 100%; min-width: 0; }
  .gen .meta { justify-content: flex-start; }
  .roleband { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .roleband { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: var(--s-4); }
  .fold .grid { gap: var(--s-4); }
  .fold .lead { font-size: var(--t-15); }
  .roleband { gap: 8px; padding-bottom: var(--s-3); }
  .roleband a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; }
  .roleband a .ico { margin: 0; }
  .roleband a:last-child { grid-column: 1 / -1; }
  .roleband small, .roleband a > .arr { display: none; }
  .thread svg { height: 26px; }
}

/* One school day, hour by hour, with a thread that draws as you scroll. */
.day { position: relative; padding: var(--section) var(--gutter) var(--s-6); max-width: var(--container-wide); margin: 0 auto; }
.day > header { max-width: 760px; margin-bottom: var(--s-8); }
.day > header h2 { font-size: var(--fs-h2); line-height: 1.04; }
.day > header p { margin-top: var(--s-4); }
.hours { position: relative; }
.spine { position: absolute; left: 46px; top: var(--s-8); bottom: var(--s-8); width: 4px; }
.spine svg { width: 4px; height: 100%; overflow: visible; }
.spine .base { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.spine .ink { stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; }
.hour { position: relative; display: grid; grid-template-columns: 96px minmax(0, .82fr) minmax(0, 1.18fr); gap: var(--s-6); align-items: center; padding: var(--s-7) 0; }
.hour .t { align-self: start; position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; padding-top: 6px; }
.hour .t b { font: 650 var(--t-22)/1 var(--font-display); font-stretch: 112%; background: var(--bg); padding: 6px 0; }
.hour .t i { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--primary); transition: background var(--dur-2); }
.hour.on .t i { background: var(--primary); }
.hour h3 { font-size: var(--fs-h3); line-height: 1.12; }
.hour p { color: var(--ink-2); margin-top: var(--s-3); max-width: 46ch; }
.hour ul { margin-top: var(--s-4); display: grid; gap: 8px; }
.hour li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: var(--t-15); color: var(--ink-2); }
.hour li .ico { color: var(--primary); margin-top: 2px; }
.hour .go { margin-top: var(--s-5); }
.hour figure { position: relative; }
.hour figure img { width: 100%; height: auto; border-radius: var(--r-card); box-shadow: 0 30px 60px -36px oklch(0.21 0.03 215 / .55), 0 0 0 1px var(--line); }
.hour figure figcaption { margin-top: 10px; font-size: var(--t-13); color: var(--muted); }
.hour.flip { grid-template-columns: 96px minmax(0, 1.18fr) minmax(0, .82fr); }
.hour.flip figure { order: -1; grid-column: 2; grid-row: 1; }
.hour.flip .copy { grid-column: 3; }
@media (max-width: 980px) {
  .spine { left: 26px; }
  .hour, .hour.flip { grid-template-columns: 56px minmax(0, 1fr); }
  .hour figure, .hour.flip figure { grid-column: 2; grid-row: 2; order: 0; }
  .hour .copy, .hour.flip .copy { grid-column: 2; }
  .hour .t b { font-size: var(--t-16); }
}

/* Where the signal comes and goes: one full-bleed photograph. */
.photoband { position: relative; min-height: 520px; display: grid; align-items: end; color: #fff; overflow: hidden; }
.photoband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.photoband::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(0.18 0.03 214 / .88), oklch(0.18 0.03 214 / .1) 62%); }
.photoband .in { position: relative; z-index: 1; padding: var(--s-8) var(--gutter); max-width: var(--container-wide); margin: 0 auto; width: 100%; }
.photoband h2 { font-size: var(--fs-h2); line-height: 1.04; max-width: 18ch; }
.photoband p { margin-top: var(--s-3); max-width: 56ch; color: oklch(0.93 0.01 210); font-size: var(--fs-lead); }

/* Every school wears its own mark. */
.marks { padding: var(--section) var(--gutter); max-width: var(--container-wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.marks h2 { font-size: var(--fs-h2); line-height: 1.04; }
.marks p { margin-top: var(--s-4); color: var(--ink-2); max-width: 52ch; }
.marks .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.marks figure { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: var(--t-13); color: var(--muted); }
.marks figure .crest { --size: 120px; }
.marks figure b { display: block; color: var(--ink); font-size: var(--t-15); font-weight: 520; }
@media (max-width: 980px) { .marks { grid-template-columns: 1fr; } .marks .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* What stays true when the network does not: a ruled list, not cards. */
.truths { padding: 0 var(--gutter) var(--section); max-width: var(--container-wide); margin: 0 auto; }
.truths h2 { font-size: var(--fs-h2); line-height: 1.04; max-width: 20ch; margin-bottom: var(--s-6); }
.truths ol { border-top: var(--rule-strong); }
.truths li { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-5) 0; border-bottom: var(--rule); }
.truths li .ic { width: 48px; height: 48px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); }
.truths li b { font: 600 var(--t-18)/1.25 var(--font-display); font-stretch: 104%; }
.truths li span { color: var(--ink-2); font-size: var(--t-15); }
@media (max-width: 860px) { .truths li { grid-template-columns: 48px 1fr; gap: var(--s-2) var(--s-4); } .truths li .ic { grid-row: 1 / span 3; align-self: start; } .truths li > * { grid-column: 2; } .truths li > .ic { grid-column: 1; } .truths li a { justify-self: start; } }

.close { background: var(--surface); padding: var(--section-tight) var(--gutter); }
.close .in { max-width: var(--container-wide); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.close h2 { font-size: var(--fs-h3); max-width: 30ch; }
.wfoot { padding: var(--s-7) var(--gutter) calc(var(--pocbar-h) + var(--s-6)); max-width: var(--container-wide); margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: var(--s-6); font-size: var(--t-14); color: var(--muted); }
.wfoot b { display: block; color: var(--ink); margin-bottom: 10px; font-weight: 560; }
.wfoot a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.wfoot a:hover { color: var(--primary-strong); }
.wfoot .brand { display: flex; align-items: center; gap: 10px; font: 650 22px/1 var(--font-display); font-stretch: 118%; color: var(--ink); margin-bottom: 12px; }
.wfoot .fine { grid-column: 1 / -1; padding-top: var(--s-5); border-top: var(--rule); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; }
@media (max-width: 860px) { .wfoot { grid-template-columns: 1fr 1fr; } .wfoot > div:first-child { grid-column: 1 / -1; } .photoband::after { background: linear-gradient(0deg, oklch(0.18 0.03 214 / .92), oklch(0.18 0.03 214 / .25) 90%); } }

/* Sign in */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg); }
.signin .aside { position: relative; background: var(--drench); color: var(--on-drench); overflow: hidden; display: grid; align-content: space-between; padding: var(--s-7); }
.signin .aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .35; }
.signin .aside > * { position: relative; }
.signin .aside blockquote { font: 600 var(--fs-h3)/1.2 var(--font-display); font-stretch: 106%; max-width: 20ch; }
.signin .pane { display: grid; align-content: center; gap: var(--s-5); padding: var(--s-7) clamp(24px, 6vw, 96px) calc(var(--pocbar-h) + var(--s-6)); max-width: 640px; }
.signin h1 { font-size: var(--fs-h2); line-height: 1.04; }
.whoami { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.whoami button { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-ctl); text-align: left; box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--bg); }
.whoami button b { display: block; font-size: var(--t-15); font-weight: 560; }
.whoami button small { display: block; font-size: var(--t-13); color: var(--muted); }
.whoami button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-soft); }
@media (max-width: 860px) { .signin { grid-template-columns: 1fr; } .signin .aside { min-height: 220px; } }

/* Screen index and assumptions */
.doc { max-width: var(--container-wide); margin: 0 auto; padding: var(--s-7) var(--gutter) calc(var(--pocbar-h) + var(--s-7)); }
.doc > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-6); }
.doc > header h1 { font-size: var(--fs-h2); line-height: 1.04; }
.doc > header p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.surface { margin-top: var(--s-7); }
.surface > h2 { font-size: var(--t-22); display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-4); }
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3); }
.screens a { display: grid; gap: 6px; padding: var(--s-4); border-radius: var(--r-card); background: var(--bg); box-shadow: var(--elev-card); text-decoration: none; color: var(--ink); transition: box-shadow var(--dur-2); }
.screens a:hover { box-shadow: var(--elev-pop); color: var(--ink); }
.screens a b { font: 600 var(--t-16)/1.2 var(--font-display); font-stretch: 104%; }
.screens a span { font-size: var(--t-13); color: var(--muted); line-height: 1.45; }
.screens a .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: start; }
.cols3 section { padding: var(--s-5); border-radius: var(--r-card); background: var(--bg); box-shadow: var(--elev-card); }
.cols3 h2 { font-size: var(--t-22); margin-bottom: var(--s-3); display: flex; gap: 10px; align-items: center; }
.cols3 li { padding: 10px 0; border-bottom: var(--rule); font-size: var(--t-15); color: var(--ink-2); }
.cols3 li:last-child { border-bottom: 0; }
.cols3 li b { color: var(--ink); font-weight: 560; }
@media (max-width: 980px) { .cols3 { grid-template-columns: 1fr; } }
