/* Version B home, scoped so the established project detail pages keep their styling. */
html { scroll-behavior: auto; }
body.version-b-home { background: #080706; color: #f5eee4; }
.version-b-home main { overflow: visible; }
.version-b-home main > section { position: relative; z-index: 2; }
.version-b-home section[id] { scroll-margin-top: calc(var(--nav-height, 72px) + 16px); }
.version-b-home .nav a[aria-current="location"] { color: #d8ba86; }
.version-b-home .nav .b-chapter-link { position: relative; }
.b-chapter-progress { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(216,186,134,.22); pointer-events: none; }
.b-chapter-progress span { display: block; width: 100%; height: 100%; background: #d8ba86; transform: scaleX(0); transform-origin: left center; }
.b-chapter-link:not([aria-current="location"]) .b-chapter-progress span { opacity: .4; }
.b-ai-trade-transition { position: relative; z-index: 2; isolation: isolate; }
.b-ai-trade-transition::after { content: ""; display: block; height: clamp(140px, 22svh, 260px); background: #090807; }
.b-ai-trade-transition > .b-ai { position: sticky; top: var(--b-ai-sticky-top, var(--nav-height, 62px)); z-index: 1; min-height: calc(100svh - var(--nav-height, 62px)); }
.b-ai-trade-transition > .b-trade { position: sticky; top: var(--nav-height, 62px); z-index: 2; border-top: 1px solid rgba(216,186,134,.32); box-shadow: 0 -14px 30px rgba(0,0,0,.22); }
@media (max-width: 760px), (max-height: 620px) {
  .b-ai-trade-transition::after { display: none; }
  .b-ai-trade-transition > .b-ai { position: relative; top: auto; margin-bottom: 0; }
  .b-ai-trade-transition > .b-trade { position: relative; top: auto; border-top: 0; box-shadow: none; }
}
@media (max-width: 760px) {
  .version-b-home .nav .b-chapter-progress { right: 11px; bottom: 2px; left: 11px; }
}
.b-wrap { width: min(100% - 8vw, 1320px); margin-inline: auto; }
.b-kicker { margin: 0 0 16px; color: #d8ba86; font-size: 14px; font-weight: 600; letter-spacing: .12em; }
.b-section { padding: clamp(76px, 8vw, 130px) 0; }
.b-section h2 { margin: 0; color: #f7f0e7; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(42px, 4.7vw, 68px); font-weight: 600; line-height: 1.15; }
.b-lead { max-width: 820px; margin: 20px 0 0; color: #dfd2c0; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.7; }
.b-opening-story { position: relative; height: calc(200svh - var(--nav-height, 62px) - var(--nav-height, 62px) + clamp(200px, 38svh, 460px)); isolation: isolate; background: #15100c; }
.b-opening-stage { position: sticky; top: var(--nav-height, 62px); height: calc(100svh - var(--nav-height, 62px)); overflow: hidden; isolation: isolate; }
.b-opening-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.b-cover { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-start; overflow: hidden; }
.b-cover-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.b-opening-story:has(.b-directory.is-active) { background-color: #15100c; background-image: none; }
.b-opening-story:has(.b-directory.is-active) .directory-background-video {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  pointer-events: none;
}
.b-cover-content, .b-cover-signature, .b-cover-cue { opacity: var(--b-cover-copy-opacity, 1); }
.b-cover-mobile-copy { display: none; }
.b-opening-story.is-cover-copy-hidden .b-cover-content, .b-opening-story.is-cover-copy-hidden .b-cover-signature, .b-opening-story.is-cover-copy-hidden .b-cover-cue { visibility: hidden; }
.b-cover-content { position: relative; z-index: 1; width: min(60vw, 790px); margin: clamp(68px, 8vh, 112px) 0 0 max(5vw, calc((100vw - 1320px) / 2)); }
.b-cover-question { margin: 0; color: #f5ebdd; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(29px, 2.55vw, 39px); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.b-cover-question span { color: #e7bb7a; }
.b-cover-rule { display: block; width: 60px; height: 1px; margin: 22px 0 52px; background: #e7bb7a; }
.b-cover-answer { display: flex; align-items: center; gap: 16px; margin: 0; white-space: nowrap; }
.b-cover-answer-label { flex: none; padding: 9px 13px; border: 1px solid rgba(231,187,122,.78); border-radius: 8px; color: #f5ebdd; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
.b-cover-answer-main { position: relative; color: #e7bb7a; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(72px, 7.2vw, 110px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-shadow: 0 1px 8px rgba(231,187,122,.12); }
.b-cover-answer-main svg { position: absolute; bottom: -14px; left: 0; width: 100%; height: 20px; overflow: visible; }
.b-cover-answer-main path { fill: none; stroke: rgba(231,187,122,.88); stroke-width: 2; stroke-linecap: round; }
.b-cover-signature { position: absolute; top: clamp(72px, 11%, 126px); right: clamp(36px, 7vw, 116px); display: grid; color: #ddb77d; font-family: "Snell Roundhand", "Apple Chancery", cursive; font-size: clamp(28px, 3vw, 46px); font-style: italic; line-height: .95; transform: rotate(-5deg); }
.b-cover-signature span:last-child { padding-left: 22px; }
.b-cover-signature::after { content: ""; height: 1px; margin-top: 14px; background: #ddb77d; transform: rotate(-5deg); }
.b-cover-cue { position: absolute; right: 6%; bottom: 8%; display: grid; gap: 8px; color: #d8ba86; font-size: 13px; letter-spacing: .12em; text-align: center; }
.b-cover-cue::after { content: "↓"; font-size: 24px; }
.b-directory { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; min-height: 0; background: #15100c url("assets/directory-still-4_5.jpg") center / cover no-repeat; opacity: var(--b-directory-copy-opacity, 0); pointer-events: none; }
.b-directory.is-active { pointer-events: auto; }
.b-directory .b-wrap { opacity: 1; }
.b-directory .b-wrap { width: min(100% - 8vw, 1320px); transform: translateY(-47px); }
.b-directory h2 { width: min(100%, 408px); margin-left: auto; margin-right: clamp(90px, 9vw, 150px); }
.b-directory-grid { display: grid; width: 560px; max-width: 100%; grid-template-columns: repeat(2, minmax(0, 270px)); column-gap: 20px; row-gap: 16px; margin-top: clamp(30px, 4vw, 52px); margin-left: auto; margin-right: max(0px, calc(clamp(90px, 9vw, 150px) - 76px)); transform: translateY(-25px); }
.b-directory-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; width: 100%; height: 90px; padding: 14px 19px; border: 1px solid rgba(216,186,134,.32); border-radius: 16px; color: #d8ba86; background: rgba(13,10,8,.72); text-decoration: none; transition: border-color .2s ease; }
.b-directory-card:hover, .b-directory-card:focus-visible { border-color: rgba(231,187,122,.8); }
.b-directory-title { color: #d8ba86; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.3; white-space: nowrap; }
.b-directory-arrow { color: #d8ba86; font-size: 23px; line-height: 1; transition: transform .2s ease; }
.b-directory-card:hover .b-directory-arrow, .b-directory-card:focus-visible .b-directory-arrow { transform: translate(2px, -2px); }
.b-chapter-hold { position: relative; z-index: 2; isolation: isolate; }
.b-chapter-hold::after { content: ""; display: block; height: clamp(130px, 18svh, 220px); background: #110d0a; }
.b-chapter-hold--comprehensive::after { background: #080706; }
.b-chapter-hold > .b-section { position: sticky; top: var(--nav-height, 62px); z-index: 1; }
@media (max-width: 760px), (max-height: 620px) {
  .b-chapter-hold::after { display: none; }
  .b-chapter-hold > .b-section { position: relative; top: auto; }
}
.b-ai { margin-bottom: clamp(130px, 22svh, 200px); padding-top: clamp(46px, 5vw, 72px); padding-bottom: clamp(55px, 5.5vw, 80px); background: radial-gradient(circle at 82% 20%, rgba(166, 114, 60, .16), transparent 36%), linear-gradient(to bottom, #15100c, #0a0908 72%); }
.b-ai-title-line { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.b-ai-title-line .b-lead, .b-trade-heading-line p { max-width: 650px; margin: 0; color: #bdb5aa; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; text-align: right; }
.b-ai .b-ai-title-line h2, .b-internships h2, .b-comprehensive h2 { color: #d8ba86; font-size: clamp(37px, 4vw, 58px); }
.b-ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: clamp(18px, 2.2vw, 30px); }
.b-ai-card { display: block; min-width: 0; overflow: hidden; border: 1px solid rgba(216,186,134,.35); border-radius: 18px; color: inherit; background: rgba(7, 7, 7, .72); text-decoration: none; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.b-ai-card:hover, .b-ai-card:focus-visible { transform: translateY(-4px); border-color: rgba(231,187,122,.85); background: #13100d; }
.b-ai-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 27px 18px; }
.b-ai-card h3 { margin: 0; color: #f7f0e7; font-size: clamp(23px, 2.1vw, 31px); font-weight: 600; }
.b-ai-card-action { display: inline-flex; flex: none; align-items: center; gap: 10px; color: #d8ba86; }
.b-ai-card-hint { font-size: 13px; font-weight: 500; white-space: nowrap; }
.b-ai-card-arrow { color: #d8ba86; font-size: 28px; line-height: 1; }
.b-logo-viewport { overflow: hidden; margin-bottom: 21px; border-block: 1px solid rgba(216,186,134,.14); background: rgba(216,186,134,.055); }
.b-ai-card .b-logo-viewport { margin: 0; }
.b-ai-card .b-ai-video-frame { margin-bottom: 21px; }
.b-logo-track { display: flex; width: max-content; animation: b-logo-scroll 26s linear infinite; }
.b-logo-viewport:hover .b-logo-track { animation-play-state: paused; }
.b-logo-viewport:not(.is-visible) .b-logo-track { animation-play-state: paused; }
.b-logo-group { display: flex; flex: none; align-items: center; gap: 30px; padding: 13px 15px; }
.b-logo { display: inline-flex; flex: none; align-items: center; gap: 8px; color: #e7dfd2; font-size: 13px; white-space: nowrap; }
.b-logo img, .b-logo-mark { display: inline-grid; place-items: center; width: 27px; height: 27px; flex: none; object-fit: contain; border-radius: 5px; }
.b-logo--workbuddy img { width: 27px; height: 27px; object-fit: cover; object-position: left center; }
.b-logo img[src$="openai.svg"] { filter: brightness(0) invert(1); }
.b-logo-mark { border: 1px solid rgba(216,186,134,.48); color: #e1c08a; font-size: 16px; font-weight: 700; }
.b-logo-mark--libtv { background: #eeeae2; border-color: #eeeae2; color: #151515; font-size: 9px; font-weight: 800; letter-spacing: -.06em; }
.b-logo-mark--canvas { border: 0; color: #c8c1b6; font-size: 32px; font-weight: 400; }
.b-logo-mark--canvas { transform: translateY(-2px); line-height: 1; }
@keyframes b-logo-scroll { to { transform: translate3d(-50%, 0, 0); } }
.b-ai-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 0 21px 21px; border-radius: 12px; background: #17130f center / cover no-repeat; }
.b-ai-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.b-ai-video-frame video.is-ready { opacity: 1; }
.b-trade { padding-block: clamp(66px, 6vw, 96px); background: linear-gradient(135deg, #21180f, #100d0a 58%, #090807); }
.b-trade-heading-line { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.b-trade .b-trade-heading-line h2 { flex: none; color: #d8ba86; font-size: clamp(37px, 4vw, 58px); }
.b-trade-identity { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 0 25px; border-bottom: 1px solid rgba(243,238,231,.16); }
.b-trade-highlights { display: flex; align-items: center; min-width: 0; gap: clamp(20px, 2.5vw, 36px); }
.b-trade-highlights strong { color: #f3eee7; font-family: "Songti SC", "STSong", serif; font-size: clamp(38px, 3.1vw, 48px); font-weight: 600; line-height: 1.15; }
.b-trade-highlights p { display: flex; gap: clamp(14px, 1.6vw, 24px); margin: 0; color: #d6b782; font-size: clamp(19px, 1.65vw, 24px); font-weight: 600; line-height: 1.4; white-space: nowrap; }
.b-trade-education { display: flex; flex: none; align-items: center; gap: 14px; color: #bdb5aa; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.5; text-align: right; white-space: nowrap; }
.b-photo-rows { display: grid; min-width: 0; }
.b-photo-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); column-gap: clamp(18px, 1.8vw, 26px); align-items: center; min-width: 0; padding: 26px 0; border-bottom: 1px solid rgba(243,238,231,.13); }
.b-photo-row:last-child { border-bottom: 0; padding-bottom: 0; }
.b-photo-copy { min-width: 0; }
.b-photo-copy h3 { margin: 0 0 15px; color: #f3eee7; font-size: 26px; font-weight: 600; }
.b-photo-copy > p { margin-left: 28px; }
.b-photo-copy p { margin-top: 0; margin-bottom: 9px; color: #bdb5aa; font-size: 15px; line-height: 1.7; }
.b-photo-copy p:last-child { margin-bottom: 0; }
.b-trade-gold { color: #d6b782; font-weight: 600; }
.b-trade-stats { display: grid; gap: 9px; margin-left: 28px; }
.b-trade-stats p { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 16px; margin: 0; }
.b-trade-stats strong { color: #d6b782; font-size: 24px; line-height: 1.15; }
.b-photo-strip { min-width: 0; overflow: hidden; overscroll-behavior-inline: contain; }
.b-photo-track { display: flex; width: max-content; }
.b-photo-track.is-loop-ready { animation: b-photo-scroll-right 38s linear infinite; animation-play-state: paused; }
.b-photo-strip.is-visible .b-photo-track.is-loop-ready { animation-play-state: running; }
.b-photo-group { display: flex; flex: none; align-items: center; gap: 11px; padding-right: 11px; }
.b-photo-strip img { display: block; flex: none; width: auto; height: 150px; max-width: none; object-fit: contain; border-radius: 8px; cursor: zoom-in; }
.b-photo-row:nth-child(2) .b-photo-strip img { height: 160px; }
.b-photo-placeholder { display: grid; place-items: center; flex: 0 0 195px; height: 148px; border: 1px dashed rgba(216,186,134,.3); border-radius: 8px; color: #9d8d78; background: rgba(216,186,134,.025); font-size: 13px; }
.b-photo-placeholder--certificate { flex-basis: 115px; }
@keyframes b-photo-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes b-photo-scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.b-internships { background: radial-gradient(circle at 12% 18%, rgba(148,104,56,.14), transparent 38%), #090807; }
.b-internship-row { display: grid; gap: 18px; margin-top: 35px; }
.b-internship-row + .b-internship-row { margin-top: 18px; }
.b-internship-row--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-internship-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-internship-card { min-width: 0; min-height: 230px; padding: clamp(23px, 2.4vw, 33px); border: 1px solid rgba(216,186,134,.3); border-radius: 16px; background: linear-gradient(150deg, #18130e, #0d0b09); transition: border-color .2s ease, transform .2s ease; }
.b-internship-card:hover { border-color: rgba(216,186,134,.7); transform: translateY(-3px); }
.b-internship-company { margin: 0 0 19px; color: #cdbda8; font-size: 14px; line-height: 1.5; }
.b-internship-card h3 { margin: 0 0 20px; color: #e7c18b; font-size: clamp(20px, 1.8vw, 27px); font-weight: 600; line-height: 1.3; }
.b-internship-work { margin: 0; color: #e8ded0; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.7; }
.b-comprehensive { --b-glow-strength: .54; isolation: isolate; overflow: hidden; padding-block: clamp(60px, 5vw, 85px); background: linear-gradient(145deg, #1b140e, #080706 67%); }
.b-comprehensive::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--b-glow-strength); mix-blend-mode: screen; background: radial-gradient(ellipse 36% 29% at 20% 17%, rgba(198,122,58,.38), transparent 75%), radial-gradient(ellipse 42% 42% at 35% 66%, rgba(174,103,49,.19), transparent 78%), radial-gradient(ellipse 35% 37% at 63% 59%, rgba(219,146,77,.13), transparent 74%), radial-gradient(ellipse 40% 45% at 87% 61%, rgba(199,126,68,.15), transparent 79%); animation: b-comprehensive-glow-breathe 9s ease-in-out infinite alternate; }
.b-comprehensive::after { content: ""; position: absolute; top: 26%; left: 48%; z-index: 0; width: 35%; height: 65%; pointer-events: none; opacity: var(--b-glow-strength); mix-blend-mode: screen; background: radial-gradient(ellipse at 30% 60%, rgba(244,166,91,.14), transparent 66%); filter: blur(45px); }
.b-comprehensive > .b-wrap { position: relative; z-index: 1; }
@keyframes b-comprehensive-glow-breathe { from { opacity: calc(var(--b-glow-strength) * .77); } to { opacity: var(--b-glow-strength); } }
.b-ppt-layout { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(0, 1fr); align-items: center; gap: clamp(42px, 5.5vw, 85px); margin-top: clamp(26px, 3vw, 40px); }
.b-ppt-results { min-width: 0; }
.b-ppt-capability-title { margin: 0 0 18px; color: #e3c28f; font-size: clamp(28px, 2.5vw, 38px); font-weight: 600; line-height: 1.3; }
.b-ppt-description { max-width: 440px; margin: 0 0 clamp(30px, 3.2vw, 46px); color: #cdc3b8; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; }
.b-ppt-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.b-ppt-result { min-width: 0; padding-top: 20px; border-top: 1px solid rgba(229,197,154,.28); }
.b-ppt-result p { display: flex; align-items: baseline; gap: 6px; margin: 0 0 11px; color: #d6b782; line-height: 1; white-space: nowrap; }
.b-ppt-result strong { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(40px, 3.2vw, 46px); font-weight: 600; }
.b-ppt-result p span { font-size: clamp(16px, 1.4vw, 20px); }
.b-ppt-result small { display: block; color: #bdb5aa; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.45; }
.b-ppt-preview { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid rgba(216,186,134,.35); border-radius: 16px; color: #e7c18b; background: #080706; box-shadow: 0 0 0 1px rgb(245 179 98 / calc(.32 * var(--b-glow-strength))), 0 0 16px 3px rgb(226 139 64 / calc(.22 * var(--b-glow-strength))), 0 0 55px 7px rgb(203 115 52 / calc(.12 * var(--b-glow-strength))); text-decoration: none; transition: border-color .2s ease; }
.b-ppt-preview::after { content: ""; position: absolute; top: 0; right: 12%; left: 12%; z-index: 1; height: 2px; pointer-events: none; opacity: var(--b-glow-strength); background: linear-gradient(90deg, transparent, rgba(255,224,166,.62), transparent); }
.b-ppt-preview:hover, .b-ppt-preview:focus-visible { border-color: rgba(231,187,122,.85); }
.b-ppt-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #060709; }
.b-ppt-video-frame img, .b-ppt-video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.b-ppt-video-frame video { position: absolute; inset: 0; opacity: 0; background: #060709; transition: opacity .25s ease; }
.b-ppt-video-frame video.is-ready { opacity: 1; }
.b-ppt-preview-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-top: 1px solid rgba(216,186,134,.2); color: #e7c18b; font-size: 14px; }
.b-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.b-work-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 270px; padding: 30px; border: 1px solid rgba(216,186,134,.35); border-radius: 17px; color: #f7f0e7; background: linear-gradient(0deg, rgba(0,0,0,.84), rgba(0,0,0,.1)), var(--work-image) center / cover no-repeat; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.b-work-card:hover, .b-work-card:focus-visible { transform: translateY(-4px); border-color: #d8ba86; }
.b-work-card h3 { margin: 0 0 10px; font-size: clamp(24px, 2.2vw, 32px); }
.b-work-card span { color: #d8ba86; font-size: 14px; }
.version-b-home .contact-section { position: relative; background: #080706; }
@media (max-width: 1050px) { .b-cover-question { white-space: normal; max-width: 62vw; } .b-cover-answer { flex-direction: column; align-items: flex-start; gap: 9px; } .b-cover-answer-main { font-size: clamp(56px, 8vw, 86px); } .b-cover-signature { display: none; } .b-trade-layout { grid-template-columns: minmax(200px, 29%) minmax(0, 1fr); gap: 26px; } .b-photo-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .b-wrap { width: min(100% - 10vw, 600px); } .b-section { padding: 64px 0; } .b-section h2 { font-size: clamp(37px, 9vw, 50px); } .b-cover { min-height: calc(100svh - var(--nav-height, 62px)); aspect-ratio: auto; } .b-cover-video { object-position: center; } .b-cover-content { width: 70vw; margin: 7vw 0 0 5vw; } .b-cover-question { max-width: 72vw; font-size: clamp(16px, 4.3vw, 25px); } .b-cover-rule { width: 45px; margin: 10px 0 15px; } .b-cover-answer { gap: 3px; } .b-cover-answer-label { padding: 3px 6px; font-size: 11px; } .b-cover-answer-main { font-size: clamp(24px, 7.2vw, 43px); } .b-cover-answer-main svg { bottom: -6px; height: 9px; } .b-cover-cue { display: none; } .b-ai-grid, .b-work-grid { grid-template-columns: 1fr; } .b-trade-layout { grid-template-columns: 1fr; margin-top: 32px; } .b-personal { padding-top: 20px; } .b-photo-row { grid-template-columns: minmax(0, 1fr); } .b-photo-placeholder { flex-basis: 46vw; } .b-internship-row--three, .b-internship-row--two { grid-template-columns: 1fr; } .b-internship-card { min-height: 0; } .b-internship-row { margin-top: 22px; } .b-internship-row + .b-internship-row { margin-top: 18px; } .b-work-card { min-height: 230px; } }
@media (max-width: 420px) { .b-cover-question { font-size: 16px; } .b-cover-answer-main { font-size: 27px; } .b-logo-group { gap: 22px; } .b-photo-row { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .b-logo-track { animation: none; } .b-ai-card, .b-work-card, .b-internship-card { transition: none; } }
@media (max-width: 1050px) {
  .b-trade-identity { align-items: flex-start; flex-wrap: wrap; }
  .b-trade-education { margin-left: auto; }
  .b-photo-row { grid-template-columns: minmax(0, 33fr) minmax(0, 67fr); column-gap: 20px; }
}
@media (max-width: 760px) {
  .b-trade-heading-line, .b-trade-identity { flex-direction: column; align-items: stretch; }
  .b-trade-heading-line { gap: 13px; }
  .b-trade-heading-line p { max-width: none; text-align: left; }
  .b-trade-identity { gap: 15px; padding: 27px 0 22px; }
  .b-trade-highlights { flex-wrap: wrap; gap: 10px 18px; }
  .b-trade-highlights p { flex-wrap: wrap; white-space: normal; }
  .b-trade-education { flex-wrap: wrap; margin-left: 0; text-align: left; white-space: normal; }
  .b-photo-row { grid-template-columns: minmax(0, 1fr); row-gap: 17px; padding: 25px 0; }
  .b-photo-copy h3 { margin-bottom: 12px; }
  .b-photo-strip { overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
  .b-photo-strip::-webkit-scrollbar { display: none; }
  .b-photo-placeholder { flex-basis: 44vw; height: 120px; }
  .b-photo-placeholder--certificate { flex-basis: 95px; }
  .b-photo-strip img, .b-photo-row:nth-child(2) .b-photo-strip img { height: 120px; }
}
@media (max-width: 420px) {
  .b-ai-card-head { padding-inline: 18px; }
  .b-ai-card-action { gap: 5px; }
  .b-ai-card-hint { font-size: 11px; }
  .b-trade-highlights { gap: 9px; }
  .b-trade-highlights strong { font-size: 38px; }
  .b-trade-stats p { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
}

/* Keep 02 visible while the source photo expands into 03. */
.version-b-home.b-internship-fast-enabled {
  --b-fast-overlap: calc(100svh - var(--nav-height, 62px));
}
.b-internship-fast-enabled .b-ai-trade-transition::after {
  display: block;
  height: calc(clamp(140px, 22svh, 260px) + var(--b-fast-overlap));
}
.b-internship-fast-enabled .b-ai-trade-transition > .b-trade {
  position: sticky;
  top: var(--b-trade-sticky-top, var(--nav-height, 62px));
}
.b-internship-fast-enabled .b-chapter-hold--internships {
  margin-top: calc(-1 * var(--b-fast-overlap));
}
.b-internship-expand {
  position: fixed;
  z-index: 19;
  top: var(--nav-height, 62px);
  left: 0;
  width: 100vw;
  height: calc(100dvh - var(--nav-height, 62px));
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #0e0c0a, #1b140e);
  opacity: 0;
  visibility: hidden;
  clip-path: inset(var(--b-reveal-top, 40%) var(--b-reveal-right, 40%) var(--b-reveal-bottom, 40%) var(--b-reveal-left, 40%) round 8px);
}
.b-internship-expand > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.b-internship-origin-card {
  position: absolute;
  z-index: 3;
  top: var(--b-reveal-top);
  left: var(--b-reveal-left);
  width: var(--b-reveal-width);
  height: var(--b-reveal-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #f3eee7;
  background: #302319;
  text-shadow: 0 1px 4px #080706;
  transition: opacity 110ms ease;
}
.b-internship-origin-card span { font-size: 10px; line-height: 1.2; }
.b-internship-origin-card strong { font-size: clamp(12px, 1.05vw, 15px); line-height: 1.2; }
.b-internship-expand.is-expanding .b-internship-origin-card { opacity: 0; }
.b-internship-expand .b-internship-timeline { opacity: 0; transition: opacity 180ms ease; }
.b-internship-expand.is-expanding .b-internship-timeline { opacity: 1; transition-delay: 140ms; }
.b-internship-expand .b-internship-heading h2 { margin: 0; color: #d8ba86; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(37px, 4vw, 58px); font-weight: 600; line-height: 1.15; }
.b-internship-expand .b-internship-heading,
.b-internship-expand .b-internship-copy,
.b-internship-expand .b-internship-rail { opacity: 0; transition: opacity 180ms ease; }
.b-internship-expand.is-expanding .b-internship-heading,
.b-internship-expand.is-expanding .b-internship-copy,
.b-internship-expand.is-expanding .b-internship-rail {
  opacity: 1;
  transition-duration: 160ms;
  transition-delay: 140ms;
}
.b-internship-fast-enabled .b-internships { will-change: opacity; }
.b-internship-fast-enabled:not(.b-internship-entered) .b-internships { opacity: 0; pointer-events: none; }
.b-internship-expand.is-active {
  opacity: 1;
  visibility: visible;
}
.b-internship-expand.is-expanding {
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path 400ms cubic-bezier(.22,1,.36,1);
}
.b-internship-expand.is-handoff { opacity: 0; transition: opacity 110ms ease; }
.b-internship-entered .b-ai-trade-transition > .b-trade,
.b-internship-entered .b-ai-trade-transition > .b-ai { visibility: hidden; }
.b-internship-header-cover .site-header { background: #050505; backdrop-filter: none; }
.b-internship-exiting .b-internships { opacity: 0; pointer-events: none; }
.b-internship-exiting .b-chapter-hold--comprehensive h2 { opacity: var(--b-exit-heading-opacity, 0); transform: translateY(var(--b-exit-copy-shift, 18px)); transition: opacity .35s ease, transform .35s ease; }
.b-internship-exiting .b-chapter-hold--comprehensive .b-ppt-results,
.b-internship-exiting .b-chapter-hold--comprehensive .b-ppt-preview-link { opacity: var(--b-exit-copy-opacity, 0); transform: translateY(var(--b-exit-copy-shift, 18px)); }
.b-internship-exiting .b-chapter-hold--comprehensive .b-ppt-video-frame { opacity: 0; }
.b-internship-exit-overlay { position: fixed; z-index: 20; inset: 0; display: none; pointer-events: none; }
.b-internship-exit-overlay.is-active { display: block; }
.b-internship-exit-outgoing,
.b-internship-exit-incoming { position: absolute; right: 0; left: 0; overflow: hidden; }
.b-internship-exit-outgoing { z-index: 2; top: var(--b-exit-nav, 62px); bottom: 0; width: 100%; height: auto; background: linear-gradient(180deg, #0e0c0a 0%, #17110d 42%, #1b140e 100%); }
.b-internship-exit-outgoing .b-internship-scenes { transform-origin: center center; will-change: transform, opacity, filter; }
.b-internship-exit-outgoing .b-internship-heading,
.b-internship-exit-outgoing .b-internship-copy,
.b-internship-exit-outgoing .b-internship-rail { will-change: transform, opacity; }
.b-internship-exit-incoming { z-index: 1; top: var(--b-exit-nav, 62px); bottom: 0; width: 100%; background: linear-gradient(145deg, #1b140e, #080706 67%); }
.b-internship-exit-incoming .b-ppt-preview { transform-origin: 48% 51%; will-change: transform, opacity; }
.b-internship-exit-incoming h2,
.b-internship-exit-incoming .b-ppt-results { will-change: transform, opacity; }
.b-internship-exit-overlay.is-fading { opacity: 0; transition: opacity .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .b-internship-expand { display: none !important; }
}

/* The V3 internship carousel is part of the existing home section. */
.b-internships { padding: 0; background: #110d0a; }
.b-internship-stage { position: relative; height: calc(100svh - var(--nav-height, 62px)); min-height: 0; overflow: hidden; isolation: isolate; background: #21180f; }
.b-internship-scenes, .b-internship-scene, .b-internship-shade { position: absolute; inset: 0; }
.b-internship-scene { opacity: 0; background: #21180f; transition: opacity 400ms ease; }
.b-internship-scene.is-active { opacity: 1; }
.b-internship-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.b-internship-scene--portrait img { object-fit: contain; object-position: right center; }
.b-internship-scene--empty { background: #21180f; }
.b-internship-shade { z-index: 1; background: linear-gradient(90deg, rgba(12,9,7,.84) 0%, rgba(13,10,8,.64) 29%, rgba(16,12,9,.24) 62%, rgba(16,12,9,.04) 100%), linear-gradient(0deg, rgba(9,7,6,.5), transparent 35%); pointer-events: none; }
.b-internship-heading { position: absolute; z-index: 2; top: clamp(38px, 5.4vw, 76px); right: 0; left: 0; }
.b-internship-copy { position: absolute; z-index: 2; top: clamp(145px, 20%, 175px); left: 8%; width: min(38vw, 500px); transition: opacity 180ms ease; }
.b-internship-copy.is-changing { opacity: 0; }
.b-internship-company { margin: 0 0 13px; color: #c4b9ab; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.55; }
.b-internship-copy h3 { margin: 0 0 18px; color: #f3eee7; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(36px, 3.7vw, 56px); font-weight: 600; line-height: 1.2; }
.b-internship-work { max-width: 460px; margin: 0; color: #dfd6ca; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.75; }
.b-internship-work strong { color: #d6b782; font-weight: 600; }
.b-internship-project { display: flex; align-items: center; gap: 24px; width: fit-content; max-width: 100%; margin-top: 22px; padding-top: 11px; border-top: 1px solid rgba(214,183,130,.25); color: #d6b782; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.5; }
.b-internship-project[hidden] { display: none; }
.b-internship-project a { display: inline-flex; align-items: center; gap: 12px; flex: none; color: #e8c995; text-decoration: none; white-space: nowrap; }
.b-internship-project a:hover, .b-internship-project a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.b-internship-rail { position: absolute; z-index: 2; right: max(4vw, calc((100vw - 1320px) / 2)); bottom: clamp(38px, 6vh, 70px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(835px, 66vw); }
.b-internship-thumb { position: relative; display: block; aspect-ratio: 16 / 9; min-width: 0; overflow: hidden; padding: 0; border: 1px solid rgba(243,238,231,.2); border-radius: 9px; background: #211810 var(--thumb-image, none) center / cover no-repeat; cursor: pointer; text-align: left; filter: brightness(.78); transition: filter 180ms ease, border-color 180ms ease; }
.b-internship-thumb--empty { background: #211810; }
.b-internship-thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,7,6,.9), transparent 68%); }
.b-internship-thumb.is-active { border-color: #d6b782; filter: brightness(1); }
.b-internship-thumb:focus-visible { outline: 2px solid #f3eee7; outline-offset: 2px; }
.b-internship-thumb span { position: absolute; right: 7px; bottom: 11px; left: 9px; color: #f3eee7; font-size: clamp(11px, .92vw, 14px); font-weight: 600; line-height: 1.3; text-shadow: 0 1px 4px #080706; }
.b-internship-thumb i { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #d6b782; transform: scaleX(0); transform-origin: left; }
.b-internship-stage.is-running .b-internship-thumb.is-active i { animation: b-internship-progress 1500ms linear forwards; }
@keyframes b-internship-progress { to { transform: scaleX(1); } }
@media (max-width: 1050px) {
  .b-internship-copy { left: 6%; width: min(43vw, 470px); }
  .b-internship-rail { right: 4vw; width: min(750px, 70vw); gap: 8px; }
}
@media (max-width: 760px) {
  .b-internships { padding: 0; }
  .b-internship-stage { height: max(760px, calc(100svh - var(--nav-height, 62px))); min-height: 760px; }
  .b-internship-heading { top: 36px; }
  .b-internship-copy { top: 165px; left: 5vw; width: 88vw; }
  .b-internship-copy h3 { font-size: clamp(33px, 8vw, 46px); }
  .b-internship-work { max-width: 94%; font-size: 15px; }
  .b-internship-rail { right: 5vw; bottom: 30px; left: 5vw; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: auto; }
  .b-internship-thumb { grid-column: span 2; }
  .b-internship-thumb:nth-child(4) { grid-column: 2 / span 2; }
  .b-internship-thumb:nth-child(5) { grid-column: 4 / span 2; }
  .b-internship-thumb span { bottom: 8px; font-size: clamp(10px, 2.7vw, 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .b-internship-scene, .b-internship-copy, .b-internship-thumb { transition: none; }
  .b-internship-stage.is-running .b-internship-thumb.is-active i { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .b-photo-track.is-loop-ready { animation: none; }
  .b-photo-strip { overflow-x: auto; }
}
@media (max-width: 760px) {
  .b-directory { min-height: calc(100svh - var(--nav-height, 62px)); }
  .b-directory .b-wrap { width: min(100% - 10vw, 600px); transform: translateY(-28px); }
  .b-directory-grid, .b-directory h2 { width: 100%; margin-right: 0; }
  .b-directory-grid { width: 100%; grid-template-columns: 1fr; gap: 12px; margin-top: 27px; margin-right: 0; transform: none; }
  .b-directory-card { height: 90px; padding: 20px; }
  .b-directory-title { font-size: clamp(19px, 5.5vw, 24px); }
  .b-ai-title-line { display: grid; gap: 14px; }
  .b-ai-title-line .b-lead { text-align: left; }
  .b-ppt-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .b-ppt-capability-title { margin-bottom: 12px; font-size: clamp(28px, 7vw, 34px); }
  .b-ppt-description { max-width: none; margin-bottom: 24px; font-size: 14px; }
  .b-ppt-result { padding-top: 14px; }
  .b-ppt-result strong { font-size: clamp(36px, 9vw, 44px); }
  .b-ppt-result p span { font-size: 16px; }
  .b-ppt-result small { font-size: 12px; }
  .b-ppt-preview-link { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-directory-card, .b-directory-arrow, .b-ppt-preview, .b-ppt-video-frame video { transition: none; }
  .b-comprehensive::before { animation: none; }
}
@media (max-width: 420px) {
  .b-photo-copy > p, .b-trade-stats { margin-left: 12px; }
  .b-photo-copy h3 { font-size: 24px; }
  .b-trade-stats p { grid-template-columns: 47px minmax(0, 1fr); gap: 9px; }
  .b-trade-stats strong { font-size: 23px; }
  .b-ppt-metrics { gap: 10px; }
  .b-ppt-result strong { font-size: clamp(34px, 8.8vw, 40px); }
  .b-ppt-result p span { font-size: 15px; }
}

/* Version B trade background: compact gallery and a single right-side statement. */
.b-trade { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--nav-height, 62px)); padding-top: clamp(40px, 5svh, 78px); padding-bottom: clamp(58px, 7svh, 110px); background: radial-gradient(ellipse 70% 65% at 18% 26%, #2b2118 0, #17120f 49%, #0e0c0a 100%); }
.b-trade-wave { position: absolute; right: -5%; bottom: 0; z-index: -1; width: min(58vw, 850px); height: min(28vw, 320px); pointer-events: none; opacity: .38; animation: none; }
.b-trade-wave path:nth-child(n+9) { display: none; }
.b-trade-content { position: relative; z-index: 1; }
.b-trade #b-trade-heading { color: #d8ba86; font-size: clamp(37px, 4vw, 58px); }
.b-trade-identity { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 105px; padding: 14px 0 12px; border-bottom: 1px solid rgba(243,238,231,.16); }
.b-trade-primary { display: flex; align-items: center; gap: clamp(15px, 2.1vw, 30px); min-width: 0; }
.b-trade-name { display: block; color: #f3eee7; font-family: "Songti SC", "STSong", serif; font-size: clamp(38px, 3.3vw, 52px); font-weight: 600; line-height: 1.1; }
.b-trade-honors { display: flex; flex-wrap: wrap; gap: 12px; }
.b-honor { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 49px; padding: 3px 10px; border-block: 1px solid rgba(232,201,149,.55); color: #d6b782; background: linear-gradient(90deg, transparent, rgba(214,183,130,.07) 50%, transparent); white-space: nowrap; }
.b-honor-text { color: #e8c995; font-family: "Songti SC", "STSong", serif; font-size: clamp(18px, 1.65vw, 24px); font-weight: 600; letter-spacing: .035em; text-shadow: 0 0 9px rgba(214,183,130,.12); }
.b-honor-leaf { width: 16px; height: 39px; flex: none; }
.b-honor-leaf:last-child { transform: scaleX(-1); }
.b-honor-crown { position: absolute; top: -16px; left: 50%; width: 27px; height: 17px; transform: translateX(-50%); }
.b-trade-education { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; max-width: 36%; color: #bdb5aa; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.45; text-align: right; white-space: normal; }
.b-trade-education span:first-child { color: #f3eee7; font-size: 16px; }
.b-trade-showcase { display: grid; grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr); gap: clamp(20px, 2.4vw, 36px); align-items: stretch; }
.b-photo-rows { min-width: 0; }
.b-photo-row { display: block; min-width: 0; padding: 12px 0 13px; border-bottom: 1px solid rgba(243,238,231,.14); }
.b-photo-row:last-child { border-bottom: 0; }
.b-photo-row h3 { margin: 0 0 8px; color: #f3eee7; font-size: 20px; font-weight: 600; line-height: 1.25; }
.b-photo-strip { width: 100%; overflow: hidden; mask-image: linear-gradient(to right,transparent,#000 1.5%,#000 98.5%,transparent); }
.b-photo-group { gap: 8px; padding-right: 8px; }
.b-photo-strip img, .b-photo-row:nth-child(2) .b-photo-strip img { height: clamp(88px, 8.5svh, 102px); max-width: none; border-radius: 7px; object-fit: contain; }
.b-photo-row:nth-child(2) .b-photo-strip img { height: clamp(88px, 8.5svh, 102px); }
.b-photo-row:nth-child(2) .b-photo-track.is-loop-ready { animation-name: b-photo-scroll-left; }
.b-photo-caption { margin: 9px 0 0; color: #c5bbaf; font-size: clamp(12px, .98vw, 14px); line-height: 1.6; }
.b-trade-statement { display: flex; align-items: center; min-width: 0; padding: 18px 0 18px clamp(20px, 2.5vw, 36px); border-left: 1px solid rgba(243,238,231,.2); }
.b-trade-statement-inner { width: 100%; }
.b-trade-statement-rule { display: block; width: 43px; height: 2px; margin-bottom: 25px; background: #d6b782; }
.b-trade-statement p { margin: 0; color: #efe1cf; font-family: "Songti SC", "STSong", serif; font-size: clamp(19px, 1.65vw, 26px); font-weight: 500; letter-spacing: .01em; line-height: 1.7; }
.b-trade-statement p span { display: block; white-space: nowrap; }
@media (max-width: 1080px) {
  .b-trade-showcase { grid-template-columns: minmax(0, 66fr) minmax(240px, 34fr); gap: 18px; }
  .b-trade-statement { padding-left: 20px; }
  .b-trade-statement p { font-size: 18px; }
  .b-trade-statement p span { white-space: normal; }
}
@media (max-width: 760px) {
  .b-trade { padding-top: 42px; padding-bottom: 56px; }
  .b-trade-identity { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 0 17px; min-height: 0; }
  .b-trade-primary { flex-wrap: wrap; gap: 18px; }
  .b-trade-education { align-items: flex-start; max-width: none; margin: 0; text-align: left; }
  .b-trade-showcase { display: flex; flex-direction: column; gap: 0; }
  .b-photo-row { padding: 11px 0 12px; }
  .b-photo-row h3 { font-size: 19px; }
  .b-photo-strip { overflow-x: auto; touch-action: pan-x; }
  .b-photo-strip img, .b-photo-row:nth-child(2) .b-photo-strip img { height: 82px; }
  .b-photo-row:nth-child(2) .b-photo-strip img { height: 82px; }
  .b-photo-caption { font-size: 12px; }
  .b-trade-statement { border-left: 0; padding: 25px 0 22px; }
  .b-trade-statement-rule { margin-bottom: 14px; }
  .b-trade-statement p { font-size: 20px; }
  .b-trade-statement p span { display: inline; white-space: normal; }
  .b-trade-wave { width: 85vw; height: 150px; opacity: .42; }
  .b-opening-story:has(.b-directory.is-active) .directory-background-video {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  }
}
@media (max-width: 420px) {
  .b-honor { min-height: 43px; padding: 2px 7px; }
  .b-honor-text { font-size: 18px; }
  .b-honor-leaf { width: 13px; height: 33px; }
}

/* 03 internship timeline. The existing transition snapshots keep their own stage styles. */
.b-chapter-hold--internships::after { background: #1b140e; }
.b-chapter-hold--internships .b-internship-stage { height: auto; min-height: calc(100svh - var(--nav-height, 62px)); overflow: visible; background: linear-gradient(180deg, #0e0c0a 0%, #17110d 42%, #1b140e 100%); }
.b-chapter-hold--internships .b-internship-stage > .b-internship-scenes,
.b-chapter-hold--internships .b-internship-stage > .b-internship-shade,
.b-chapter-hold--internships .b-internship-stage > .b-internship-heading,
.b-chapter-hold--internships .b-internship-stage > .b-internship-copy,
.b-chapter-hold--internships .b-internship-stage > .b-internship-rail { display: none; }
.b-internship-timeline { position: relative; z-index: 2; padding: clamp(30px, 4vw, 48px) 0 56px; color: #f3eee7; }
.b-internship-timeline h2 { margin: 0 0 24px; color: #d8ba86; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(37px, 4vw, 58px); font-weight: 600; line-height: 1.15; }
.b-timeline-axis-scroll { width: min(100% - 8vw, 1320px); margin: 0 auto; overflow-x: auto; scrollbar-color: #94714d #21170f; scrollbar-width: thin; }
.b-timeline-axis { min-width: 1170px; padding-bottom: 18px; }
.b-timeline-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.b-timeline-years { display: grid; grid-template-columns: 12fr 10fr; border-bottom: 2px solid #b58e5b; padding-bottom: 10px; }
.b-timeline-years strong { color: #eac38c; font: 27px Georgia, serif; }
.b-timeline-months { display: grid; grid-template-columns: repeat(22, minmax(0, 1fr)); border-bottom: 1px solid #77593a; }
.b-timeline-months span { padding: 10px 0; color: #c1a788; font-size: 11px; text-align: center; }
.b-timeline-label { padding-top: 28px; color: #dcba85; font-size: 13px; font-weight: 650; }
.b-timeline-roles { position: relative; height: 92px; border-bottom: 1px solid #685037; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(4.54545% - 1px), #69503838 calc(4.54545% - 1px), #69503838 4.54545%); }
.b-timeline-role { position: absolute; top: 23px; display: grid; place-items: center; height: 42px; padding: 3px 4px; border: 1px solid #a68152; border-radius: 4px; color: #f2e7d7; background: #63472e; font-size: 11px; font-weight: 650; text-align: center; white-space: nowrap; pointer-events: none; }
.b-timeline-companies { position: relative; height: 148px; }
.b-timeline-company { position: absolute; top: 20px; width: 15.4%; height: 120px; transform: translateX(-50%); padding: 9px 7px; border: 1px solid #73583e; border-radius: 7px; color: #fff; background: #302319; font-family: inherit; font-size: 12px; font-weight: 650; line-height: 1.6; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.b-timeline-company::before { content: ""; position: absolute; top: -21px; left: 50%; height: 21px; border-left: 1px solid #b18c5c; }
.b-timeline-company:hover, .b-timeline-company:focus-visible, .b-timeline-company[aria-pressed="true"] { border-color: #dbb47e; color: #fff; background: #58402a; }
.b-timeline-preview { min-height: 315px; }
.b-timeline-help { margin: 0; padding: 14px 17px; border: 1px solid #765b40; border-radius: 5px; color: #cdb396; background: #251b14; font-size: 13px; }
.b-resume { padding: 20px 23px; border: 1px solid #99754c; border-radius: 8px; background: linear-gradient(145deg, #332619, #1e1712); animation: b-resume-show 150ms ease-out; }
.b-resume[hidden] { display: none; }
.b-resume header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.b-resume h3 { margin: 0; color: #f1d5ab; font-size: 20px; line-height: 1.45; }
.b-resume time { color: #c29e70; font-size: 12px; }
.b-resume .position { padding: 9px 0 15px; border-bottom: 1px solid #644c36; color: #d5ad7a; font-size: 13px; }
.b-resume p { margin: 12px 0 0; color: #dbc6af; font-size: 14px; line-height: 1.85; }
.b-resume p strong { color: #e8c493; }
@keyframes b-resume-show { from { opacity: 0; } to { opacity: 1; } }
.b-internship-exit-outgoing .b-internship-scenes,
.b-internship-exit-outgoing .b-internship-shade,
.b-internship-exit-outgoing .b-internship-heading,
.b-internship-exit-outgoing .b-internship-copy,
.b-internship-exit-outgoing .b-internship-rail { display: none; }
.b-internship-exit-outgoing .b-internship-timeline { display: block; }
@media (max-width: 760px) {
  .b-chapter-hold--internships .b-internship-stage { height: auto; min-height: calc(100svh - var(--nav-height, 62px)); }
  .b-timeline-axis-scroll { width: calc(100% - 10vw); }
  .b-timeline-preview { min-height: 405px; }
  .b-resume { padding: 17px; }
  .b-resume p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .b-resume { animation: none; } }

/* Mobile uses ordinary document flow: a compact text intro and an image-free directory. */
@media (max-width: 760px) {
  .b-opening-story { height: auto; background: #15100c; }
  .b-opening-stage { position: relative; top: auto; height: auto; overflow: visible; }
  .b-opening-media { display: none; }
  .b-cover { position: relative; inset: auto; min-height: 0; padding: 38px 5vw 26px; overflow: visible; }
  .b-cover-content { width: 100%; margin: 0; }
  .b-cover-question { max-width: none; font-size: clamp(23px, 6vw, 30px); white-space: normal; }
  .b-cover-answer { flex-wrap: wrap; gap: 7px; margin-top: 18px; white-space: normal; }
  .b-cover-answer-label { padding: 0; border: 0; font-size: clamp(20px, 5.2vw, 25px); }
  .b-cover-answer-main { font-size: clamp(31px, 8vw, 42px); }
  .b-cover-rule, .b-cover-answer-main svg, .b-cover-signature, .b-cover-cue { display: none; }
  .b-directory { position: relative; inset: auto; min-height: 0; padding: 12px 0 42px; background: #15100c; opacity: 1; pointer-events: auto; }
  .b-directory .b-wrap { transform: none; }
}

/* Phone layout: text-first opening and a readable single-column internship list. */
@media (max-width: 760px) {
  .b-cover { padding: 34px 5vw 16px; }
  .b-cover-content { display: none; }
  .b-cover-mobile-copy { display: block; position: relative; z-index: 1; }
  .b-cover-mobile-copy p { margin: 0; color: #f5ebdd; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(20px, 5.6vw, 24px); line-height: 1.45; white-space: nowrap; }
  .b-cover-mobile-copy h1 { margin: 9px 0 0; color: #e7bb7a; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: 48px; font-weight: 600; line-height: 1.14; white-space: nowrap; }
  .b-directory { padding: 12px 0 34px; }
  .b-directory h2 { margin: 0; font-size: 32px; }
  .b-directory-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 21px; }
  .b-directory-card { height: 72px; padding: 13px 18px; }
  .b-directory-title { font-size: 19px; }

  .b-internship-timeline { padding: 34px 0 42px; }
  .b-internship-timeline h2 { margin-bottom: 21px; font-size: 38px; }
  .b-timeline-axis-scroll { overflow: visible; }
  .b-timeline-axis { min-width: 0; padding-bottom: 0; }
  .b-timeline-axis > .b-timeline-row:nth-child(-n+3) { display: none; }
  .b-timeline-axis > .b-timeline-row:last-child { display: block; }
  .b-timeline-axis > .b-timeline-row:last-child > .b-timeline-label { display: none; }
  .b-timeline-axis::before { content: "2025—2026"; display: block; margin-bottom: 16px; color: #eac38c; font: 22px Georgia, serif; }
  .b-timeline-companies { display: grid; gap: 10px; height: auto; margin-left: 7px; padding-left: 22px; border-left: 1px solid #a68152; }
  .b-timeline-company { position: relative; top: auto; left: auto !important; width: 100%; min-height: 68px; height: auto; transform: none; padding: 13px 15px; font-size: 14px; text-align: left; }
  .b-timeline-company::before { top: 50%; left: -29px; width: 11px; height: 11px; transform: translateY(-50%); border: 1px solid #d8ba86; border-radius: 50%; background: #1b140e; }
  .b-timeline-preview { min-height: 0; margin-top: 18px; }
}

/* Only the phone view uses a bottom sheet for the existing 03 resume panels. */
@media (max-width: 760px) {
  .b-timeline-companies { gap: 8px; }
  .b-timeline-company { min-height: 60px; padding-block: 11px; }
  .b-resume-mobile-layer { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; background: rgba(5,4,3,.76); }
  .b-resume-mobile-layer[hidden] { display: none; }
  .b-resume-mobile-layer .b-resume { width: 100%; max-height: 80vh; max-height: 80dvh; margin: 0; padding: 13px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-shadow: 0 -12px 30px rgba(0,0,0,.36); }
  .b-resume-mobile-close { position: sticky; top: 0; z-index: 1; display: flex; width: fit-content; margin: 0 0 12px auto; padding: 8px 13px; border: 1px solid #b58e5b; border-radius: 7px; color: #f1d5ab; background: #2b2017; font-size: 14px; font-weight: 650; cursor: pointer; }
  .b-resume-mobile-close:focus-visible { outline: 2px solid #f1d5ab; outline-offset: 2px; }
}

/* The 01 and 04 entry cues are small overlays; card and media dimensions stay fixed. */
.b-ai-card-action { position: relative; isolation: isolate; box-sizing: border-box; height: 28px; padding: 0 8px; gap: 6px; border: 1px solid rgba(231,187,122,.75); border-radius: 999px; color: #f6d9a4; background: rgba(135,91,43,.24); }
.b-ai-card-action::before { content: ""; position: absolute; z-index: -1; inset: -3px; border-radius: inherit; box-shadow: 0 0 12px rgba(231,187,122,.45); opacity: .18; pointer-events: none; animation: b-ai-entry-breathe 3s ease-in-out infinite; animation-play-state: paused; }
.b-ai-card-hint, .b-ai-card-arrow { color: #f6d9a4; }
.b-ai-card-arrow { display: inline-block; font-size: 22px; animation: b-ai-entry-arrow 1.5s ease-in-out infinite; animation-play-state: paused; }
.b-ai.is-entry-visible .b-ai-card-action::before, .b-ai.is-entry-visible .b-ai-card-arrow { animation-play-state: running; }
@keyframes b-ai-entry-arrow { 0%, 56%, 100% { transform: translate3d(0,0,0); } 76% { transform: translate3d(-5px,5px,0); } }
@keyframes b-ai-entry-breathe { 0%, 100% { opacity: .18; } 50% { opacity: .7; } }

.b-ppt-preview-link { position: relative; isolation: isolate; overflow: hidden; }
.b-ppt-preview-link::before, .b-ppt-preview-link::after { content: ""; position: absolute; inset: 0; pointer-events: none; animation-play-state: paused; }
.b-ppt-preview-link::before { border: 1px solid rgba(231,187,122,.7); box-shadow: inset 0 0 10px rgba(231,187,122,.28); opacity: .36; animation: b-ppt-entry-border 3s ease-in-out infinite; animation-play-state: paused; }
.b-ppt-preview-link::after { background: linear-gradient(105deg, transparent 34%, rgba(255,218,156,.2) 50%, transparent 66%); opacity: 0; transform: translate3d(-100%,0,0); animation: b-ppt-entry-sweep 3s ease-in-out infinite; animation-play-state: paused; }
.b-comprehensive.is-entry-visible .b-ppt-preview-link::before, .b-comprehensive.is-entry-visible .b-ppt-preview-link::after { animation-play-state: running; }
@keyframes b-ppt-entry-border { 0%, 100% { opacity: .36; } 48% { opacity: .9; } }
@keyframes b-ppt-entry-sweep { 0%, 54% { opacity: 0; transform: translate3d(-100%,0,0); } 62% { opacity: .7; } 88% { opacity: .7; transform: translate3d(100%,0,0); } 100% { opacity: 0; transform: translate3d(100%,0,0); } }

@media (max-width: 760px) {
  .b-cover { padding-bottom: 28px; }
  .b-directory { padding-top: 18px; }
}
@media (max-width: 420px) {
  .b-ai-card-action { padding-inline: 6px; gap: 3px; }
  .b-ai-card-arrow { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-ai-card-action::before, .b-ai-card-arrow, .b-ppt-preview-link::before, .b-ppt-preview-link::after { animation: none; }
}
