/* Draft-only overrides layered on ../styles.css. Delete this folder once a direction is chosen. */

.topbar { grid-template-columns: 1fr auto; }

/* Homepage: three doors */
.entrances { grid-template-columns: 1fr 1fr; }
/* Teaching sits in the first column of row two; the second slot stays empty for now. */
.entrance { position: relative; overflow: hidden; }
.entrance p { position: relative; z-index: 1; }
.entrance h2, .entrance .text-link, .entrance-number { position: relative; z-index: 1; }
.entrance-teaching { background: var(--surface); }
.soon { width: fit-content; color: var(--muted); font: .68rem/1.5 var(--mono); text-transform: uppercase; }

.door-art { position: absolute; top: 18px; right: 20px; width: 150px; height: 64px; opacity: .9; pointer-events: none; }
.door-art path, .door-art line { fill: none; stroke-linecap: round; }

/* Research door: two diverging lines */
.line-up { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.6s .3s ease-out forwards; }
.line-down { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.6s .5s ease-out forwards; }
.axis { stroke: #b9b39c; stroke-width: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Projects door: two decks crossfading */
.bars { display: flex; align-items: center; gap: 3px; height: 64px; }
.bars span { width: 4px; border-radius: 2px; background: var(--ink); animation: pulse 1.05s ease-in-out infinite; transform-origin: center; }
.bars span.in { background: var(--accent); }
@keyframes pulse { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* Projects page */
.lede { font: italic clamp(1.25rem, 2vw, 1.5rem)/1.3 var(--display); color: var(--ink); margin: 0 0 12px; letter-spacing: -.01em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 24px 0 18px; }
.feature-card { min-height: 280px; padding: 26px 27px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); text-decoration: none; transition: transform .15s, border-color .15s; }
.feature-card:nth-child(1) { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.feature-card:nth-child(1) small, .feature-card:nth-child(1) .project-card-link { color: #e2c976; }
.feature-card:nth-child(1) p { color: #d9dccf; }
.feature-card:nth-child(1) .lede { color: var(--surface); }
.feature-card:nth-child(2) { background: #e0e9df; }
.feature-card:nth-child(3) { background: #efe3bd; }
.feature-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.feature-card:focus-visible, .tool-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.feature-card small { color: var(--accent); font: .62rem/1.4 var(--mono); text-transform: uppercase; }
.feature-card h2 { margin: 22px 0 12px; font: normal clamp(2.2rem, 3.4vw, 3.1rem)/1 var(--display); letter-spacing: -.045em; }
.feature-card p { margin: 0; max-width: 470px; color: var(--muted); font-size: .95rem; }
.lock { display: inline-block; margin-right: 6px; }

.tools { padding: 18px 0 72px; }
.tools h3 { margin: 0 0 10px; font: .67rem/1 var(--mono); text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.tool-row { display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; align-items: baseline; padding: 18px 4px; border-top: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.tool-row:last-child { border-bottom: 1px solid var(--line); }
.tool-row:hover { background: var(--surface); }
.tool-row strong { font: normal 1.45rem/1.1 var(--display); letter-spacing: -.03em; }
.tool-row span { color: var(--muted); font-size: .93rem; }
.tool-row em { font-style: normal; color: var(--accent); font: .62rem/1.4 var(--mono); text-transform: uppercase; white-space: nowrap; }

@media (max-width: 1000px) {
  .entrances { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .entrances, .feature-grid { grid-template-columns: 1fr; }
  .door-art { width: 110px; height: 48px; }
  .tool-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .bars span, .line-up, .line-down { animation: none; stroke-dashoffset: 0; }
}

/* Keep each section label and its title together. */
.entrance-number { margin-bottom: 14px; }
.feature-card .lede { margin-bottom: 10px; }
.gate-form button { cursor: pointer; }

/* Teaching page */
.course { padding: 34px 0 10px; border-top: 1px solid var(--line); margin-top: 26px; }
.course-head h2 { margin: 12px 0 22px; font: normal clamp(2.2rem, 4vw, 3.3rem)/1 var(--display); letter-spacing: -.045em; }
.course-head h2 span { color: var(--muted); font-style: italic; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 2fr; gap: 14px; align-items: start; }
.video-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 60px; }
.video-card { margin: 0; }
.video-card video, .video-card img { display: block; width: 100%; border-radius: 6px; background: var(--ink); object-fit: cover; }
.video-card.portrait video { aspect-ratio: 9 / 16; }
.video-card.landscape img { aspect-ratio: 16 / 9; }
.video-card.pending img { filter: saturate(.6); opacity: .85; }
.video-card figcaption { margin-top: 10px; font: normal 1.05rem/1.25 var(--display); letter-spacing: -.01em; }
.video-card figcaption small { display: block; margin-bottom: 4px; color: var(--accent); font: .6rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 1000px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid .landscape { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .video-grid.two { grid-template-columns: 1fr; }
}

/* Course codes: normal tracking and lining (full-height) numbers. Georgia only has
   old-style figures, so these fall back to Charter/Iowan, which have lining ones. */
.course-head h2 { font-family: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.01em; font-variant-numeric: lining-nums; }

/* Fullscreen: show the whole frame in its real orientation (portrait stays portrait). */
.video-card video:fullscreen { object-fit: contain; background: #000; aspect-ratio: auto; border-radius: 0; }
.video-card video:-webkit-full-screen { object-fit: contain; background: #000; aspect-ratio: auto; border-radius: 0; }

/* Menu rows: number, name and tag share one baseline. */
.site-menu a { align-items: baseline; }
.site-menu span, .site-menu small { line-height: 1; }

/* Soft shadow: the hard offset one merged into the dark hero and looked broken. */
.site-menu { box-shadow: 0 18px 40px rgba(25, 53, 46, .22), 0 2px 6px rgba(25, 53, 46, .12); border-color: var(--line); border-radius: 4px; overflow: hidden; }

/* YouTube cards: our thumbnail + play button; the iframe replaces it on click. */
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--ink); cursor: pointer; aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt:hover img { transform: scale(1.02); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(20,17,14,.82); transition: background .15s; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: #c4302b; }
.yt:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }
