@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #17181b;
  --bg-raised: #202125;
  --surface: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.13);
  --line-strong: rgba(255,255,255,.24);
  --text: #f3f3f5;
  --muted: #a4a5ad;
  --dim: #73757f;
  --accent: #a9b9ff;
  --accent-strong: #d2dcff;
  --paper: #f0ede4;
  --paper-ink: #303239;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(169,185,255,.4); color: white; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); border-radius: 9px; background: white; color: #17181b; }
.skip-link:focus { transform: translateY(0); }
.grain-overlay { position: fixed; z-index: 20; inset: 0; pointer-events: none; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }

/* Mac-inspired translucent title bar */
.mac-header { position: sticky; z-index: 50; top: 12px; display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); width: min(1480px, calc(100% - 48px)); min-height: 62px; margin: 12px auto 0; padding: 0 19px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(36,37,41,.68); box-shadow: 0 12px 50px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); }
.traffic-lights { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.traffic-lights i { display: block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 1px 1px rgba(255,255,255,.4), 0 0 0 1px rgba(0,0,0,.08); }
.traffic-red { background: #ff6059; }.traffic-yellow { background: #febc2e; }.traffic-green { background: #28c840; }
.brand { display: inline-flex; align-items: baseline; gap: 0; font-size: 19px; font-weight: 800; letter-spacing: -.075em; }.brand span, .footer-brand span { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: clamp(15px, 2.8vw, 38px); margin-left: auto; }
.primary-nav a { color: #c4c5cc; font-size: 13px; font-weight: 600; transition: color .2s ease; }.primary-nav a:hover { color: white; }.primary-nav .github-link { padding: 8px 13px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.045); }.github-link span { color: var(--accent); }
.menu-toggle { display: none; width: 40px; height: 38px; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.06); cursor: pointer; }.menu-toggle span { width: 16px; height: 1px; background: #f2f2f4; transition: transform .2s ease; }.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Full-viewport responsive 3D object behind the title, not inside a card */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; width: 100%; min-height: min(850px, calc(100svh - 80px)); padding: clamp(80px, 9vh, 120px) max(7.5vw, calc((100vw - 1320px) / 2)) 100px; overflow: hidden; }
.hero::before { position: absolute; z-index: -2; inset: 0; background: radial-gradient(ellipse at 72% 45%, rgba(122,137,188,.13), transparent 44%), linear-gradient(180deg, #191a1e 0%, #17181b 100%); content: ""; }
.hero-scene { position: absolute; z-index: -1; inset: -2% -1% 0; overflow: hidden; perspective: 1550px; transform-style: preserve-3d; pointer-events: none; }
.scene-light { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }.scene-light-one { top: 12%; right: 2%; width: 46vw; height: 48vw; max-height: 720px; background: radial-gradient(circle, rgba(158,174,244,.12), transparent 68%); }.scene-light-two { bottom: -25%; left: 8%; width: 36vw; height: 36vw; background: radial-gradient(circle, rgba(255,255,255,.05), transparent 68%); }
.mega-folder { position: absolute; top: 50%; left: 60%; display: block; width: min(91vw, 1450px); height: min(78vh, 770px); min-height: 510px; padding: 0; border: 0; background: transparent; cursor: grab; pointer-events: auto; transform-style: preserve-3d; transform: translate3d(calc(-50% + var(--move-x, 0px)), calc(-50% + var(--move-y, 0px)), 0) rotateX(calc(7deg + var(--rot-x, 0deg))) rotateY(calc(-19deg + var(--rot-y, 0deg))) rotateZ(-8deg); transition: transform .55s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.mega-folder:active { cursor: grabbing; }.mega-folder:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; border-radius: 35px; }
.folder-shadow { position: absolute; inset: 16% -3% -5% 5%; border-radius: 5%; background: rgba(0,0,0,.6); filter: blur(44px); transform: translateZ(-55px); }
.folder-back { position: absolute; inset: 7% 0 0 0; border: 1px solid rgba(255,255,255,.44); border-radius: 42px 48px 48px 44px; background: linear-gradient(133deg, rgba(220,224,234,.94) 0%, rgba(133,142,161,.95) 18%, rgba(72,76,88,.98) 46%, rgba(42,45,53,.99) 78%, rgba(149,155,174,.94) 100%); box-shadow: inset 0 2px 2px rgba(255,255,255,.85), inset 0 -2px 9px rgba(0,0,0,.35), 0 25px 50px rgba(0,0,0,.22); transform: translateZ(-28px); }
.folder-tab { position: absolute; z-index: 1; top: 0; left: 4%; width: 37%; height: 26%; border: 1px solid rgba(255,255,255,.64); border-bottom: 0; border-radius: 38px 36px 0 0; background: linear-gradient(145deg, #bfc7d7 0%, #6f778b 36%, #414553 78%, #8e95a7 100%); box-shadow: inset 0 2px 2px rgba(255,255,255,.74), inset 0 -3px 8px rgba(0,0,0,.12); transform: translateZ(-11px); }
.folder-front { position: absolute; z-index: 4; top: 23%; right: 0; bottom: 0; left: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 44px; background: linear-gradient(148deg, #aeb7ca 0%, #777f93 13%, #4a4f60 38%, #30333c 68%, #6c7485 100%); box-shadow: inset 0 2px 2px rgba(255,255,255,.77), inset 0 -4px 8px rgba(0,0,0,.28), 0 30px 50px rgba(0,0,0,.28); transform: translateZ(30px); transition: transform .85s cubic-bezier(.16,1,.3,1), filter .5s ease; }
.folder-highlight { position: absolute; top: -28%; left: -5%; width: 115%; height: 75%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0)); filter: blur(8px); transform: rotate(-5deg); }
.folder-emblem { position: absolute; top: 10%; left: 8%; color: rgba(255,255,255,.85); font-size: clamp(44px, 8vw, 130px); font-weight: 800; letter-spacing: -.1em; line-height: 1; text-shadow: 0 3px 20px rgba(0,0,0,.15); }
.folder-front-label { position: absolute; right: 6%; bottom: 8%; left: 8%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.78); font: 500 clamp(10px,1vw,15px)/1.4 var(--mono); letter-spacing: .16em; text-align: left; }.folder-front-label small { font-size: .8em; color: rgba(255,255,255,.55); }
.folder-glare { position: absolute; top: -80%; left: -45%; width: 32%; height: 270%; opacity: .5; background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent); transform: rotate(28deg); animation: folder-sheen 12s ease-in-out infinite; }
.folder-edge { position: absolute; z-index: 3; top: 28%; right: -12px; bottom: 2%; width: 27px; border: 1px solid rgba(255,255,255,.25); border-radius: 0 20px 24px 0; background: linear-gradient(90deg, #4d5363, #aab2c3 54%, #525766); transform: rotateY(78deg) translateZ(-2px); transform-origin: left center; }
.folder-document { position: absolute; z-index: 2; top: 10%; display: flex; flex-direction: column; gap: 17px; width: 35%; height: 65%; padding: 35px 30px; border: 1px solid rgba(255,255,255,.52); border-radius: 9px; background: linear-gradient(135deg, rgba(244,246,251,.96), rgba(190,197,212,.96)); box-shadow: 0 18px 30px rgba(0,0,0,.18); color: #333744; text-align: left; transition: transform .8s cubic-bezier(.16,1,.3,1); }.folder-document i { margin-bottom: 15px; font: normal 500 clamp(10px,1vw,14px)/1.4 var(--mono); letter-spacing: .07em; }.folder-document b { display: block; width: 88%; height: 7px; border-radius: 8px; background: rgba(59,66,84,.16); }.folder-document b:nth-of-type(2) { width: 71%; }.folder-document b:nth-of-type(3) { width: 50%; }.doc-one { left: 8%; transform: translate3d(0,0,-5px) rotate(-4deg); }.doc-two { right: 7%; transform: translate3d(0,0,2px) rotate(3deg); }
.mega-folder.is-open .folder-front { transform: translate3d(0, 12%, 65px) rotateX(18deg); filter: brightness(1.13); }.mega-folder.is-open .doc-one { transform: translate3d(-20px,-28px,45px) rotate(-9deg); }.mega-folder.is-open .doc-two { transform: translate3d(22px,-36px,55px) rotate(8deg); }
.scene-cross { position: absolute; z-index: 0; color: rgba(223,228,246,.6); font: 300 22px/1 var(--mono); }.cross-one { top: 19%; left: 17%; }.cross-two { right: 8%; bottom: 20%; }.scene-coordinate { position: absolute; color: rgba(225,229,239,.58); font: 10px/1.4 var(--mono); letter-spacing: .15em; }.coordinate-left { bottom: 13%; left: 6%; }.coordinate-right { top: 15%; right: 5%; }
.hero-content { position: relative; z-index: 5; width: min(100%, 850px); margin-top: -2vh; pointer-events: none; }.hero-content a { pointer-events: auto; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: min(600px, 85%); margin-bottom: clamp(45px, 8vh, 95px); color: #b0b1bb; font: 10px/1.4 var(--mono); letter-spacing: .11em; }.hero-topline > span:first-child { display: inline-flex; align-items: center; gap: 9px; }.hero-topline i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(169,185,255,.75); }
.hero-kicker { margin: 0 0 20px 4px; color: #d4d5dc; font: 500 clamp(10px,.9vw,13px)/1.4 var(--mono); letter-spacing: .22em; }
.hero-title { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0; color: var(--text); font-size: clamp(6.8rem, 17.6vw, 16.5rem); font-weight: 800; line-height: .77; letter-spacing: -.105em; isolation: isolate; white-space: nowrap; }
.hero-title::after { position: absolute; z-index: -1; inset: 0; content: "Jelix."; color: transparent; -webkit-text-stroke: 1px rgba(190,202,255,.42); transform: translate(8px,-9px); clip-path: inset(0 0 12% 0); animation: title-echo 8s steps(1,end) infinite; pointer-events: none; }
.title-glyph:nth-child(1) { --glyph-index: 0; }.title-glyph:nth-child(2) { --glyph-index: 1; }.title-glyph:nth-child(3) { --glyph-index: 2; }.title-glyph:nth-child(4) { --glyph-index: 3; }.title-glyph:nth-child(5) { --glyph-index: 4; }
.title-glyph { position: relative; display: inline-block; color: transparent; background: linear-gradient(112deg, #fff 4%, #dbdce3 24%, #8d95ad 39%, #f7f7fb 53%, #aebeff 67%, #fff 82%); background-size: 260% 100%; background-position: 100% 50%; background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 5px 25px rgba(0,0,0,.12)); animation: title-flow 7s ease-in-out infinite, title-lift 7s ease-in-out infinite; animation-delay: calc(var(--glyph-index) * .09s), calc(var(--glyph-index) * .13s); }
.title-period { display: inline-block; padding-left: .04em; color: var(--accent); text-shadow: 0 0 32px rgba(169,185,255,.45); animation: period-blink 3.5s ease-in-out infinite; }
.title-caption { display: flex; align-items: center; gap: 12px; width: min(540px, 88%); margin: 24px 0 0 5px; color: #d1d2d9; font: 10px/1.4 var(--mono); letter-spacing: .13em; }.caption-line { width: 37px; height: 1px; background: var(--accent); }.caption-index { margin-left: auto; color: #989ba7; }
.hero-info { margin: clamp(28px,4vh,42px) 0 0 5px; }.affiliation { margin: 0; color: #f0f0f4; font-size: clamp(14px,1.2vw,17px); font-weight: 600; }.intro-line { margin: 9px 0 0; color: #b3b5c0; font-size: clamp(14px,1.05vw,16px); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin: clamp(25px,4vh,42px) 0 0 4px; color: #c8cad3; font: 10px/1.3 var(--mono); letter-spacing: .14em; transition: color .2s ease; }.scroll-cue:hover { color: white; }.scroll-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--accent); font-size: 15px; transition: transform .25s ease, background .25s ease; }.scroll-cue:hover .scroll-icon { transform: translateY(3px); background: rgba(255,255,255,.08); }
.hero-bottomline { position: absolute; right: max(7.5vw, calc((100vw - 1320px) / 2)); bottom: 29px; left: max(7.5vw, calc((100vw - 1320px) / 2)); display: flex; justify-content: space-between; gap: 18px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.14); color: #797c87; font: 9px/1.4 var(--mono); letter-spacing: .12em; }

/* Sections */
.section-shell { width: min(1320px, calc(100% - 100px)); margin-inline: auto; }
.section-block { padding-top: clamp(95px, 11vw, 160px); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 32px; }
.section-kicker { margin: 0 0 16px; color: #a4a5b1; font: 10px/1.4 var(--mono); letter-spacing: .15em; }.section-heading h2 { margin: 0; color: #f2f2f5; font-size: clamp(31px, 4vw, 55px); font-weight: 700; line-height: 1.2; letter-spacing: -.065em; }.section-heading h2 > span { display: inline-block; margin-left: 12px; color: var(--accent); font-size: .52em; vertical-align: top; transform: translateY(7px); }.section-description { margin: 0 0 4px; color: #a5a6af; font-size: 14px; line-height: 1.8; text-align: right; }
.table-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); box-shadow: 0 18px 55px rgba(0,0,0,.08); }.works-table { width: 100%; border-collapse: collapse; text-align: left; }.works-table th { padding: 19px 23px; border-bottom: 1px solid var(--line); color: #8f919d; font: 10px/1.4 var(--mono); letter-spacing: .12em; white-space: nowrap; }.works-table td { padding: 22px 23px; border-bottom: 1px solid rgba(255,255,255,.075); color: #c9cad1; font-size: 14px; vertical-align: middle; }.works-table tr:last-child td { border-bottom: 0; }.works-table tbody tr { transition: background .2s ease; }.works-table tbody tr:hover { background: rgba(255,255,255,.035); }.works-table time { color: #a9b9ff; font: 12px/1.5 var(--mono); white-space: nowrap; }.type-tag { display: inline-block; padding: 5px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #dbdce2; font-size: 11px; white-space: nowrap; }.works-table strong { display: block; margin-bottom: 4px; color: #f0f0f4; font-size: 14px; font-weight: 600; }.works-table small { display: block; color: #858792; font-size: 12px; }.section-note { margin: 15px 0 0; color: #898b96; font-size: 12px; }.section-note span { margin-right: 8px; color: var(--accent); }
.course-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }.course-list li { display: grid; grid-template-columns: 55px minmax(0,1fr) auto 22px; align-items: center; gap: 22px; min-height: 82px; padding: 0 20px; border-bottom: 1px solid var(--line); transition: background .2s ease, padding .25s ease; }.course-list li:hover { padding-inline: 27px 13px; background: rgba(255,255,255,.025); }.course-number { color: #777985; font: 11px/1.3 var(--mono); }.course-name { color: #e9e9ee; font-size: clamp(15px,1.4vw,19px); font-weight: 600; letter-spacing: -.025em; }.course-type { padding: 6px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #bcbec8; font-size: 12px; }.course-open { color: #a9b9ff; font-size: 19px; transition: transform .2s ease; }.course-open:hover { transform: translate(3px,-3px); }.course-featured .course-name { color: var(--accent-strong); }

/* Paper-textured weekly cards; these are direct links, not new local pages */
.week-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; padding: 14px 4px 20px; }
.week-card { position: relative; display: flex; min-height: 178px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 20px 18px 17px; border: 1px solid rgba(255,255,255,.26); border-radius: 3px 3px 2px 3px; background-color: var(--paper); background-image: repeating-linear-gradient(0deg, rgba(68,62,52,.032) 0, rgba(68,62,52,.032) 1px, transparent 1px, transparent 4px), radial-gradient(ellipse at 13% 9%, rgba(255,255,255,.85), transparent 55%), linear-gradient(135deg, rgba(255,255,255,.35), transparent 60%); color: var(--paper-ink); box-shadow: 0 9px 0 rgba(0,0,0,.08), 0 15px 30px rgba(0,0,0,.15); transform: rotate(0deg); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, filter .3s ease; isolation: isolate; }.week-card::before { position: absolute; z-index: -1; top: 0; right: 0; width: 30px; height: 30px; background: linear-gradient(225deg, #d3cfc4 0 49%, #e9e5db 50% 100%); clip-path: polygon(0 0,100% 100%,100% 0); content: ""; filter: drop-shadow(-1px 1px 1px rgba(0,0,0,.12)); }.week-card::after { position: absolute; z-index: -2; inset: 0; border: 1px solid rgba(65,62,54,.08); content: ""; pointer-events: none; }.week-card:hover { z-index: 2; transform: translateY(-7px) rotate(0deg) scale(1.015); box-shadow: 0 7px 0 rgba(0,0,0,.08), 0 25px 45px rgba(0,0,0,.28); filter: brightness(1.035); }.paper-rotate-a { transform: rotate(-1.2deg); }.paper-rotate-b { transform: rotate(1deg); }.paper-rotate-c { transform: rotate(-.5deg); }.paper-tape { position: absolute; top: -1px; left: 50%; width: 63px; height: 17px; border-right: 1px solid rgba(88,84,75,.09); border-left: 1px solid rgba(88,84,75,.09); background: rgba(197,201,208,.65); opacity: .8; transform: translateX(-50%) rotate(-2deg); }.week-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid rgba(42,44,48,.15); color: #76766f; font: 10px/1.4 var(--mono); letter-spacing: .09em; }.week-top span:last-child { color: #4c5368; }.week-name { margin: auto 0; padding: 18px 0; color: #292b31; font-size: clamp(15px,1.25vw,18px); font-weight: 800; letter-spacing: -.05em; }.week-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(42,44,48,.15); color: #64656a; font: 10px/1.4 var(--mono); }.week-check { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid rgba(58,66,85,.25); border-radius: 50%; color: #515b80; font-size: 12px; }.is-upcoming { background-color: #d9d7d0; filter: saturate(.35); opacity: .62; box-shadow: 0 5px 0 rgba(0,0,0,.07), 0 10px 20px rgba(0,0,0,.08); }.is-upcoming:hover { transform: none; }.is-upcoming .week-name { color: #797a79; }.is-upcoming .week-bottom { color: #8b8b87; }.week-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 12px; color: #a2a3ac; font-size: 12px; }.week-legend > span { display: inline-flex; align-items: center; gap: 8px; }.legend-done, .legend-upcoming { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }.legend-done { background: var(--accent); }.legend-upcoming { border: 1px solid #898a92; }
.closing-note { position: relative; display: flex; min-height: 300px; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; margin-top: clamp(100px, 13vw, 190px); border-top: 1px solid var(--line); text-align: center; }.closing-orbit { position: absolute; width: min(44vw, 520px); aspect-ratio: 1; border: 1px solid rgba(169,185,255,.15); border-radius: 50%; animation: orbit-turn 30s linear infinite; }.closing-orbit::before, .closing-orbit::after { position: absolute; inset: 13%; border: 1px dashed rgba(169,185,255,.15); border-radius: 50%; content: ""; }.closing-orbit::after { inset: 30%; border-style: solid; }.closing-kicker { position: relative; margin: 0 0 14px; color: #a1a3ae; font: 10px/1.4 var(--mono); letter-spacing: .16em; }.closing-line { position: relative; margin: 0; color: #f1f1f5; font-size: clamp(34px,5.5vw,72px); font-weight: 700; line-height: 1.1; letter-spacing: -.07em; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 92px; border-top: 1px solid var(--line); color: #8d8f99; font-size: 12px; }.footer-brand { color: #f3f3f5; font-size: 18px; font-weight: 800; letter-spacing: -.07em; }.site-footer p { margin: 0; }.site-footer p span { color: var(--accent); }.last-updated { font-family: var(--mono); font-size: 11px; }

@keyframes title-flow { 0%,100% { background-position: 100% 50%; } 50% { background-position: 0% 50%; } }
@keyframes title-lift { 0%,100% { transform: translateY(0) skewX(0deg); } 8% { transform: translateY(-3px) skewX(-1deg); } 14% { transform: translateY(1px) skewX(0deg); } 50% { transform: translateY(0) skewX(0deg); } }
@keyframes title-echo { 0%,78%,100% { transform: translate(8px,-9px) skewX(0); clip-path: inset(0 0 12% 0); opacity: .9; } 80% { transform: translate(-4px,2px) skewX(-5deg); clip-path: inset(24% 0 35% 0); opacity: .7; } 82% { transform: translate(13px,-3px) skewX(2deg); clip-path: inset(48% 0 14% 0); opacity: .85; } 84% { transform: translate(8px,-9px) skewX(0); clip-path: inset(0 0 12% 0); opacity: .9; } }
@keyframes period-blink { 0%,100% { opacity: 1; } 48%,54% { opacity: .4; } }
@keyframes folder-sheen { 0%,20% { transform: translateX(-20%) rotate(28deg); opacity: 0; } 32% { opacity: .45; } 52% { transform: translateX(340%) rotate(28deg); opacity: .16; } 70%,100% { transform: translateX(340%) rotate(28deg); opacity: 0; } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }

@media (min-width: 1600px) { .hero { min-height: min(930px, calc(100svh - 90px)); }.hero-content { margin-top: -1vh; }.hero-title { font-size: clamp(15rem,16vw,18.5rem); } }
@media (max-width: 1050px) { .mac-header { width: calc(100% - 36px); }.hero { padding-right: 6vw; padding-left: 6vw; }.mega-folder { left: 65%; width: 112vw; height: 72vh; }.hero-title { font-size: clamp(6rem,17vw,12.5rem); }.hero-bottomline { right: 6vw; left: 6vw; }.section-shell { width: calc(100% - 64px); }.week-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }.week-card { min-height: 162px; padding: 18px 14px 14px; } }
@media (max-width: 720px) {
  html { scroll-padding-top: 85px; }.mac-header { top: 8px; width: calc(100% - 24px); min-height: 55px; margin-top: 8px; padding: 0 12px; gap: 12px; border-radius: 15px; }.traffic-lights { gap: 5px; }.traffic-lights i { width: 10px; height: 10px; }.brand { font-size: 18px; }.menu-toggle { display: flex; margin-left: auto; }.primary-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 7px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(31,32,36,.96); box-shadow: 0 20px 45px rgba(0,0,0,.32); backdrop-filter: blur(25px); }.primary-nav.is-open { display: flex; }.primary-nav a { padding: 13px 12px; border-radius: 9px; font-size: 14px; }.primary-nav .github-link { text-align: center; margin-top: 3px; }
  .hero { display: flex; min-height: min(790px, calc(100svh - 68px)); min-height: max(690px, calc(100svh - 68px)); align-items: center; padding: 62px 24px 92px; }.hero::before { background: radial-gradient(ellipse at 52% 45%, rgba(122,137,188,.15), transparent 63%), linear-gradient(180deg, #191a1e 0%, #17181b 100%); }.hero-scene { inset: -4% -10% 0; }.mega-folder { top: 45%; left: 60%; width: 165vw; height: 78vw; min-height: 430px; transform: translate3d(calc(-50% + var(--move-x, 0px)), calc(-50% + var(--move-y, 0px)), 0) rotateX(calc(8deg + var(--rot-x, 0deg))) rotateY(calc(-22deg + var(--rot-y, 0deg))) rotateZ(-12deg); }.folder-back { border-radius: 28px; }.folder-front { border-radius: 28px; }.folder-tab { border-radius: 23px 23px 0 0; }.folder-document { gap: 11px; padding: 22px 17px; border-radius: 6px; }.folder-document i { font-size: 8px; }.folder-document b { height: 5px; }.folder-front-label { font-size: 8px; }.folder-emblem { font-size: 64px; }.folder-edge { right: -8px; width: 16px; }.scene-light-one { top: 15%; right: -25%; width: 90vw; height: 90vw; }.scene-cross { font-size: 17px; }.cross-one { top: 20%; left: 6%; }.cross-two { right: 5%; bottom: 21%; }.scene-coordinate { font-size: 8px; }.coordinate-left { bottom: 18%; left: 3%; }.coordinate-right { top: 17%; right: 2%; }
  .hero-content { width: 100%; margin-top: -13px; }.hero-topline { width: 100%; margin-bottom: 68px; font-size: 8px; letter-spacing: .08em; }.hero-kicker { max-width: 90%; margin: 0 0 21px 1px; font-size: 9px; letter-spacing: .13em; }.hero-title { font-size: clamp(5.7rem, 22.5vw, 10rem); letter-spacing: -.11em; }.hero-title::after { -webkit-text-stroke-width: .7px; transform: translate(4px,-5px); }.title-caption { width: 95%; gap: 8px; margin-top: 21px; font-size: 8px; letter-spacing: .08em; }.caption-line { width: 24px; }.caption-index { font-size: 8px; }.hero-info { margin-top: 30px; }.affiliation { font-size: 14px; }.intro-line { max-width: 300px; font-size: 13px; line-height: 1.8; }.scroll-cue { margin-top: 26px; font-size: 9px; }.scroll-icon { width: 27px; height: 27px; }.hero-bottomline { right: 24px; bottom: 20px; left: 24px; font-size: 7px; letter-spacing: .06em; }.hero-bottomline span:last-child { max-width: 45%; text-align: right; }
  .section-shell { width: calc(100% - 40px); }.section-block { padding-top: 88px; }.section-heading { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }.section-kicker { margin-bottom: 12px; font-size: 9px; }.section-heading h2 { font-size: clamp(28px,7.5vw,42px); }.section-description { font-size: 13px; text-align: left; }.table-shell { border-radius: 13px; }.works-table { min-width: 690px; }.works-table th { padding: 16px 16px; font-size: 10px; }.works-table td { padding: 18px 16px; font-size: 13px; }.works-table strong { font-size: 13px; }.works-table small { font-size: 12px; }.section-note { font-size: 12px; }
  .course-list li { grid-template-columns: 30px minmax(0,1fr) auto 16px; gap: 10px; min-height: 74px; padding: 0 5px; }.course-list li:hover { padding-inline: 8px 2px; }.course-number { font-size: 10px; }.course-name { font-size: 13px; }.course-type { padding: 5px 7px; font-size: 10px; }.course-open { font-size: 16px; }
  .week-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 11px; padding: 6px 3px 16px; }.week-card { min-height: 151px; padding: 18px 13px 13px; }.week-name { font-size: 15px; }.week-top, .week-bottom { font-size: 9px; }.paper-tape { width: 49px; height: 14px; }.week-card::before { width: 25px; height: 25px; }.is-upcoming { opacity: .65; }.week-legend { font-size: 11px; gap: 15px; }
  .closing-note { min-height: 250px; margin-top: 110px; }.closing-orbit { width: 78vw; }.closing-kicker { font-size: 8px; }.closing-line { font-size: clamp(34px,9vw,48px); }.site-footer { flex-wrap: wrap; min-height: 112px; gap: 8px 20px; padding-block: 18px; }.footer-brand { font-size: 17px; }.site-footer p { font-size: 11px; }.last-updated { width: 100%; font-size: 10px !important; }
}
@media (max-width: 380px) { .traffic-lights { gap: 4px; }.traffic-lights i { width: 8px; height: 8px; }.mac-header { gap: 9px; }.hero { padding-inline: 18px; }.hero-title { font-size: 21.5vw; }.hero-topline { font-size: 7px; }.hero-kicker { font-size: 8px; }.title-caption { font-size: 7px; }.section-shell { width: calc(100% - 32px); }.course-list li { grid-template-columns: 22px minmax(0,1fr) auto 12px; gap: 7px; }.course-name { font-size: 12px; }.week-grid { gap: 12px 9px; }.week-card { padding: 17px 11px 12px; }.week-name { font-size: 14px; }.week-bottom { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }.mega-folder { transform: translate(-50%,-50%) rotate(-8deg); } }

/* v4 refinement: softer section transition, jelly lettering, ambient depth and glass week carousel */
body { position: relative; isolation: isolate; }
main, .site-footer { position: relative; z-index: 1; }
.scroll-atmosphere { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; opacity: 1; contain: paint; }
.atmosphere-blob { position: absolute; display: block; width: clamp(300px, 43vw, 760px); aspect-ratio: 1; border-radius: 50%; filter: blur(clamp(55px, 8vw, 125px)); opacity: .42; mix-blend-mode: screen; will-change: transform, background; transition: transform 1.6s cubic-bezier(.2,.8,.2,1), background 1.4s ease, opacity 1.4s ease; }
.atmosphere-blob-a { top: 4%; left: 55%; background: radial-gradient(circle, rgba(135,153,255,.25), rgba(111,126,203,.04) 58%, transparent 72%); transform: translate3d(0,0,0) scale(1); }
.atmosphere-blob-b { top: 38%; left: -15%; width: clamp(280px, 37vw, 630px); background: radial-gradient(circle, rgba(181,188,220,.17), rgba(105,117,165,.03) 58%, transparent 72%); transform: translate3d(0,0,0) scale(.9); }
.atmosphere-blob-c { top: 70%; right: -13%; width: clamp(280px, 34vw, 560px); background: radial-gradient(circle, rgba(105,157,180,.12), rgba(77,127,151,.02) 58%, transparent 73%); transform: translate3d(0,0,0) scale(1.05); }
.atmosphere-ring { position: absolute; top: 16%; right: 9%; width: clamp(220px, 29vw, 480px); aspect-ratio: 1; border: 1px solid rgba(213,220,255,.08); border-radius: 50%; box-shadow: 0 0 70px rgba(150,165,255,.045), inset 0 0 50px rgba(150,165,255,.03); transform: rotate(-18deg); transition: transform 1.8s cubic-bezier(.2,.8,.2,1), right 1.4s ease, top 1.4s ease, border-color 1.4s ease; }
.atmosphere-ring::before, .atmosphere-ring::after { position: absolute; inset: 12%; border: 1px solid rgba(213,220,255,.055); border-radius: 50%; content: ""; }
.atmosphere-ring::after { inset: 29%; border-style: dashed; }
.atmosphere-glass { position: absolute; display: block; width: clamp(72px, 9vw, 138px); aspect-ratio: .72; border: 1px solid rgba(255,255,255,.18); border-radius: 21px; background: linear-gradient(140deg, rgba(255,255,255,.1), rgba(255,255,255,.015) 54%, rgba(151,166,255,.07)); box-shadow: inset 0 1px rgba(255,255,255,.16), 0 20px 60px rgba(0,0,0,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: .38; animation: glass-drift 11s ease-in-out infinite; transition: left 1.4s ease, top 1.4s ease, transform 1.4s ease, opacity 1.4s ease; }
.atmosphere-glass::before, .atmosphere-glass::after { position: absolute; left: 18%; right: 18%; height: 1px; background: rgba(255,255,255,.16); content: ""; }
.atmosphere-glass::before { top: 30%; }.atmosphere-glass::after { top: 39%; right: 35%; }
.atmosphere-glass-a { top: 20%; left: 11%; transform: rotate(-17deg); }
.atmosphere-glass-b { top: 62%; right: 13%; width: clamp(58px, 7vw, 104px); border-radius: 50%; aspect-ratio: 1; animation-delay: -5s; }
body[data-view="works"] .atmosphere-blob-a { transform: translate3d(-22vw, 26vh, 0) scale(1.18); background: radial-gradient(circle, rgba(145,162,255,.22), rgba(105,125,198,.03) 60%, transparent 73%); }
body[data-view="works"] .atmosphere-blob-b { transform: translate3d(17vw,-9vh,0) scale(1.08); }
body[data-view="works"] .atmosphere-ring { top: 25%; right: 22%; transform: rotate(26deg) scale(.9); border-color: rgba(203,212,255,.12); }
body[data-view="works"] .atmosphere-glass-a { top: 36%; left: 78%; transform: rotate(18deg) scale(.88); }
body[data-view="courses"] .atmosphere-blob-a { transform: translate3d(-12vw,45vh,0) scale(.78); background: radial-gradient(circle, rgba(162,175,223,.2), rgba(92,112,164,.025) 62%, transparent 74%); }
body[data-view="courses"] .atmosphere-blob-b { transform: translate3d(37vw,4vh,0) scale(1.25); }
body[data-view="courses"] .atmosphere-blob-c { transform: translate3d(-10vw,-22vh,0) scale(.9); }
body[data-view="courses"] .atmosphere-ring { top: 48%; right: 7%; transform: rotate(65deg) scale(1.12); border-color: rgba(197,220,255,.13); }
body[data-view="courses"] .atmosphere-glass-b { top: 30%; right: 76%; transform: rotate(-22deg) scale(1.15); }
body[data-view="class-links"] .atmosphere-blob-a { transform: translate3d(-35vw,61vh,0) scale(.82); background: radial-gradient(circle, rgba(135,184,205,.18), rgba(96,142,162,.02) 63%, transparent 74%); }
body[data-view="class-links"] .atmosphere-blob-b { transform: translate3d(39vw,12vh,0) scale(.95); }
body[data-view="class-links"] .atmosphere-blob-c { transform: translate3d(-14vw,-23vh,0) scale(1.3); }
body[data-view="class-links"] .atmosphere-ring { top: 19%; right: 39%; transform: rotate(-32deg) scale(.78); border-color: rgba(179,222,234,.12); }
body[data-view="class-links"] .atmosphere-glass-a { top: 64%; left: 81%; transform: rotate(24deg) scale(1.18); }
body[data-view="closing"] .atmosphere-blob-a { transform: translate3d(-8vw,65vh,0) scale(1.22); }
body[data-view="closing"] .atmosphere-blob-b { transform: translate3d(10vw,-12vh,0) scale(.7); }
body[data-view="closing"] .atmosphere-ring { top: 5%; right: 34%; transform: rotate(100deg) scale(1.2); }

/* The hero dissolves into the page instead of ending at a hard horizontal edge. */
.hero { z-index: 1; }
.hero::before { background: radial-gradient(ellipse at 73% 40%, rgba(122,137,188,.16), transparent 47%), linear-gradient(180deg, rgba(25,26,30,.72) 0%, rgba(23,24,27,.66) 62%, rgba(23,24,27,.85) 100%); }
.hero::after { position: absolute; z-index: 2; right: 0; bottom: -1px; left: 0; height: clamp(150px, 22vw, 310px); background: linear-gradient(180deg, rgba(23,24,27,0) 0%, rgba(23,24,27,.42) 42%, var(--bg) 100%); content: ""; pointer-events: none; }
.hero-scene { opacity: .96; }
.scene-light-one { opacity: 1; background: radial-gradient(circle, rgba(167,180,255,.18), rgba(126,141,211,.045) 45%, transparent 70%); }
.scene-light-two { background: radial-gradient(circle, rgba(173,190,211,.1), transparent 70%); }
.hero-content { z-index: 5; }

/* A few softly blurred, glass-like shapes drift around the giant folder. */
.scene-float { position: absolute; z-index: 0; display: block; pointer-events: none; }
.scene-float-orb { width: clamp(65px, 8vw, 138px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: radial-gradient(circle at 32% 27%, rgba(255,255,255,.27), rgba(158,174,233,.09) 23%, rgba(255,255,255,.025) 67%); box-shadow: inset 0 1px 10px rgba(255,255,255,.12), 0 10px 45px rgba(106,124,190,.1); filter: blur(1px); backdrop-filter: blur(12px); animation: scene-float-a 10s ease-in-out infinite; }
.scene-float-chip { width: clamp(100px, 12vw, 190px); height: clamp(54px, 6vw, 92px); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.025) 55%, rgba(163,180,255,.09)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 25px 60px rgba(0,0,0,.1); backdrop-filter: blur(20px); transform: rotate(-18deg); animation: scene-float-b 13s ease-in-out infinite; }
.scene-float-ring { width: clamp(100px, 15vw, 220px); aspect-ratio: 1; border: 1px solid rgba(212,219,255,.16); border-radius: 50%; box-shadow: inset 0 0 32px rgba(171,185,255,.035), 0 0 35px rgba(171,185,255,.025); animation: orbit-turn 28s linear infinite; }
.float-orb-one { top: 23%; left: 14%; }.float-chip-one { top: 19%; right: 13%; }.float-orb-two { right: 18%; bottom: 17%; width: clamp(46px, 5.5vw, 90px); animation-delay: -4s; }.float-ring-one { bottom: 9%; left: 21%; }

/* Jelly-like motion belongs to the actual J-e-l-i-x title glyphs. */
.hero-title { filter: drop-shadow(0 11px 36px rgba(147,161,231,.08)); }
.title-glyph { transform-origin: 50% 78%; animation: title-flow 7s ease-in-out infinite, jelly-bounce 4.4s cubic-bezier(.26,.78,.34,1) infinite; animation-delay: calc(var(--glyph-index) * .04s), calc(var(--glyph-index) * .13s); will-change: transform, background-position; }
@keyframes jelly-bounce {
  0%, 66%, 100% { transform: translateY(0) scaleX(1) scaleY(1) rotate(0deg); }
  71% { transform: translateY(-.13em) scaleX(.91) scaleY(1.16) rotate(-1.5deg); }
  76% { transform: translateY(.035em) scaleX(1.12) scaleY(.88) rotate(1.8deg); }
  81% { transform: translateY(-.025em) scaleX(.97) scaleY(1.045) rotate(-.6deg); }
  87% { transform: translateY(0) scaleX(1.01) scaleY(.99) rotate(0deg); }
}
@keyframes glass-drift { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -20px; rotate: 4deg; } }
@keyframes scene-float-a { 0%,100% { transform: translate3d(0,0,25px) scale(1); } 50% { transform: translate3d(14px,-23px,45px) scale(1.05); } }
@keyframes scene-float-b { 0%,100% { transform: translate3d(0,0,10px) rotate(-18deg); } 50% { transform: translate3d(-15px,19px,35px) rotate(-10deg); } }

/* Week list: glass UI carousel. All 15 weeks stay in the DOM; completed weeks link directly to the user's own practice URLs. */
.week-grid { display: block; }
.week-carousel { position: relative; margin-top: 8px; }
.week-carousel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 3px; }
.week-carousel-toolbar p { display: flex; align-items: center; gap: 9px; margin: 0; color: #a6a9b7; font: 10px/1.5 var(--mono); letter-spacing: .11em; }
.carousel-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #b3c1ff; box-shadow: 0 0 12px rgba(169,185,255,.65); }
.carousel-range { margin-left: 6px; color: #e1e4f2; }
.week-controls { display: flex; align-items: center; gap: 8px; }
.week-arrow { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; background: rgba(255,255,255,.055); color: #f3f4fb; font-size: 19px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.week-arrow:hover { transform: translateY(-2px); border-color: rgba(188,199,255,.45); background: rgba(169,185,255,.12); }
.week-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.week-viewport { overflow-x: auto; overflow-y: hidden; padding: 12px 2px 22px; scroll-behavior: smooth; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.week-viewport::-webkit-scrollbar { display: none; }
.week-track { display: flex; align-items: stretch; gap: 15px; width: max-content; min-width: 100%; padding: 6px 2px 12px; }
.week-card { position: relative; display: flex; flex: 0 0 clamp(222px, 23vw, 300px); min-width: 0; min-height: 218px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 21px 21px 18px; border: 1px solid rgba(255,255,255,.17); border-radius: 23px; background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.035) 53%, rgba(151,166,255,.045)), rgba(29,31,37,.57); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -1px 0 rgba(255,255,255,.035), 0 16px 34px rgba(0,0,0,.15); isolation: isolate; scroll-snap-align: start; transform: translateY(0); transition: border-color .35s ease, background .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease; backdrop-filter: blur(24px) saturate(130%); -webkit-backdrop-filter: blur(24px) saturate(130%); }
a.week-card { cursor: pointer; }
.week-card::before { display: none; }
.week-card::after { position: absolute; z-index: -1; inset: 0; border: 0; border-radius: inherit; background: radial-gradient(ellipse at 18% 0%, rgba(255,255,255,.11), transparent 45%); content: ""; opacity: .7; transition: opacity .35s ease; pointer-events: none; }
.week-card:hover { z-index: 2; transform: translateY(-7px) scale(1.012); border-color: rgba(196,207,255,.4); background-color: rgba(50,54,67,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 22px 48px rgba(0,0,0,.26), 0 0 28px rgba(151,166,255,.055); filter: none; }
.week-card:hover::after { opacity: 1; }
.week-card-glow { position: absolute; z-index: -1; top: -62%; right: -28%; width: 180px; aspect-ratio: 1; border-radius: 50%; background: rgba(165,180,255,.11); filter: blur(38px); opacity: .6; transition: transform .6s ease, opacity .4s ease; }
.week-card:hover .week-card-glow { transform: translate(-22px,35px) scale(1.25); opacity: 1; }
.week-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); color: #a6a9b8; font: 9px/1.5 var(--mono); letter-spacing: .08em; }
.week-top span:last-child { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; background: rgba(255,255,255,.06); color: #f1f2f9; font-size: 10px; }
.week-name { margin: auto 0; padding: 22px 0; color: #f1f2f7; font-size: clamp(17px,1.5vw,21px); font-weight: 700; line-height: 1.35; letter-spacing: -.045em; }
.week-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); color: #b7bdd7; font: 9px/1.4 var(--mono); letter-spacing: .06em; }
.week-status { display: inline-flex; align-items: center; gap: 7px; }
.is-done .week-status::before { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b8c5ff; box-shadow: 0 0 10px rgba(169,185,255,.7); content: ""; }
.week-arrow-mark { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.055); color: #f1f2fa; font-size: 15px; transition: transform .25s ease, background .25s ease; }
a.week-card:hover .week-arrow-mark { transform: translate(2px,-2px); background: rgba(169,185,255,.15); }
.week-card.is-upcoming { cursor: default; border-color: rgba(255,255,255,.09); background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)), rgba(24,25,29,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 12px 25px rgba(0,0,0,.08); opacity: .57; filter: none; }
.week-card.is-upcoming:hover { transform: none; border-color: rgba(255,255,255,.09); background-color: rgba(24,25,29,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 12px 25px rgba(0,0,0,.08); }
.week-card.is-upcoming .week-name { color: #aaabb4; }
.week-card.is-upcoming .week-bottom { color: #858894; }
.week-card.is-upcoming .week-top span:last-child { color: #8a8d98; }
.week-card.is-upcoming .week-status::before { display: inline-block; width: 5px; height: 5px; border: 1px solid #898d9b; border-radius: 50%; content: ""; }
.carousel-progress { height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.085); }
.carousel-progress-fill { display: block; width: 15%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(148,162,226,.45), #c2cbff); box-shadow: 0 0 12px rgba(169,185,255,.45); transition: width .12s linear; }
.week-legend { margin-top: 20px; }
.week-legend > span { color: #a2a6b4; }
.legend-done { background: #b7c4ff; box-shadow: 0 0 10px rgba(169,185,255,.45); }
.legend-upcoming { border-color: #757986; }

@media (max-width: 1050px) {
  .week-card { flex-basis: clamp(220px, 32vw, 285px); }
  .atmosphere-blob-a { left: 38%; }
}
@media (max-width: 720px) {
  .hero::after { height: 190px; }
  .hero-title { font-size: clamp(5.6rem, 22vw, 9rem); }
  .atmosphere-blob { filter: blur(68px); opacity: .32; }
  .atmosphere-blob-a { top: 12%; left: 18%; width: 100vw; }
  .atmosphere-blob-b { top: 45%; left: -35%; width: 88vw; }
  .atmosphere-blob-c { top: 78%; right: -35%; width: 86vw; }
  .atmosphere-ring { top: 29%; right: -22%; width: 78vw; }
  .atmosphere-glass-a { top: 25%; left: 4%; width: 54px; border-radius: 13px; }
  .atmosphere-glass-b { top: 68%; right: 5%; width: 40px; }
  .scene-float-orb { width: 68px; }
  .scene-float-chip { width: 92px; height: 52px; border-radius: 15px; }
  .float-orb-one { top: 23%; left: 5%; }
  .float-chip-one { top: 15%; right: 2%; }
  .float-orb-two { right: 9%; bottom: 23%; width: 45px; }
  .float-ring-one { bottom: 12%; left: 5%; width: 90px; }
  .week-carousel-toolbar { align-items: flex-start; }
  .week-carousel-toolbar p { max-width: calc(100% - 94px); flex-wrap: wrap; gap: 7px; font-size: 8px; letter-spacing: .07em; }
  .week-controls { gap: 6px; }
  .week-arrow { width: 36px; height: 36px; font-size: 17px; }
  .week-viewport { margin-inline: -4px; padding: 11px 4px 20px; }
  .week-track { gap: 12px; padding: 6px 2px 12px; }
  .week-card { flex-basis: min(76vw, 290px); min-height: 196px; padding: 19px 18px 16px; border-radius: 19px; }
  .week-name { font-size: 17px; }
  .week-top { font-size: 8px; }
  .week-bottom { font-size: 8px; }
  .carousel-progress { margin-inline: 1px; }
  .week-legend { gap: 15px; font-size: 10px; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 21vw; }
  .week-card { flex-basis: 80vw; }
  .week-carousel-toolbar p { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .atmosphere-blob, .atmosphere-ring, .atmosphere-glass, .scene-float, .title-glyph { animation: none !important; transition: none !important; }
}


/* v4.2 — preserve the original folder hero; real WebGL jelly glass lives behind the works table. */
:root { --display: "Outfit", "Manrope", "Noto Sans KR", system-ui, sans-serif; }

/* One title layer, new round display face, solid glass-mint surface and real extrusion shading. */
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.09em;
  filter: drop-shadow(0 18px 34px rgba(61, 238, 218, .16)) drop-shadow(0 0 46px rgba(187, 104, 255, .08));
}
.hero-title::after { content: none !important; display: none !important; }
.title-glyph {
  color: #b9ffed;
  -webkit-text-fill-color: #b9ffed;
  -webkit-text-stroke: 1.2px rgba(247, 255, 255, .94);
  background: none !important;
  background-image: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  text-shadow:
    0 -1px 0 rgba(255,255,255,.98),
    1px 1px 0 #e2fff8,
    2px 2px 0 #b3ffef,
    3px 3px 0 #84f3e1,
    4px 4px 0 #59d8ce,
    5px 5px 0 #3aaeb4,
    6px 6px 0 #277c91,
    7px 7px 0 #20556f,
    8px 9px 0 #17354f,
    0 13px 19px rgba(0,0,0,.36),
    0 0 30px rgba(83,255,225,.25),
    2px -1px 0 rgba(255,139,220,.25);
  filter: drop-shadow(0 0 10px rgba(180,255,245,.13));
  transform-origin: 50% 82%;
  animation: hero-jelly-settle 6.8s ease-in-out infinite;
  animation-delay: calc(var(--glyph-index) * .12s);
  will-change: transform;
}
.title-period {
  color: #ff91da;
  -webkit-text-fill-color: #ff91da;
  -webkit-text-stroke: 1px rgba(255,247,253,.94);
  text-shadow:
    0 -1px 0 rgba(255,255,255,.95),
    1px 1px 0 #ffd1f0,
    2px 2px 0 #ff9ddd,
    3px 3px 0 #d96bbb,
    4px 4px 0 #964d9d,
    0 10px 20px rgba(0,0,0,.35),
    0 0 30px rgba(255,115,216,.34);
  animation: hero-jelly-settle 6.8s ease-in-out infinite;
  animation-delay: .55s;
}
@keyframes hero-jelly-settle {
  0%, 72%, 100% { transform: translateY(0) scaleX(1) scaleY(1); }
  77% { transform: translateY(-.055em) scaleX(.975) scaleY(1.035); }
  83% { transform: translateY(.012em) scaleX(1.012) scaleY(.985); }
  89% { transform: translateY(0) scaleX(1) scaleY(1); }
}

/* WebGL glass meshes sit behind the lower-page sections and activate on scroll. */
#works {
  position: relative;
  isolation: isolate;
}
.works-3d-stage {
  position: absolute;
  z-index: 0;
  inset: 0 calc((100% - 100vw) / 2);
  overflow: hidden;
  pointer-events: none;
  opacity: .92;
  contain: paint;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
}
.works-glass-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: blur(1.35px) saturate(1.18);
  transform: scale(1.015);
}
#works > .section-heading,
#works > .table-shell,
#works > .section-note {
  position: relative;
  z-index: 1;
}
#works .section-heading h2 { text-shadow: 0 2px 22px rgba(12,14,23,.45); }
#works .section-description,
#works .section-note { text-shadow: 0 2px 16px rgba(12,14,23,.72); }
#works .table-shell {
  border-color: rgba(226,238,255,.2);
  background: rgba(17,19,27,.34);
  box-shadow: 0 24px 70px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(17px) saturate(145%);
  -webkit-backdrop-filter: blur(17px) saturate(145%);
}
#works .works-table thead { background: rgba(255,255,255,.035); }
#works .works-table tbody tr:hover { background: rgba(193,255,245,.055); }
#works .works-table time { color: #98ffe6; }
#works .type-tag { border-color: rgba(167,255,239,.26); background: rgba(137,255,234,.045); }

/* Carousel: one crisp centered card, smaller softened previews on both sides. No card stack. */
.week-carousel { perspective: 1350px; }
.week-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px 0 36px;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  perspective: 1350px;
}
.week-track {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 24px);
  width: max-content;
  min-width: 100%;
  padding: 16px 0 26px;
}
.week-card {
  flex: 0 0 clamp(260px, 27vw, 340px);
  min-height: clamp(340px, 36vw, 420px);
  padding: 25px 24px 22px;
  border-radius: 5px;
  border-color: rgba(236,244,255,.22);
  background:
    radial-gradient(ellipse at 23% 8%, rgba(178,255,244,.12), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.025) 56%, rgba(168,132,255,.08)),
    rgba(19,21,30,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 18px 42px rgba(0,0,0,.22);
  opacity: .28;
  filter: blur(.65px) saturate(.62) brightness(.76);
  transform: translateZ(-70px) scale(.76);
  transform-origin: center center;
  scroll-snap-align: center;
  transition:
    transform .72s cubic-bezier(.2,.85,.22,1),
    opacity .55s ease,
    filter .55s ease,
    border-color .55s ease,
    box-shadow .72s cubic-bezier(.2,.85,.22,1),
    background .55s ease;
}
.week-card.is-active {
  z-index: 4;
  border-color: rgba(218,255,249,.62);
  background:
    radial-gradient(ellipse at 22% 4%, rgba(201,255,247,.19), transparent 43%),
    linear-gradient(145deg, rgba(96,220,207,.16), rgba(255,255,255,.055) 47%, rgba(181,143,255,.12)),
    rgba(21,25,34,.91);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 38px rgba(152,255,238,.055), 0 30px 72px rgba(0,0,0,.34), 0 0 42px rgba(120,255,228,.075);
  opacity: 1;
  filter: none;
  transform: translateZ(0) scale(1);
}
.week-card.is-neighbor {
  z-index: 2;
  opacity: .52;
  filter: blur(.3px) saturate(.82) brightness(.88);
  transform: translateZ(-35px) scale(.79);
}
.week-card.is-prev { transform: translateZ(-35px) rotateY(6deg) scale(.79); }
.week-card.is-next { transform: translateZ(-35px) rotateY(-6deg) scale(.79); }
.week-card.is-distant {
  opacity: .2;
  filter: blur(1.1px) saturate(.48) brightness(.7);
  transform: translateZ(-100px) scale(.69);
}
.week-card.is-active:hover { transform: translateY(-4px) translateZ(0) scale(1.012); }
.week-card.is-neighbor:hover { opacity: .68; }
.week-card.is-active.is-upcoming { opacity: .9; filter: saturate(.9); }
.week-card.is-active.is-upcoming:hover { transform: translateY(-3px) scale(1.008); }
.week-card .week-name { font-family: var(--display); font-size: clamp(23px, 2.15vw, 31px); line-height: 1.18; letter-spacing: -.055em; }
.week-card .week-top { font-size: 10px; }
.week-card .week-top span:last-child { width: 34px; height: 34px; }
.week-card .week-bottom { font-size: 9px; }
.carousel-progress-fill { transition: transform .45s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 1050px) {
  .week-card { flex-basis: clamp(250px, 35vw, 310px); }
  .week-card .week-name { font-size: 25px; }
}
@media (max-width: 720px) {
  .works-3d-stage { inset-inline: -20px; opacity: .72; }
  .works-glass-canvas { filter: blur(1.6px) saturate(1.12); }
  .hero-title { letter-spacing: -.1em; }
  .title-glyph { -webkit-text-stroke-width: .9px; text-shadow: 0 -1px 0 #fff, 1px 1px 0 #d5fff7, 2px 2px 0 #95f5e6, 3px 3px 0 #54cfc8, 4px 4px 0 #2b8697, 5px 6px 0 #1a465f, 0 10px 18px rgba(0,0,0,.38), 0 0 25px rgba(83,255,225,.22); }
  .week-viewport { margin-inline: -12px; padding: 10px 0 28px; }
  .week-track { gap: 10px; padding-top: 14px; padding-bottom: 20px; }
  .week-card { flex-basis: min(76vw, 310px); min-height: 350px; padding: 22px 21px 20px; border-radius: 5px; }
  .week-card .week-name { font-size: 24px; }
  .week-card.is-neighbor { transform: translateZ(-25px) scale(.78); }
  .week-card.is-prev { transform: translateZ(-25px) rotateY(4deg) scale(.78); }
  .week-card.is-next { transform: translateZ(-25px) rotateY(-4deg) scale(.78); }
  .week-card.is-distant { transform: translateZ(-70px) scale(.68); }
}
@media (prefers-reduced-motion: reduce) {
  .title-glyph, .title-period { animation: none !important; }
  .works-glass-canvas { filter: blur(1.35px) saturate(1.18); }
  .week-card { transition: none !important; }
}

/* Keep the table scene clean: no orbital wire rings or faux glass tiles in this section. */
body[data-view="works"] .atmosphere-ring,
body[data-view="works"] .atmosphere-glass { opacity: 0 !important; }


/* v5 — pixel-touched stack cards, no floating line-art, and a true grid/carousel switch. */
:root {
  --accent: #a8ffe8;
  --accent-strong: #c5fff1;
  --pixel-violet: #a27aff;
  --pixel-lime: #caff58;
}

/* The fixed background keeps only soft light fields: all outlined ring/tile shapes are gone. */
.atmosphere-ring, .atmosphere-glass, .closing-orbit { display: none !important; }
.scroll-atmosphere { opacity: .72; }
.atmosphere-blob { mix-blend-mode: screen; opacity: .28; }
body[data-view="works"] .atmosphere-blob { opacity: .17; }

/* Jelix: solid jelly-mint letters with extrusion; no white stroke or duplicate outline. */
.hero-title {
  font-family: "Outfit", "Noto Sans KR", sans-serif;
  letter-spacing: -.095em;
  filter: drop-shadow(0 12px 22px rgba(65,255,220,.12));
}
.hero-title::after { display: none !important; content: none !important; }
.hero-title .title-glyph {
  color: #baffee !important;
  -webkit-text-fill-color: #baffee !important;
  -webkit-text-stroke: 0 !important;
  background: none !important;
  background-clip: border-box !important;
  text-shadow: 0 1px 0 #e6fff8, 0 2px 0 #93e9d9, 0 4px 0 #62c8bd, 0 6px 0 #3297a0, 0 9px 0 #235f73, 0 14px 23px rgba(0,0,0,.34), 0 0 30px rgba(88,255,221,.17);
  filter: none;
  animation: jelly-bounce 5.4s cubic-bezier(.26,.78,.34,1) infinite;
  animation-delay: calc(var(--glyph-index) * .09s);
}
.hero-title .title-period {
  color: #ff9bd7;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 2px 0 #da63b5, 0 5px 0 #853e8d, 0 9px 19px rgba(0,0,0,.32), 0 0 24px rgba(255,113,211,.25);
}

/* Tiny pixel marker brings a handmade, low-fi cadence to otherwise glassy panels. */
.section-kicker { display: flex; align-items: center; gap: 11px; }
.section-kicker::before {
  content: ""; display: inline-block; flex: 0 0 5px; width: 5px; height: 5px;
  background: var(--accent); box-shadow: 6px 0 var(--accent), 0 6px var(--accent), 6px 6px var(--accent), 12px 6px var(--pixel-violet);
  transform: translateY(-1px); opacity: .9;
}
.brand { text-shadow: 1px 1px 0 rgba(168,255,232,.18); }

/* Stacked editorial cards inspired by the reference: oversized color blocks, cut corners, pixel halftone. */
#works { padding-bottom: 12px; }
#works > .section-heading, #works > .works-stack, #works > .section-note { position: relative; z-index: 1; }
#works > .works-stack { display: flex; flex-direction: column; gap: 0; padding: 8px 2px 14px; perspective: 1200px; }
.work-card {
  --card-bg: #caff58; --card-ink: #190d2b; --card-muted: rgba(25,13,43,.66); --card-mark: rgba(25,13,43,.13);
  position: relative; z-index: calc(1 + var(--card-index)); display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .58fr); grid-template-rows: auto 1fr auto;
  gap: 22px 28px; min-height: 252px; margin-bottom: -18px; padding: clamp(24px, 3vw, 42px);
  overflow: hidden; color: var(--card-ink); background-color: var(--card-bg);
  background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 28px 28px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px 18px 5px 18px;
  clip-path: polygon(0 0, 98.8% 0, 100% 3.5%, 100% 100%, 1.4% 100%, 0 96.5%);
  box-shadow: 0 18px 36px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.34);
  transform: translate3d(0, 0, 0) rotate(var(--card-tilt));
  opacity: 1; transition: opacity .7s ease, transform .8s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
  isolation: isolate;
}
html.js-enabled .work-card { opacity: .22; transform: translate3d(0, 54px, 0) rotate(calc(var(--card-tilt) * 2)) scale(.985); }
html.js-enabled .work-card.is-revealed { opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--card-tilt)) scale(1); }
.work-card:hover { box-shadow: 0 28px 58px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.4); }
.work-card--lime { --card-bg: #caff58; --card-ink: #1b0d2c; --card-muted: rgba(27,13,44,.68); --card-mark: rgba(28,13,45,.13); }
.work-card--violet { --card-bg: #241039; --card-ink: #d5ff5e; --card-muted: rgba(234,225,255,.76); --card-mark: rgba(215,255,94,.15); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); box-shadow: 0 18px 36px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08); }
.work-card--lilac { --card-bg: #9870ff; --card-ink: #fff9ff; --card-muted: rgba(255,249,255,.78); --card-mark: rgba(36,13,62,.2); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); }
.work-card--paper { --card-bg: #ece9df; --card-ink: #211336; --card-muted: rgba(33,19,54,.66); --card-mark: rgba(34,19,54,.12); background-image: linear-gradient(rgba(33,19,54,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(33,19,54,.055) 1px, transparent 1px); }
.work-card::before { content: ""; position: absolute; z-index: -1; width: 16px; height: 16px; right: 13%; top: 23%; background: var(--card-ink); opacity: .12; box-shadow: 16px 0 var(--card-ink), 32px 0 var(--card-ink), 0 16px var(--card-ink), 16px 16px var(--card-ink), 32px 16px var(--card-ink), 48px 16px var(--card-ink), 64px 32px var(--card-ink), 48px 32px var(--card-ink), 32px 48px var(--card-ink), 16px 48px var(--card-ink), 64px 48px var(--card-ink); }
.work-card-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; min-width: 0; }
.work-card-number { font: 500 11px/1 var(--mono); letter-spacing: .08em; opacity: .72; }
.work-card-meta { display: inline-flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid currentColor; font: 500 10px/1.2 var(--mono); text-transform: uppercase; opacity: .88; }
.work-card-meta i { width: 5px; height: 5px; background: currentColor; box-shadow: 5px 0 currentColor; opacity: .65; }
.work-card-meta time { font: inherit; }
.pixel-stamp { margin-left: auto; padding: 8px 10px; border: 1px solid currentColor; font: 500 9px/1 var(--mono); letter-spacing: .11em; opacity: .7; }
.work-card-main { align-self: end; max-width: 760px; }
.work-card-main h3 { margin: 0; color: var(--card-ink); font-family: "Outfit", "Noto Sans KR", sans-serif; font-size: clamp(27px, 3.4vw, 48px); font-weight: 800; line-height: 1.07; letter-spacing: -.065em; }
.work-card-main p { margin: 12px 0 0; color: var(--card-muted); font-size: clamp(12px, 1.1vw, 15px); line-height: 1.65; }
.work-card-role { align-self: end; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding-top: 18px; border-top: 1px solid currentColor; }
.work-card-role span { grid-column: 1 / -1; font: 500 9px/1.3 var(--mono); letter-spacing: .14em; opacity: .6; }
.work-card-role strong { font-size: clamp(14px, 1.25vw, 18px); font-weight: 700; }
.work-card-role b { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid currentColor; font-size: 20px; font-weight: 500; transition: transform .3s ease; }
.work-card:hover .work-card-role b { transform: translate(3px,-3px); }
#works .section-note { position: relative; z-index: 2; margin-top: 26px; text-shadow: none; }
#works .section-heading h2 { text-shadow: none; }
#works .section-description { text-shadow: none; }

/* WebGL meshes only wake up as the log section enters the viewport. */
.works-3d-stage { position: fixed; z-index: 0; inset: 74px 0 0; opacity: 0; transform: translate3d(0, 36px, 0) scale(.98); transition: opacity 1.05s ease, transform 1.1s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.works-3d-stage.is-in-view { opacity: .82; transform: translate3d(0,0,0) scale(1); }
#main > .hero, #main > .section-block, #main > .closing-note { position: relative; z-index: 1; }
.works-glass-canvas { filter: blur(2px) saturate(1.35) contrast(1.02); }

/* Same-size cards that peek at the next slide, like the reference carousel. */
.week-toolbar-actions { display: flex; align-items: center; gap: 14px; }
.week-view-switch { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.045); }
.week-view-button { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: #a9aab5; font-size: 11px; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.week-view-button span { color: var(--accent); font-size: 13px; }
.week-view-button:hover { color: #fff; }
.week-view-button.is-selected { background: var(--pixel-violet); color: #fff; box-shadow: 0 2px 9px rgba(162,122,255,.22); }
.week-view-button.is-selected span { color: #fff; }
.week-viewport { overflow-x: auto; padding: 12px 1px 25px; scroll-padding-inline: 0; scroll-snap-type: x mandatory; }
.week-track { display: flex; align-items: stretch; gap: clamp(14px, 2vw, 24px); width: max-content; min-width: 100%; padding: 6px 0 18px; }
.week-card { flex: 0 0 clamp(250px, 28vw, 350px); min-height: clamp(315px, 34vw, 390px); padding: 24px 24px 21px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px 16px 4px 16px; background-color: #211035; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.08), transparent 60%); background-size: 24px 24px, 24px 24px, auto; color: #eaffae; box-shadow: 0 16px 35px rgba(0,0,0,.22); opacity: 1; filter: none; transform: none; scroll-snap-align: start; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease; }
.week-card:nth-child(4n + 2) { background-color: #c9ff58; color: #201035; background-image: linear-gradient(rgba(33,16,53,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(33,16,53,.055) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.16), transparent 64%); }
.week-card:nth-child(4n + 3) { background-color: #9872ff; color: #fff; }
.week-card:nth-child(4n + 4) { background-color: #eae7de; color: #211336; background-image: linear-gradient(rgba(33,16,53,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(33,16,53,.055) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.18), transparent 64%); }
.week-card:hover { transform: translateY(-5px); border-color: rgba(197,255,241,.55); box-shadow: 0 24px 48px rgba(0,0,0,.29); }
.week-card.is-active, .week-card.is-neighbor, .week-card.is-distant { opacity: 1; filter: none; transform: none; }
.week-card .week-name { color: inherit; font-family: "Outfit", "Noto Sans KR", sans-serif; font-size: clamp(23px,2.3vw,31px); line-height: 1.15; letter-spacing: -.06em; }
.week-card .week-top { border-color: currentColor; color: inherit; opacity: .78; }
.week-card .week-top span:last-child { border-color: currentColor; background: transparent; color: inherit; border-radius: 2px; }
.week-card .week-bottom { border-color: currentColor; color: inherit; }
.week-card .week-arrow-mark { border-color: currentColor; background: transparent; color: inherit; border-radius: 2px; }
.week-card.is-upcoming { opacity: .7; }
.week-card.is-upcoming .week-name { color: inherit; }
.week-card.is-upcoming .week-bottom { color: inherit; }
.week-card .week-card-glow { display: none; }
.carousel-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; max-width: 100%; margin: 3px auto 0; padding: 8px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; background: rgba(218,211,234,.095); }
.week-page-dot { display: block; width: 7px; height: 7px; flex: 0 0 7px; padding: 0; border: 0; border-radius: 2px; background: rgba(227,222,241,.45); cursor: pointer; transition: width .25s ease, background .25s ease, transform .25s ease; }
.week-page-dot.is-active { width: 18px; flex-basis: 18px; background: var(--pixel-violet); border-radius: 5px; box-shadow: 0 0 9px rgba(162,122,255,.25); }
.week-page-dot:focus-visible, .week-view-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.week-carousel[data-layout="grid"] .week-controls,
.week-carousel[data-layout="grid"] .carousel-pagination { display: none; }
.week-carousel[data-layout="grid"] .week-viewport { overflow: visible; padding: 9px 0 2px; }
.week-carousel[data-layout="grid"] .week-track { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; width: 100%; min-width: 0; padding: 6px 0 18px; }
.week-carousel[data-layout="grid"] .week-card { min-width: 0; min-height: 220px; padding: 18px 16px 16px; transform: none !important; opacity: 1 !important; filter: none !important; }
.week-carousel[data-layout="grid"] .week-card .week-name { font-size: clamp(16px, 1.45vw, 21px); }
.week-carousel[data-layout="grid"] .week-card .week-top { gap: 7px; font-size: 8px; }
.week-carousel[data-layout="grid"] .week-card .week-top span:last-child { width: 25px; height: 25px; }
.week-carousel[data-layout="grid"] .week-card .week-bottom { font-size: 8px; }
.week-legend { display: flex; flex-wrap: wrap; gap: 21px; align-items: center; font-family: var(--mono); font-size: 10px; }

@media (max-width: 1050px) {
  .week-carousel[data-layout="grid"] .week-track { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .work-card { grid-template-columns: minmax(0,1fr) minmax(170px,.48fr); }
}
@media (max-width: 720px) {
  .hero-title .title-glyph { -webkit-text-stroke: 0 !important; text-shadow: 0 1px 0 #e6fff8, 0 2px 0 #93e9d9, 0 4px 0 #62c8bd, 0 6px 0 #3297a0, 0 9px 0 #235f73, 0 12px 18px rgba(0,0,0,.34), 0 0 20px rgba(88,255,221,.16); }
  .work-card { grid-template-columns: 1fr; gap: 21px; min-height: 245px; margin-bottom: -12px; padding: 24px 21px 24px; border-radius: 14px 14px 3px 14px; }
  .work-card-top { gap: 9px; }
  .work-card-meta { gap: 7px; font-size: 9px; }
  .work-card-main h3 { font-size: clamp(27px,7.5vw,39px); }
  .work-card-role { grid-template-columns: 1fr auto; padding-top: 13px; }
  .work-card::before { right: 12%; top: 31%; transform: scale(.72); transform-origin: top right; }
  .week-carousel-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .week-carousel-toolbar p { max-width: 100%; font-size: 8px; }
  .week-toolbar-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .week-view-switch { order: 0; }
  .week-view-button { padding-inline: 9px; font-size: 10px; }
  .week-viewport { margin-inline: -5px; padding: 9px 5px 22px; }
  .week-track { gap: 12px; padding: 6px 0 15px; }
  .week-card { flex-basis: min(78vw, 320px); min-height: 325px; padding: 21px 19px 18px; }
  .week-card .week-name { font-size: 25px; }
  .week-carousel[data-layout="grid"] .week-track { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .week-carousel[data-layout="grid"] .week-card { min-height: 205px; padding: 15px 12px 12px; }
  .week-carousel[data-layout="grid"] .week-card .week-name { font-size: 16px; }
  .week-carousel[data-layout="grid"] .week-card .week-top { font-size: 7px; }
  .week-carousel[data-layout="grid"] .week-card .week-top span:last-child { width: 21px; height: 21px; }
  .week-carousel[data-layout="grid"] .week-card .week-bottom { font-size: 7px; }
  .carousel-pagination { gap: 5px; padding: 7px 10px; }
  .week-page-dot { width: 6px; height: 6px; flex-basis: 6px; }
  .week-page-dot.is-active { width: 15px; flex-basis: 15px; }
}
@media (max-width: 390px) {
  .work-card { padding: 21px 17px; }
  .work-card-main h3 { font-size: 25px; }
  .pixel-stamp { padding: 6px 7px; font-size: 8px; }
  .week-view-button { gap: 5px; padding-inline: 7px; font-size: 9px; }
  .week-carousel[data-layout="grid"] .week-track { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html.js-enabled .work-card, html.js-enabled .work-card.is-revealed { opacity: 1; transform: none; }
  .works-3d-stage, .works-3d-stage.is-in-view { transform: none; transition: none; }
  .hero-title .title-glyph { animation: none !important; }
}

@media (max-width: 720px) {
  .works-3d-stage { inset: 66px -8vw 0; }
  .works-3d-stage.is-in-view { opacity: .62; }
}




/* v6 — original Jelix palette, overlapping scroll-stack, mouse-draggable archive, muted jelly bears. */
:root {
  --accent: #a9b9ff;
  --accent-strong: #d2dcff;
  --pixel-violet: #a9b9ff;
  --pixel-lime: #b9c8e4;
}

/* Keep the main palette charcoal / cool grey with only restrained lavender and mint accents. */
.scroll-atmosphere { opacity: .55; }
.atmosphere-blob { mix-blend-mode: screen; opacity: .2; }
.atmosphere-blob-a { background: radial-gradient(circle, rgba(145,158,208,.18), rgba(111,126,171,.025) 58%, transparent 72%); }
.atmosphere-blob-b { background: radial-gradient(circle, rgba(188,195,215,.12), rgba(105,117,165,.02) 58%, transparent 72%); }
.atmosphere-blob-c { background: radial-gradient(circle, rgba(132,169,174,.085), rgba(77,127,151,.012) 58%, transparent 73%); }

/* Scroll-stacked, subtly tilted panels — the next card slides over the previous one. */
#works { padding-bottom: 8px; }
#works > .works-stack {
  display: flex; flex-direction: column; gap: 0; padding: 16px 2px 26px;
  perspective: 1400px; transform-style: preserve-3d; isolation: isolate;
}
.work-card {
  --card-bg: rgba(32,33,38,.86); --card-ink: #ececf2; --card-muted: rgba(220,222,233,.68); --card-mark: rgba(194,204,239,.16);
  position: sticky; top: calc(86px + var(--card-index) * 15px);
  z-index: calc(10 + var(--card-index)); display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .55fr); grid-template-rows: auto 1fr auto;
  gap: 24px 30px; min-height: 292px; margin-bottom: -74px;
  padding: clamp(25px, 3.4vw, 44px);
  overflow: hidden; color: var(--card-ink); background-color: var(--card-bg);
  background-image:
    linear-gradient(rgba(199,207,232,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199,207,232,.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255,255,255,.055), transparent 62%);
  background-size: 26px 26px, 26px 26px, auto;
  border: 1px solid rgba(204,211,239,.15);
  border-radius: 19px 19px 5px 19px;
  clip-path: polygon(0 0, 98.8% 0, 100% 3.5%, 100% 100%, 1.2% 100%, 0 96.5%);
  box-shadow: 0 20px 44px rgba(0,0,0,.21), inset 0 1px 0 rgba(255,255,255,.07);
  transform: translate3d(0,0,0) rotate(var(--card-tilt)) scale(1);
  opacity: 1; transform-origin: 48% 0%;
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1.05s cubic-bezier(.16,1,.3,1), box-shadow .45s ease, border-color .4s ease;
  transition-delay: calc(var(--card-index) * 70ms);
  isolation: isolate; backface-visibility: hidden; backdrop-filter: blur(11px) saturate(88%); -webkit-backdrop-filter: blur(11px) saturate(88%);
}
html.js-enabled .work-card {
  opacity: .12;
  transform: translate3d(0, 92px, 0) rotate(calc(var(--card-tilt) + var(--enter-tilt, 2.8deg))) scale(.975);
}
html.js-enabled .work-card.is-revealed {
  opacity: 1;
  transform: translate3d(0,0,0) rotate(var(--card-tilt)) scale(1);
}
.work-card:hover { border-color: rgba(183,199,255,.31); box-shadow: 0 27px 58px rgba(0,0,0,.29), inset 0 1px 0 rgba(255,255,255,.1); }
.work-card--lime { --card-bg: rgba(32,33,38,.86); --card-ink: #edecf3; --card-muted: rgba(222,224,235,.66); --card-mark: rgba(177,190,236,.13); }
.work-card--violet { --card-bg: rgba(34,36,43,.86); --card-ink: #e2e4f1; --card-muted: rgba(211,215,232,.65); --card-mark: rgba(177,190,236,.14); background-image: linear-gradient(rgba(199,207,232,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(199,207,232,.032) 1px, transparent 1px), linear-gradient(145deg, rgba(169,185,255,.065), transparent 63%); box-shadow: 0 20px 44px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.055); }
.work-card--lilac { --card-bg: rgba(35,37,44,.86); --card-ink: #e9eaf2; --card-muted: rgba(218,221,234,.68); --card-mark: rgba(169,185,255,.15); background-image: linear-gradient(rgba(199,207,232,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(199,207,232,.035) 1px, transparent 1px), linear-gradient(145deg, rgba(188,197,222,.05), transparent 65%); }
.work-card--paper { --card-bg: rgba(32,37,40,.86); --card-ink: #e7edef; --card-muted: rgba(210,222,227,.67); --card-mark: rgba(165,201,202,.13); background-image: linear-gradient(rgba(199,221,220,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(199,221,220,.03) 1px, transparent 1px), linear-gradient(145deg, rgba(153,193,192,.05), transparent 65%); }
.work-card::before { opacity: .075; }
.work-card-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; min-width: 0; }
.work-card-number { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: #a9b9ff; opacity: .92; }
.work-card-meta { display: inline-flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid rgba(218,223,242,.25); color: #b4b7c5; font: 500 10px/1.2 var(--mono); text-transform: uppercase; opacity: .95; }
.work-card-meta i { width: 4px; height: 4px; background: #a9b9ff; box-shadow: 4px 0 rgba(169,185,255,.65); opacity: .72; }
.pixel-stamp { border-color: rgba(174,188,244,.3); color: #bdc8ee; }
.work-card-main h3 { color: var(--card-ink); }
.work-card-main p { color: var(--card-muted); }
.work-card-role { border-color: rgba(220,224,239,.2); }
.work-card-role span { color: #9ea3b5; }
.work-card-role strong { color: #dedfeb; }
.work-card-role b { border-color: rgba(179,193,245,.27); color: #bdc9ff; background: rgba(169,185,255,.025); }
.work-card:hover .work-card-role b { background: rgba(169,185,255,.09); }
#works .section-note { margin-top: 28px; }

/* Small monochrome glass gummies: softened edges, very restrained prismatic tint. */
.works-3d-stage {
  inset: 72px 0 0; opacity: 0; transform: translate3d(0,22px,0) scale(.995);
  transition: opacity 1.1s ease, transform 1.15s cubic-bezier(.16,1,.3,1);
}
.works-3d-stage.is-in-view { opacity: .52; transform: translate3d(0,0,0) scale(1); }
.works-glass-canvas { filter: blur(1.8px) saturate(.58) brightness(.9) contrast(1.02); }

/* Weekly archive returns to the original dark glass language; the pixel grid is only a texture. */
.week-viewport {
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: pan-x pan-y; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.week-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto !important; }
.week-viewport.is-dragging .week-card { pointer-events: none; }
.week-track { gap: clamp(15px, 2vw, 26px); padding: 10px 1px 22px; }
.week-card {
  flex: 0 0 clamp(245px, 27vw, 330px); min-height: clamp(300px, 32vw, 365px);
  border: 1px solid rgba(210,218,246,.15); border-radius: 17px 17px 4px 17px;
  background-color: rgba(32,33,38,.84);
  background-image: linear-gradient(rgba(197,207,239,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(197,207,239,.028) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.065), transparent 62%);
  background-size: 24px 24px, 24px 24px, auto;
  color: #e8e9f0; box-shadow: inset 0 1px 0 rgba(255,255,255,.085), 0 17px 36px rgba(0,0,0,.22);
  backdrop-filter: blur(16px) saturate(90%); -webkit-backdrop-filter: blur(16px) saturate(90%);
  cursor: grab; scroll-snap-align: start; transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .32s cubic-bezier(.2,.8,.2,1);
}
.week-card:nth-child(4n + 2) { background-color: rgba(34,36,43,.84); color: #e5e7f1; background-image: linear-gradient(rgba(197,207,239,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(197,207,239,.026) 1px, transparent 1px), linear-gradient(145deg, rgba(169,185,255,.055), transparent 65%); }
.week-card:nth-child(4n + 3) { background-color: rgba(34,37,42,.84); color: #e6ecef; }
.week-card:nth-child(4n + 4) { background-color: rgba(30,36,39,.84); color: #e3e9eb; }
.week-card:hover { border-color: rgba(169,185,255,.4); background-color: #272a33; box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 24px 46px rgba(0,0,0,.29); }
.week-card .week-name { color: inherit; }
.week-card .week-top { color: #a6aab9; border-color: rgba(216,222,245,.19); }
.week-card .week-top span:last-child { color: #b8c4f3; }
.week-card .week-bottom { color: #aeb2c0; border-color: rgba(216,222,245,.19); }
.week-card .week-arrow-mark { color: #c0cbff; border-color: rgba(177,192,250,.25); }
.week-card .week-card-glow { background: rgba(169,185,255,.075); }
.week-card.is-upcoming { opacity: .53; background-color: rgba(26,27,31,.72); }
.week-view-switch { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.week-view-button { color: #a6aab8; }
.week-view-button span { color: #b2c0ff; }
.week-view-button.is-selected { background: rgba(169,185,255,.17); color: #e8ebff; box-shadow: inset 0 0 0 1px rgba(169,185,255,.17); }
.week-view-button.is-selected span { color: #d0d9ff; }
.carousel-pagination { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.085); }
.week-page-dot { background: rgba(220,224,241,.35); }
.week-page-dot.is-active { background: #a9b9ff; box-shadow: 0 0 8px rgba(169,185,255,.19); }
.week-carousel[data-layout="grid"] .week-card { cursor: pointer; }
.week-carousel[data-layout="grid"] .week-viewport { cursor: auto; user-select: auto; -webkit-user-select: auto; }

@media (max-width: 1050px) {
  .work-card { top: calc(76px + var(--card-index) * 12px); grid-template-columns: minmax(0,1fr) minmax(170px,.48fr); margin-bottom: -62px; }
  .week-carousel[data-layout="grid"] .week-track { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .work-card { top: calc(68px + var(--card-index) * 10px); grid-template-columns: 1fr; gap: 21px; min-height: 270px; margin-bottom: -48px; padding: 24px 21px; border-radius: 15px 15px 4px 15px; }
  .work-card-main h3 { font-size: clamp(26px,7.4vw,39px); }
  .work-card-role { padding-top: 13px; }
  .works-3d-stage { inset: 60px -4vw 0; }
  .works-3d-stage.is-in-view { opacity: .4; }
  .week-viewport { margin-inline: -6px; padding: 9px 6px 20px; }
  .week-track { gap: 13px; }
  .week-card { flex-basis: min(76vw, 292px); min-height: 305px; }
  .week-carousel[data-layout="grid"] .week-track { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .week-carousel[data-layout="grid"] .week-card { min-height: 205px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js-enabled .work-card, html.js-enabled .work-card.is-revealed { opacity: 1; transform: none; }
  .work-card { position: relative; top: auto; margin-bottom: 12px; }
  .works-3d-stage, .works-3d-stage.is-in-view { transform: none; transition: none; }
}


/* v7: side-entry stacked glass cards, better-defined gummy bears, arcade pixel extrusion. */

/* 1. Cards enter from alternating sides during the first scroll, then settle into the same sticky stack. */
#works > .works-stack { perspective: 1500px; transform-style: preserve-3d; }
.work-card {
  --card-blur: 11px;
  --card-enter-x: -12vw;
  --card-enter-angle: 3.8deg;
  background-color: var(--card-bg);
  background-image:
    linear-gradient(rgba(210,219,246,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210,219,246,.035) 1px, transparent 1px),
    linear-gradient(140deg, rgba(255,255,255,.095), rgba(255,255,255,.015) 42%, transparent 70%);
  background-size: 25px 25px, 25px 25px, auto;
  -webkit-backdrop-filter: blur(var(--card-blur)) saturate(1.12);
  backdrop-filter: blur(var(--card-blur)) saturate(1.12);
  box-shadow: 0 24px 54px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.12);
  transition-property: opacity, transform, box-shadow, border-color;
  transition-duration: 1.12s, 1.18s, .45s, .45s;
  transition-timing-function: cubic-bezier(.16,1,.3,1), cubic-bezier(.16,1,.3,1), ease, ease;
  transition-delay: calc(var(--card-index) * 75ms), calc(var(--card-index) * 75ms), 0s, 0s;
}
.work-card:nth-child(even) { --card-enter-x: 12vw; --card-enter-angle: -3.8deg; }
.work-card:nth-child(3) { --card-enter-x: -14vw; --card-enter-angle: 4.4deg; }
.work-card:nth-child(4) { --card-enter-x: 14vw; --card-enter-angle: -4.2deg; }
html.js-enabled .work-card {
  opacity: .035;
  transform: translate3d(var(--card-enter-x), 68px, 0) rotate(calc(var(--card-tilt) + var(--card-enter-angle))) scale(.965);
}
html.js-enabled .work-card.is-revealed {
  opacity: 1;
  transform: translate3d(0,0,0) rotate(var(--card-tilt)) scale(1);
}
/* The cards deliberately vary in translucency: milk-glass, clear glass, soft frost, smoky glass. */
.work-card--lime {
  --card-bg: rgba(36,38,46,.86); --card-blur: 17px;
  --card-ink: #eff0f7; --card-muted: rgba(223,227,243,.76); --card-mark: rgba(192,203,247,.15);
  border-color: rgba(222,230,255,.2);
}
.work-card--violet {
  --card-bg: rgba(35,37,47,.61); --card-blur: 7px;
  --card-ink: #e9eafb; --card-muted: rgba(216,221,241,.7); --card-mark: rgba(180,195,255,.14);
  border-color: rgba(196,208,255,.14);
}
.work-card--lilac {
  --card-bg: rgba(40,40,51,.75); --card-blur: 12px;
  --card-ink: #ececf5; --card-muted: rgba(222,223,240,.74); --card-mark: rgba(190,197,237,.13);
  border-color: rgba(211,216,246,.17);
}
.work-card--paper {
  --card-bg: rgba(30,39,44,.57); --card-blur: 6px;
  --card-ink: #e8f1f2; --card-muted: rgba(207,224,228,.73); --card-mark: rgba(170,214,212,.12);
  border-color: rgba(173,216,219,.17);
}
.work-card::before { opacity: .1; }
.work-card:hover { box-shadow: 0 30px 64px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16); }

/* 2. Small, clearer gummy-bear glass: three Jelix colors, not a rainbow gradient. */
.works-3d-stage { opacity: 0; transform: translate3d(0,18px,0) scale(.99); }
.works-3d-stage.is-in-view { opacity: .78; transform: translate3d(0,0,0) scale(1); }
.works-glass-canvas { filter: blur(.55px) saturate(.96) brightness(1.12) contrast(1.07); }
.works-3d-stage.webgl-unavailable { display: none; }
@media (max-width: 720px) {
  .works-3d-stage { inset: 60px -4vw 0; }
  .works-3d-stage.is-in-view { opacity: .64; }
}

/* 3. Weekly cards have independent tiny rotations, while the active title arrives with a short editorial reveal. */
.week-carousel[data-layout="carousel"] .week-card:nth-child(3n + 1) { transform: rotate(-1.15deg); }
.week-carousel[data-layout="carousel"] .week-card:nth-child(3n + 2) { transform: rotate(.9deg); }
.week-carousel[data-layout="carousel"] .week-card:nth-child(3n) { transform: rotate(-.45deg); }
.week-carousel[data-layout="carousel"] .week-card:hover {
  z-index: 3; transform: translateY(-5px) rotate(0deg) scale(1.012);
}
.week-carousel[data-layout="carousel"] .week-card.is-active .week-name {
  animation: week-title-arrive .68s cubic-bezier(.16,1,.3,1) both;
}
.week-viewport.is-dragging .week-card { transition: none !important; }
.week-viewport.is-dragging .week-card:hover { transform: none; }
@keyframes week-title-arrive {
  0% { opacity: .28; transform: translate3d(0,13px,0) rotate(-1.8deg); filter: blur(4px); }
  68% { opacity: 1; transform: translate3d(0,-2px,0) rotate(.35deg); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0,0,0) rotate(0); filter: blur(0); }
}

/* 4. Pac-Man-era pixel wordmark: hard pixels on the front, deep arcade extrusion below/right. No white outline layer. */
.hero-title {
  font-family: "Press Start 2P", "Courier New", monospace !important;
  font-size: clamp(4.9rem, 13.2vw, 12rem) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: -.085em !important;
  -webkit-font-smoothing: none;
  filter: drop-shadow(0 17px 23px rgba(0,0,0,.3)) drop-shadow(0 0 26px rgba(157,255,232,.13));
  isolation: isolate;
}
.hero-title::before, .hero-title::after { content: none !important; display: none !important; }
.hero-title .title-glyph {
  color: #bcffef !important;
  -webkit-text-fill-color: #bcffef !important;
  -webkit-text-stroke: 0 !important;
  background: none !important;
  background-image: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  text-shadow:
    1px 1px 0 #a0f5e4,
    2px 2px 0 #7cddcf,
    3px 3px 0 #5cbcc2,
    4px 4px 0 #458fa9,
    5px 5px 0 #326c8c,
    6px 6px 0 #294b70,
    7px 7px 0 #203650,
    0 15px 24px rgba(0,0,0,.4),
    0 0 22px rgba(122,255,222,.14) !important;
  filter: none !important;
  animation: pixel-title-hop 5.4s steps(1,end) infinite !important;
  animation-delay: calc(var(--glyph-index) * .11s) !important;
  transform-origin: 50% 85%;
  will-change: transform;
}
.hero-title .title-period {
  color: #c9bdff !important;
  -webkit-text-fill-color: #c9bdff !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 1px 1px 0 #aaa0ef, 2px 2px 0 #8377c8, 3px 3px 0 #5e5b98, 4px 4px 0 #3c426a, 0 15px 23px rgba(0,0,0,.42) !important;
  animation: pixel-title-hop 5.4s steps(1,end) infinite !important;
  animation-delay: .55s !important;
}
@keyframes pixel-title-hop {
  0%, 65%, 100% { transform: translateY(0); }
  70% { transform: translateY(-.055em); }
  75% { transform: translateY(0); }
}
@media (max-width: 1050px) {
  .hero-title { font-size: clamp(4.8rem, 13vw, 9.5rem) !important; }
}
@media (max-width: 720px) {
  .hero-title { font-size: 16.8vw !important; letter-spacing: -.09em !important; }
  .hero-title .title-glyph { text-shadow: 1px 1px 0 #a0f5e4, 2px 2px 0 #7cddcf, 3px 3px 0 #5cbcc2, 4px 4px 0 #458fa9, 5px 5px 0 #294b70, 0 10px 17px rgba(0,0,0,.4) !important; }
}
@media (max-width: 390px) { .hero-title { font-size: 15vw !important; } }
@media (prefers-reduced-motion: reduce) {
  .hero-title .title-glyph, .hero-title .title-period, .week-carousel[data-layout="carousel"] .week-card.is-active .week-name { animation: none !important; }
  html.js-enabled .work-card, html.js-enabled .work-card.is-revealed { transition-delay: 0s; }
}

/* Kinetic editorial course index — typography and motion, not dashboard cards. */
.course-editorial { position: relative; isolation: isolate; }
.course-editorial::before { position: absolute; z-index: -1; top: 72px; right: -4vw; bottom: -40px; left: -4vw; background-image: linear-gradient(rgba(200,207,232,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(200,207,232,.035) 1px, transparent 1px); background-size: 42px 42px; opacity: .42; mask-image: radial-gradient(ellipse at 62% 45%, #000 0%, transparent 76%); content: ""; pointer-events: none; }
.course-heading { align-items: flex-end; margin-bottom: 50px; }
.course-title-block { min-width: 0; }
.course-editorial .section-kicker { display: flex; align-items: center; gap: 10px; }
.course-kicker-mark { display: inline-block; color: var(--accent); font-size: 8px; animation: course-mark-turn 16s linear infinite; }
.course-editorial .section-heading h2 { font-size: clamp(38px, 5.3vw, 76px); letter-spacing: -.075em; }
.course-editorial .section-heading h2 > span { margin-left: 14px; }
.course-term-stamp { position: relative; flex: 0 0 auto; min-width: 210px; padding: 0 0 10px 20px; border-left: 1px solid rgba(210,220,255,.22); }
.course-stamp-label { display: block; color: #888b98; font: 9px/1.4 var(--mono); letter-spacing: .16em; }
.course-stamp-number { margin-top: 5px; color: #e6e8f1; font: 500 clamp(31px, 3.4vw, 45px)/1 var(--mono); letter-spacing: -.1em; }
.course-stamp-number span { padding: 0 5px; color: var(--accent); font-size: .65em; }
.course-term-stamp p { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: #777b89; font: 8px/1.4 var(--mono); letter-spacing: .08em; }
.course-term-stamp p i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b9c7ff; box-shadow: 0 0 12px rgba(169,185,255,.65); }
.course-archive-rail, .course-footer-rail { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #7f828e; font: 9px/1.5 var(--mono); letter-spacing: .105em; }
.course-archive-rail { padding: 12px 0 13px; border-top: 1px solid rgba(219,224,245,.22); border-bottom: 1px solid rgba(219,224,245,.12); }
.course-archive-rail span, .course-footer-rail span { display: inline-flex; align-items: center; gap: 9px; }
.course-archive-rail b { color: var(--accent); font-size: 13px; font-weight: 400; }
.course-archive-rail em { color: #dce2ff; font-style: normal; }
.course-rail-right b, .course-footer-rail b { color: #b5c3f6; font-size: 12px; font-weight: 400; }
.course-list { position: relative; margin: 0; padding: 0; border: 0; list-style: none; perspective: 1200px; }
.course-item { --settle-angle: 0deg; position: relative; display: grid; grid-template-columns: 62px 54px minmax(0,1fr) auto 26px; align-items: center; gap: clamp(14px, 2.2vw, 30px); min-height: 142px; padding: 25px clamp(16px, 2.8vw, 38px); border-bottom: 1px solid rgba(216,222,243,.16); transform: translate3d(0,0,0) rotate(var(--settle-angle)); transform-origin: 48% 50%; transition: background .45s ease, border-color .45s ease, transform .95s cubic-bezier(.16,1,.3,1), opacity .8s ease; }
.course-item::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.035), rgba(255,255,255,0) 58%); opacity: 0; content: ""; transition: opacity .45s ease; pointer-events: none; }
.course-item::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(184,198,255,.62), transparent); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.course-motion-ready .course-item { opacity: 0; }
.course-motion-ready .course-item--a { transform: translate3d(-8vw, 24px, 0) rotate(-2.2deg); }
.course-motion-ready .course-item--b { transform: translate3d(8vw, 30px, 0) rotate(1.8deg); }
.course-motion-ready .course-item--c { transform: translate3d(-6vw, 26px, 0) rotate(1.3deg); }
.course-motion-ready .course-item--d { transform: translate3d(7vw, 32px, 0) rotate(-1.5deg); }
.course-motion-ready .course-item.is-revealed { opacity: 1; transform: translate3d(0,0,0) rotate(var(--settle-angle)); }
.course-item--a { --settle-angle: -.35deg; }
.course-item--b { --settle-angle: .45deg; }
.course-item--c { --settle-angle: .2deg; }
.course-item--d { --settle-angle: -.25deg; }
.course-item:hover, .course-item.is-open { border-bottom-color: rgba(190,202,255,.36); }
.course-item:hover::before, .course-item.is-open::before { opacity: 1; }
.course-item:hover::after, .course-item.is-open::after { transform: scaleX(1); }
.course-number { display: flex; flex-direction: column; gap: 7px; align-self: center; color: #7f8494; }
.course-number small { color: #656976; font: 8px/1 var(--mono); letter-spacing: .12em; }
.course-number b { color: #c0c8e2; font: 12px/1 var(--mono); font-weight: 400; }
.course-glyph { position: relative; display: block; width: 48px; height: 48px; justify-self: center; transform: translate3d(calc(var(--pointer-x, 0) * 6px), calc(var(--pointer-y, 0) * 6px), 0) rotate(var(--glyph-rotation, 0deg)); transition: transform .5s cubic-bezier(.16,1,.3,1), filter .5s ease; filter: saturate(.68); }
.course-glyph::before, .course-glyph::after, .course-glyph i { position: absolute; display: block; content: ""; }
.course-glyph--orb::before { inset: 5px; border: 1px solid rgba(194,205,255,.45); border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(224,230,255,.68), rgba(153,172,226,.18) 25%, rgba(128,144,194,.07) 62%, transparent 70%); box-shadow: inset -5px -7px 12px rgba(120,137,191,.14), 0 0 24px rgba(151,169,234,.07); }
.course-glyph--orb i { top: 3px; right: 5px; width: 11px; height: 11px; border-radius: 50%; background: rgba(231,236,255,.62); filter: blur(2px); }
.course-glyph--ring::before { inset: 5px; border: 1px solid rgba(176,201,204,.58); border-radius: 50%; transform: rotateX(61deg) rotateZ(-26deg); box-shadow: 0 0 0 5px rgba(176,201,204,.035), inset 0 0 12px rgba(176,201,204,.06); }
.course-glyph--ring::after { inset: 11px 4px; border: 1px solid rgba(176,201,204,.25); border-radius: 50%; transform: rotateY(65deg) rotateZ(20deg); }
.course-glyph--prism::before { inset: 5px 8px; background: linear-gradient(140deg, rgba(220,225,255,.68), rgba(160,170,213,.16) 48%, rgba(111,126,181,.05)); border: 1px solid rgba(197,207,255,.4); clip-path: polygon(50% 0,100% 28%,83% 100%,15% 86%,0 25%); transform: rotate(17deg); filter: drop-shadow(0 7px 10px rgba(146,162,229,.12)); }
.course-glyph--prism::after { top: 7px; left: 24px; width: 1px; height: 34px; background: rgba(238,241,255,.43); transform: rotate(17deg); }
.course-glyph--pixel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect x='8' y='8' width='9' height='9' fill='%23b9c6ff' fill-opacity='.72'/%3E%3Crect x='20' y='8' width='9' height='9' fill='%23b9c6ff' fill-opacity='.22'/%3E%3Crect x='20' y='20' width='9' height='9' fill='%23b9c6ff' fill-opacity='.43'/%3E%3Crect x='32' y='20' width='9' height='9' fill='%23b9c6ff' fill-opacity='.72'/%3E%3Crect x='8' y='32' width='9' height='9' fill='%23b9c6ff' fill-opacity='.3'/%3E%3Crect x='32' y='32' width='9' height='9' fill='%23b9c6ff' fill-opacity='.56'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 0 0; background-size: 48px 48px; }
.course-glyph--pixel::before { inset: 4px; border: 1px solid rgba(185,198,255,.2); transform: rotate(45deg) scale(.78); }
.course-content { min-width: 0; transform: translateY(0); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.course-motion-ready .course-content { transform: translateY(17px); }
.course-motion-ready .is-revealed .course-content { transform: translateY(0); transition-delay: calc(var(--course-order) * 65ms + 90ms); }
.course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 11px; color: #767b8a; font: 8px/1.5 var(--mono); letter-spacing: .12em; }
.course-meta > span:first-child { color: #aeb7db; }
.course-meta > span:last-child { display: inline-flex; align-items: center; gap: 7px; }
.course-active-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #b6c6ff; box-shadow: 0 0 12px rgba(182,198,255,.6); }
.course-name { position: relative; display: inline-block; max-width: 100%; margin: 0; color: #e7e8ef; font-size: clamp(22px, 2.65vw, 37px); font-weight: 600; line-height: 1.2; letter-spacing: -.055em; overflow-wrap: anywhere; transition: color .35s ease, transform .55s cubic-bezier(.16,1,.3,1), letter-spacing .5s ease; }
.course-name::after { position: absolute; right: 100%; bottom: -6px; left: 0; height: 1px; background: var(--accent); content: ""; transition: right .6s cubic-bezier(.16,1,.3,1); }
.course-name a { color: inherit; }
.course-item:hover .course-name, .course-item.is-open .course-name { transform: translateX(5px); letter-spacing: -.035em; color: #f3f4ff; }
.course-item:hover .course-name::after, .course-item.is-open .course-name::after { right: 8%; }
.course-note { margin: 9px 0 0; color: #777b88; font-size: 11px; line-height: 1.7; letter-spacing: .01em; }
.course-note span { display: inline-block; margin-left: 7px; color: #abb9f2; font: 8px/1.4 var(--mono); letter-spacing: .09em; }
.course-type { justify-self: end; padding: 0 0 4px; border: 0; border-bottom: 1px solid rgba(183,195,239,.32); border-radius: 0; color: #aeb3c2; background: transparent; font: 9px/1.4 var(--mono); letter-spacing: .06em; white-space: nowrap; }
.course-end-mark { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 1px solid rgba(191,202,239,.2); border-radius: 50%; color: #8e9fd8; font-size: 13px; transition: color .35s ease, background .35s ease, transform .5s cubic-bezier(.16,1,.3,1), border-color .35s ease; }
.course-item:hover .course-end-mark, .course-item.is-open .course-end-mark { transform: translate(3px,-3px) rotate(45deg); border-color: rgba(191,202,239,.48); color: #e6ebff; background: rgba(169,185,255,.07); }
.course-featured .course-name { color: #d6deff; }
.course-footer-rail { padding-top: 15px; color: #6e727f; }
.course-footer-rail b { margin-left: 4px; }
@keyframes course-mark-turn { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .course-item { grid-template-columns: 44px 42px minmax(0,1fr) auto 22px; gap: 16px; padding-inline: 15px; }
  .course-glyph { width: 42px; height: 42px; }
  .course-glyph--pixel { transform: scale(.88); }
  .course-editorial .section-heading h2 { font-size: clamp(36px, 5.6vw, 60px); }
}
@media (max-width: 720px) {
  .course-heading { gap: 22px; margin-bottom: 31px; }
  .course-editorial .section-heading h2 { font-size: clamp(35px, 9vw, 49px); }
  .course-term-stamp { min-width: 0; width: 100%; padding: 11px 0 0; border-left: 0; border-top: 1px solid rgba(210,220,255,.18); }
  .course-stamp-number { display: inline-block; margin-top: 4px; font-size: 31px; }
  .course-term-stamp p { display: inline-flex; margin: 0 0 0 12px; vertical-align: 5px; font-size: 7px; }
  .course-archive-rail { flex-wrap: wrap; gap: 8px 14px; font-size: 8px; }
  .course-rail-right { display: none !important; }
  .course-item { grid-template-columns: 29px 35px minmax(0,1fr) 18px; gap: 10px; min-height: 126px; padding: 20px 2px; }
  .course-type { display: none; }
  .course-glyph { width: 35px; height: 35px; }
  .course-glyph--pixel { transform: scale(.72); transform-origin: center; }
  .course-number small { font-size: 7px; }
  .course-number b { font-size: 11px; }
  .course-meta { gap: 8px; margin-bottom: 9px; font-size: 7px; letter-spacing: .07em; }
  .course-name { font-size: clamp(19px, 5.4vw, 27px); line-height: 1.28; }
  .course-note { font-size: 10px; }
  .course-note span { display: block; margin: 4px 0 0; }
  .course-end-mark { width: 20px; height: 20px; font-size: 11px; }
  .course-motion-ready .course-item--a { transform: translate3d(-18vw, 18px, 0) rotate(-2deg); }
  .course-motion-ready .course-item--b { transform: translate3d(18vw, 20px, 0) rotate(2deg); }
  .course-motion-ready .course-item--c { transform: translate3d(-14vw, 18px, 0) rotate(1.5deg); }
  .course-motion-ready .course-item--d { transform: translate3d(14vw, 20px, 0) rotate(-1.5deg); }
  .course-footer-rail { gap: 12px; font-size: 7px; }
}
@media (max-width: 380px) {
  .course-editorial .section-heading h2 { font-size: 32px; }
  .course-item { grid-template-columns: 25px 28px minmax(0,1fr) 16px; gap: 7px; }
  .course-glyph { width: 28px; height: 28px; }
  .course-glyph--pixel { transform: scale(.58); }
  .course-name { font-size: 18px; }
  .course-meta { gap: 5px; font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .course-kicker-mark { animation: none; }
  .course-motion-ready .course-item, .course-motion-ready .course-item--a, .course-motion-ready .course-item--b, .course-motion-ready .course-item--c, .course-motion-ready .course-item--d { opacity: 1; transform: none; }
  .course-motion-ready .course-content { transform: none; }
}


/* v9 — light-grey studio palette + six kinetic course book-spines. */
:root {
  --bg: #ececea;
  --bg-raised: #f5f5f2;
  --surface: rgba(40, 43, 50, .035);
  --line: rgba(37, 40, 47, .13);
  --line-strong: rgba(37, 40, 47, .22);
  --text: #25262b;
  --muted: #686a71;
  --dim: #8b8d93;
  --accent: #7c87bd;
  --accent-strong: #626da7;
  --paper: #f7f6f1;
  --paper-ink: #292b31;
  color-scheme: light;
}
html, body { background: var(--bg); color: var(--text); }
body { background-image: linear-gradient(180deg, #f0f0ee 0%, #e9e9e7 58%, #efefed 100%); }
::selection { background: rgba(124,135,189,.23); color: #22242b; }
.grain-overlay { opacity: .045; mix-blend-mode: multiply; }
.scroll-atmosphere { opacity: .28; }
.atmosphere-blob { mix-blend-mode: multiply; opacity: .12; }
.atmosphere-blob-a { background: radial-gradient(circle, rgba(138,150,202,.15), rgba(111,126,203,.025) 58%, transparent 72%); }
.atmosphere-blob-b { background: radial-gradient(circle, rgba(168,174,194,.12), rgba(105,117,165,.018) 58%, transparent 72%); }
.atmosphere-blob-c { background: radial-gradient(circle, rgba(119,166,169,.09), rgba(77,127,151,.012) 58%, transparent 73%); }
.mac-header { border-color: rgba(35,38,46,.12); background: rgba(248,248,246,.82); box-shadow: 0 10px 38px rgba(44,47,53,.065), inset 0 1px 0 rgba(255,255,255,.9); }
.brand { color: #272930; }
.primary-nav a { color: #656770; }
.primary-nav a:hover { color: #202127; }
.primary-nav .github-link { border-color: rgba(40,43,50,.14); color: #353740; background: rgba(255,255,255,.5); }
.menu-toggle { background: rgba(255,255,255,.56); }
.menu-toggle span { background: #34363d; }
.hero::before { background: radial-gradient(ellipse at 74% 40%, rgba(156,169,218,.16), transparent 47%), linear-gradient(180deg, #f1f1ef 0%, #e9e9e7 100%); }
.scene-light-one { background: radial-gradient(circle, rgba(151,166,226,.18), transparent 68%); }
.scene-light-two { background: radial-gradient(circle, rgba(255,255,255,.6), transparent 68%); }
.hero-topline, .hero-kicker, .title-caption { color: #60636c; }
.hero-topline i { box-shadow: 0 0 12px rgba(124,135,189,.35); }
.affiliation { color: #31333a; }
.intro-line { color: #666970; }
.hero-bottomline { border-top-color: rgba(40,43,50,.15); color: #777a82; }
.section-kicker { color: #777a82; }
.section-heading h2 { color: #27282e; }
.section-description { color: #70727a; }
.title-glyph { -webkit-text-stroke: 0 !important; }
.title-glyph, .title-period {
  text-shadow:
    0 1px 0 rgba(223,255,249,.5),
    1px 1px 0 #9be9df,
    2px 2px 0 #6bcfc5,
    3px 3px 0 #4bb5b1,
    4px 4px 0 #378f99,
    5px 6px 0 #2c6879,
    7px 8px 0 #24475c,
    0 13px 20px rgba(37,56,68,.2) !important;
}
.title-period { -webkit-text-stroke: 0 !important; }
.work-card {
  border-color: rgba(43,47,56,.13);
  box-shadow: 0 16px 32px rgba(45,48,55,.07), inset 0 1px 0 rgba(255,255,255,.86);
}
.work-card--lime { --card-bg: #f4f4f1; --card-ink: #292b31; --card-muted: #6a6c73; --card-mark: rgba(91,103,153,.075); background-image: linear-gradient(rgba(86,95,126,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(86,95,126,.025) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.82), transparent 65%); }
.work-card--violet { --card-bg: #ebeced; --card-ink: #282a31; --card-muted: #696b73; --card-mark: rgba(91,103,153,.065); background-image: linear-gradient(rgba(86,95,126,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(86,95,126,.028) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.76), transparent 65%); }
.work-card--lilac { --card-bg: #f0eff2; --card-ink: #292a31; --card-muted: #696973; --card-mark: rgba(100,103,148,.06); background-image: linear-gradient(rgba(86,95,126,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(86,95,126,.025) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.78), transparent 65%); }
.work-card--paper { --card-bg: #e5e6e4; --card-ink: #292b31; --card-muted: #696b72; --card-mark: rgba(86,95,126,.06); background-image: linear-gradient(rgba(86,95,126,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(86,95,126,.025) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.7), transparent 65%); }
.work-card::before { opacity: .045; }
.work-card-number { color: #717da9; }
.work-card-meta { border-left-color: rgba(47,50,59,.18); color: #777982; }
.pixel-stamp { border-color: rgba(105,116,166,.25); color: #6875ad; }
.work-card-role { border-color: rgba(47,50,59,.16); }
.work-card-role span { color: #7b7d84; }
.work-card-role strong { color: #34363d; }
.work-card-role b { border-color: rgba(105,116,166,.22); color: #6875ad; background: rgba(124,135,189,.04); }
.work-card:hover { box-shadow: 0 23px 43px rgba(45,48,55,.12), inset 0 1px 0 rgba(255,255,255,.9); }
.works-glass-canvas { filter: blur(1.1px) saturate(.62) brightness(1.12) contrast(.96); }
.week-carousel-toolbar p { color: #72757d; }
.week-view-switch { border-color: rgba(40,43,50,.12); background: rgba(255,255,255,.62); }
.week-view-button { color: #777982; }
.week-view-button span { color: #6875ad; }
.week-view-button.is-selected { background: #dfe2f0; color: #2e3243; box-shadow: inset 0 0 0 1px rgba(124,135,189,.15); }
.week-view-button.is-selected span { color: #606da6; }
.week-arrow { border-color: rgba(40,43,50,.15); background: rgba(255,255,255,.65); color: #3a3d45; }
.week-arrow:hover { border-color: rgba(124,135,189,.48); background: #e3e6f3; }
.week-card {
  border-color: rgba(44,47,56,.13);
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(246,246,243,.84) 54%, rgba(224,227,239,.42)), #f2f2ef;
  color: #292b31;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 13px 30px rgba(46,49,58,.08);
  backdrop-filter: blur(20px) saturate(105%);
}
.week-card::after { background: radial-gradient(ellipse at 18% 0%, rgba(255,255,255,.84), transparent 48%); }
.week-card:hover { border-color: rgba(124,135,189,.32); background-color: #f5f5f2; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 20px 38px rgba(46,49,58,.13); }
.week-top { border-bottom-color: rgba(42,44,48,.13); color: #777982; }
.week-top span:last-child { border-color: rgba(43,46,56,.15); background: rgba(255,255,255,.7); color: #40434c; }
.week-name { color: #292b31; }
.week-bottom { border-top-color: rgba(42,44,48,.13); color: #6b6e77; }
.week-arrow-mark { border-color: rgba(43,46,56,.14); background: rgba(255,255,255,.66); color: #59669f; }
.week-card.is-upcoming { border-color: rgba(43,46,56,.1); background: linear-gradient(135deg, rgba(255,255,255,.65), rgba(231,232,229,.8)), #e9e9e6; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 9px 20px rgba(46,49,58,.045); opacity: .72; }
.week-card.is-upcoming:hover { border-color: rgba(43,46,56,.1); background-color: #e9e9e6; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 9px 20px rgba(46,49,58,.045); }
.week-card.is-upcoming .week-name { color: #777a81; }
.week-card.is-upcoming .week-bottom { color: #888a90; }
.week-card.is-upcoming .week-top span:last-child { color: #898b92; }
.carousel-progress { background: rgba(43,46,56,.1); }
.carousel-progress-fill { background: linear-gradient(90deg, #aab3db, #7b87bd); box-shadow: none; }
.week-legend > span { color: #747780; }
.legend-done { background: #8591c4; box-shadow: none; }
.legend-upcoming { border-color: #a2a4a9; }
.closing-note { border-top-color: rgba(40,43,50,.12); }
.closing-orbit { border-color: rgba(124,135,189,.13); }
.closing-kicker { color: #777a82; }
.closing-line { color: #282a30; }
.site-footer { border-top-color: rgba(40,43,50,.13); color: #73757d; }
.footer-brand { color: #2c2e34; }
.skip-link { color: #24262d; background: #fff; }

/* Six tall book-spines: quiet covers, vertical title until hover, then a wide horizontal reveal. */
.course-editorial { position: relative; }
.course-heading { align-items: end; margin-bottom: 28px; }
.course-editorial .section-heading h2 { color: #25262c; }
.course-editorial .section-heading h2 > span { color: var(--accent); }
.course-term-stamp { border-left-color: rgba(39,42,50,.16); }
.course-stamp-label { color: #85878d; }
.course-stamp-number { color: #30323a; }
.course-stamp-number span { color: var(--accent); }
.course-term-stamp p { color: #85878c; }
.course-term-stamp p i { background: #8994c5; box-shadow: 0 0 9px rgba(124,135,189,.28); }
.course-archive-rail, .course-footer-rail { color: #80828a; }
.course-archive-rail { border-top-color: rgba(38,41,49,.14); border-bottom-color: rgba(38,41,49,.12); }
.course-archive-rail b, .course-footer-rail b, .course-rail-right b { color: #7c87bd; }
.course-archive-rail em { color: #5f6ba6; }
.course-shelf-viewport { width: 100%; overflow: visible; }
.course-list {
  display: flex;
  align-items: stretch;
  gap: 9px;
  min-height: 440px;
  margin: 22px 0 0;
  padding: 2px 1px 14px;
  border: 0;
  perspective: none;
}
.course-item {
  --book-bg: #f4f4f1;
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: clamp(385px, 39vw, 465px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(43,46,53,.15);
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(233,234,231,.86)), var(--book-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 7px 16px rgba(40,43,51,.035);
  transform: translate3d(0,0,0);
  transform-origin: center bottom;
  transition: flex .82s cubic-bezier(.16,1,.3,1), transform .68s cubic-bezier(.16,1,.3,1), border-color .45s ease, background .45s ease, box-shadow .55s ease, opacity .7s ease;
  cursor: default;
}
.course-item--a { --book-bg: #f4f4f1; }
.course-item--b { --book-bg: #edeeec; }
.course-item--c { --book-bg: #f3f3f0; }
.course-item--d { --book-bg: #e9ebf0; }
.course-item--e { --book-bg: #f2f1ee; }
.course-item--f { --book-bg: #ebedec; }
.course-item::before {
  position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(83,87,102,.08) 48%, rgba(83,87,102,.025));
  content: ""; opacity: .8; pointer-events: none;
}
.course-item::after { position:absolute; left:0; right:0; bottom:0; height:2px; background:#8893c3; content:""; transform:scaleX(0); transform-origin:left; transition:transform .65s cubic-bezier(.16,1,.3,1); }
.course-motion-ready .course-item,
.course-motion-ready .course-item--a,
.course-motion-ready .course-item--b,
.course-motion-ready .course-item--c,
.course-motion-ready .course-item--d,
.course-motion-ready .course-item--e,
.course-motion-ready .course-item--f { opacity: 0; transform: translate3d(0,22px,0) rotate(0); }
.course-motion-ready .course-item.is-revealed { opacity: 1; transform: translate3d(0,0,0) rotate(0); transition-delay: calc(var(--course-order) * 60ms); }
.course-item:hover, .course-item.is-open, .course-item.is-open {
  flex: 3.2 1 0;
  border-color: rgba(108,120,177,.32);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(239,240,244,.94)), var(--book-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 17px 30px rgba(41,44,53,.1);
  transform: translateY(-4px);
}
.course-list:has(.course-item:hover) .course-item:not(:hover),
.course-list:has(.course-item.is-open) .course-item:not(:focus-within),
.course-list:has(.course-item.is-open) .course-item:not(.is-open) { flex: .76 1 0; }
.course-item:hover::after, .course-item.is-open::after, .course-item.is-open::after { transform: scaleX(1); }
.course-number { position:absolute; top:18px; left:20px; display:flex; flex-direction:column; gap:8px; color:#4d5058; }
.course-number small { color:#94969b; font:8px/1 var(--mono); letter-spacing:.12em; }
.course-number b { color:#686b74; font:11px/1 var(--mono); font-weight:400; }
.course-type { position:absolute; top:18px; right:15px; justify-self:auto; padding:0; border:0; color:#7e8188; font:9px/1.3 var(--mono); letter-spacing:.045em; white-space:nowrap; }
.course-content { position:absolute; inset:0; min-width:0; transform:none; pointer-events:none; }
.course-meta { position:absolute; top:58px; left:24px; display:flex; flex-wrap:wrap; gap:10px; margin:0; color:#8a8c93; font:8px/1.5 var(--mono); letter-spacing:.09em; opacity:0; transform:translateY(9px); transition:opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.course-meta > span:first-child { color:#6e79b0; }
.course-meta > span:last-child { display:inline-flex; align-items:center; gap:7px; }
.course-active-dot { display:inline-block; width:5px; height:5px; border-radius:50%; background:#8390c3; box-shadow:0 0 8px rgba(124,135,189,.3); }
.course-name {
  position:absolute; left:24px; bottom:26px; display:block;
  width:max-content; max-width:none; margin:0;
  color:#35373d; font-size:clamp(16px,1.28vw,19px); font-weight:600; line-height:1.18;
  letter-spacing:-.045em; white-space:nowrap; overflow-wrap:normal;
  transform:rotate(-90deg); transform-origin:left bottom;
  transition:transform .78s cubic-bezier(.16,1,.3,1), bottom .78s cubic-bezier(.16,1,.3,1), font-size .45s ease, color .35s ease, letter-spacing .45s ease, width .65s cubic-bezier(.16,1,.3,1);
}
.course-name a { color:inherit; }
.course-name::after { position:absolute; right:100%; bottom:-7px; left:0; height:1px; background:#8490c1; content:""; transition:right .55s cubic-bezier(.16,1,.3,1); }
.course-note { position:absolute; left:24px; right:24px; bottom:25px; margin:0; color:#777a82; font-size:11px; line-height:1.75; letter-spacing:.005em; opacity:0; transform:translateY(9px); transition:opacity .4s ease, transform .55s cubic-bezier(.16,1,.3,1); }
.course-note span { display:inline-block; margin-left:8px; color:#6875ad; font:8px/1.4 var(--mono); letter-spacing:.07em; }
.course-end-mark { position:absolute; right:18px; bottom:20px; display:inline-flex; width:25px; height:25px; align-items:center; justify-content:center; border:1px solid rgba(76,84,121,.17); border-radius:50%; color:#7682ba; background:rgba(255,255,255,.45); font-size:13px; opacity:0; transform:translate(-4px,4px); transition:opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1), background .35s ease; }
.course-item:hover .course-meta, .course-item.is-open .course-meta, .course-item.is-open .course-meta { opacity:1; transform:translateY(0); transition-delay:.12s; }
.course-item:hover .course-name, .course-item.is-open .course-name, .course-item.is-open .course-name { bottom:77px; width:calc(100% - 48px); max-width:calc(100% - 48px); white-space:normal; transform:rotate(0deg); color:#25272e; font-size:clamp(23px,2.1vw,32px); letter-spacing:-.055em; }
.course-item:hover .course-name::after, .course-item.is-open .course-name::after, .course-item.is-open .course-name::after { right:15%; }
.course-item:hover .course-note, .course-item.is-open .course-note, .course-item.is-open .course-note { opacity:1; transform:translateY(0); transition-delay:.22s; }
.course-item:hover .course-end-mark, .course-item.is-open .course-end-mark, .course-item.is-open .course-end-mark { opacity:1; transform:translate(0,0); transition-delay:.16s; }
.course-featured .course-name { color:#343740; }
.course-footer-rail { padding-top:15px; color:#85878e; }
.course-footer-rail b { margin-left:4px; }
@media (max-width: 1050px) {
  .course-list { min-height:400px; }
  .course-item { height:clamp(360px,43vw,420px); }
  .course-item:hover .course-name, .course-item.is-open .course-name, .course-item.is-open .course-name { font-size:clamp(20px,2.5vw,27px); }
}
@media (max-width: 720px) {
  .hero { background:#ececea; }
  .course-heading { gap:22px; margin-bottom:28px; }
  .course-editorial .section-heading h2 { font-size:clamp(35px,9vw,49px); }
  .course-term-stamp { min-width:0; width:100%; padding:11px 0 0; border-left:0; border-top:1px solid rgba(39,42,50,.14); }
  .course-stamp-number { display:inline-block; margin-top:4px; font-size:31px; }
  .course-term-stamp p { display:inline-flex; margin:0 0 0 12px; vertical-align:5px; font-size:7px; }
  .course-archive-rail { flex-wrap:wrap; gap:8px 14px; font-size:8px; }
  .course-rail-right { display:inline-flex !important; }
  .course-shelf-viewport { margin-right:-20px; padding-right:20px; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:rgba(95,107,166,.38) transparent; }
  .course-list { width:max-content; min-width:900px; min-height:370px; gap:8px; margin-top:17px; }
  .course-item { flex:0 0 112px; width:112px; height:370px; border-radius:10px 10px 4px 4px; }
  .course-list:has(.course-item:hover) .course-item:not(:hover), .course-list:has(.course-item.is-open) .course-item:not(:focus-within), .course-list:has(.course-item.is-open) .course-item:not(.is-open) { flex:0 0 86px; }
  .course-item:hover, .course-item.is-open, .course-item.is-open { flex:0 0 390px; }
  .course-name { left:20px; bottom:23px; font-size:15px; }
  .course-number { top:15px; left:16px; }
  .course-type { top:16px; right:12px; }
  .course-meta { left:20px; top:52px; font-size:7px; }
  .course-item:hover .course-name, .course-item.is-open .course-name, .course-item.is-open .course-name { left:20px; bottom:75px; width:calc(100% - 40px); max-width:calc(100% - 40px); font-size:23px; }
  .course-note { left:20px; right:20px; bottom:22px; font-size:10px; }
  .course-end-mark { right:14px; bottom:14px; }
  .course-footer-rail { gap:12px; font-size:7px; }
  .work-card { border-radius:18px; }
  .site-footer { flex-wrap:wrap; padding-block:22px; }
}
@media (hover: none) {
  .course-item { cursor:pointer; }
  .course-item:hover { transform:none; }
}
@media (prefers-reduced-motion: reduce) {
  .course-motion-ready .course-item,
  .course-motion-ready .course-item--a,
  .course-motion-ready .course-item--b,
  .course-motion-ready .course-item--c,
  .course-motion-ready .course-item--d,
  .course-motion-ready .course-item--e,
  .course-motion-ready .course-item--f,
  .course-motion-ready .course-item.is-revealed { opacity:1; transform:none; }
  .course-name, .course-meta, .course-note, .course-item, .course-end-mark { transition:none !important; }
}

/* Final polish for the brighter art direction and accessible reveal motion. */
.hero::after { background: linear-gradient(180deg, rgba(236,236,234,0) 0%, rgba(236,236,234,.48) 42%, var(--bg) 100%); }
.scene-coordinate { color: rgba(65,69,80,.5); }
.scene-cross { color: rgba(65,69,80,.35); }
.scroll-cue { color: #70737b; }
.scroll-cue:hover { color: #292b31; }
.scroll-icon { border-color: rgba(46,49,57,.22); color: #707db3; }
.scroll-cue:hover .scroll-icon { background: rgba(255,255,255,.68); }
.course-motion-ready .course-content,
.course-motion-ready .is-revealed .course-content { transform: none; }
.course-item:focus-visible { outline: 2px solid rgba(104,118,177,.68); outline-offset: 2px; }
.title-glyph { text-shadow: 0 1px 0 rgba(223,255,249,.38), 1px 1px 0 #9be9df, 2px 2px 0 #6bcfc5, 3px 3px 0 #4bb5b1, 4px 4px 0 #378f99, 5px 6px 0 #2c6879, 7px 8px 0 #24475c, 0 13px 20px rgba(37,56,68,.2) !important; }
.title-period { text-shadow: 0 1px 0 rgba(255,236,248,.38), 1px 1px 0 #ffd1ef, 2px 2px 0 #f29bd8, 3px 3px 0 #cb70bd, 4px 5px 0 #8e5b9d, 0 10px 19px rgba(68,42,72,.18) !important; }
.course-name a { pointer-events: auto; position: relative; z-index: 2; }


/* v10 polish: readable light hero, genuinely translucent archive cards, roomier course shelf. */
:root { --bg: #ececea; --bg-raised: #f6f6f3; --text: #292b31; --muted: #666a73; --accent: #7c87bd; }

/* Pale silver folder: preserve the original 3D folder geometry, change only its material/colors. */
.hero::before {
  background:
    radial-gradient(ellipse at 73% 34%, rgba(171,183,221,.22), transparent 48%),
    linear-gradient(180deg, #f5f5f2 0%, #e7e8e7 100%);
}
.hero::after {
  background: linear-gradient(180deg, rgba(236,236,234,0) 0%, rgba(236,236,234,.16) 48%, rgba(236,236,234,.78) 100%);
}
.folder-shadow { background: rgba(57,62,76,.18); filter: blur(48px); }
.folder-back {
  border-color: rgba(255,255,255,.92);
  background: linear-gradient(133deg, #fafbf9 0%, #e6e9ef 20%, #cbd0dc 47%, #adb5c8 78%, #e3e6ec 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.96), inset 0 -2px 9px rgba(65,72,91,.12), 0 25px 50px rgba(52,57,72,.13);
}
.folder-tab {
  border-color: rgba(255,255,255,.96);
  background: linear-gradient(145deg, #fbfcfa 0%, #e1e5ef 36%, #b7bfd3 78%, #e8eaf0 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.96), inset 0 -3px 8px rgba(65,72,91,.09);
}
.folder-front {
  border-color: rgba(255,255,255,.98);
  background: linear-gradient(148deg, #e9ecf2 0%, #d5dae6 16%, #bbc3d5 42%, #9fa9bf 70%, #d3d8e3 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.98), inset 0 -4px 8px rgba(65,72,91,.13), 0 30px 50px rgba(52,57,72,.17);
}
.folder-highlight { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,0)); }
.folder-emblem { color: rgba(74,83,111,.88); text-shadow: 0 3px 16px rgba(255,255,255,.35); }
.folder-front-label { border-top-color: rgba(75,83,105,.23); color: rgba(58,64,81,.82); }
.folder-front-label small { color: rgba(58,64,81,.58); }
.folder-glare { opacity: .6; background: linear-gradient(90deg, transparent, rgba(255,255,255,.56), transparent); }
.folder-edge { border-color: rgba(255,255,255,.78); background: linear-gradient(90deg, #aeb7c9, #f4f5f7 54%, #a9b1c3); }
.folder-document { border-color: rgba(255,255,255,.9); background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(226,229,236,.96)); box-shadow: 0 18px 30px rgba(52,57,72,.12); color: #4a4f60; }
.folder-document b { background: rgba(68,76,98,.14); }
.scene-light-one { background: radial-gradient(circle, rgba(169,181,222,.24), transparent 68%); }
.scene-light-two { background: radial-gradient(circle, rgba(255,255,255,.78), transparent 68%); }

/* Keep the 50-character introduction readable even where the hero fades into the page. */
.hero-info {
  width: fit-content;
  max-width: min(560px, 100%);
  margin-top: clamp(27px, 3.8vh, 40px);
  padding: 13px 17px 14px;
  border: 1px solid rgba(53,58,71,.10);
  border-radius: 13px;
  background: rgba(249,249,246,.82);
  box-shadow: 0 9px 24px rgba(63,68,83,.055), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(17px) saturate(112%);
  -webkit-backdrop-filter: blur(17px) saturate(112%);
}
.affiliation { color: #292b32; }
.intro-line {
  max-width: 49ch;
  color: #484b54;
  font-size: clamp(14px, 1.08vw, 16px);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: -.015em;
  text-shadow: none;
}
/* Remove utility-like microcopy that does not add meaning to the hero composition. */
.hero-bottomline, .scene-coordinate { display: none !important; }

/* The works cards return to frosted translucency; the WebGL scene can show through softly. */
#works > .works-stack { gap: 0; }
.work-card {
  backdrop-filter: blur(19px) saturate(112%);
  -webkit-backdrop-filter: blur(19px) saturate(112%);
  border-color: rgba(73,79,97,.17);
  box-shadow: 0 18px 42px rgba(47,52,65,.085), inset 0 1px 0 rgba(255,255,255,.88);
}
.work-card--lime {
  --card-bg: rgba(249,249,246,.66); --card-ink: #292b31; --card-muted: #666a72; --card-mark: rgba(91,103,153,.07);
  background-image: linear-gradient(rgba(91,103,153,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(91,103,153,.025) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.025) 68%);
}
.work-card--violet {
  --card-bg: rgba(239,240,243,.62); --card-ink: #292b31; --card-muted: #656972; --card-mark: rgba(91,103,153,.07);
  background-image: linear-gradient(rgba(91,103,153,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(91,103,153,.025) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.25), rgba(221,225,237,.06) 68%);
}
.work-card--lilac {
  --card-bg: rgba(245,243,247,.60); --card-ink: #292b31; --card-muted: #666873; --card-mark: rgba(100,103,148,.07);
  background-image: linear-gradient(rgba(91,103,153,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(91,103,153,.022) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.26), rgba(223,221,238,.045) 68%);
}
.work-card--paper {
  --card-bg: rgba(231,234,233,.57); --card-ink: #292b31; --card-muted: #656970; --card-mark: rgba(86,95,126,.065);
  background-image: linear-gradient(rgba(86,95,126,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(86,95,126,.024) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.22), rgba(222,228,228,.045) 68%);
}
.work-card--mist {
  --card-bg: rgba(247,248,246,.64); --card-ink: #292b31; --card-muted: #666a72; --card-mark: rgba(91,103,153,.07);
  background-image: linear-gradient(rgba(86,95,126,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(86,95,126,.022) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.27), rgba(220,226,231,.04) 68%);
}
.work-card--blue {
  --card-bg: rgba(224,230,238,.58); --card-ink: #292b31; --card-muted: #626873; --card-mark: rgba(91,103,153,.075);
  background-image: linear-gradient(rgba(86,95,126,.024) 1px, transparent 1px), linear-gradient(90deg, rgba(86,95,126,.024) 1px, transparent 1px), linear-gradient(145deg, rgba(255,255,255,.24), rgba(207,218,235,.05) 68%);
}
.work-card-top, .work-card-main, .work-card-role { position: relative; z-index: 1; }

/* More breathing room between book spines, with a soft focus/frost edge and slower sequential reveal. */
.course-shelf-viewport { position: relative; isolation: isolate; padding-block: 12px 18px; }
.course-shelf-viewport::before,
.course-shelf-viewport::after {
  position: absolute; z-index: 7; left: 0; right: 0; height: 25px;
  content: ""; pointer-events: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.course-shelf-viewport::before {
  top: 0;
  background: linear-gradient(180deg, rgba(236,236,234,.98), rgba(236,236,234,.54) 56%, transparent);
}
.course-shelf-viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(236,236,234,.98), rgba(236,236,234,.54) 56%, transparent);
}
.course-list { gap: clamp(13px, 1.45vw, 19px); margin-top: 28px; padding: 3px 2px 20px; }
.course-item {
  height: clamp(430px, 41vw, 490px);
  border-radius: 13px 13px 6px 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.97), 0 9px 21px rgba(40,43,51,.055);
}
.course-item::before { width: 5px; }
.course-item:hover, .course-item.is-open, .course-item.is-open { box-shadow: inset 0 1px 0 rgba(255,255,255,.99), 0 20px 36px rgba(41,44,53,.12); }
.course-number { top: 25px; left: 25px; }
.course-type { top: 25px; right: 22px; }
.course-name { left: 31px; bottom: 38px; font-size: clamp(16px, 1.25vw, 19px); }
.course-note { left: 30px; right: 30px; bottom: 30px; }
.course-meta { left: 30px; top: 69px; }
.course-end-mark { right: 24px; bottom: 25px; }
.course-motion-ready .course-item.is-revealed { transition-delay: calc(var(--course-order) * 170ms); }
.course-list:has(.course-item:hover) .course-item:not(:hover),
.course-list:has(.course-item.is-open) .course-item:not(:focus-within),
.course-list:has(.course-item.is-open) .course-item:not(.is-open) {
  filter: blur(.45px);
  opacity: .78;
}
.course-item:hover .course-name, .course-item.is-open .course-name, .course-item.is-open .course-name {
  left: 30px; bottom: 88px; width: calc(100% - 60px); max-width: calc(100% - 60px);
}
@media (max-width: 1050px) {
  .course-list { gap: 13px; }
  .course-number { left: 20px; }
  .course-type { right: 17px; }
  .course-name { left: 26px; bottom: 34px; }
}
@media (max-width: 720px) {
  .hero-info { max-width: min(100%, 500px); padding: 12px 14px; margin-left: 0; }
  .intro-line { max-width: 36ch; font-size: 13px; }
  .folder-front { background: linear-gradient(148deg, #eceff4 0%, #d3d9e6 19%, #b7c1d5 45%, #a2aec5 72%, #d9deea 100%); }
  .course-shelf-viewport { margin-right: -20px; padding-right: 20px; }
  .course-shelf-viewport::before, .course-shelf-viewport::after { right: 20px; }
  .course-list { min-width: 1030px; min-height: 400px; gap: 13px; margin-top: 22px; padding-bottom: 23px; }
  .course-item { flex: 0 0 122px; width: 122px; height: 390px; }
  .course-list:has(.course-item:hover) .course-item:not(:hover), .course-list:has(.course-item.is-open) .course-item:not(:focus-within), .course-list:has(.course-item.is-open) .course-item:not(.is-open) { flex: 0 0 94px; }
  .course-item:hover, .course-item.is-open, .course-item.is-open { flex: 0 0 390px; }
  .course-number { top: 17px; left: 20px; }
  .course-type { top: 18px; right: 15px; }
  .course-name { left: 25px; bottom: 29px; font-size: 15px; }
  .course-meta { left: 25px; top: 54px; }
  .course-note { left: 25px; right: 25px; bottom: 24px; }
  .course-end-mark { right: 17px; bottom: 16px; }
  .course-item:hover .course-name, .course-item.is-open .course-name, .course-item.is-open .course-name { left: 24px; bottom: 78px; width: calc(100% - 48px); max-width: calc(100% - 48px); font-size: 23px; }
  .course-motion-ready .course-item.is-revealed { transition-delay: calc(var(--course-order) * 115ms); }
}
@media (prefers-reduced-motion: reduce) {
  .course-shelf-viewport::before, .course-shelf-viewport::after { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .course-list:has(.course-item:hover) .course-item:not(:hover), .course-list:has(.course-item.is-open) .course-item:not(:focus-within), .course-list:has(.course-item.is-open) .course-item:not(.is-open) { filter: none; }
}

.course-item:hover, .course-item.is-open, .course-item.is-open { transition-delay: 0s !important; }

/* v11 visual correction: consistent paper-light weekly cards, reliable book-spine interaction, warm accent. */
:root {
  --accent: #bd7057;
  --accent-strong: #df9b7f;
  --pixel-violet: #c87d61;
}

/* Warm terracotta/amber replaces the mint + violet Jelix wordmark accents. */
.brand span, .footer-brand span, .github-link span { color: var(--accent) !important; }
.primary-nav a:hover { color: var(--accent) !important; }
.hero-title { filter: drop-shadow(0 17px 23px rgba(77,49,41,.17)) drop-shadow(0 0 24px rgba(202,124,93,.12)) !important; }
.hero-title .title-glyph {
  color: #d98d6c !important;
  -webkit-text-fill-color: #d98d6c !important;
  -webkit-text-stroke: 0 !important;
  background: none !important;
  background-image: none !important;
  text-shadow: 1px 1px 0 #cc7b5c, 2px 2px 0 #b96750, 3px 3px 0 #9f5344, 4px 4px 0 #80443a, 5px 5px 0 #63372f, 6px 6px 0 #4c2c2a, 0 14px 23px rgba(66,42,35,.24) !important;
}
.hero-title .title-period {
  color: #e7b96f !important;
  -webkit-text-fill-color: #e7b96f !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 1px 1px 0 #d6a35c, 2px 2px 0 #bb8446, 3px 3px 0 #976638, 4px 4px 0 #71492f, 0 12px 20px rgba(77,53,35,.22) !important;
}

/* Secondary interface accents follow the same muted clay palette. */
.section-heading h2 > span,
.course-kicker-mark,
.course-stamp-number span,
.course-archive-rail b,
.course-footer-rail b,
.course-rail-right b,
.course-archive-rail em,
.course-meta > span:first-child,
.course-note span,
.course-end-mark,
.work-card-number,
.pixel-stamp,
.work-card-role b,
.carousel-progress-fill,
.legend-done { color: var(--accent) !important; }
.course-item::after { background: var(--accent) !important; }
.course-name::after { background: var(--accent) !important; }
.course-item:hover, .course-item.is-open, .course-item.is-open { border-color: rgba(189,112,87,.38) !important; }

/* Force every weekly card (including old nth-child variants and upcoming cards) into the light palette. */
#class-links .week-carousel .week-card,
#class-links .week-carousel .week-card:nth-child(n) {
  background: linear-gradient(138deg, rgba(255,255,255,.97), rgba(247,246,242,.93) 57%, rgba(239,229,222,.55)) !important;
  color: #303036 !important;
  border-color: rgba(71,66,62,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 13px 28px rgba(60,49,44,.075) !important;
  backdrop-filter: blur(18px) saturate(104%);
  -webkit-backdrop-filter: blur(18px) saturate(104%);
}
#class-links .week-carousel .week-card:nth-child(3n + 2) {
  background: linear-gradient(138deg, rgba(250,249,246,.97), rgba(241,239,234,.93) 58%, rgba(231,224,216,.58)) !important;
}
#class-links .week-carousel .week-card:nth-child(3n) {
  background: linear-gradient(138deg, rgba(255,255,255,.98), rgba(246,246,243,.94) 60%, rgba(228,229,224,.5)) !important;
}
#class-links .week-carousel .week-card:hover {
  background: linear-gradient(138deg, #fff, #f7f3ed 58%, #efe3d9) !important;
  border-color: rgba(189,112,87,.38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.99), 0 20px 38px rgba(60,49,44,.13) !important;
}
#class-links .week-carousel .week-card::after {
  background: radial-gradient(ellipse at 18% 0%, rgba(255,255,255,.94), transparent 49%) !important;
}
#class-links .week-carousel .week-card .week-top {
  color: #77716d !important;
  border-color: rgba(65,59,55,.15) !important;
}
#class-links .week-carousel .week-card .week-top span:last-child {
  color: #a45e48 !important;
  border-color: rgba(189,112,87,.26) !important;
  background: rgba(255,255,255,.64) !important;
}
#class-links .week-carousel .week-card .week-name { color: #303036 !important; }
#class-links .week-carousel .week-card .week-bottom {
  color: #77716d !important;
  border-color: rgba(65,59,55,.15) !important;
}
#class-links .week-carousel .week-card .week-arrow-mark {
  color: #a45e48 !important;
  border-color: rgba(189,112,87,.25) !important;
  background: rgba(255,255,255,.68) !important;
}
#class-links .week-carousel .week-card.is-upcoming,
#class-links .week-carousel .week-card.is-upcoming:nth-child(n) {
  background: linear-gradient(138deg, rgba(244,243,239,.88), rgba(231,230,225,.88)) !important;
  opacity: .76 !important;
}
#class-links .week-carousel .week-card.is-upcoming .week-name { color: #77736f !important; }
#class-links .week-view-switch { border-color: rgba(71,66,62,.14) !important; background: rgba(255,255,255,.66) !important; }
#class-links .week-view-button { color: #77716d !important; }
#class-links .week-view-button span { color: #a45e48 !important; }
#class-links .week-view-button.is-selected { background: #f0dfd5 !important; color: #4e3831 !important; box-shadow: inset 0 0 0 1px rgba(189,112,87,.16) !important; }
#class-links .week-arrow { border-color: rgba(71,66,62,.16) !important; background: rgba(255,255,255,.78) !important; color: #464044 !important; }
#class-links .week-arrow:hover { border-color: rgba(189,112,87,.38) !important; background: #f1e2d8 !important; }
#class-links .carousel-pagination { border-color: rgba(71,66,62,.12) !important; background: rgba(255,255,255,.68) !important; }
#class-links .week-page-dot { background: rgba(111,101,94,.25) !important; }
#class-links .week-page-dot.is-active { background: #bd7057 !important; box-shadow: 0 0 8px rgba(189,112,87,.15) !important; }
#class-links .week-legend > span { color: #77716d !important; }
#class-links .legend-done { background: #bd7057 !important; }
#class-links .legend-upcoming { border-color: #aaa19a !important; }

/* Keep closed subjects truly vertical on a single line; when opened, lay the title out horizontally. */
#courses .course-list { display: flex !important; width: 100%; align-items: stretch; }
#courses .course-list .course-item { flex: 1 1 0% !important; min-width: 0; }
#courses .course-list .course-name {
  left: 30px !important;
  bottom: 32px !important;
  display: block;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  transform: rotate(-90deg) !important;
  transform-origin: left bottom !important;
  line-height: 1.2 !important;
  font-size: clamp(15px, 1.13vw, 18px) !important;
}
#courses .course-list .course-name a {
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}
#courses .course-list:has(.course-item:hover) .course-item:not(:hover),
#courses .course-list:has(.course-item.is-open) .course-item:not(:focus-within),
#courses .course-list:has(.course-item.is-open) .course-item:not(.is-open) {
  flex: .68 1 0% !important;
  filter: blur(.35px);
  opacity: .76;
}
#courses .course-list .course-item:hover,
#courses .course-list .course-item.is-open,
#courses .course-list .course-item.is-open {
  flex: 3.35 1 0% !important;
  min-width: 0;
}
#courses .course-list .course-item:hover .course-name,
#courses .course-list .course-item.is-open .course-name,
#courses .course-list .course-item.is-open .course-name {
  left: 28px !important;
  bottom: 84px !important;
  width: calc(100% - 56px) !important;
  max-width: calc(100% - 56px) !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  transform: none !important;
  font-size: clamp(22px, 2vw, 31px) !important;
  line-height: 1.14 !important;
}
#courses .course-list .course-item:hover .course-name a,
#courses .course-list .course-item.is-open .course-name a,
#courses .course-list .course-item.is-open .course-name a {
  width: 100%; max-width: 100%; white-space: normal !important;
  overflow-wrap: normal !important; word-break: keep-all !important;
}
@media (max-width: 1050px) and (min-width: 721px) {
  #courses .course-list .course-item:hover,
  #courses .course-list .course-item.is-open,
  #courses .course-list .course-item.is-open { flex: 3.15 1 0% !important; }
  #courses .course-list .course-item:hover .course-name,
  #courses .course-list .course-item.is-open .course-name,
  #courses .course-list .course-item.is-open .course-name { font-size: clamp(20px, 2.35vw, 27px) !important; }
}
@media (max-width: 720px) {
  #courses .course-list { width: max-content !important; min-width: 1030px !important; }
  #courses .course-list .course-item { flex: 0 0 122px !important; width: 122px !important; }
  #courses .course-list:has(.course-item:hover) .course-item:not(:hover),
  #courses .course-list:has(.course-item.is-open) .course-item:not(:focus-within),
  #courses .course-list:has(.course-item.is-open) .course-item:not(.is-open) { flex: 0 0 90px !important; }
  #courses .course-list .course-item:hover,
  #courses .course-list .course-item.is-open,
  #courses .course-list .course-item.is-open { flex: 0 0 360px !important; width: 360px !important; }
  #courses .course-list .course-name { left: 20px !important; bottom: 27px !important; font-size: 15px !important; }
  #courses .course-list .course-item:hover .course-name,
  #courses .course-list .course-item.is-open .course-name,
  #courses .course-list .course-item.is-open .course-name { left: 22px !important; bottom: 78px !important; width: calc(100% - 44px) !important; max-width: calc(100% - 44px) !important; font-size: 22px !important; }
}


/* v13 corrective pass: V11 works-card design restored; increase SECTION-TO-SECTION spacing only. */
:root {
  --accent: #7c87bd;
  --accent-strong: #626da7;
  --pixel-violet: #a9b9ff;
}

/* Keep every interface accent cool lavender/steel. The Jelix wordmark below is the only special-color treatment. */
.brand span, .footer-brand span, .github-link span,
.primary-nav a:hover { color: var(--accent) !important; }
.section-heading h2 > span,
.course-kicker-mark, .course-stamp-number span,
.course-archive-rail b, .course-footer-rail b, .course-rail-right b,
.course-archive-rail em, .course-meta > span:first-child,
.course-note span, .course-end-mark, .work-card-number, .pixel-stamp,
.work-card-role b, .carousel-progress-fill, .legend-done {
  color: var(--accent) !important;
}
.course-item::after, .course-name::after { background: var(--accent) !important; }
.course-item:hover, .course-item.is-open, .course-item.is-open {
  border-color: rgba(124,135,189,.38) !important;
}

/* Jelix only: bright, translucent opal-glass jelly lettering with soft 3D depth — no outline/echo layer. */
.hero-title {
  filter: drop-shadow(0 12px 22px rgba(116,145,183,.15))
          drop-shadow(0 0 25px rgba(208,231,255,.25)) !important;
}
.hero-title::before, .hero-title::after { content: none !important; display: none !important; }
.hero-title .title-glyph {
  color: rgba(231,247,255,.94) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0 !important;
  background-image: linear-gradient(158deg,
    rgba(255,255,255,.99) 0%,
    rgba(229,247,255,.95) 18%,
    rgba(195,225,249,.83) 39%,
    rgba(220,220,250,.86) 57%,
    rgba(255,255,255,.99) 73%,
    rgba(188,224,246,.84) 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  text-shadow:
    1px 1px 0 rgba(255,255,255,.98),
    2px 2px 0 rgba(220,241,255,.92),
    3px 3px 0 rgba(188,218,245,.82),
    4px 4px 0 rgba(157,190,224,.70),
    5px 5px 0 rgba(126,160,198,.54),
    6px 6px 0 rgba(103,137,175,.42),
    7px 7px 0 rgba(81,111,151,.30),
    0 12px 22px rgba(83,108,145,.18),
    0 0 20px rgba(201,230,255,.27) !important;
  filter: none !important;
}
.hero-title .title-period {
  color: rgba(234,231,255,.96) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0 !important;
  background-image: linear-gradient(155deg, #fff 0%, rgba(231,233,255,.96) 28%, rgba(193,203,243,.83) 55%, #fff 78%, rgba(201,226,247,.87) 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  text-shadow:
    1px 1px 0 rgba(255,255,255,.98),
    2px 2px 0 rgba(221,228,255,.92),
    3px 3px 0 rgba(186,200,241,.78),
    4px 4px 0 rgba(148,167,216,.62),
    5px 5px 0 rgba(112,134,185,.45),
    0 12px 22px rgba(83,108,145,.16) !important;
}

/* Restore the V9 open hero-copy layout; no capsule behind the 50-character intro. */
.hero-info {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: clamp(24px, 3.3vh, 36px) 0 0 5px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.hero-info .affiliation {
  margin: 0;
  color: #30323a !important;
  font-size: clamp(13px, 1.12vw, 16px);
  font-weight: 650;
  line-height: 1.35;
}
.hero-info .intro-line {
  display: block;
  width: max-content;
  max-width: none;
  margin: 8px 0 0;
  color: #484b53 !important;
  font-size: clamp(11px, .94vw, 14px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.018em;
  white-space: nowrap;
  text-shadow: none !important;
}

/* IMPORTANT: whitespace belongs between #works and #courses, not between the six work cards.
   All V11 .works-stack / .work-card rules remain unchanged. */
#works { padding-bottom: clamp(112px, 15vh, 184px) !important; }
#courses { margin-top: 0 !important; }

/* Cool silver + lavender carousel. Override the older terracotta selectors for every card/control. */
#class-links .week-carousel .week-card,
#class-links .week-carousel .week-card:nth-child(n) {
  background: linear-gradient(138deg, rgba(255,255,255,.97), rgba(246,247,249,.94) 57%, rgba(224,229,242,.57)) !important;
  color: #30323a !important;
  border-color: rgba(68,73,91,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 13px 28px rgba(54,59,77,.075) !important;
  -webkit-backdrop-filter: blur(18px) saturate(104%);
  backdrop-filter: blur(18px) saturate(104%);
}
#class-links .week-carousel .week-card:nth-child(3n + 2) {
  background: linear-gradient(138deg, rgba(250,251,252,.98), rgba(241,243,247,.94) 58%, rgba(219,225,239,.58)) !important;
}
#class-links .week-carousel .week-card:nth-child(3n) {
  background: linear-gradient(138deg, rgba(255,255,255,.98), rgba(246,247,249,.94) 60%, rgba(225,228,239,.52)) !important;
}
#class-links .week-carousel .week-card:hover {
  background: linear-gradient(138deg, #fff, #f5f6fb 58%, #e7eaf6) !important;
  border-color: rgba(124,135,189,.42) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.99), 0 20px 38px rgba(54,59,77,.13) !important;
}
#class-links .week-carousel .week-card::after {
  background: radial-gradient(ellipse at 18% 0%, rgba(255,255,255,.95), transparent 49%) !important;
}
#class-links .week-carousel .week-card .week-top {
  color: #777b86 !important;
  border-color: rgba(65,69,84,.15) !important;
}
#class-links .week-carousel .week-card .week-top span:last-child {
  color: #6875ad !important;
  border-color: rgba(124,135,189,.3) !important;
  background: rgba(255,255,255,.68) !important;
}
#class-links .week-carousel .week-card .week-name { color: #30323a !important; }
#class-links .week-carousel .week-card .week-bottom {
  color: #777b86 !important;
  border-color: rgba(65,69,84,.15) !important;
}
#class-links .week-carousel .week-card .week-arrow-mark {
  color: #6875ad !important;
  border-color: rgba(124,135,189,.3) !important;
  background: rgba(255,255,255,.72) !important;
}
#class-links .week-carousel .week-card.is-upcoming,
#class-links .week-carousel .week-card.is-upcoming:nth-child(n) {
  background: linear-gradient(138deg, rgba(246,247,249,.91), rgba(231,233,239,.9)) !important;
  opacity: .76 !important;
}
#class-links .week-carousel .week-card.is-upcoming .week-name { color: #777b86 !important; }
#class-links .week-view-switch {
  border-color: rgba(71,76,95,.14) !important;
  background: rgba(255,255,255,.7) !important;
}
#class-links .week-view-button { color: #777b86 !important; }
#class-links .week-view-button span { color: #6875ad !important; }
#class-links .week-view-button.is-selected {
  background: #e4e8f6 !important;
  color: #30323a !important;
  box-shadow: inset 0 0 0 1px rgba(124,135,189,.2) !important;
}
#class-links .week-arrow {
  border-color: rgba(71,76,95,.16) !important;
  background: rgba(255,255,255,.82) !important;
  color: #464955 !important;
}
#class-links .week-arrow:hover {
  border-color: rgba(124,135,189,.42) !important;
  background: #e8ebf8 !important;
}
#class-links .carousel-pagination {
  border-color: rgba(71,76,95,.12) !important;
  background: rgba(255,255,255,.72) !important;
}
#class-links .week-page-dot { background: rgba(111,117,137,.25) !important; }
#class-links .week-page-dot.is-active {
  background: #7c87bd !important;
  box-shadow: 0 0 8px rgba(124,135,189,.16) !important;
}
#class-links .week-legend > span { color: #777b86 !important; }
#class-links .legend-done { background: #7c87bd !important; }
#class-links .legend-upcoming { border-color: #a5a8b2 !important; }

@media (max-width: 720px) {
  .hero-info { width: 100%; max-width: 100%; margin-left: 0; }
  .hero-info .intro-line {
    width: auto;
    max-width: 100%;
    white-space: normal;
    font-size: clamp(11px, 3.1vw, 13px);
    line-height: 1.55;
  }
  #works { padding-bottom: clamp(84px, 12vh, 126px) !important; }
}


/* v14 — generous outer section rhythm + genuinely translucent opal-glass Jelix lettering.
   Work-card internals remain on the V11 layout; only the gaps BETWEEN page sections change. */
:root {
  --section-breathing-room: clamp(84px, 9vh, 132px);
}

/* Hero → Making / Learning / Recording */
.hero {
  margin-bottom: var(--section-breathing-room) !important;
}

/* Making / Learning / Recording → Current Semester.
   Do not change individual work-card spacing, stack offsets, height, or motion here. */
#works {
  margin-bottom: var(--section-breathing-room) !important;
}

/* Current Semester → Weekly Practice */
#courses {
  margin-bottom: var(--section-breathing-room) !important;
}

/* Weekly Practice → Closing section / footer */
#class-links {
  margin-bottom: var(--section-breathing-room) !important;
}
.closing-note {
  margin-top: clamp(145px, 15vh, 205px) !important;
  margin-bottom: clamp(50px, 6vh, 82px) !important;
}
.site-footer {
  margin-top: clamp(38px, 4.5vh, 62px) !important;
}

/* Jelix only: translucent glass jelly, opal refraction and soft extrusion.
   No hard white stroke, no duplicated outline/echo layer, no opaque color fill. */
.hero-title {
  isolation: isolate !important;
  filter:
    drop-shadow(0 13px 25px rgba(113, 143, 177, .13))
    drop-shadow(0 0 30px rgba(206, 234, 255, .20)) !important;
}
.hero-title::before,
.hero-title::after {
  content: none !important;
  display: none !important;
}
.hero-title .title-glyph {
  color: rgba(221, 241, 255, .48) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0 !important;
  background-color: transparent !important;
  background-image:
    linear-gradient(151deg,
      rgba(255,255,255,.82) 0%,
      rgba(230,246,255,.43) 17%,
      rgba(171,211,239,.28) 31%,
      rgba(250,254,255,.75) 40%,
      rgba(200,226,246,.30) 54%,
      rgba(255,255,255,.64) 66%,
      rgba(172,207,235,.24) 100%),
    linear-gradient(86deg,
      rgba(207,232,255,.14),
      rgba(222,215,249,.15) 38%,
      rgba(192,239,238,.17) 67%,
      rgba(255,255,255,.19)) !important;
  background-size: 100% 100%, 100% 100% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  text-shadow:
    1px 1px 0 rgba(255,255,255,.64),
    2px 2px 0 rgba(221,240,253,.48),
    3px 3px 0 rgba(185,216,240,.37),
    4px 4px 0 rgba(151,188,218,.28),
    5px 6px 0 rgba(121,158,190,.20),
    7px 9px 12px rgba(82,115,151,.17),
    0 0 22px rgba(214,240,255,.23) !important;
  filter: none !important;
  mix-blend-mode: screen;
}
.hero-title .title-period {
  color: rgba(243, 224, 250, .48) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0 !important;
  background-color: transparent !important;
  background-image: linear-gradient(148deg,
    rgba(255,255,255,.82) 0%,
    rgba(242,230,255,.50) 24%,
    rgba(202,195,241,.29) 45%,
    rgba(255,255,255,.72) 56%,
    rgba(184,212,240,.28) 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  text-shadow:
    1px 1px 0 rgba(255,255,255,.62),
    2px 2px 0 rgba(231,227,250,.44),
    3px 3px 0 rgba(192,195,235,.34),
    4px 5px 0 rgba(146,161,206,.23),
    6px 8px 11px rgba(91,113,158,.15),
    0 0 20px rgba(225,232,255,.22) !important;
  mix-blend-mode: screen;
}

@media (max-width: 720px) {
  :root { --section-breathing-room: clamp(62px, 9vh, 96px); }
  .hero { margin-bottom: clamp(56px, 8vh, 86px) !important; }
  #works, #courses, #class-links { margin-bottom: var(--section-breathing-room) !important; }
  .closing-note { margin-top: clamp(110px, 13vh, 150px) !important; margin-bottom: 42px !important; }
  .site-footer { margin-top: 30px !important; }
  .hero-title .title-glyph { text-shadow:
    1px 1px 0 rgba(255,255,255,.62),
    2px 2px 0 rgba(221,240,253,.46),
    3px 3px 0 rgba(185,216,240,.32),
    4px 5px 0 rgba(135,171,207,.23),
    0 8px 13px rgba(82,115,151,.16),
    0 0 18px rgba(214,240,255,.19) !important;
  }
}


/* v15 — assignment structure, semantic achievements table, full-card course link, blue glass weeks. */
/* Explicit per-item variables replace former inline style attributes. */
.work-card:nth-child(1) { --card-index: 0; --card-tilt: -1.7deg; --enter-tilt: 2.9deg; }
.work-card:nth-child(2) { --card-index: 1; --card-tilt: 1.35deg; --enter-tilt: -3deg; }
.work-card:nth-child(3) { --card-index: 2; --card-tilt: -1.2deg; --enter-tilt: 2.5deg; }
.work-card:nth-child(4) { --card-index: 3; --card-tilt: 1.05deg; --enter-tilt: -2.6deg; }
.work-card:nth-child(5) { --card-index: 4; --card-tilt: -.8deg; --enter-tilt: 2.1deg; }
.work-card:nth-child(6) { --card-index: 5; --card-tilt: .65deg; --enter-tilt: -2.2deg; }
.course-item:nth-child(1) { --course-order: 0; }
.course-item:nth-child(2) { --course-order: 1; }
.course-item:nth-child(3) { --course-order: 2; }
.course-item:nth-child(4) { --course-order: 3; }
.course-item:nth-child(5) { --course-order: 4; }
.course-item:nth-child(6) { --course-order: 5; }

/* New additional section: use the original kinetic stack for tools/languages. */
#toolbox { position: relative; isolation: isolate; padding-bottom: clamp(44px, 5vw, 72px); }
#toolbox > .section-heading,
#toolbox > .works-stack,
#toolbox > .section-note { position: relative; z-index: 1; }
#toolbox > .works-stack {
  display: flex; flex-direction: column; gap: 0; padding: 16px 2px 26px;
  perspective: 1500px; transform-style: preserve-3d; isolation: isolate;
}
#toolbox .section-heading h2 { color: #292b31; text-shadow: none; }
#toolbox .section-description { color: #70737c; text-shadow: none; }
#toolbox .section-kicker { color: #747782; }
#toolbox .section-note { position: relative; z-index: 2; margin-top: 26px; color: #747780; }
#toolbox .work-card { position: sticky; top: calc(86px + var(--card-index) * 15px); }
#toolbox .work-card--lime { --card-bg: rgba(249,249,246,.66); --card-ink: #292b31; --card-muted: #666a72; --card-mark: rgba(91,103,153,.07); }
#toolbox .work-card--violet { --card-bg: rgba(239,240,243,.62); --card-ink: #292b31; --card-muted: #656972; --card-mark: rgba(91,103,153,.07); }
#toolbox .work-card--lilac { --card-bg: rgba(245,243,247,.60); --card-ink: #292b31; --card-muted: #666873; --card-mark: rgba(100,103,148,.07); }
#toolbox .work-card--paper { --card-bg: rgba(231,234,233,.57); --card-ink: #292b31; --card-muted: #656970; --card-mark: rgba(86,95,126,.065); }
#toolbox .work-card--mist { --card-bg: rgba(247,248,246,.64); --card-ink: #292b31; --card-muted: #666a72; --card-mark: rgba(91,103,153,.07); }
#toolbox .work-card--blue { --card-bg: rgba(224,230,238,.58); --card-ink: #292b31; --card-muted: #626873; --card-mark: rgba(91,103,153,.075); }
@media (max-width: 1050px) { #toolbox .work-card { top: calc(76px + var(--card-index) * 12px); } }
@media (max-width: 720px) { #toolbox .work-card { top: calc(68px + var(--card-index) * 10px); } }

/* Semantic F-03 achievements table: readable light glass, date/category/content/role columns. */
.achievements-section { position: relative; isolation: isolate; }
.achievements-section .section-heading h2 { color: #292b31; text-shadow: none; }
.achievements-section .section-description { color: #6d7079; text-shadow: none; }
#works .section-heading h2 { color: #292b31 !important; text-shadow: none !important; }
#works .section-description, #works .section-note { color: #6d7079 !important; text-shadow: none !important; }
#works .table-shell {
  overflow-x: auto; border: 1px solid rgba(52,57,70,.14); border-radius: 13px;
  background: rgba(255,255,255,.54); box-shadow: 0 18px 42px rgba(45,48,55,.065), inset 0 1px 0 rgba(255,255,255,.93);
  -webkit-backdrop-filter: blur(16px) saturate(108%); backdrop-filter: blur(16px) saturate(108%);
}
#works .works-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
#works .works-table caption.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#works .works-table thead { background: rgba(224,228,239,.35); }
#works .works-table th { padding: 17px 22px; color: #757985; border-bottom: 1px solid rgba(52,57,70,.13); font: 500 10px/1.4 var(--mono); letter-spacing: .12em; white-space: nowrap; }
#works .works-table td { padding: 20px 22px; border-bottom: 1px solid rgba(52,57,70,.09); color: #484b54; font-size: 13px; vertical-align: middle; }
#works .works-table tbody tr { transition: background-color .22s ease; }
#works .works-table tbody tr:hover { background: rgba(124,135,189,.055); }
#works .works-table tbody tr:last-child td { border-bottom: 0; }
#works .works-table time, #works .works-table .date-placeholder { color: #6574ad; font: 11px/1.5 var(--mono); white-space: nowrap; }
#works .works-table .date-placeholder { color: #898c94; }
#works .works-table strong { display: block; margin-bottom: 4px; color: #2c2e35; font-size: 14px; font-weight: 650; }
#works .works-table small { display: block; color: #737680; font-size: 11px; line-height: 1.65; }
#works .type-tag { display: inline-block; padding: 5px 9px; border: 1px solid rgba(102,115,170,.2); border-radius: 999px; background: rgba(220,226,244,.24); color: #59658e; font-size: 10px; white-space: nowrap; }
#works .section-note { margin-top: 15px; color: #777a82; text-shadow: none; }
@media (max-width: 720px) {
  #works .works-table th, #works .works-table td { padding: 16px 14px; }
}

/* Entire Web Programming book-spine is a native link, not just the title/arrow. */
.course-item--d { cursor: pointer; }
.course-card-hit-area { position: absolute; z-index: 8; inset: 0; display: block; border-radius: inherit; color: transparent; background: transparent; text-decoration: none; }
.course-card-hit-area:focus-visible { outline: 3px solid rgba(104,118,177,.75); outline-offset: -6px; }
.course-item--d .course-content { pointer-events: none; }
.course-item.is-open, .course-item:hover { transition-delay: 0s !important; }
/* Visual expansion follows the active class; stale :focus-within must not keep the previously clicked spine open. */
.course-item:hover, .course-item.is-open { flex-grow: 3.2 !important; }
.course-list:has(.course-item:hover) .course-item:not(:hover):not(.is-open),
.course-list:has(.course-item.is-open) .course-item:not(.is-open) { flex-grow: .78 !important; }
@media (max-width: 1050px) {
  .course-item:hover, .course-item.is-open { flex-grow: 3.15 !important; }
}
@media (max-width: 720px) {
  .course-item:hover, .course-item.is-open { flex-basis: 360px !important; width: 360px !important; flex-grow: 0 !important; }
  .course-list:has(.course-item:hover) .course-item:not(:hover):not(.is-open),
  .course-list:has(.course-item.is-open) .course-item:not(.is-open) { flex-basis: 90px !important; flex-grow: 0 !important; }
}

/* Completed lessons use a translucent cool-blue glass; upcoming lessons remain pale neutral glass. */
#class-links .week-card.is-done,
#class-links .week-card.is-done:nth-child(n) {
  color: #263952 !important;
  border-color: rgba(99,133,184,.35) !important;
  background: linear-gradient(142deg, rgba(248,252,255,.86) 0%, rgba(206,224,246,.64) 47%, rgba(158,190,228,.36) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(119,157,205,.12), 0 13px 29px rgba(70,105,151,.11) !important;
  -webkit-backdrop-filter: blur(18px) saturate(118%); backdrop-filter: blur(18px) saturate(118%);
}
#class-links .week-card.is-done::before { background: linear-gradient(225deg, #b5cce7 0 49%, #e2edf9 50% 100%) !important; }
#class-links .week-card.is-done .week-top,
#class-links .week-card.is-done .week-bottom { color: #596f8f !important; border-color: rgba(82,118,167,.22) !important; }
#class-links .week-card.is-done .week-top span:last-child { color: #496b9b !important; background: rgba(244,249,255,.54) !important; border-color: rgba(83,121,176,.24) !important; }
#class-links .week-card.is-done .week-name { color: #263952 !important; }
#class-links .week-card.is-done .week-arrow-mark { color: #5479aa !important; border-color: rgba(83,121,176,.32) !important; background: rgba(247,250,255,.6) !important; }
#class-links .week-card.is-done:hover { background: linear-gradient(142deg, rgba(252,254,255,.94), rgba(213,230,249,.75) 50%, rgba(174,204,238,.46)) !important; border-color: rgba(87,126,182,.48) !important; }

/* No inline style attributes: pointer response is selected by classes defined here. */
.mega-folder.pointer-left { --rot-y: -4.2deg; --move-x: -14px; }
.mega-folder.pointer-center { --rot-y: 0deg; --move-x: 0px; }
.mega-folder.pointer-right { --rot-y: 4.2deg; --move-x: 14px; }
.mega-folder.pointer-top { --rot-x: 2.8deg; --move-y: -10px; }
.mega-folder.pointer-middle { --rot-x: 0deg; --move-y: 0px; }
.mega-folder.pointer-bottom { --rot-x: -2.8deg; --move-y: 10px; }


/* v16 — clickable four-part toolbox, section-wide rhythm, achievement filtering/reveal, and stronger glass weeks. */
:root {
  --section-breathing-room: clamp(104px, 12vh, 156px);
}

/* Use one shared outer gap for each consecutive content section. Keep the stack's own card spacing intact. */
.hero,
#toolbox,
#works,
#courses,
#class-links {
  margin-bottom: var(--section-breathing-room) !important;
}
#toolbox,
#works,
#courses,
#class-links { padding-bottom: 24px !important; }
#courses { margin-top: 0 !important; }
.closing-note { margin-top: 0 !important; margin-bottom: var(--section-breathing-room) !important; }
.site-footer { margin-top: 0 !important; }
@media (max-width: 720px) {
  :root { --section-breathing-room: clamp(72px, 10vh, 104px); }
}

/* Four clickable kinetic glass tiles: Programming Languages / 3D / Game Engines / Other. */
#toolbox > .works-stack { gap: 0 !important; }
#toolbox .work-card { cursor: pointer; isolation: isolate; }
#toolbox .work-card-hit-area {
  position: absolute; z-index: 9; inset: 0; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: inherit; background: transparent; color: transparent;
  cursor: pointer; opacity: 0; appearance: none;
}
#toolbox .work-card-hit-area:focus-visible { opacity: 1; outline: 3px solid rgba(104,118,177,.82); outline-offset: -7px; }
#toolbox .work-card { min-height: clamp(270px, 29vw, 390px); }
#toolbox .work-card-top,
#toolbox .work-card-main,
#toolbox .work-card-role { pointer-events: none; }
#toolbox .work-card .work-card-main h3 { max-width: 17ch; color: #292b31 !important; }
#toolbox .work-card .work-card-main p { color: #646872 !important; }
#toolbox .work-card .work-card-top,
#toolbox .work-card .work-card-role { color: #727681 !important; }
#toolbox .work-card .work-card-number,
#toolbox .work-card .work-card-role b { color: #7582bb !important; }
#toolbox .work-card .pixel-stamp { color: rgba(104,118,177,.54) !important; }
#toolbox .work-card--lime { --card-bg: rgba(250,251,252,.63); --card-ink: #292b31; --card-muted: #686c76; --card-mark: rgba(124,135,189,.075); border-color: rgba(80,88,113,.16); }
#toolbox .work-card--lilac { --card-bg: rgba(240,241,247,.58); --card-ink: #292b31; --card-muted: #666b77; --card-mark: rgba(124,135,189,.07); border-color: rgba(103,115,162,.21); }
#toolbox .work-card--blue { --card-bg: rgba(226,234,244,.57); --card-ink: #292b31; --card-muted: #5f6978; --card-mark: rgba(99,133,184,.08); border-color: rgba(91,125,169,.24); }
#toolbox .work-card--paper { --card-bg: rgba(246,245,241,.61); --card-ink: #292b31; --card-muted: #676a70; --card-mark: rgba(113,118,130,.065); border-color: rgba(75,80,93,.16); }
#toolbox .work-card:hover { box-shadow: 0 27px 58px rgba(45,52,72,.12), inset 0 1px 0 rgba(255,255,255,.9); }

/* Tool-detail dialog remains easy to edit via the four HTML template blocks. */
.tool-detail-dialog {
  width: min(740px, calc(100% - 36px)); max-width: 740px; max-height: min(82svh, 820px);
  padding: 0; overflow: auto; border: 1px solid rgba(75,86,121,.2); border-radius: 22px;
  background: rgba(248,249,251,.91); color: #2e3139;
  box-shadow: 0 34px 100px rgba(37,43,62,.23), inset 0 1px 0 rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(28px) saturate(120%); backdrop-filter: blur(28px) saturate(120%);
}
.tool-detail-dialog::backdrop { background: rgba(37,40,49,.22); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.tool-dialog-panel { padding: clamp(24px, 4.5vw, 44px); }
.tool-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid rgba(59,65,82,.13); }
.tool-dialog-kicker { margin: 0; color: #7b85b4; font: 10px/1.4 var(--mono); letter-spacing: .12em; }
.tool-dialog-close { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid rgba(59,65,82,.16); border-radius: 999px; background: rgba(255,255,255,.62); color: #555b6b; font-size: 12px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.tool-dialog-close span { font-size: 19px; line-height: .8; }
.tool-dialog-close:hover { background: #e7eaf5; transform: translateY(-1px); }
.tool-dialog-panel h3 { margin: 25px 0 8px; color: #282b33; font-size: clamp(27px, 4.6vw, 42px); letter-spacing: -.055em; line-height: 1.12; }
.tool-dialog-intro { margin: 0 0 26px; color: #747883; font-size: 13px; }
.tool-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tool-detail-list li { min-width: 0; padding: 17px 18px 19px; border: 1px solid rgba(74,84,118,.13); border-radius: 13px; background: rgba(255,255,255,.48); }
.tool-detail-list li > span { display: block; margin-bottom: 15px; color: #858ca9; font: 9px/1.4 var(--mono); letter-spacing: .1em; }
.tool-detail-list strong { display: block; margin-bottom: 5px; color: #343741; font-size: 15px; font-weight: 650; }
.tool-detail-list p { margin: 0; color: #7a7e88; font-size: 11px; line-height: 1.7; }
.tool-dialog-footnote { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid rgba(59,65,82,.1); color: #8a8e97; font-size: 10px; }
@media (max-width: 560px) { .tool-detail-list { grid-template-columns: 1fr; } }

/* Filter controls for F-03 categories. */
.achievement-archive-stage {
  transform-origin: 9% 50%; transition: opacity .95s cubic-bezier(.16,1,.3,1), transform 1.12s cubic-bezier(.16,1,.3,1);
}
.js-enabled .achievement-archive-stage { opacity: .42; transform: translate3d(0, 52px, 0) rotate(-1.15deg); }
.js-enabled .achievement-archive-stage.is-revealed { opacity: 1; transform: translate3d(0,0,0) rotate(0); }
.works-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: 0 0 17px; }
.works-filter-label { color: #858995; font: 9px/1.4 var(--mono); letter-spacing: .14em; white-space: nowrap; }
.works-filter-buttons { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 7px; }
.works-filter-button { min-height: 34px; padding: 7px 14px; border: 1px solid rgba(68,74,94,.13); border-radius: 999px; background: rgba(255,255,255,.42); color: #737783; font-size: 11px; line-height: 1.2; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.works-filter-button:hover { border-color: rgba(124,135,189,.38); color: #4e587f; transform: translateY(-1px); }
.works-filter-button.is-selected { border-color: rgba(124,135,189,.28); background: rgba(222,228,246,.69); color: #4e5c91; box-shadow: inset 0 1px rgba(255,255,255,.85); }
.works-filter-count { margin-left: auto; color: #858995; font: 9px/1.4 var(--mono); letter-spacing: .07em; white-space: nowrap; }
#works .works-table tr[hidden] { display: none !important; }
#works .filter-empty-row td { padding: 32px 20px; color: #818590; text-align: center; }
@media (max-width: 680px) {
  .works-filter-bar { align-items: flex-start; }
  .works-filter-buttons { order: 3; flex-basis: 100%; }
  .works-filter-count { margin-left: auto; }
  .works-filter-button { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-enabled .achievement-archive-stage,
  .js-enabled .achievement-archive-stage.is-revealed { opacity: 1; transform: none; transition: none; }
}

/* Repair every legacy selector that let :focus-within prevent the currently hovered book from expanding. */
#courses .course-list .course-item { z-index: 1; flex: 1 1 0% !important; }
#courses .course-list:has(.course-item:hover) .course-item:not(:hover):not(.is-open),
#courses .course-list:has(.course-item.is-open) .course-item:not(.is-open):not(:hover):not(:focus-within) {
  flex: .68 1 0% !important; filter: blur(.28px); opacity: .78;
}
#courses .course-list:has(.course-item:hover) .course-item:hover,
#courses .course-list:has(.course-item.is-open) .course-item.is-open,
#courses .course-list .course-item:hover,
#courses .course-list .course-item.is-open {
  flex: 3.35 1 0% !important; z-index: 30; filter: none; opacity: 1;
}
#courses .course-list .course-item--d .course-card-hit-area { z-index: 8; }
#courses .course-list .course-item--d:focus-within,
#courses .course-list .course-item--d:hover { cursor: pointer; }
@media (max-width: 720px) {
  #courses .course-list:has(.course-item:hover) .course-item:not(:hover):not(.is-open),
  #courses .course-list:has(.course-item.is-open) .course-item:not(.is-open):not(:hover):not(:focus-within) {
    flex: 0 0 90px !important; filter: blur(.28px); opacity: .78;
  }
  #courses .course-list:has(.course-item:hover) .course-item:hover,
  #courses .course-list:has(.course-item.is-open) .course-item.is-open,
  #courses .course-list .course-item:hover,
  #courses .course-list .course-item.is-open { flex: 0 0 360px !important; width: 360px !important; z-index: 30; filter: none; opacity: 1; }
}

/* Completed practice is translucent blue glass; upcoming cards remain neutral glass. */
#class-links .week-carousel .week-card.is-done,
#class-links .week-carousel .week-card.is-done:nth-child(n) {
  background: linear-gradient(143deg, rgba(250,253,255,.58) 0%, rgba(203,222,245,.43) 49%, rgba(153,190,232,.25) 100%) !important;
  border-color: rgba(92,129,181,.3) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(102,147,203,.1), 0 13px 28px rgba(70,105,151,.075) !important;
  -webkit-backdrop-filter: blur(22px) saturate(118%) !important;
  backdrop-filter: blur(22px) saturate(118%) !important;
}
#class-links .week-carousel .week-card.is-upcoming,
#class-links .week-carousel .week-card.is-upcoming:nth-child(n) {
  background: linear-gradient(143deg, rgba(255,255,255,.48), rgba(238,240,244,.36)) !important;
  border-color: rgba(80,85,103,.14) !important;
  -webkit-backdrop-filter: blur(22px) saturate(105%) !important;
  backdrop-filter: blur(22px) saturate(105%) !important;
  opacity: .84 !important;
}


/* v17 — smooth in-place toolbox expansion and scroll-position-driven archive movement. */
#toolbox .works-stack {
  perspective: 1500px;
  transform-style: preserve-3d;
  transition: gap 1s cubic-bezier(.22, 1, .36, 1);
}
#toolbox .work-card {
  height: clamp(330px, 31vw, 405px);
  min-height: 0 !important;
  gap: 22px 30px;
  transition:
    height 1.05s cubic-bezier(.22, 1, .36, 1),
    min-height 1.05s cubic-bezier(.22, 1, .36, 1),
    opacity 1.05s cubic-bezier(.22, 1, .36, 1),
    transform 1.2s cubic-bezier(.22, 1, .36, 1),
    box-shadow .7s cubic-bezier(.22, 1, .36, 1),
    border-color .7s ease,
    margin 1.05s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, height;
}
#toolbox .work-card-hit-area { z-index: 9; }
#toolbox .work-card.is-expanded {
  height: clamp(555px, 46vw, 650px);
  z-index: 100 !important;
  transform: translate3d(0, -2px, 0) rotate(0deg) scale(1.005) !important;
  border-color: rgba(124, 139, 194, .48);
  box-shadow: 0 30px 72px rgba(50, 59, 88, .16), inset 0 1px 0 rgba(255,255,255,.98);
}
/* When a card is open, release the stack so the expanded panel and the other cards remain usable. */
#toolbox .works-stack.has-expanded-card { gap: 14px !important; }
#toolbox .works-stack.has-expanded-card .work-card {
  position: relative !important;
  top: auto !important;
  margin: 0 !important;
  transform: none;
}
#toolbox .works-stack.has-expanded-card .work-card:not(.is-expanded) {
  height: 100px;
  min-height: 100px !important;
  overflow: hidden;
  opacity: .76;
}
#toolbox .works-stack.has-expanded-card .work-card:not(.is-expanded) .work-card-main,
#toolbox .works-stack.has-expanded-card .work-card:not(.is-expanded) .work-card-role {
  opacity: 0;
  transform: translateY(10px);
}
#toolbox .work-card-main,
#toolbox .work-card-role {
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
#toolbox .tool-inline-details {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-width: 0;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(74, 82, 112, .15);
  color: #454955;
  opacity: 1;
  transform: translateY(0);
  animation: toolDetailsEaseIn .85s cubic-bezier(.22, 1, .36, 1) both;
}
#toolbox .tool-inline-details[hidden] { display: none !important; }
#toolbox .tool-inline-details .tool-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#toolbox .tool-inline-details .tool-detail-list li {
  border-color: rgba(88, 99, 135, .15);
  background: rgba(255,255,255,.42);
  border-radius: 12px;
  transition: background .55s ease, border-color .55s ease, transform .75s cubic-bezier(.22,1,.36,1);
}
#toolbox .tool-inline-details .tool-detail-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(124,139,194,.34);
  background: rgba(255,255,255,.68);
}
@keyframes toolDetailsEaseIn {
  from { opacity: 0; transform: translateY(22px); clip-path: inset(0 0 18% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}

/* Archive table follows scroll position rather than revealing only once. */
.achievement-archive-stage {
  transform-origin: 8% 56%;
  will-change: transform, opacity, filter;
  transition:
    transform 1.25s cubic-bezier(.22, 1, .36, 1),
    opacity 1s cubic-bezier(.22, 1, .36, 1),
    filter 1s cubic-bezier(.22, 1, .36, 1);
}
.js-enabled .achievement-archive-stage[data-archive-state="entering"] {
  opacity: .5;
  filter: blur(.7px);
  transform: translate3d(-2.6vw, 52px, 0) rotate(-4.2deg) scale(.965);
}
.js-enabled .achievement-archive-stage[data-archive-state="settled"] {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}
.js-enabled .achievement-archive-stage[data-archive-state="exiting"] {
  opacity: .46;
  filter: blur(.8px);
  transform: translate3d(2.2vw, -44px, 0) rotate(3.2deg) scale(.975);
}
@media (max-width: 720px) {
  #toolbox .work-card { height: 330px; }
  #toolbox .work-card.is-expanded { height: 610px; }
  #toolbox .works-stack.has-expanded-card .work-card:not(.is-expanded) { height: 86px; min-height: 86px !important; }
  #toolbox .work-card.is-expanded .tool-inline-details .tool-detail-list { grid-template-columns: 1fr; }
  .js-enabled .achievement-archive-stage[data-archive-state="entering"] { transform: translate3d(-3vw, 36px, 0) rotate(-3deg) scale(.975); }
  .js-enabled .achievement-archive-stage[data-archive-state="exiting"] { transform: translate3d(2vw, -32px, 0) rotate(2.5deg) scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  #toolbox .work-card, #toolbox .tool-inline-details, .achievement-archive-stage {
    transition: none !important;
    animation: none !important;
  }
  .js-enabled .achievement-archive-stage[data-archive-state] { opacity: 1; filter: none; transform: none; }
}

/* v18 performance pass: preserve art direction while reducing paint-heavy effects. */
/* Continuous visual polish should run on the compositor, not force repeated blur/shadow paints. */
.mac-header {
  -webkit-backdrop-filter: blur(13px) saturate(112%) !important;
  backdrop-filter: blur(13px) saturate(112%) !important;
}
#toolbox .work-card {
  -webkit-backdrop-filter: blur(8px) saturate(106%) !important;
  backdrop-filter: blur(8px) saturate(106%) !important;
  transition:
    height .72s cubic-bezier(.22, 1, .36, 1),
    opacity .42s cubic-bezier(.22, 1, .36, 1),
    transform .72s cubic-bezier(.22, 1, .36, 1),
    border-color .24s ease !important;
  transition-delay: 0s !important;
  will-change: transform;
}
#toolbox .works-stack { transition: none !important; }
#toolbox .work-card:hover { box-shadow: 0 23px 43px rgba(45,48,55,.12), inset 0 1px 0 rgba(255,255,255,.9); }
#toolbox .tool-inline-details { animation-duration: .48s !important; }
@keyframes toolDetailsEaseIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
#works .table-shell {
  -webkit-backdrop-filter: blur(8px) saturate(106%) !important;
  backdrop-filter: blur(8px) saturate(106%) !important;
}
#class-links .week-carousel .week-card:nth-child(n) {
  -webkit-backdrop-filter: blur(8px) saturate(104%) !important;
  backdrop-filter: blur(8px) saturate(104%) !important;
}
.achievement-archive-stage {
  will-change: transform, opacity;
  transition: transform .62s cubic-bezier(.22, 1, .36, 1), opacity .48s ease !important;
  filter: none !important;
}
.js-enabled .achievement-archive-stage[data-archive-state="entering"] { filter: none !important; }
.js-enabled .achievement-archive-stage[data-archive-state="settled"] { filter: none !important; }
.js-enabled .achievement-archive-stage[data-archive-state="exiting"] { filter: none !important; }
.works-glass-canvas { filter: none !important; }
.works-3d-stage, .works-3d-stage.is-in-view { transition: opacity .42s ease, transform .5s cubic-bezier(.22,1,.36,1) !important; }
/* Avoid a full-screen blur pass on moving course cards; opacity still gives depth separation. */
#courses .course-list:has(.course-item.is-open) .course-item:not(:focus-within),
#courses .course-list:has(.course-item.is-open) .course-item:not(.is-open) { filter: none !important; }
#courses .course-item { transition-duration: .48s !important; }
#courses .course-glyph { transition-duration: .35s !important; }
.week-carousel[data-layout="carousel"] .week-card { transition: transform .24s ease, border-color .22s ease, background-color .22s ease !important; }
.week-carousel[data-layout="carousel"] .week-card.is-active .week-name { animation-duration: .42s !important; }
@keyframes week-title-arrive {
  from { opacity: .45; transform: translate3d(0, 7px, 0) rotate(-.8deg); }
  72% { opacity: 1; transform: translate3d(0, -1px, 0) rotate(.15deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}
/* Remove continuous per-glyph stepping; the translucent 3D wordmark stays intact and crisp. */
.hero-title .title-glyph,
.hero-title .title-period {
  animation: none !important;
  will-change: auto !important;
}
.course-kicker-mark { animation: none !important; }
@media (max-width: 720px) {
  #toolbox .work-card { -webkit-backdrop-filter: blur(6px) saturate(104%) !important; backdrop-filter: blur(6px) saturate(104%) !important; }
  #works .table-shell { -webkit-backdrop-filter: blur(5px) saturate(104%) !important; backdrop-filter: blur(5px) saturate(104%) !important; }
}
@media (prefers-reduced-motion: reduce) {
  #toolbox .work-card, #toolbox .tool-inline-details, .achievement-archive-stage,
  #courses .course-item, .week-carousel[data-layout="carousel"] .week-card { transition: none !important; animation: none !important; }
}


/* v19 — snappier, spring-loaded interactions with fewer costly paint effects. */
:root {
  --jelix-spring: cubic-bezier(.34, 1.42, .58, 1);
  --jelix-settle: cubic-bezier(.2, .82, .2, 1);
}

/* Toolbox cards: shorten the layout transition and give it a small elastic landing. */
#toolbox .work-card {
  -webkit-backdrop-filter: blur(4px) saturate(105%) !important;
  backdrop-filter: blur(4px) saturate(105%) !important;
  transition:
    height .46s var(--jelix-spring),
    min-height .46s var(--jelix-spring),
    transform .46s var(--jelix-spring),
    opacity .2s ease-out,
    border-color .22s ease,
    box-shadow .22s ease !important;
  transition-delay: 0s !important;
  will-change: height, transform;
  backface-visibility: hidden;
}
#toolbox .work-card.is-expanded {
  transform: translate3d(0, -3px, 0) scale(1.012) !important;
  transition-timing-function: var(--jelix-spring) !important;
}
#toolbox .works-stack.has-expanded-card .work-card:not(.is-expanded) {
  transition-duration: .42s !important;
  transition-timing-function: var(--jelix-spring) !important;
}
#toolbox .works-stack.has-expanded-card .work-card { transition-delay: 0s !important; }
#toolbox .work-card-main,
#toolbox .work-card-role {
  transition: opacity .22s ease-out, transform .32s var(--jelix-spring) !important;
  transition-delay: 0s !important;
}
#toolbox .tool-inline-details {
  animation: toolDetailsPop .32s var(--jelix-spring) both !important;
}
@keyframes toolDetailsPop {
  0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(.985); }
  76% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.003); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Course book, title, and metadata now share the same spring timing to avoid staggered expansion. */
#courses .course-item {
  -webkit-backdrop-filter: blur(4px) saturate(104%) !important;
  backdrop-filter: blur(4px) saturate(104%) !important;
  transition:
    flex .5s var(--jelix-spring),
    transform .5s var(--jelix-spring),
    border-color .22s ease,
    background .22s ease,
    box-shadow .24s ease,
    opacity .18s ease-out !important;
  transition-delay: 0s !important;
  will-change: flex, transform;
  filter: none !important;
}
#courses .course-list:has(.course-item:hover) .course-item:not(:hover):not(.is-open),
#courses .course-list:has(.course-item.is-open) .course-item:not(.is-open):not(:hover):not(:focus-within) {
  filter: none !important;
  transition-delay: 0s !important;
}
#courses .course-name {
  transition:
    transform .5s var(--jelix-spring),
    bottom .5s var(--jelix-spring),
    width .5s var(--jelix-spring),
    max-width .5s var(--jelix-spring),
    font-size .5s var(--jelix-spring),
    color .18s ease-out,
    letter-spacing .28s ease-out !important;
  transition-delay: 0s !important;
  will-change: transform;
}
#courses .course-item:hover .course-name,
#courses .course-item.is-open .course-name,
#courses .course-item:hover .course-meta,
#courses .course-item.is-open .course-meta,
#courses .course-item:hover .course-note,
#courses .course-item.is-open .course-note,
#courses .course-item:hover .course-end-mark,
#courses .course-item.is-open .course-end-mark {
  transition-delay: 0s !important;
}
#courses .course-meta,
#courses .course-note,
#courses .course-end-mark {
  transition-duration: .24s, .3s !important;
}
.course-motion-ready .course-item.is-revealed {
  transition-delay: calc(var(--course-order) * 32ms) !important;
}
#courses .course-item:hover,
#courses .course-item.is-open { transition-delay: 0s !important; }

/* The archive becomes crisp quickly: no animated blur, a short tilted entrance and exit. */
.achievement-archive-stage {
  will-change: transform, opacity;
  filter: none !important;
  transition: transform .3s var(--jelix-spring), opacity .18s linear !important;
}
.js-enabled .achievement-archive-stage[data-archive-state="entering"] {
  opacity: .82;
  filter: none !important;
  transform: translate3d(-1.3vw, 26px, 0) rotate(-2.8deg) scale(.985);
}
.js-enabled .achievement-archive-stage[data-archive-state="settled"] {
  opacity: 1;
  filter: none !important;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}
.js-enabled .achievement-archive-stage[data-archive-state="exiting"] {
  opacity: .38;
  filter: none !important;
  transform: translate3d(1.2vw, -22px, 0) rotate(2.2deg) scale(.985);
}
#works .table-shell {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Less compositor work while keeping the glass look in the cards and weekly practice tiles. */
#class-links .week-carousel .week-card:nth-child(n) {
  -webkit-backdrop-filter: blur(4px) saturate(103%) !important;
  backdrop-filter: blur(4px) saturate(103%) !important;
}
html.js-enabled #toolbox .work-card {
  transition: opacity .3s ease-out, transform .44s var(--jelix-spring), height .46s var(--jelix-spring), border-color .22s ease, box-shadow .22s ease !important;
}
html.js-enabled #toolbox .work-card.is-revealed {
  transition-delay: calc(var(--card-index) * 35ms), calc(var(--card-index) * 35ms), 0s, 0s, 0s !important;
}
html.js-enabled #toolbox .work-card.is-expanded,
html.js-enabled #toolbox .works-stack.has-expanded-card .work-card {
  transition-delay: 0s !important;
}

@media (max-width: 720px) {
  #toolbox .work-card { -webkit-backdrop-filter: blur(3px) saturate(103%) !important; backdrop-filter: blur(3px) saturate(103%) !important; }
  #courses .course-item { -webkit-backdrop-filter: blur(3px) saturate(103%) !important; backdrop-filter: blur(3px) saturate(103%) !important; }
  #class-links .week-carousel .week-card:nth-child(n) { -webkit-backdrop-filter: blur(3px) saturate(102%) !important; backdrop-filter: blur(3px) saturate(102%) !important; }
  .js-enabled .achievement-archive-stage[data-archive-state="entering"] { transform: translate3d(-2vw, 18px, 0) rotate(-2deg) scale(.99); }
  .js-enabled .achievement-archive-stage[data-archive-state="exiting"] { transform: translate3d(2vw, -16px, 0) rotate(1.7deg) scale(.99); }
}
@media (prefers-reduced-motion: reduce) {
  #toolbox .work-card, #toolbox .tool-inline-details,
  #courses .course-item, #courses .course-name,
  .achievement-archive-stage { transition: none !important; animation: none !important; }
}


/* v20 — prevent browser scroll anchoring jumps while an in-place toolbox card expands/collapses. */
html.tool-scroll-anchor-lock {
  overflow-anchor: none !important;
  scroll-behavior: auto !important;
}
#toolbox,
#toolbox .works-stack,
#toolbox .work-card,
#toolbox .tool-inline-details {
  overflow-anchor: none;
}

/* v21 — light glass mobile navigation to match the current light-gray theme. */
@media (max-width: 720px) {
  .primary-nav {
    background: rgba(249, 249, 247, .94) !important;
    border-color: rgba(82, 91, 126, .19) !important;
    box-shadow: 0 18px 42px rgba(54, 59, 76, .13), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
    -webkit-backdrop-filter: blur(20px) saturate(118%) !important;
    backdrop-filter: blur(20px) saturate(118%) !important;
  }
  .primary-nav a {
    color: #50535e !important;
    background: transparent;
    transition: color .18s ease, background-color .18s ease, padding-left .2s ease !important;
  }
  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    color: #626da7 !important;
    background: rgba(124, 135, 189, .10) !important;
    padding-left: 16px;
    outline: none;
  }
  .primary-nav .github-link {
    color: #454957 !important;
    border-color: rgba(104, 117, 171, .23) !important;
    background: rgba(124, 135, 189, .08) !important;
  }
  .primary-nav .github-link:hover,
  .primary-nav .github-link:focus-visible {
    color: #626da7 !important;
    background: rgba(124, 135, 189, .15) !important;
  }
}


/* v22 — monochrome software/tool marks displayed inside the existing expandable cards. */
#toolbox .tool-inline-details .tool-skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#toolbox .tool-inline-details .tool-skill-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(87, 98, 135, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  color: #59688f;
  transition: border-color .22s ease, background-color .22s ease, transform .32s var(--jelix-spring);
}
#toolbox .tool-inline-details .tool-skill-item:hover {
  transform: translateY(-2px);
  border-color: rgba(105, 121, 174, .34);
  background: rgba(255, 255, 255, .75);
}
#toolbox .tool-skill-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(90, 103, 146, .16);
  border-radius: 12px;
  background: rgba(237, 240, 248, .64);
  color: #6574a2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
#toolbox .tool-skill-icon svg {
  display: block;
  width: 27px;
  height: 27px;
  overflow: visible;
}
#toolbox .tool-skill-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
#toolbox .tool-skill-copy strong {
  display: block;
  margin: 0;
  color: #30343e;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#toolbox .tool-skill-level {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 3px 7px;
  border: 1px solid rgba(93, 107, 153, .16);
  border-radius: 999px;
  background: rgba(227, 232, 245, .62);
  color: #68749a;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}
#toolbox .tool-skill-item[data-level="learning"] .tool-skill-level {
  border-style: dashed;
  background: rgba(245, 242, 234, .72);
  color: #837a67;
}
#toolbox .tool-skill-item[data-level="proficient"] .tool-skill-level {
  background: rgba(224, 231, 245, .8);
  color: #586b9b;
}
#toolbox .tool-skill-item[data-level="available"] .tool-skill-level {
  background: rgba(241, 242, 244, .82);
  color: #6e7380;
}
@media (max-width: 720px) {
  #toolbox .work-card.is-expanded { height: 790px; }
  #toolbox .tool-inline-details .tool-skill-list { grid-template-columns: 1fr; gap: 8px; }
  #toolbox .tool-inline-details .tool-skill-item { min-height: 64px; padding: 9px 12px; }
  #toolbox .tool-skill-icon { flex-basis: 38px; width: 38px; height: 38px; }
  #toolbox .tool-skill-icon svg { width: 25px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  #toolbox .tool-skill-item { transition: none !important; }
}
