/* Generated by tools/build-home.mjs. Do not edit this output directly. */

/* site-home-r61.css */
/* r61 — editorial homepage refinement, text-led faculty directory. No imports. */
:root{
  --navy:#10384a;
  --navy-deep:#092d3c;
  --ink:#244b5b;
  --text:#5d7480;
  --muted:#8799a1;
  --line:#d8e2e6;
  --line-dark:#b8c8ce;
  --soft:#f3f6f7;
  --paper:#fafbfb;
  --white:#fff;
  --accent:#397a91;
  --focus:#5c98ae;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:78px}
body{margin:0;padding-top:68px;background:#fff;color:var(--ink);font-family:'Noto Sans SC','PingFang SC','Hiragino Sans GB',system-ui,sans-serif;font-size:16px;line-height:1.72;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.menu-open{overflow:hidden}
a{color:inherit}
button{font:inherit}
img{display:block;width:100%;max-width:100%}
figure{margin:0}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
.shell{width:min(1180px,calc(100% - 48px));margin:auto}
.shell-wide{width:min(1320px,calc(100% - 36px));margin:auto}
.skip-link{position:fixed;left:16px;top:8px;z-index:1000;padding:8px 12px;background:#fff;border:1px solid #b8c9d0;color:var(--navy);font-size:12px;font-weight:700;text-decoration:none;transform:translateY(-160%)}
.skip-link:focus{transform:none}
:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
#main-content:focus{outline:none}

/* header */
.site-header{position:fixed;inset:0 0 auto;z-index:100;height:68px;background:rgba(255,255,255,.976);border-bottom:1px solid rgba(18,55,71,.10);backdrop-filter:blur(16px);transition:box-shadow .18s ease,background-color .18s ease}
.site-header.is-scrolled{background:rgba(255,255,255,.995);box-shadow:0 8px 30px rgba(18,49,63,.055)}
.header-main{height:68px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand{display:flex;align-items:center;gap:10px;color:var(--navy);font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap;letter-spacing:-.01em}
.brand img{width:31px;height:31px;object-fit:contain}
.utility-nav{display:flex;align-items:center;gap:29px}
.utility-nav a{position:relative;color:#5f7680;font-size:12px;font-weight:700;text-decoration:none}
.utility-nav a:not(.nav-contact)::after{content:'';position:absolute;left:0;right:0;bottom:-9px;height:1px;background:#7099a9;transform:scaleX(0);transform-origin:left;transition:transform .16s ease}
.utility-nav a:hover,.utility-nav a.is-active{color:var(--navy)}
.utility-nav a:hover::after,.utility-nav a.is-active::after{transform:scaleX(1)}
.utility-nav .nav-contact{padding:8px 14px;border:1px solid #bdccd2;color:#214d60;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.utility-nav .nav-contact:hover,.utility-nav .nav-contact.is-active{background:var(--navy);border-color:var(--navy);color:#fff}
.mobile-trigger,.mobile-menu{display:none}

/* shared editorial heading */
.section-head{display:grid;grid-template-columns:240px minmax(0,1fr);gap:50px;align-items:end;margin-bottom:28px}
.section-head h2{margin:0;color:var(--navy);font-size:38px;line-height:1.08;letter-spacing:-.045em}
.section-head p{max-width:620px;margin:0;color:var(--text);font-size:14px;line-height:1.8}
.section-head.light h2{color:#fff}
.section-head.light p{color:#c1d0d6}

/* hero */
.hero{background:#fff;border-bottom:1px solid #e5edef}
.hero-grid{display:grid;grid-template-columns:minmax(400px,.79fr) minmax(580px,1.21fr);gap:58px;min-height:505px;padding:32px 0}
.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:12px 0}
.hero-location{display:block;margin-bottom:12px;color:#82949c;font-size:11px;font-weight:700}
.hero-copy h1{margin:0;color:#426675;font-size:19px;line-height:1.3;font-weight:650;letter-spacing:.01em}
.brand-line{margin:19px 0 0;color:var(--navy);font-family:'Noto Serif JP','Yu Mincho','Hiragino Mincho ProN',serif;font-size:clamp(46px,4.9vw,66px);line-height:1.29;font-weight:600;letter-spacing:-.055em}
.hero-lede{max-width:515px;margin:21px 0 0;color:#566e79;font-size:15px;line-height:1.88}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;margin-top:25px}
.hero-actions a{color:#5d7580;font-size:12.5px;font-weight:700;text-decoration:none}
.hero-actions .primary{padding:11px 18px;background:var(--navy);color:#fff;transition:background-color .15s ease,transform .15s ease}
.hero-actions .primary:hover{background:#174a5f;transform:translateY(-1px)}
.hero-actions a:not(.primary){padding-bottom:2px;border-bottom:1px solid #aebfc6}
.hero-actions a:not(.primary):hover{color:var(--navy);border-color:#7195a3}
.hero-media{position:relative;min-width:0;overflow:hidden;background:#e9eef0}
.hero-media img{height:100%;min-height:441px;object-fit:cover;object-position:center 43%}
.hero-media::after{content:'';position:absolute;inset:auto 0 0;height:19%;background:linear-gradient(0deg,rgba(7,35,48,.14),transparent)}
.hero-media figcaption{position:absolute;right:14px;bottom:11px;z-index:2;color:#fff;font-size:9px;font-weight:650;text-shadow:0 1px 5px rgba(0,0,0,.32)}
.trust-strip{border-top:1px solid #e4ebee;background:var(--paper)}
.trust-grid{display:grid;grid-template-columns:1.15fr .8fr .8fr 1.05fr;min-height:60px}
.trust-item{display:flex;align-items:baseline;gap:9px;padding:11px 20px;border-left:1px solid var(--line)}
.trust-item:first-child{border-left:0;padding-left:0}
.trust-item:last-child{padding-right:0}
.trust-item small{color:#8899a0;font-size:10px}
.trust-item strong{color:#285468;font-size:14px;font-weight:750}
.trust-item.location strong{font-size:12.5px}

/* results */
.results-section{padding:56px 0 58px;background:var(--navy-deep);color:#fff}
.results-section .section-head{margin-bottom:26px}
.results-overview{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);gap:38px;align-items:stretch}
.evidence-view{position:relative;display:block;width:100%;min-height:350px;padding:10px;border:0;background:#fff;cursor:zoom-in;text-align:left}
.evidence-view img{height:100%;min-height:330px;object-fit:contain;background:#fff}
.evidence-view span{position:absolute;left:18px;bottom:17px;padding:5px 8px;background:rgba(8,42,57,.84);color:#fff;font-size:10px;font-weight:700}
.result-story{display:flex;flex-direction:column;min-width:0}
.result-numbers{display:flex;gap:34px;padding:5px 0 20px;border-bottom:1px solid rgba(255,255,255,.16)}
.result-number strong{display:block;color:#fff;font-size:66px;line-height:.88;font-weight:750;letter-spacing:-.07em;font-variant-numeric:tabular-nums}
.result-number span{display:block;margin-top:9px;color:#bbcbd2;font-size:11px}
.school-list{display:grid;grid-template-columns:1fr 1fr;margin-top:13px;border-top:1px solid rgba(255,255,255,.09)}
.school-list div{display:flex;justify-content:space-between;gap:10px;padding:10px 10px 10px 0;border-bottom:1px solid rgba(255,255,255,.09)}
.school-list div:nth-child(even){padding-left:10px;border-left:1px solid rgba(255,255,255,.09)}
.school-list b{color:#d9e4e8;font-size:11.5px;font-weight:650}
.school-list span{color:#91b0bd;font-size:13px;font-weight:750}
.result-note{margin:10px 0 0;color:#90a8b2;font-size:10px;line-height:1.6}
.case-feature{display:grid;grid-template-columns:235px minmax(0,1fr) 190px;gap:28px;align-items:center;margin-top:28px;padding:22px 0 0;border-top:1px solid rgba(255,255,255,.21);color:#fff;text-decoration:none}
.case-intro small{color:#91aab5;font-size:10px}
.case-intro h3{margin:6px 0 0;color:#fff;font-size:22px;line-height:1.35}
.case-flow{display:flex;align-items:center;justify-content:center;gap:14px}
.case-flow span{display:grid;min-width:68px;text-align:center}
.case-flow b{font-size:31px;line-height:1;font-variant-numeric:tabular-nums}
.case-flow em{margin-top:5px;color:#b5c8cf;font-size:10px;font-style:normal}
.case-flow i{color:#7498a7;font-style:normal}
.case-doc-wrap{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.case-docs{display:flex;align-items:center;gap:7px}
.case-docs img{width:58px;max-height:90px;object-fit:contain;background:#fff;border:1px solid rgba(255,255,255,.2)}
.case-link{color:#fff;font-size:10.5px;font-weight:800;white-space:nowrap;transition:transform .15s ease}
.case-feature:hover .case-link{transform:translateX(3px)}

/* courses */
.programs-section{padding:58px 0 60px;background:#fff}
.course-explorer{display:grid;grid-template-columns:278px minmax(0,1fr);min-height:422px;border-top:1px solid var(--line-dark);border-bottom:1px solid var(--line-dark)}
.course-selector{display:flex;flex-direction:column;padding:8px 28px 8px 0;border-right:1px solid var(--line)}
.course-choice{appearance:none;position:relative;display:grid;grid-template-columns:32px 1fr;gap:12px;width:100%;padding:18px 20px 18px 2px;border:0;border-bottom:1px solid var(--line);background:transparent;color:#607985;text-align:left;cursor:pointer;transition:color .15s ease}
.course-choice:last-child{border-bottom:0}
.course-choice::before{content:'';position:absolute;left:-1px;top:18px;bottom:18px;width:2px;background:var(--navy);transform:scaleY(0);transform-origin:center;transition:transform .16s ease}
.course-choice>span:first-child{color:#9aa9af;font-size:10px;padding-top:4px}
.course-choice strong{display:block;color:#365e6e;font-size:17px;line-height:1.3}
.course-choice small{display:block;margin-top:4px;color:#7d919a;font-size:11px;line-height:1.5}
.course-choice:hover strong{color:var(--navy)}
.course-choice[aria-selected='true']::before{transform:scaleY(1)}
.course-choice[aria-selected='true']>span:first-child{color:#557785}
.course-choice[aria-selected='true'] strong{color:var(--navy)}
.course-choice[aria-selected='true'] small{color:#5c7782}
.course-stage{position:relative;min-width:0;background:var(--soft)}
.course-panel{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);min-height:422px}
.course-panel[hidden]{display:none}
.course-panel-copy{display:flex;flex-direction:column;justify-content:center;padding:34px 38px;background:#fff}
.course-panel-copy .panel-index{color:#8b9da4;font-size:10px;font-weight:700}
.course-panel-copy h3{margin:7px 0 0;color:var(--navy);font-size:31px;line-height:1.2;letter-spacing:-.035em}
.course-panel-copy p{margin:13px 0 0;color:#607985;font-size:14px;line-height:1.82}
.course-panel-copy a{display:inline-block;align-self:flex-start;margin-top:20px;color:#347b92;font-size:11.5px;font-weight:800;text-decoration:none;border-bottom:1px solid #a9bdc5;padding-bottom:2px}
.course-panel-visual{position:relative;min-height:422px;overflow:hidden}
.common-visual{display:grid;grid-template-columns:.78fr 1.22fr;background:#edf2f4}
.common-count{display:flex;flex-direction:column;justify-content:center;padding:36px}
.common-count strong{color:#17485b;font-size:98px;line-height:.82;font-weight:800;letter-spacing:-.085em}
.common-count span{margin-top:12px;color:#557581;font-size:13px;font-weight:700}
.common-subjects{display:grid;align-content:center;grid-template-columns:1fr 1fr;gap:14px 20px;padding:36px 38px 36px 0}
.common-subjects p{margin:0;padding-top:10px;border-top:1px solid #c8d5da;color:#5d7883;font-size:11.8px;line-height:1.62}
.common-subjects b{display:block;margin-bottom:3px;color:#214d60;font-size:13px}
.eju-visual{display:grid;grid-template-columns:.86fr 1.14fr;background:#eaf0f2}
.eju-mark{display:flex;flex-direction:column;justify-content:center;padding:38px;color:#17495c}
.eju-mark strong{font-size:88px;line-height:.86;font-weight:800;letter-spacing:-.08em}
.eju-mark span{margin-top:14px;color:#5e7a85;font-size:13px;line-height:1.65}
.eju-steps{display:grid;align-content:center;padding:34px 38px 34px 0}
.eju-step{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:14px 0;border-top:1px solid #c7d5da}
.eju-step:last-child{border-bottom:1px solid #c7d5da}
.eju-step small{color:#94a4aa;font-size:10px}
.eju-step b{display:block;color:#31596a;font-size:13px}
.eju-step span{display:block;margin-top:3px;color:#6b818a;font-size:11.5px}
.school-visual{display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:26px;padding:34px;background:#edf2f4}
.school-docs{display:flex;align-items:center;justify-content:center;gap:13px}
.school-docs img:first-child{width:145px;max-height:238px;object-fit:contain;background:#fff;box-shadow:0 12px 28px rgba(19,54,70,.09)}
.school-docs img:last-child{width:196px;max-height:168px;object-fit:contain;background:#fff;box-shadow:0 12px 28px rgba(19,54,70,.09)}
.school-score strong{display:block;color:#16485b;font-size:51px;line-height:1;font-weight:800;letter-spacing:-.06em}
.school-score span{display:block;margin-top:9px;color:#66808a;font-size:12px;line-height:1.6}
.art-visual{display:grid;grid-template-columns:1.25fr .75fr;grid-template-rows:1fr 1fr;gap:7px;padding:7px;background:#e7edef}
.art-visual figure{overflow:hidden}
.art-visual figure:first-child{grid-row:1/3}
.art-visual img{height:100%;object-fit:cover}
.art-visual figure:nth-child(2) img{object-position:center 42%}

/* faculty — no portraits; one clear directory */
.people-section{padding:58px 0;background:var(--soft)}
.team-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:36px;align-items:end;margin-bottom:25px}
.team-head h2{margin:0;color:var(--navy);font-size:38px;line-height:1.08;letter-spacing:-.045em}
.team-head p{max-width:650px;margin:10px 0 0;color:#627a84;font-size:14px;line-height:1.78}
.team-head>a{align-self:end;color:#347b92;font-size:10.5px;font-weight:700;text-decoration:none;border-bottom:1px solid #b5c7ce;padding-bottom:2px;white-space:nowrap}
.faculty-directory{border-top:1px solid var(--line-dark);border-bottom:1px solid var(--line-dark);background:rgba(255,255,255,.38)}
.faculty-line{display:grid;grid-template-columns:52px 150px minmax(0,1fr);gap:22px;align-items:start;padding:19px 0;border-bottom:1px solid var(--line)}
.faculty-line:last-child{border-bottom:0}
.faculty-no{padding-top:3px;color:#9aabb2;font-size:10px;font-variant-numeric:tabular-nums}
.faculty-line h3{margin:0;color:#234f61;font-size:18px;line-height:1.35;font-weight:700}
.faculty-line p{margin:0;color:#617a84;font-size:13px;line-height:1.78}
.faculty-line b{color:#365f6f;font-weight:750}
.faculty-note{margin:10px 0 0;color:#7e929a;font-size:10.5px}
.resources-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-top:27px;padding-top:17px;border-top:1px solid var(--line-dark)}
.resources-head h3{margin:0;color:#345e6e;font-size:14px}
.resources-head a{color:#6b818a;font-size:10px;text-decoration:none}
.resource-rail{display:grid;grid-template-columns:repeat(3,1fr);margin-top:9px;border-bottom:1px solid var(--line)}
.resource-link{display:block;padding:13px 16px 14px 0;text-decoration:none}
.resource-link+ .resource-link{padding-left:16px;border-left:1px solid var(--line)}
.resource-link small{display:block;color:#899ba2;font-size:9.5px}
.resource-link b{display:block;margin-top:5px;color:#31596a;font-size:12px;line-height:1.55}
.resource-link span{display:block;margin-top:6px;color:#347b92;font-size:10px;font-weight:700}
.resource-link:hover b{color:#347b92}

/* contact */
.contact-section{padding:54px 0 56px;background:var(--navy-deep);color:#fff}
.contact-layout{display:grid;grid-template-columns:minmax(390px,.78fr) minmax(520px,1.22fr);gap:44px;align-items:stretch}
.contact-copy h2{margin:0;color:#fff;font-size:38px;line-height:1.08;letter-spacing:-.04em}
.contact-copy>p{max-width:470px;margin:12px 0 0;color:#bfd0d7;font-size:14px;line-height:1.8}
.consult-meta{margin-top:19px;border-top:1px solid rgba(255,255,255,.2)}
.consult-meta p{display:grid;grid-template-columns:90px 1fr;gap:14px;margin:0;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.11)}
.consult-meta b{color:#e6eef1;font-size:11px}
.consult-meta span{color:#aec2ca;font-size:11.5px}
.qr-grid{display:flex;gap:24px;margin-top:19px}
.qr-grid figure{display:grid;grid-template-columns:96px auto;align-items:center;gap:11px}
.qr-grid img{width:96px;height:96px;object-fit:contain;background:#fff;padding:4px}
.qr-grid figcaption b{display:block;font-size:11.5px}
.qr-grid figcaption span{display:block;margin-top:2px;color:#a9bdc6;font-size:9.5px}
.campus-panel{display:grid;grid-template-columns:205px minmax(0,1fr);min-height:310px;background:#fff;color:var(--ink)}
.campus-copy{padding:23px}
.campus-copy>span{color:#84979f;font-size:9.5px}
.campus-copy h3{margin:6px 0 10px;color:var(--navy);font-size:22px}
.campus-copy p{margin:0;color:#607781;font-size:10.5px;line-height:1.8}
.campus-copy small{display:block;margin-top:11px;color:#899aa1;font-size:9px}
.campus-panel iframe{width:100%;height:100%;min-height:310px;border:0}

/* footer */
.footer{background:#fff;color:#657b84}
.footer-main{display:grid;grid-template-columns:minmax(0,1.5fr) .66fr .66fr;gap:44px;padding-top:29px;padding-bottom:27px}
.footer-brand>b{color:var(--navy);font-size:14px}
.footer-brand p{margin:6px 0 9px;color:#506f7b;font-family:'Noto Serif JP','Yu Mincho',serif;font-size:17px}
.footer-brand small{color:#81949b;font-size:9.5px;line-height:1.65}
.footer-nav{display:grid;align-content:start;gap:6px}
.footer-nav strong{margin-bottom:3px;color:#425f6b;font-size:10px}
.footer-nav a{color:#72868e;font-size:9.5px;text-decoration:none}
.footer-nav a:hover{color:var(--navy)}
.footer-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:12px;padding-bottom:15px;border-top:1px solid #e3e9eb;color:#98a5aa;font-size:9px}

/* lightbox */
.image-lightbox{width:min(980px,calc(100vw - 40px));max-height:calc(100vh - 40px);padding:0;border:0;background:#fff;box-shadow:0 24px 80px rgba(6,28,39,.25)}
.image-lightbox::backdrop{background:rgba(5,27,38,.76)}
.lightbox-inner{position:relative;padding:18px}
.lightbox-inner img{max-height:calc(100vh - 100px);object-fit:contain;background:#fff}
.lightbox-close{position:absolute;right:24px;top:24px;z-index:2;width:34px;height:34px;border:1px solid #cbd7dc;background:rgba(255,255,255,.94);color:var(--navy);font-size:19px;line-height:1;cursor:pointer}
.mobile-menu.open{display:block}

@media(max-width:1040px){
  .shell{width:min(100% - 36px,1180px)}
  .hero-grid{grid-template-columns:.9fr 1.1fr;gap:34px}
  .brand-line{font-size:clamp(40px,5.5vw,56px)}
  .trust-grid{grid-template-columns:1fr 1fr}
  .trust-item:nth-child(3){border-left:0;border-top:1px solid var(--line)}
  .trust-item:nth-child(4){border-top:1px solid var(--line)}
  .results-overview,.contact-layout{grid-template-columns:1fr}
  .case-feature{grid-template-columns:210px 1fr 180px}
  .course-explorer{grid-template-columns:230px 1fr}
  .course-panel{grid-template-columns:1fr}
  .course-panel-copy{padding:28px 30px}
  .course-panel-visual{min-height:320px}
  .faculty-line{grid-template-columns:46px 130px minmax(0,1fr);gap:18px}
  .campus-panel{min-height:300px}
}

@media(max-width:820px){
  body{padding-top:64px}
  .site-header,.header-main{height:64px}
  .utility-nav{display:none}
  .mobile-trigger{display:grid;width:36px;height:36px;padding:8px;border:0;background:transparent;align-content:center;gap:5px}
  .mobile-trigger span{display:block;height:1.5px;background:var(--navy);transition:transform .18s ease,opacity .18s ease}
  .mobile-trigger[aria-expanded='true'] span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
  .mobile-trigger[aria-expanded='true'] span:nth-child(2){opacity:0}
  .mobile-trigger[aria-expanded='true'] span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
  .mobile-menu{position:fixed;top:64px;left:0;right:0;z-index:99;max-height:calc(100vh - 64px);overflow:auto;padding:18px 24px 24px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 18px 44px rgba(20,52,67,.1)}
  .mobile-menu strong{display:block;margin:12px 0 6px;color:#8b9ca3;font-size:9px}
  .mobile-menu a{display:block;padding:10px 0;border-bottom:1px solid #edf1f2;color:#365d6d;font-size:13px;text-decoration:none}
  .section-head{grid-template-columns:1fr;gap:9px}
  .section-head h2{font-size:34px}
  .section-head p{font-size:13.5px}
  .hero-grid{grid-template-columns:1fr;gap:18px;padding:29px 0}
  .hero-copy{padding:0}
  .hero-media img{min-height:330px}
  .trust-grid{grid-template-columns:1fr 1fr}
  .case-feature{grid-template-columns:1fr 1fr;gap:18px}
  .case-intro{grid-column:1/3}
  .case-flow{justify-content:flex-start}
  .case-doc-wrap{justify-content:flex-start}
  .course-explorer{grid-template-columns:1fr}
  .course-selector{flex-direction:row;overflow:auto;padding:0;border-right:0;border-bottom:1px solid var(--line);scrollbar-width:none}
  .course-selector::-webkit-scrollbar{display:none}
  .course-choice{min-width:190px;padding:15px;border-bottom:0;border-right:1px solid var(--line)}
  .course-choice::before{left:14px;right:14px;top:auto;bottom:0;width:auto;height:2px;transform:scaleX(0)}
  .course-choice[aria-selected='true']::before{transform:scaleX(1)}
  .course-panel{min-height:0}
  .course-panel-copy{padding:26px}
  .course-panel-visual{min-height:320px}
  .team-head{grid-template-columns:1fr;gap:10px}
  .team-head h2,.contact-copy h2{font-size:34px}
  .team-head>a{justify-self:start}
  .faculty-line{grid-template-columns:38px 110px minmax(0,1fr);gap:14px;padding:17px 0}
  .faculty-line h3{font-size:16px}
  .faculty-line p{font-size:12px}
  .resource-rail{grid-template-columns:1fr 1fr}
  .resource-link:nth-child(3){grid-column:1/3;border-left:0;border-top:1px solid var(--line);padding-left:0}
  .contact-layout{gap:26px}
}

@media(max-width:640px){
  .shell,.shell-wide{width:calc(100% - 28px)}
  .brand span{font-size:12px}
  .hero-grid{min-height:0}
  .brand-line{font-size:40px}
  .hero-lede{font-size:14px}
  .hero-actions{gap:10px 16px}
  .hero-media img{min-height:270px}
  .trust-item{padding:11px 9px;display:grid;gap:2px}
  .trust-item:first-child{padding-left:0}
  .trust-item strong{font-size:13px}
  .results-section,.programs-section,.people-section,.contact-section{padding:44px 0}
  .result-numbers{gap:28px}
  .result-number strong{font-size:56px}
  .school-list{grid-template-columns:1fr}
  .school-list div:nth-child(even){padding-left:0;border-left:0}
  .evidence-view{min-height:285px;padding:7px}
  .evidence-view img{min-height:271px}
  .case-feature{grid-template-columns:1fr}
  .case-intro{grid-column:auto}
  .case-flow{gap:8px}
  .case-flow span{min-width:58px}
  .case-flow b{font-size:27px}
  .case-doc-wrap{justify-content:space-between}
  .course-choice{min-width:172px}
  .course-panel-copy h3{font-size:27px}
  .common-visual,.eju-visual,.school-visual{grid-template-columns:1fr}
  .common-count,.eju-mark{padding:27px}
  .common-count strong{font-size:80px}
  .common-subjects,.eju-steps{padding:0 27px 27px}
  .school-visual{padding:25px}
  .school-docs img:first-child{width:116px}
  .school-docs img:last-child{width:160px}
  .school-score strong{font-size:43px}
  .art-visual{min-height:320px}
  .faculty-line{grid-template-columns:34px 1fr;gap:10px 12px}
  .faculty-line h3{font-size:16px}
  .faculty-line p{grid-column:2;font-size:12px}
  .faculty-no{grid-row:1/3}
  .resources-head{align-items:start;flex-direction:column;gap:5px}
  .resource-rail{grid-template-columns:1fr}
  .resource-link,.resource-link+ .resource-link{padding:13px 0;border-left:0;border-top:1px solid var(--line)}
  .resource-link:first-child{border-top:0}
  .qr-grid{flex-direction:column;gap:12px}
  .campus-panel{grid-template-columns:1fr}
  .campus-panel iframe{min-height:230px}
  .footer-main{grid-template-columns:1fr 1fr;gap:24px}
  .footer-brand{grid-column:1/3}
  .footer-bottom{flex-direction:column;gap:4px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* site-home-r63.css */
/* r63/r126 — cinematic full-bleed hero art direction. Mobile defers the 2.3 MB hero photo until the page is interactive. */

/* Header becomes part of the opening image, then resolves to the normal light header. */
body{padding-top:0}
html{scroll-padding-top:82px}
.site-header{height:76px;background:linear-gradient(180deg,rgba(5,30,44,.30),rgba(5,30,44,0));border-bottom-color:rgba(255,255,255,.12);backdrop-filter:none;box-shadow:none}
.header-main{height:76px}
.site-header .shell-wide{width:min(1580px,calc(100% - 96px))}
.brand{color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.18)}
.brand img{width:34px;height:34px;filter:brightness(0) invert(1);opacity:.96}
.utility-nav a{color:rgba(255,255,255,.84);text-shadow:0 1px 10px rgba(0,0,0,.18)}
.utility-nav a:hover,.utility-nav a.is-active{color:#fff}
.utility-nav a:not(.nav-contact)::after{background:rgba(255,255,255,.76)}
.utility-nav .nav-contact{border-color:rgba(255,255,255,.58);color:#fff;background:rgba(6,37,52,.12)}
.utility-nav .nav-contact:hover,.utility-nav .nav-contact.is-active{background:#fff;border-color:#fff;color:#123d50;text-shadow:none}
.site-header.is-scrolled{height:68px;background:rgba(255,255,255,.985);border-bottom-color:rgba(18,55,71,.10);backdrop-filter:blur(16px);box-shadow:0 8px 30px rgba(18,49,63,.055)}
.site-header.is-scrolled .header-main{height:68px}
.site-header.is-scrolled .brand{color:var(--navy);text-shadow:none}
.site-header.is-scrolled .brand img{filter:none;opacity:1}
.site-header.is-scrolled .utility-nav a{color:#5f7680;text-shadow:none}
.site-header.is-scrolled .utility-nav a:hover,.site-header.is-scrolled .utility-nav a.is-active{color:var(--navy)}
.site-header.is-scrolled .utility-nav a:not(.nav-contact)::after{background:#7099a9}
.site-header.is-scrolled .utility-nav .nav-contact{border-color:#bdccd2;color:#214d60;background:transparent}
.site-header.is-scrolled .utility-nav .nav-contact:hover,.site-header.is-scrolled .utility-nav .nav-contact.is-active{background:var(--navy);border-color:var(--navy);color:#fff}

/* Opening scene: one image, one dark information field, no split-card feeling. */
.hero{position:relative;isolation:isolate;min-height:clamp(690px,100svh,940px);overflow:hidden;border-bottom:0;background-color:#0b3143;background-image:linear-gradient(90deg,rgba(5,29,43,.93) 0%,rgba(5,29,43,.84) 25%,rgba(6,33,48,.64) 43%,rgba(7,38,54,.20) 62%,rgba(7,38,54,.04) 78%),linear-gradient(0deg,rgba(5,27,39,.23),rgba(5,27,39,0) 38%),url('images-optimized/hero_background_4.webp');background-size:cover;background-position:center 44%;background-repeat:no-repeat}
.hero::before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(6,31,45,.30) 0,transparent 52%),linear-gradient(180deg,rgba(5,29,42,.12),transparent 22%,transparent 76%,rgba(5,29,42,.18));pointer-events:none}
.hero-grid{position:relative;display:flex;align-items:center;width:min(1580px,calc(100% - 96px));min-height:clamp(690px,100svh,940px);padding:112px 0 150px}
.hero-copy{position:relative;z-index:2;display:block;width:min(760px,58vw);padding:0;color:#fff}
.hero-location{margin-bottom:17px;color:rgba(255,255,255,.76);font-size:12px;font-weight:650;letter-spacing:.015em}
.hero-copy h1{margin:0;color:rgba(255,255,255,.92);font-size:22px;line-height:1.3;font-weight:650;letter-spacing:.01em}
.brand-line{margin:28px 0 0;color:#fff;font-family:'Noto Serif JP','Yu Mincho','Hiragino Mincho ProN',serif;font-size:clamp(60px,5.55vw,92px);line-height:1.23;font-weight:500;letter-spacing:-.055em;text-shadow:0 2px 24px rgba(3,24,35,.20)}
.hero-lede{max-width:690px;margin:28px 0 0;color:rgba(242,247,249,.78);font-size:15px;line-height:1.9;letter-spacing:.005em}
.hero-actions{display:flex;align-items:center;gap:14px 34px;margin-top:31px}
.hero-actions a{color:rgba(255,255,255,.92);font-size:13px;font-weight:700;text-decoration:none}
.hero-actions .primary{padding:13px 22px;background:#fff;color:#173f52;box-shadow:0 5px 22px rgba(3,23,34,.10);transition:transform .16s ease,background-color .16s ease}
.hero-actions .primary:hover{background:#f4f7f8;color:#0d3345;transform:translateY(-1px)}
.hero-actions a:not(.primary){padding:7px 0 4px;border-bottom:1px solid rgba(255,255,255,.52);transition:border-color .15s ease,color .15s ease}
.hero-actions a:not(.primary):hover{color:#fff;border-color:#fff}
.hero-media{display:none}

/* Stats live inside the same visual field instead of forming a separate dashboard strip. */
.trust-strip{position:absolute;z-index:3;left:0;right:0;bottom:0;background:transparent;border-top:0}
.trust-grid{width:min(1580px,calc(100% - 96px));min-height:94px;display:flex;align-items:center;gap:0;border-top:1px solid rgba(255,255,255,.30)}
.trust-item{display:flex;align-items:baseline;gap:10px;min-width:0;padding:21px 30px;border-left:1px solid rgba(255,255,255,.24)}
.trust-item:first-child{padding-left:0;border-left:0}
.trust-item small{color:rgba(232,240,243,.66);font-size:11px}
.trust-item strong{color:#fff;font-size:15px;font-weight:750;letter-spacing:.005em}
.trust-item.location{display:none}

/* A softer transition out of the cinematic opening. */
.results-section{padding-top:64px}

@media(max-width:1040px){
  .site-header .shell-wide,.hero-grid,.trust-grid{width:calc(100% - 56px)}
  .hero{background-position:58% center}
  .hero-copy{width:min(650px,68vw)}
  .brand-line{font-size:clamp(54px,7vw,74px)}
}

@media(max-width:820px){
  html{scroll-padding-top:68px}
  .site-header,.header-main{height:64px}
  .site-header.is-scrolled,.site-header.is-scrolled .header-main{height:64px}
  .site-header .shell-wide{width:calc(100% - 32px)}
  .mobile-trigger span{background:#fff}
  .site-header.is-scrolled .mobile-trigger span{background:var(--navy)}
  .site-header:has(.mobile-menu.open){background:#fff;border-bottom-color:var(--line);backdrop-filter:none}
  .site-header:has(.mobile-menu.open) .brand{color:var(--navy);text-shadow:none}
  .site-header:has(.mobile-menu.open) .brand img{filter:none}
  .site-header:has(.mobile-menu.open) .mobile-trigger span{background:var(--navy)}
  /* Mobile starts with the same tonal composition but no multi-megabyte photo. r126 adds the photo after idle. */
  .hero{min-height:760px;background-image:linear-gradient(90deg,rgba(5,29,43,.94) 0%,rgba(5,29,43,.86) 42%,rgba(7,43,58,.72) 72%,rgba(9,53,69,.62)),linear-gradient(0deg,rgba(5,27,39,.34),transparent 42%);background-position:61% center}
  .hero-grid{width:calc(100% - 40px);min-height:760px;padding:100px 0 150px;align-items:center}
  .hero-copy{width:min(620px,90%)}
  .hero-location{font-size:11px}
  .hero-copy h1{font-size:19px}
  .brand-line{margin-top:22px;font-size:clamp(48px,8.6vw,66px);line-height:1.27}
  .hero-lede{max-width:590px;font-size:14px;line-height:1.82}
  .hero-actions{gap:12px 24px;margin-top:27px}
  .trust-grid{width:calc(100% - 40px);min-height:105px;display:grid;grid-template-columns:1.12fr .88fr .88fr}
  .trust-item{display:grid;gap:2px;padding:18px 16px}
  .trust-item:first-child{padding-left:0}
  .trust-item small{font-size:9.5px}
  .trust-item strong{font-size:13px}
  .site-header.is-scrolled{backdrop-filter:none}
}

@media(max-width:640px){
  .hero{min-height:720px;background-image:linear-gradient(90deg,rgba(5,29,43,.95),rgba(5,29,43,.84) 62%,rgba(9,52,68,.68)),linear-gradient(0deg,rgba(5,27,39,.38),transparent 45%);background-position:64% center}
  .hero-grid{width:calc(100% - 32px);min-height:720px;padding:88px 0 142px;align-items:center}
  .hero-copy{width:100%}
  .hero-location{margin-bottom:11px}
  .hero-copy h1{font-size:17px}
  .brand-line{margin-top:18px;font-size:clamp(42px,12.2vw,56px);line-height:1.28;letter-spacing:-.06em}
  .hero-lede{margin-top:20px;font-size:13.5px;line-height:1.78}
  .hero-actions{align-items:flex-start;gap:10px 20px;margin-top:23px}
  .hero-actions .primary{padding:11px 17px}
  .hero-actions a{font-size:12px}
  .trust-grid{width:calc(100% - 32px);min-height:110px;grid-template-columns:1.12fr .88fr .88fr}
  .trust-item{padding:16px 10px}
  .trust-item:first-child{padding-left:0}
  .trust-item small{font-size:8.8px}
  .trust-item strong{font-size:12px}
}

@media(prefers-reduced-motion:reduce){
  .site-header,.site-header *,.hero-actions *{transition:none!important}
}

/* site-home-r64.css */
/* r64 — course panels become image-led editorial compositions. Loaded after r61+r63. */

/* shared course visual language */
.course-panel-visual.visual-collage{display:grid;position:relative;min-height:422px;overflow:hidden;background:#dce5e9}
.course-panel-visual.visual-collage figure{position:relative;margin:0;overflow:hidden;background:#dfe7ea}
.course-panel-visual.visual-collage img{width:100%;height:100%;object-fit:cover;transition:transform .45s cubic-bezier(.2,.65,.3,1)}
.course-panel-visual.visual-collage::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(8,42,57,.02) 36%,rgba(8,42,57,.28) 100%)}
.course-panel-visual.visual-collage .visual-label{position:absolute;z-index:3;left:24px;bottom:21px;color:#fff;text-shadow:0 1px 10px rgba(5,27,38,.25)}
.course-panel-visual.visual-collage .visual-label small{display:block;margin-bottom:4px;color:rgba(255,255,255,.77);font-size:10px;font-weight:700;letter-spacing:.035em}
.course-panel-visual.visual-collage .visual-label strong{display:block;font-size:20px;line-height:1.28;font-weight:700;letter-spacing:-.025em}
.course-panel-visual.visual-collage .visual-label span{display:block;margin-top:5px;color:rgba(255,255,255,.84);font-size:11px;line-height:1.55}
.course-panel:hover .course-panel-visual.visual-collage img{transform:scale(1.012)}

/* common test — photographic, not a subject dashboard */
.common-photo-visual{grid-template-columns:1.38fr .62fr;grid-template-rows:1fr 1fr;gap:6px;padding:6px}
.common-photo-visual figure:first-child{grid-row:1/3}
.common-photo-visual figure:first-child img{object-position:center 46%}
.common-photo-visual figure:nth-child(2) img{object-position:center 38%}
.common-photo-visual figure:nth-child(3) img{object-position:center 55%}
.common-photo-visual .visual-label{left:28px;bottom:25px}
.common-photo-visual .visual-label strong{font-size:28px}

/* EJU — two-picture editorial spread */
.eju-photo-visual{grid-template-columns:1.16fr .84fr;grid-template-rows:1fr 1fr;gap:6px;padding:6px}
.eju-photo-visual figure:first-child{grid-row:1/3}
.eju-photo-visual figure:first-child img{object-position:center 44%}
.eju-photo-visual figure:nth-child(2) img{object-position:center 42%}
.eju-photo-visual figure:nth-child(3) img{object-position:center 54%}
.eju-photo-visual .visual-label strong{font-size:30px;letter-spacing:-.045em}

/* school-specific exam — no Tokyo Science document thumbnails on homepage */
.school-photo-visual{display:block!important;padding:6px}
.school-photo-visual figure{height:100%}
.school-photo-visual figure img{object-position:center 45%}
.school-photo-visual::before{content:'';position:absolute;z-index:2;inset:6px;background:linear-gradient(90deg,rgba(7,38,52,.46),rgba(7,38,52,.10) 60%,transparent 82%);pointer-events:none}
.school-photo-visual .visual-label{left:30px;bottom:27px;max-width:390px}
.school-photo-visual .visual-label strong{font-size:26px}
.school-photo-visual .school-route{display:flex;align-items:center;gap:9px;margin-top:11px;color:#fff;font-size:10.5px;font-weight:700;letter-spacing:.015em}
.school-photo-visual .school-route i{font-style:normal;color:rgba(255,255,255,.55)}

/* art panel receives the same frame and calmer overlay language */
.art-visual{gap:6px;padding:6px;background:#dce5e9}
.art-visual figure{position:relative}
.art-visual::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 62%,rgba(7,38,52,.16))}

/* make the stage feel more like an editorial spread than a UI widget */
.course-stage{background:#eef2f4}
.course-panel-copy{padding-left:42px;padding-right:42px}
.course-panel-copy .panel-index{letter-spacing:.06em}
.course-panel-copy h3{font-size:33px}
.course-panel-copy p{max-width:330px}

@media(max-width:1040px){
  .course-panel-visual.visual-collage{min-height:350px}
}

@media(max-width:640px){
  .course-panel-visual.visual-collage{min-height:300px}
  .common-photo-visual,.eju-photo-visual{grid-template-columns:1.2fr .8fr;grid-template-rows:147px 147px}
  .course-panel-visual.visual-collage .visual-label{left:18px;bottom:17px}
  .course-panel-visual.visual-collage .visual-label strong,.common-photo-visual .visual-label strong,.eju-photo-visual .visual-label strong,.school-photo-visual .visual-label strong{font-size:22px}
  .school-photo-visual{min-height:300px}
  .school-photo-visual .school-route{flex-wrap:wrap;gap:6px}
}

@media(prefers-reduced-motion:reduce){
  .course-panel-visual.visual-collage img{transition:none}
  .course-panel:hover .course-panel-visual.visual-collage img{transform:none}
}

/* site-home-r65.css */
/* r65 — shorter cinematic hero + horizontal results gallery. Loaded after r61+r63+r64. */

/* Keep the cinematic opening, but let the next section arrive sooner. */
.hero{min-height:clamp(570px,74svh,760px);background-position:center 45%}
.hero-grid{min-height:clamp(570px,74svh,760px);padding:96px 0 116px}
.hero-copy{width:min(700px,57vw)}
.brand-line{margin-top:22px;font-size:clamp(54px,5vw,80px);line-height:1.22}
.hero-lede{margin-top:22px;max-width:640px}
.hero-actions{margin-top:26px}
.trust-grid{min-height:76px}
.trust-item{padding-top:15px;padding-bottom:15px}

/* Results: summary first, then one calm horizontal archive of evidence. */
.results-section{padding:56px 0 64px;overflow:hidden}
.results-section .section-head{margin-bottom:22px}
.results-summary{display:grid;grid-template-columns:255px minmax(0,1fr);gap:44px;align-items:end;padding:4px 0 27px;border-bottom:1px solid rgba(255,255,255,.18)}
.results-summary .result-numbers{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:0;border:0}
.results-summary .result-number strong{font-size:62px}
.results-summary .result-number span{font-size:11px}
.results-summary .school-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;border-top:1px solid rgba(255,255,255,.11);border-bottom:1px solid rgba(255,255,255,.11)}
.results-summary .school-list div,.results-summary .school-list div:nth-child(even){padding:10px 14px 10px 0;border-left:0;border-bottom:1px solid rgba(255,255,255,.08)}
.results-summary .school-list div:nth-child(3n+2),.results-summary .school-list div:nth-child(3n+3){padding-left:14px;border-left:1px solid rgba(255,255,255,.08)}
.results-summary .school-list div:nth-last-child(-n+3){border-bottom:0}
.results-summary .school-list b{font-size:11.5px}
.results-summary .school-list span{font-size:13px}
.result-note{margin:10px 0 0;color:#93aab4;font-size:10px;line-height:1.65}

.results-gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-top:25px;margin-bottom:13px}
.results-gallery-head>div small{display:block;color:#8fa8b3;font-size:10px;font-weight:700;letter-spacing:.04em}
.results-gallery-head>div strong{display:block;margin-top:4px;color:#eef5f7;font-size:14px;font-weight:650}
.results-gallery-controls{display:flex;gap:8px}
.results-gallery-controls button{appearance:none;width:38px;height:38px;border:1px solid rgba(255,255,255,.24);background:transparent;color:#fff;font-size:18px;line-height:1;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,opacity .15s ease}
.results-gallery-controls button:hover:not(:disabled){background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.46)}
.results-gallery-controls button:disabled{opacity:.28;cursor:default}
.results-gallery-wrap{position:relative}
.result-gallery{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(232px,22vw,292px);gap:18px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;scroll-padding-inline:2px;padding:2px 2px 14px;margin:0 -2px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent;-webkit-overflow-scrolling:touch}
.result-gallery::-webkit-scrollbar{height:4px}
.result-gallery::-webkit-scrollbar-track{background:transparent}
.result-gallery::-webkit-scrollbar-thumb{background:rgba(255,255,255,.20)}
.result-gallery-card{appearance:none;position:relative;display:block;scroll-snap-align:start;margin:0;padding:6px;border:1px solid rgba(255,255,255,.13);background:#f4f1e9;cursor:zoom-in;overflow:hidden;transition:transform .18s ease,border-color .18s ease}
.result-gallery-card img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#f2efe7}
.result-gallery-card span{position:absolute;left:13px;bottom:13px;padding:5px 8px;background:rgba(7,37,51,.82);color:#fff;font-size:9.5px;font-weight:700;opacity:0;transform:translateY(3px);transition:opacity .16s ease,transform .16s ease}
.result-gallery-card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.33)}
.result-gallery-card:hover span,.result-gallery-card:focus-visible span{opacity:1;transform:none}

/* Old single-case layout no longer belongs on the homepage. */
.case-feature{display:none!important}
.results-overview{display:none!important}

@media(max-width:1040px){
  .hero{min-height:650px}
  .hero-grid{min-height:650px;padding:92px 0 116px}
  .hero-copy{width:min(650px,66vw)}
  .brand-line{font-size:clamp(50px,6.4vw,70px)}
  .results-summary{grid-template-columns:220px minmax(0,1fr);gap:30px}
  .results-summary .school-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .results-summary .school-list div:nth-child(n){padding-left:0;border-left:0}
  .results-summary .school-list div:nth-child(even){padding-left:14px;border-left:1px solid rgba(255,255,255,.08)}
  .results-summary .school-list div:nth-last-child(-n+3){border-bottom:1px solid rgba(255,255,255,.08)}
  .results-summary .school-list div:nth-last-child(-n+2){border-bottom:0}
  .result-gallery{grid-auto-columns:clamp(230px,30vw,280px)}
}

@media(max-width:820px){
  .hero{min-height:630px;background-position:61% center}
  .hero-grid{min-height:630px;padding:82px 0 118px}
  .hero-copy{width:min(600px,92%)}
  .brand-line{font-size:clamp(44px,8vw,60px)}
  .trust-grid{min-height:92px}
  .results-summary{grid-template-columns:1fr;gap:20px;align-items:start}
  .results-summary .result-numbers{grid-template-columns:110px 110px;gap:18px}
  .results-summary .result-number strong{font-size:52px}
  .results-gallery-head{margin-top:22px}
  .result-gallery{grid-auto-columns:min(70vw,270px);gap:14px}
}

@media(max-width:640px){
  .hero{min-height:590px;background-position:64% center}
  .hero-grid{min-height:590px;padding:76px 0 112px}
  .hero-location{margin-bottom:9px}
  .hero-copy h1{font-size:16px}
  .brand-line{margin-top:15px;font-size:clamp(39px,11vw,50px);line-height:1.26}
  .hero-lede{margin-top:16px;font-size:13px;line-height:1.72}
  .hero-actions{margin-top:19px}
  .trust-grid{min-height:98px}
  .results-section{padding:46px 0 52px}
  .results-summary .school-list{grid-template-columns:1fr 1fr}
  .results-summary .school-list b{font-size:10.8px}
  .results-gallery-head>div strong{font-size:13px}
  .results-gallery-controls{display:none}
  .result-gallery{grid-auto-columns:76vw;gap:12px;padding-bottom:10px}
  .result-gallery-card span{opacity:1;transform:none;background:rgba(7,37,51,.70)}
}

@media(prefers-reduced-motion:reduce){
  .result-gallery{scroll-behavior:auto}
  .result-gallery-card,.result-gallery-card span{transition:none}
  .result-gallery-card:hover{transform:none}
}

/* site-home-r69.css */
/* r73 — compact company profile + stable original-color brand. */

/* Header brand: use the real logo as-is. Reserve its footprint in CSS so the hero never flashes,
   shifts or swaps between a filtered mark and a fallback shape. */
.brand{min-height:34px;padding-left:43px!important;background:url('images-optimized/logo1.png') left center/32px 32px no-repeat!important}
.brand::before,.brand.logo-fallback::before,.brand img{display:none!important}

.results-section,.programs-section,.people-section,.company-section,.contact-section{content-visibility:visible!important;contain-intrinsic-size:none!important}
.course-panel[hidden]{display:none!important}
.course-panel-visual figure{background:#e8edef}
.course-panel-visual img{display:block;width:100%;height:100%;object-fit:cover;opacity:1!important;transition:opacity .14s ease!important}
.result-gallery-card img{opacity:1!important}

/* Courses: text first, imagery as a restrained supporting window. */
.course-explorer{grid-template-columns:248px minmax(0,1fr)!important;min-height:340px!important}
.course-panel{grid-template-columns:minmax(390px,1.48fr) minmax(260px,.72fr)!important;min-height:340px!important}
.course-panel-copy{padding:29px 44px!important}
.course-panel-copy h3{font-size:31px!important}
.course-panel-copy p{max-width:470px!important;line-height:1.75!important}
.course-panel-visual,.course-panel-visual.visual-collage,.art-visual,.school-photo-visual{height:340px!important;min-height:340px!important}
.course-panel-visual.visual-collage .visual-label{left:17px!important;right:17px!important;bottom:15px!important;padding:13px 15px!important}
.course-panel-visual.visual-collage .visual-label small{font-size:9px!important}
.course-panel-visual.visual-collage .visual-label strong{font-size:19px!important;line-height:1.25!important}
.course-panel-visual.visual-collage .visual-label span{font-size:10px!important}
.school-route{gap:6px!important;margin-top:6px!important}
.school-route span{font-size:9px!important}

/* Lead teacher link: role is useful context; remove promotional wording. */
.team-head .lead-teacher-link{display:grid!important;grid-template-columns:auto auto;grid-template-areas:'title arrow' 'role role';column-gap:7px;row-gap:1px;align-items:center;text-align:right;text-decoration:none!important}
.team-head .lead-teacher-link span{grid-area:title;color:var(--navy);font-size:12px;font-weight:800}
.team-head .lead-teacher-link small{grid-area:role;color:#7b9099;font-size:9.5px;font-weight:600;white-space:nowrap}
.team-head .lead-teacher-link b{grid-area:arrow;color:#6d8e9b;font-size:12px;font-weight:700}

/* Company profile: keep all factual information, but treat it as compact corporate metadata rather
   than a second landing page. */
.company-section{padding:42px 0 46px;background:#f5f7f7;border-top:1px solid var(--line)}
.company-section .section-head{margin-bottom:14px}
.company-section .section-head h2{font-size:33px}
.company-section .section-head p{font-size:12.5px}
.company-overview{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:46px;padding:20px 0 22px;border-top:1px solid var(--line-dark);border-bottom:1px solid var(--line)}
.company-kicker{display:none}
.company-copy h3{margin:0 0 9px;font-size:24px;line-height:1.3;letter-spacing:-.02em;color:var(--navy)}
.company-copy p{max-width:740px;margin:0;font-size:12px;line-height:1.75;color:#607985}
.company-facts{display:grid;grid-template-columns:1fr;margin:0;padding:0 0 0 24px;border-left:1px solid var(--line)}
.company-facts div{display:grid;grid-template-columns:72px 1fr;gap:8px;align-items:start;padding:6px 0;border-bottom:1px solid var(--line)}
.company-facts div:first-child{padding-top:0}
.company-facts div:last-child{border-bottom:0;padding-bottom:0}
.company-facts dt{font-size:9px;font-weight:750;letter-spacing:.05em;color:#8799a1}
.company-facts dd{margin:0;font-size:11px;line-height:1.55;font-weight:650;color:var(--navy)}
.company-details{display:grid;grid-template-columns:1.16fr 1fr .9fr;border-bottom:1px solid var(--line)}
.company-detail{min-width:0;padding:16px 22px 18px;border-left:1px solid var(--line)}
.company-detail:first-child{padding-left:0;border-left:0}
.company-detail:last-child{padding-right:0}
.company-no{display:none}
.company-detail h3{margin:0 0 8px;font-size:14px;color:var(--navy)}
.company-detail p,.company-detail li{margin:0 0 5px;font-size:11px;line-height:1.65;color:#607985}
.company-detail ul{margin:0;padding:0;list-style:none}
.company-detail li{position:relative;padding-left:12px}
.company-detail li::before{content:"";position:absolute;left:0;top:.72em;width:4px;height:4px;border-radius:50%;background:#7895a1}
.company-date{color:#2f7188;font-weight:800}
.company-team{margin:0}
.company-team div{display:grid;grid-template-columns:66px 1fr;gap:9px;padding:3px 0;border-bottom:1px solid rgba(21,57,72,.08)}
.company-team div:last-child{border-bottom:0}
.company-team dt{font-size:10px;font-weight:700;color:#7b9099}
.company-team dd{margin:0;font-size:11px;font-weight:650;color:var(--navy)}

@media(min-width:821px) and (max-width:1040px){
  .course-explorer{grid-template-columns:216px minmax(0,1fr)!important;min-height:316px!important}
  .course-panel{grid-template-columns:minmax(320px,1.28fr) minmax(220px,.72fr)!important;min-height:316px!important}
  .course-panel-copy{padding:25px 30px!important}
  .course-panel-visual,.course-panel-visual.visual-collage,.art-visual,.school-photo-visual{height:316px!important;min-height:316px!important}
  .company-overview{gap:30px}
  .company-details{grid-template-columns:1.1fr 1fr .95fr}
  .company-detail{padding-left:17px;padding-right:17px}
}

@media(max-width:820px){
  .brand{min-height:31px;padding-left:39px!important;background-size:29px 29px!important}
  .course-explorer{grid-template-columns:1fr!important;min-height:0!important}
  .course-panel{grid-template-columns:1fr!important;min-height:0!important}
  .course-panel-copy{padding:25px 23px!important}
  .course-panel-copy h3{font-size:28px!important}
  .course-panel-visual,.course-panel-visual.visual-collage,.art-visual,.school-photo-visual{height:235px!important;min-height:235px!important}
  .team-head .lead-teacher-link{text-align:left;margin-top:10px}
  .team-head .lead-teacher-link small{white-space:normal}
  .company-section{padding:36px 0 40px}
  .company-section .section-head{margin-bottom:10px}
  .company-overview{grid-template-columns:1fr;gap:16px;padding:16px 0 18px}
  .company-copy h3{font-size:21px}
  .company-facts{padding:12px 0 0;border-left:0;border-top:1px solid var(--line)}
  .company-details{grid-template-columns:1fr}
  .company-detail,.company-detail:first-child,.company-detail:last-child{padding:15px 0;border-left:0;border-bottom:1px solid var(--line)}
  .company-detail:last-child{border-bottom:0}
}

@media(max-width:520px){
  .course-panel-visual,.course-panel-visual.visual-collage,.art-visual,.school-photo-visual{height:210px!important;min-height:210px!important}
}

@media(prefers-reduced-motion:reduce){.course-panel-visual img{transition:none!important}}

/* site-home-r76.css */
/* r84 — readability + micro-interaction polish. Preserve the established layout. */

#programs .section-head p{max-width:620px}
::selection{background:#dcebee;color:#10384a}

/* 1px page progress: useful orientation, almost invisible when idle. */
.site-header::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
  background:linear-gradient(90deg,#6d9faf,#2f7289);
  transform:scaleX(var(--page-progress,0));transform-origin:left center;
  opacity:.78;pointer-events:none;transition:opacity .18s ease;
}
.site-header:not(.is-scrolled)::after{opacity:.5}

/* Links: one coherent motion language. */
.hero-actions a,.course-panel-copy a,.resource-link,.team-head .lead-teacher-link,.company-section a,.footer a,.utility-nav a{
  transition:transform .18s ease,color .18s ease,background-color .18s ease,border-color .18s ease,opacity .18s ease;
}
.hero-actions a:hover,.hero-actions a:focus-visible{transform:translateY(-1px)}
.course-panel-copy a:hover,.course-panel-copy a:focus-visible,.team-head .lead-teacher-link:hover,.team-head .lead-teacher-link:focus-visible{transform:translateX(2px)}
.company-section a:hover,.company-section a:focus-visible{opacity:.78}
.utility-nav a.is-active:not(.nav-contact){color:var(--navy)}
.utility-nav .nav-contact:focus-visible{outline-color:#6b98aa}

/* Course selector: tactile but still editorial. */
.course-choice{position:relative;overflow:hidden;transition:background-color .2s ease,color .2s ease,transform .2s ease,border-color .2s ease}
.course-choice::after{content:"";position:absolute;left:0;top:18%;bottom:18%;width:2px;background:var(--navy);transform:scaleY(0);transform-origin:center;transition:transform .2s ease}
.course-choice:hover:not([aria-selected="true"]){background:#f7f9f9;transform:translateX(1px)}
.course-choice[aria-selected="true"]::after{transform:scaleY(1)}
.course-choice[aria-selected="true"] strong{letter-spacing:-.01em}
.course-choice[aria-selected="true"]>span:first-child{font-weight:800}
.course-panel.r76-panel-enter{animation:r76PanelIn .24s cubic-bezier(.22,.61,.36,1) both}
@keyframes r76PanelIn{from{opacity:.42;transform:translateY(5px)}to{opacity:1;transform:none}}
.course-panel-copy a{position:relative}
.course-panel-copy a::after{content:"";display:inline-block;width:5px;height:5px;margin-left:6px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg) translateY(-1px);transition:transform .16s ease}
.course-panel-copy a:hover::after,.course-panel-copy a:focus-visible::after{transform:rotate(45deg) translate(2px,-3px)}

/* Results gallery: clearer depth and drag feedback without heavy card animation. */
.result-gallery{cursor:grab;scrollbar-width:none;padding-bottom:10px}
.result-gallery::-webkit-scrollbar{display:none}
.result-gallery.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.result-gallery.is-dragging .result-gallery-card{pointer-events:none}
.result-gallery-card{will-change:transform;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.result-gallery-card img{transition:transform .26s cubic-bezier(.22,.61,.36,1),filter .2s ease}
@media(hover:hover){
  .result-gallery-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.08)}
  .result-gallery-card:hover img{transform:scale(1.012);filter:contrast(1.015)}
}
.results-gallery-controls button{position:relative;overflow:hidden;isolation:isolate;transition:border-color .18s ease,opacity .18s ease,transform .18s ease}
.results-gallery-controls button::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.08);transform:scale(.72);opacity:0;transition:transform .18s ease,opacity .18s ease;z-index:-1}
.results-gallery-controls button:hover:not(:disabled)::after{transform:scale(1);opacity:1}
.results-gallery-controls button:hover:not(:disabled){transform:translateY(-1px)}
.results-gallery-controls button:disabled{opacity:.34}
.r76-gallery-progress{height:2px;margin-top:2px;background:rgba(255,255,255,.11);overflow:hidden}
.r76-gallery-progress>span{display:block;width:100%;height:100%;background:rgba(255,255,255,.62);transform:scaleX(.18);transform-origin:left center;transition:transform .08s linear}

/* Trust / result data: highlight the value rather than the whole tile. */
.trust-item,.result-number{transition:background-color .18s ease,color .18s ease}
.trust-item strong,.result-number strong{transition:transform .18s ease,color .18s ease}
@media(hover:hover){
  .trust-item:hover{background:rgba(255,255,255,.022)}
  .trust-item:hover strong{transform:translateY(-1px)}
  .results-section .result-number:hover{background:rgba(255,255,255,.022)}
}

/* Section headings: tiny visual cue on arrival, not an entrance gimmick. */
.section-head h2{position:relative;width:max-content;max-width:100%}
.section-head h2::after{content:"";position:absolute;left:0;bottom:-9px;width:34px;height:2px;background:currentColor;opacity:.2;transform:scaleX(.42);transform-origin:left;transition:transform .34s ease,opacity .34s ease}
.section-head.r76-seen h2::after,.section-head:hover h2::after{transform:scaleX(1);opacity:.38}
.results-section .section-head h2::after{background:#fff}

/* Faculty directory: improve scanning without turning rows into cards. */
.faculty-line{position:relative;transition:background-color .16s ease,border-color .16s ease}
.faculty-line::after{content:"";position:absolute;left:0;top:24%;bottom:24%;width:2px;background:#6d99a9;opacity:0;transform:scaleY(.4);transition:opacity .16s ease,transform .16s ease}
@media(hover:hover){
  .faculty-line:hover{background:linear-gradient(90deg,rgba(54,111,132,.045),transparent 72%)}
  .faculty-line:hover::after{opacity:.72;transform:scaleY(1)}
}
.faculty-line h3,.faculty-line p{transition:color .16s ease}
.faculty-line:hover h3{color:#10384a}

/* Reading resources: consistent arrow feedback and slightly stronger hierarchy. */
.resource-link{position:relative;transition:transform .16s ease,background-color .16s ease}
.resource-link b{transition:color .16s ease}
.resource-link span::after{content:" →";display:inline-block;transition:transform .16s ease}
@media(hover:hover){
  .resource-link:hover{transform:translateY(-1px)}
  .resource-link:hover span::after{transform:translateX(2px)}
}

/* Company profile: make dense factual information easier to scan. */
.company-facts div,.company-detail,.company-team div{transition:background-color .16s ease,color .16s ease}
@media(hover:hover){
  .company-facts div:hover{background:rgba(47,114,137,.035)}
  .company-detail:hover{background:rgba(47,114,137,.025)}
  .company-team div:hover{background:rgba(47,114,137,.03)}
}
.company-facts dd,.company-detail h3{transition:color .16s ease}
.company-facts div:hover dd,.company-detail:hover h3{color:#174d62}

/* Consultation QR codes: clearer affordance, no zoom theatrics. */
.qr-grid figure{transition:opacity .18s ease}
.qr-grid img{border:1px solid rgba(255,255,255,.12);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.qr-grid figcaption b{transition:color .18s ease}
@media(hover:hover){
  .qr-grid figure:hover img{border-color:rgba(255,255,255,.38);box-shadow:0 8px 22px rgba(0,0,0,.08);transform:translateY(-1px)}
  .qr-grid figure:hover figcaption b{color:#fff}
}

/* Footer links: a quiet underline gives precision on desktop. */
.footer-nav a{position:relative;width:max-content;max-width:100%}
.footer-nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:#9cb0b8;transform:scaleX(0);transform-origin:left;transition:transform .16s ease}
.footer-nav a:hover::after,.footer-nav a:focus-visible::after{transform:scaleX(1)}

/* Focus treatment: consistent and visible across the homepage. */
.result-gallery-card:focus-visible,.course-choice:focus-visible,.results-gallery-controls button:focus-visible,.resource-link:focus-visible,.lead-teacher-link:focus-visible,.campus-tools button:focus-visible,.campus-tools a:focus-visible,.contact-recruit a:focus-visible{
  outline:2px solid currentColor;outline-offset:3px
}

@media(max-width:820px){
  .course-choice:hover:not([aria-selected="true"]){transform:none}
  .result-gallery{cursor:auto}
  .r76-gallery-progress{margin-top:0}
  .faculty-line::after{display:none}
}

@media(prefers-reduced-motion:reduce){
  .site-header::after,.hero-actions a,.course-panel-copy a,.course-panel-copy a::after,.resource-link,.resource-link span::after,.team-head .lead-teacher-link,.company-section a,.footer a,.utility-nav a,.course-choice,.course-choice::after,.result-gallery-card,.result-gallery-card img,.results-gallery-controls button,.section-head h2::after,.r76-gallery-progress>span,.faculty-line,.faculty-line::after,.trust-item strong,.result-number strong,.company-facts div,.company-detail,.company-team div,.qr-grid img,.footer-nav a::after{transition:none!important}
  .course-panel.r76-panel-enter{animation:none!important}
  .hero-actions a:hover,.course-panel-copy a:hover,.resource-link:hover,.team-head .lead-teacher-link:hover,.course-choice:hover,.result-gallery-card:hover,.qr-grid figure:hover img,.results-gallery-controls button:hover{transform:none!important}
}

/* site-home-r77.css */
/* r83 — final micro-polish: preserve the layout, refine hierarchy, feedback and readability. */
.footer-access-recruit{display:none!important}

/* Nakano classroom: one coherent editorial system on the WHITE campus panel. */
.campus-panel{
  grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);
  overflow:hidden;
  border:1px solid #d9e3e7;
  background:#fff;
  color:#173f50;
  transition:border-color .18s ease,box-shadow .18s ease;
}
@media(hover:hover){.campus-panel:hover{border-color:#c8d8de;box-shadow:0 10px 28px rgba(17,55,70,.055)}}
.campus-copy{
  --campus-title:#10384a;
  --campus-text:#405f6c;
  --campus-sub:#667f89;
  --campus-muted:#7f949c;
  --campus-line:#dbe4e7;
  --campus-accent:#2f7289;
  padding:27px 28px 25px;
  background:#fbfcfc;
}
.campus-copy>span{
  display:block;margin:0;color:var(--campus-muted);font-size:9.5px;line-height:1.4;font-weight:750;letter-spacing:.08em
}
.campus-copy h3{
  margin:5px 0 11px;color:var(--campus-title);font-size:24px;line-height:1.2;font-weight:800;letter-spacing:-.025em
}
.campus-copy>p{
  margin:0;color:var(--campus-text);font-size:11.3px;line-height:1.82;font-weight:500
}
.campus-copy>small{
  display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:4px 8px;border:1px solid #d8e3e7;background:#f0f5f6;color:#526f7b;font-size:9.4px;line-height:1.4;font-weight:700;letter-spacing:.015em
}
.campus-copy>small::before{content:'';width:5px;height:5px;border-radius:50%;background:#4b8296}

/* Useful, quiet actions. Give them enough hit area without making them buttons visually. */
.campus-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:11px}
.campus-tools button,.campus-tools a{
  appearance:none;min-height:27px;padding:5px 0 3px;border:0;border-bottom:1px solid #b7c9d0;background:transparent;color:#426b7b;font:inherit;font-size:9.7px;line-height:1.4;font-weight:750;text-decoration:none;cursor:pointer;transition:color .16s ease,border-color .16s ease,transform .16s ease
}
.campus-tools button:hover,.campus-tools button:focus-visible,.campus-tools a:hover,.campus-tools a:focus-visible{color:#174c61;border-color:#56869a;transform:translateY(-1px)}

/* Access is a secondary information group, using the SAME type scale and color logic. */
.campus-access{margin-top:17px;padding-top:15px;border-top:1px solid var(--campus-line)}
.campus-access h4{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--campus-title);font-size:11.5px;line-height:1.4;font-weight:800;letter-spacing:.025em}
.campus-access h4::before{content:'';width:18px;height:1px;background:#6d99a9}
.campus-access-list{display:grid;gap:0}
.campus-access-item{
  position:relative;display:block;margin:0 -8px;padding:10px 8px 10px 20px;border-top:1px solid #e3eaed;transition:background-color .16s ease,transform .16s ease
}
.campus-access-item:first-child{border-top:0}
.campus-access-item::before{content:'';position:absolute;left:8px;top:17px;width:4px;height:4px;border-radius:50%;background:#6b9aaa}
.campus-access-item b{display:block;color:var(--campus-title);font-size:11.3px;line-height:1.58;font-weight:750}
.campus-access-item>span{display:block;margin-top:2px;color:var(--campus-accent);font-size:10.4px;line-height:1.55;font-weight:750}
.campus-access-item small{display:block;margin-top:4px;color:var(--campus-sub);font-size:9.7px;line-height:1.65;font-weight:550}
@media(hover:hover){.campus-access-item:hover{background:#f2f6f7;transform:translateX(1px)}}
.campus-panel iframe{border-left:1px solid #e1e8eb!important;background:#eef3f4}

/* Recruiting stays inside the unused lower-left area of admissions consultation. */
.contact-copy .contact-recruit{margin-top:22px;padding-top:17px;border-top:1px solid rgba(255,255,255,.22);color:#eef5f7}
.contact-recruit-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:11px}
.contact-recruit h3{margin:0;color:#fff;font-size:14px;font-weight:800;letter-spacing:.02em}
.contact-recruit-head small{color:#b6c7cd;font-size:9.5px;font-weight:650;letter-spacing:.04em}
.contact-recruit-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 11px}
.contact-recruit-role{
  min-width:0;padding:9px 10px;border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.04);cursor:default;transition:border-color .16s ease,background-color .16s ease
}
.contact-recruit-role b{display:block;color:#fff;font-size:10.6px;line-height:1.45;font-weight:750}
.contact-recruit-role span{display:block;margin-top:3px;color:#c9d6da;font-size:9.2px;line-height:1.55}
@media(hover:hover){.contact-recruit-role:hover{border-color:rgba(255,255,255,.31);background:rgba(255,255,255,.065)}}
.contact-recruit-note{margin:0;color:#d4dfe2;font-size:9.9px;line-height:1.72}
.contact-recruit-note b{color:#fff;font-weight:750}
.contact-recruit a{display:inline-flex;align-items:center;gap:6px;margin-top:9px;padding-bottom:2px;border-bottom:1px solid rgba(255,255,255,.50);color:#fff;font-size:10.3px;font-weight:750;text-decoration:none;transition:border-color .16s ease,transform .16s ease}
.contact-recruit a:hover,.contact-recruit a:focus-visible{border-color:#fff;transform:translateX(2px)}

/* Faculty directory r88 — separate person, teaching area and affiliation. */
.faculty-directory--structured .faculty-line{grid-template-columns:52px 132px minmax(0,1fr);gap:22px;align-items:start;padding:21px 0}
.faculty-directory--structured .faculty-line h3{padding-top:2px}
.faculty-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(126px,1fr));gap:0;min-width:0}
.faculty-person{position:relative;min-width:0;min-height:48px;padding:1px 15px 2px;border-left:1px solid #d8e2e6}
.faculty-person:first-child{padding-left:0;border-left:0}
.faculty-person b{display:block;color:#214f61;font-size:13.4px;line-height:1.4;font-weight:800;letter-spacing:-.01em}
.faculty-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px;margin-top:5px;min-height:16px}
.faculty-duty{color:#35738a;font-size:10.2px;line-height:1.45;font-weight:750}
.faculty-school{color:#7a8f98;font-size:10.2px;line-height:1.45;font-weight:600}
.faculty-duty+.faculty-school::before{content:'·';margin-right:7px;color:#a1b0b6}
@media(hover:hover){
  .faculty-person{transition:background-color .16s ease}
  .faculty-person:hover{background:rgba(54,111,132,.035)}
}

/* Micro polish only: the existing layout remains untouched. */
.course-choice{transition:color .16s ease,background-color .16s ease}
.course-panel-copy a,.resource-link span,.team-head .lead-teacher-link,.company-section a{ text-underline-offset:3px }
.results-gallery-controls button,.hero-actions a,.course-panel-copy a,.campus-tools button,.campus-tools a,.contact-recruit a{-webkit-tap-highlight-color:transparent}
@media(hover:hover){
  .course-choice:hover{background:#f7f9fa}
  .resource-link{transition:transform .16s ease}
  .resource-link:hover{transform:translateY(-1px)}
}

@media(max-width:900px){
  .campus-panel{grid-template-columns:minmax(285px,.78fr) minmax(0,1.22fr)}
  .contact-recruit-roles{grid-template-columns:1fr 1fr}
  .faculty-directory--structured .faculty-line{grid-template-columns:44px 110px minmax(0,1fr);gap:16px}
  .faculty-people{grid-template-columns:repeat(2,minmax(0,1fr))}
  .faculty-person:nth-child(odd){padding-left:0;border-left:0}
  .faculty-person:nth-child(n+3){margin-top:12px;padding-top:11px;border-top:1px solid #e3eaed}
}
@media(max-width:640px){
  .campus-panel{grid-template-columns:1fr}
  .campus-copy{padding:23px 22px}
  .campus-copy h3{font-size:23px}
  .campus-panel iframe{border-left:0!important;border-top:1px solid #e1e8eb!important}
  .campus-access-item{margin:0 -5px;padding-left:17px;padding-right:5px}
  .campus-access-item::before{left:5px}
  .contact-recruit-head{display:block}
  .contact-recruit-head small{display:block;margin-top:3px}
  .contact-recruit-roles{grid-template-columns:1fr}
  .faculty-directory--structured .faculty-line{grid-template-columns:34px minmax(0,1fr);gap:8px 12px;padding:18px 0}
  .faculty-directory--structured .faculty-no{grid-row:1/3}
  .faculty-directory--structured .faculty-line h3{grid-column:2;padding-top:0}
  .faculty-directory--structured .faculty-people{grid-column:2;grid-template-columns:1fr 1fr;margin-top:3px}
  .faculty-person{min-height:44px;padding-right:8px}
  .faculty-person b{font-size:12.8px}
  .faculty-duty,.faculty-school{font-size:9.8px}
}
@media(max-width:420px){
  .faculty-directory--structured .faculty-people{grid-template-columns:1fr}
  .faculty-person,.faculty-person:nth-child(odd){padding:9px 0 8px;border-left:0;border-top:1px solid #e3eaed}
  .faculty-person:first-child{padding-top:2px;border-top:0}
  .faculty-person:nth-child(n+3){margin-top:0}
}
@media(prefers-reduced-motion:reduce){
  .campus-panel,.campus-tools button,.campus-tools a,.campus-access-item,.contact-recruit-role,.contact-recruit a,.course-choice,.resource-link,.faculty-person{transition:none!important}
  .campus-tools button:hover,.campus-tools a:hover,.campus-access-item:hover,.contact-recruit a:hover,.resource-link:hover{transform:none!important}
}

/* site-home-r89.css */
/* r89 — faculty directory: clear subject columns and consistent teacher + school hierarchy. */

/* Keep the directory editorial: no portrait cards, no mixed inline separators. */
.faculty-directory--structured .faculty-line{grid-template-columns:52px 132px minmax(0,1fr);gap:22px;align-items:start;padding:22px 0}
.faculty-directory--structured .faculty-line h3{padding-top:2px}

/* General teacher rows: name first, duty / school second. */
.faculty-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:0;min-width:0}
.faculty-person{position:relative;min-width:0;min-height:52px;padding:1px 15px 3px;border-left:1px solid #d8e2e6}
.faculty-person:first-child{padding-left:0;border-left:0}
.faculty-person b{display:block;color:#214f61;font-size:13.4px;line-height:1.4;font-weight:800;letter-spacing:-.01em}
.faculty-meta{display:grid;gap:2px;margin-top:5px;min-height:17px}
.faculty-duty{color:#35738a;font-size:10.2px;line-height:1.45;font-weight:750}
.faculty-school{color:#788d96;font-size:10.2px;line-height:1.45;font-weight:600}
.faculty-duty+.faculty-school::before{display:none!important}

/* Science: four explicit subject columns. Subject is the category; each teacher only shows name + school. */
.faculty-science-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0;border-top:1px solid #d9e3e7;border-bottom:1px solid #d9e3e7}
.faculty-subject-col{min-width:0;padding:13px 16px 12px;border-left:1px solid #d9e3e7}
.faculty-subject-col:first-child{border-left:0;padding-left:0}
.faculty-subject-col:last-child{padding-right:0}
.faculty-subject-col h4{margin:0 0 7px;color:#2f7289;font-size:10.5px;line-height:1.4;font-weight:800;letter-spacing:.045em}
.faculty-subject-teachers{display:grid;gap:0}
.faculty-subject-teachers p{margin:0;padding:8px 0;border-top:1px solid #e5ecee}
.faculty-subject-teachers p:first-child{border-top:0}
.faculty-subject-teachers b{display:block;color:#214f61;font-size:13px;line-height:1.4;font-weight:800}
.faculty-subject-teachers span{display:block;margin-top:3px;color:#788d96;font-size:10.1px;line-height:1.45;font-weight:600}

@media(hover:hover){
  .faculty-person,.faculty-subject-teachers p{transition:background-color .16s ease,color .16s ease}
  .faculty-person:hover{background:rgba(54,111,132,.035)}
  .faculty-subject-teachers p:hover{background:rgba(54,111,132,.035)}
}

/* r91 — four reading resources; official social accounts live together beside the heading. */
.resource-rail--expanded{grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);background:rgba(255,255,255,.16)}
.resource-rail--expanded .resource-link{min-width:0;padding:15px 16px 16px;border-left:1px solid var(--line);border-top:0}
.resource-rail--expanded .resource-link:first-child{padding-left:0;border-left:0}
.resource-rail--expanded .resource-link:last-child{padding-right:0}
.resource-rail--expanded .resource-link small{color:#7c929b;font-size:9.4px;line-height:1.45;font-weight:750;letter-spacing:.02em}
.resource-rail--expanded .resource-link b{margin-top:6px;color:#284f60;font-size:12px;line-height:1.55;font-weight:750}
.resource-rail--expanded .resource-link span{margin-top:8px;color:#347b92;font-size:9.8px;font-weight:750}
.resource-rail--expanded .resource-link span::after{display:none!important}
.official-social-links{display:flex;align-items:center;justify-content:flex-end;gap:0;flex-wrap:wrap}
.resources-head .official-social-link{display:inline-flex;align-items:center;min-height:28px;padding:5px 0;color:#6b818a;font-size:10px;line-height:1.4;font-weight:700;text-decoration:none;white-space:nowrap;transition:color .16s ease,transform .16s ease}
.resources-head .official-social-link+.official-social-link{margin-left:14px;padding-left:14px;border-left:1px solid #d5e0e4}
@media(hover:hover){
  .resource-rail--expanded .resource-link:hover{background:rgba(54,111,132,.035);transform:translateY(-1px)}
  .resource-rail--expanded .resource-link:hover b{color:#174d62}
  .resources-head .official-social-link:hover{color:#214f61;transform:translateY(-1px)}
}

@media(max-width:1000px){
  .resource-rail--expanded{grid-template-columns:repeat(2,minmax(0,1fr))}
  .resource-rail--expanded .resource-link,.resource-rail--expanded .resource-link:first-child,.resource-rail--expanded .resource-link:last-child{padding:14px 15px;border-left:1px solid var(--line);border-top:1px solid var(--line)}
  .resource-rail--expanded .resource-link:nth-child(-n+2){border-top:0}
  .resource-rail--expanded .resource-link:nth-child(odd){padding-left:0;border-left:0}
  .resource-rail--expanded .resource-link:nth-child(even){padding-right:0}
}

@media(max-width:900px){
  .faculty-directory--structured .faculty-line{grid-template-columns:44px 110px minmax(0,1fr);gap:16px}
  .faculty-people{grid-template-columns:repeat(2,minmax(0,1fr))}
  .faculty-person:nth-child(odd){padding-left:0;border-left:0}
  .faculty-person:nth-child(n+3){margin-top:12px;padding-top:11px;border-top:1px solid #e3eaed}
  .faculty-science-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .faculty-subject-col{padding:13px 14px;border-bottom:1px solid #d9e3e7}
  .faculty-subject-col:nth-child(odd){padding-left:0;border-left:0}
  .faculty-subject-col:nth-child(even){padding-right:0}
  .faculty-subject-col:nth-child(n+3){border-bottom:0}
}

@media(max-width:700px){
  .resources-head{align-items:flex-start}
  .official-social-links{justify-content:flex-start}
}

@media(max-width:640px){
  .faculty-directory--structured .faculty-line{grid-template-columns:34px minmax(0,1fr);gap:8px 12px;padding:18px 0}
  .faculty-directory--structured .faculty-no{grid-row:1/3}
  .faculty-directory--structured .faculty-line h3{grid-column:2;padding-top:0}
  .faculty-directory--structured .faculty-people,.faculty-directory--structured .faculty-science-grid{grid-column:2;margin-top:4px}
  .faculty-people{grid-template-columns:1fr 1fr}
  .faculty-person{min-height:46px;padding-right:8px}
  .faculty-person b{font-size:12.8px}
  .faculty-duty,.faculty-school{font-size:9.8px}
  .faculty-science-grid{grid-template-columns:1fr;border-top:0;border-bottom:0}
  .faculty-subject-col,.faculty-subject-col:first-child,.faculty-subject-col:last-child,.faculty-subject-col:nth-child(odd),.faculty-subject-col:nth-child(even){padding:11px 0;border-left:0;border-bottom:1px solid #d9e3e7}
  .faculty-subject-col:first-child{border-top:1px solid #d9e3e7}
  .faculty-subject-col h4{margin-bottom:5px}
  .faculty-subject-teachers{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
  .faculty-subject-teachers p:nth-child(2){border-top:0}
}

@media(max-width:480px){
  .resource-rail--expanded{grid-template-columns:1fr}
  .resource-rail--expanded .resource-link,.resource-rail--expanded .resource-link:first-child,.resource-rail--expanded .resource-link:last-child,.resource-rail--expanded .resource-link:nth-child(odd),.resource-rail--expanded .resource-link:nth-child(even){padding:13px 0;border-left:0;border-top:1px solid var(--line)}
  .resource-rail--expanded .resource-link:first-child{border-top:0}
  .resources-head .official-social-link{font-size:9.8px}
  .resources-head .official-social-link+.official-social-link{margin-left:10px;padding-left:10px}
}

@media(max-width:420px){
  .faculty-directory--structured .faculty-people{grid-template-columns:1fr}
  .faculty-person,.faculty-person:nth-child(odd){padding:9px 0 8px;border-left:0;border-top:1px solid #e3eaed}
  .faculty-person:first-child{padding-top:2px;border-top:0}
  .faculty-person:nth-child(n+3){margin-top:0}
  .faculty-subject-teachers{grid-template-columns:1fr}
  .faculty-subject-teachers p:nth-child(2){border-top:1px solid #e5ecee}
}

@media(prefers-reduced-motion:reduce){
  .faculty-person,.faculty-subject-teachers p,.resource-rail--expanded .resource-link,.resources-head .official-social-link{transition:none!important}
  .resources-head .official-social-link:hover{transform:none!important}
}

/* site-home-r96.css */
/* r96/r119 — direct contact + homepage readability and interaction polish. */
.contact-direct{display:flex;flex-wrap:wrap;gap:7px 16px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.18)}
.contact-direct a{color:#edf5f7;font-size:10.2px;line-height:1.5;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.42);padding-bottom:2px;transition:border-color .16s ease,transform .16s ease}
.contact-recruit-contact{display:flex;flex-wrap:wrap;gap:6px 15px;margin-top:9px}
.contact-recruit .contact-recruit-contact a{margin-top:0}
.footer-direct-contact{display:flex;flex-wrap:wrap;gap:5px 13px;margin-top:8px}
.footer-direct-contact a{color:inherit;font-size:9.5px;line-height:1.45;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.26)}

/* r119 — improve scanability without changing the established editorial layout. */
html{scroll-padding-top:84px}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a,button{touch-action:manipulation}
#results,#programs,#faculty,#company,#contact{scroll-margin-top:84px}
.section-head p{max-width:66ch;line-height:1.78}
.hero-lede{max-width:32em;line-height:1.72}
.course-panel-copy p,.company-copy p,.company-detail p,.campus-copy p,.contact-copy>p{max-width:66ch;line-height:1.78}
.course-panel-copy a,.lead-teacher-link,.resources-head a,.campus-tools a,.campus-tools button{transition:color .16s ease,border-color .16s ease,background-color .16s ease}

/* Section-aware header feedback: restrained underline, no extra chrome. */
.utility-nav a[aria-current="location"]{box-shadow:inset 0 -2px 0 #5e91a4;color:#214f61}
.mobile-menu a[aria-current="location"]{color:#214f61;font-weight:800}

/* Course selector: clearer selected state and larger keyboard/touch target. */
.course-choice{min-height:68px}
.course-choice[aria-selected="true"]{box-shadow:inset 3px 0 0 #2f7289}
.course-choice:focus-visible,.hero-actions a:focus-visible,.utility-nav a:focus-visible,.mobile-menu a:focus-visible,.course-panel-copy a:focus-visible,.resource-story:focus-visible,.result-gallery-card:focus-visible,.results-gallery-controls button:focus-visible,.lead-teacher-link:focus-visible,.campus-tools a:focus-visible,.campus-tools button:focus-visible{outline:2px solid #5e91a4!important;outline-offset:3px!important}

/* Result gallery: easier horizontal reading and better button ergonomics. */
.result-gallery{scroll-snap-type:x proximity;overscroll-behavior-inline:contain;scrollbar-width:thin}
.result-gallery-card{scroll-snap-align:start;scroll-snap-stop:normal}
.results-gallery-controls button{min-width:38px;min-height:38px}

/* Faculty: names should win the hierarchy over affiliation metadata. */
.faculty-directory--structured .faculty-person b,.faculty-subject-teachers b{font-size:13.8px;line-height:1.45}
.faculty-duty,.faculty-school,.faculty-subject-teachers span{line-height:1.55}

/* Resource archive: long article titles remain readable even on the compact first row. */
.resource-rail--visual .resource-story-copy b{font-size:13.6px!important;line-height:1.62!important;letter-spacing:-.01em!important;overflow-wrap:anywhere}
.resource-rail--visual .resource-story-copy small{line-height:1.5!important}
.resource-rail--visual .resource-story{outline:none}

@media(hover:hover){
  .contact-direct a:hover,.contact-direct a:focus-visible,.contact-recruit-contact a:hover,.contact-recruit-contact a:focus-visible{border-color:#fff;transform:translateX(1px)}
  .course-choice:hover{background-color:rgba(54,111,132,.035)}
}
@media(max-width:720px){
  html{scroll-padding-top:72px}
  #results,#programs,#faculty,#company,#contact{scroll-margin-top:72px}
  .section-head p,.course-panel-copy p,.company-copy p,.company-detail p,.campus-copy p,.contact-copy>p{line-height:1.72}
  .course-choice{min-height:62px}
  .resource-rail--visual .resource-story-copy b{font-size:13px!important;line-height:1.58!important}
}
@media(max-width:560px){.contact-direct,.contact-recruit-contact{display:grid;gap:6px}}
@media(max-width:420px){
  .resource-rail--visual .resource-story-copy b{font-size:12.5px!important;line-height:1.55!important}
  .faculty-directory--structured .faculty-person b,.faculty-subject-teachers b{font-size:13.2px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .contact-direct a,.contact-recruit-contact a,.course-panel-copy a,.lead-teacher-link,.resources-head a,.campus-tools a,.campus-tools button{transition:none!important}
  .contact-direct a:hover,.contact-recruit-contact a:hover{transform:none!important}
}

/* site-home-r120.css */
/* r120 — faculty directory polish: editorial hierarchy, no portrait cards. */
.people-section{padding:66px 0 64px;background:#f5f7f8}
.people-section .team-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,318px);gap:56px;align-items:end;margin-bottom:30px}
.people-section .team-head h2{margin:0;color:var(--navy);font-size:40px;line-height:1.08;letter-spacing:-.045em}
.people-section .team-head p{max-width:700px;margin:12px 0 0;color:#627a84;font-size:13.8px;line-height:1.82}

/* Course-lead link reads like an editorial side note, not a button. */
.people-section .lead-teacher-link{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title arrow" "meta arrow";gap:3px 18px;align-items:center;min-width:0;padding:13px 0 13px 17px!important;border:0!important;border-left:2px solid #7898a5!important;color:inherit!important;text-decoration:none!important;white-space:normal!important}
.people-section .lead-teacher-link span{grid-area:title;color:#214f61;font-size:12.5px;font-weight:800;line-height:1.45}
.people-section .lead-teacher-link small{grid-area:meta;color:#7b9099;font-size:9.8px;font-weight:650;line-height:1.5}
.people-section .lead-teacher-link b{grid-area:arrow;align-self:center;color:#5b8090;font-size:15px;font-weight:500;transition:transform .16s ease}

/* One calm directory instead of a collection of cards. */
.people-section .faculty-directory{overflow:hidden;border-top:2px solid var(--navy);border-bottom:1px solid var(--line-dark);background:#fff}
.people-section .faculty-line{display:grid;grid-template-columns:54px 132px minmax(0,1fr);gap:0;align-items:stretch;min-height:92px;padding:0;border-bottom:1px solid #dce5e8;background:#fff}
.people-section .faculty-line:last-child{border-bottom:0}
.people-section .faculty-line:nth-child(even){background:#fbfcfc}
.people-section .faculty-no{display:flex;align-items:flex-start;justify-content:flex-start;padding:28px 0 0 17px;color:#8ea2aa;font-size:9.5px;line-height:1;font-weight:750;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.people-section .faculty-line h3{display:flex;align-items:flex-start;margin:0;padding:23px 18px 18px 0;border-right:1px solid #dce5e8;color:#214f61;font-size:17.5px;line-height:1.4;font-weight:800;letter-spacing:-.02em}

/* Teacher entries use rhythm + rules, not individual boxes. */
.people-section .faculty-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(136px,1fr));gap:0;min-width:0}
.people-section .faculty-person{position:relative;min-width:0;min-height:91px;padding:22px 18px 18px!important;border:0!important;border-left:1px solid #e2e9ec!important;background:transparent}
.people-section .faculty-person:first-child{border-left:0!important}
.people-section .faculty-person b,.people-section .faculty-subject-teachers b{display:block;color:#214f61;font-size:14.2px;line-height:1.42;font-weight:800;letter-spacing:-.012em;white-space:nowrap}
.people-section .faculty-meta{display:grid;gap:3px;margin-top:7px;min-height:18px}
.people-section .faculty-duty{color:#34758b;font-size:9.8px;line-height:1.5;font-weight:750}
.people-section .faculty-school{color:#7d9098;font-size:10px;line-height:1.52;font-weight:600}

/* Science keeps four subject columns, but visually belongs to the same directory. */
.people-section .faculty-science-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0;border:0;background:transparent}
.people-section .faculty-subject-col{min-width:0;padding:17px 18px 14px!important;border:0!important;border-left:1px solid #e2e9ec!important}
.people-section .faculty-subject-col:first-child{border-left:0!important}
.people-section .faculty-subject-col h4{display:flex;align-items:center;gap:7px;margin:0 0 5px;color:#3d7589;font-size:9.6px;line-height:1.4;font-weight:800;letter-spacing:.07em}
.people-section .faculty-subject-col h4::before{content:"";width:12px;height:1px;background:#7f9faa;flex:0 0 auto}
.people-section .faculty-subject-teachers{display:grid;gap:0}
.people-section .faculty-subject-teachers p{position:relative;margin:0;padding:8px 0;border:0!important;border-top:1px solid #edf1f2!important;background:transparent}
.people-section .faculty-subject-teachers p:first-child{border-top:0!important}
.people-section .faculty-subject-teachers span{display:block;margin-top:3px;color:#7d9098;font-size:9.8px;line-height:1.5;font-weight:600}

/* Separate the reading archive from the people directory more deliberately. */
.people-section .resources-head{margin-top:34px;padding-top:19px;border-top:1px solid #cad7dc}
.people-section .resources-head h3{color:#2d596a;font-size:14.5px;font-weight:800}

@media(hover:hover){
  .people-section .lead-teacher-link:hover span{color:#10384a}
  .people-section .lead-teacher-link:hover b{transform:translate(2px,-1px)}
  .people-section .faculty-person,.people-section .faculty-subject-teachers p{transition:background-color .16s ease}
  .people-section .faculty-person:hover,.people-section .faculty-subject-teachers p:hover{background:rgba(54,111,132,.04)}
}

@media(max-width:980px){
  .people-section .team-head{grid-template-columns:minmax(0,1fr) minmax(230px,280px);gap:34px}
  .people-section .faculty-line{grid-template-columns:46px 112px minmax(0,1fr)}
  .people-section .faculty-no{padding-left:10px}
  .people-section .faculty-line h3{font-size:16.5px}
  .people-section .faculty-people{grid-template-columns:repeat(2,minmax(0,1fr))}
  .people-section .faculty-person:nth-child(odd){border-left:0!important}
  .people-section .faculty-person:nth-child(n+3){border-top:1px solid #e7edef!important}
  .people-section .faculty-science-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .people-section .faculty-subject-col:nth-child(odd){border-left:0!important}
  .people-section .faculty-subject-col:nth-child(n+3){border-top:1px solid #e2e9ec!important}
}

@media(max-width:760px){
  .people-section{padding:52px 0 50px}
  .people-section .team-head{grid-template-columns:1fr;gap:18px;margin-bottom:24px}
  .people-section .team-head h2{font-size:34px}
  .people-section .lead-teacher-link{max-width:420px;padding-left:14px!important}
  .people-section .faculty-line{grid-template-columns:42px minmax(0,1fr);min-height:0}
  .people-section .faculty-no{grid-row:1;padding:20px 0 0 12px}
  .people-section .faculty-line h3{grid-column:2;padding:16px 0 13px;border-right:0;font-size:16px}
  .people-section .faculty-people,.people-section .faculty-science-grid{grid-column:1/-1;border-top:1px solid #dce5e8}
  .people-section .faculty-person{min-height:76px;padding:16px 14px 14px!important}
  .people-section .faculty-subject-col{padding:14px!important}
}

@media(max-width:480px){
  .people-section .team-head h2{font-size:31px}
  .people-section .team-head p{font-size:13px;line-height:1.72}
  .people-section .lead-teacher-link{grid-template-columns:minmax(0,1fr) auto;gap:2px 12px}
  .people-section .faculty-people,.people-section .faculty-science-grid{grid-template-columns:1fr}
  .people-section .faculty-person,.people-section .faculty-person:nth-child(odd){min-height:0;padding:13px 12px!important;border-left:0!important;border-top:1px solid #e7edef!important}
  .people-section .faculty-person:first-child{border-top:0!important}
  .people-section .faculty-subject-col,.people-section .faculty-subject-col:nth-child(odd){padding:13px 12px!important;border-left:0!important;border-top:1px solid #e2e9ec!important}
  .people-section .faculty-subject-col:first-child{border-top:0!important}
  .people-section .faculty-person b,.people-section .faculty-subject-teachers b{font-size:13.8px}
}

@media(prefers-reduced-motion:reduce){
  .people-section .lead-teacher-link b,.people-section .faculty-person,.people-section .faculty-subject-teachers p{transition:none!important}
  .people-section .lead-teacher-link:hover b{transform:none!important}
}

/* site-home-r112.css */
/* r112 — homepage admissions resources: six-item editorial archive. */
.resource-rail.resource-rail--visual{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;margin-top:0;border-top:2px solid var(--navy);border-bottom:1px solid var(--line);background:#fff}.resource-rail--visual .resource-story{display:grid!important;grid-template-rows:252px minmax(118px,auto)!important;min-width:0;padding:0!important;border:0!important;border-right:1px solid var(--line)!important;background:#fff!important;color:inherit;text-decoration:none!important;overflow:hidden;transform:none!important}.resource-rail--visual .resource-story:nth-child(3n){border-right:0!important}.resource-rail--visual .resource-story:nth-child(n+4){border-top:1px solid var(--line)!important}.resource-story-media{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;height:252px;margin:0!important;padding:13px 16px;overflow:hidden;border-bottom:1px solid var(--line);background:#edf2f4}.resource-story-media::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(226,235,238,.12));pointer-events:none}.resource-story-media::after{content:"";position:absolute;inset:9px;border:1px solid rgba(255,255,255,.58);pointer-events:none}.resource-story-media img{position:relative;z-index:1;display:block;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;opacity:1!important;box-shadow:0 7px 22px rgba(16,56,74,.08);transition:filter .18s ease,box-shadow .18s ease}.resource-story-media--portrait img{max-height:226px!important}.resource-story-media--landscape{padding:18px 14px}.resource-story-media--landscape img{max-width:96%!important;max-height:210px!important}.resource-story-media--editorial{align-items:stretch;justify-content:stretch;padding:0;background:#f2f5f6}.resource-story-media--editorial::before{background:linear-gradient(90deg,rgba(16,56,74,.035) 1px,transparent 1px),linear-gradient(rgba(16,56,74,.035) 1px,transparent 1px);background-size:28px 28px}.resource-editorial-cover{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:space-between;width:100%;min-height:100%;padding:27px 28px 24px}.resource-editorial-cover em{display:block;color:#758c96;font-style:normal;font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.resource-editorial-cover strong{display:block;max-width:260px;color:var(--navy);font-size:22px;line-height:1.48;letter-spacing:-.035em}.resource-editorial-cover i{display:block;width:42px;height:1px;margin:14px 0 0;background:#7898a5}.resource-editorial-cover span{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:15px;border-top:1px solid rgba(16,56,74,.16);color:#6f858e;font-size:9px;font-weight:700;letter-spacing:.06em}.resource-editorial-cover span b{margin:0!important;color:#527888!important;font-size:9px!important;line-height:1!important;font-weight:800!important;letter-spacing:.08em}.resource-story-copy{position:relative;min-width:0;min-height:118px;padding:17px 20px 39px;background:#fff}.resource-story-copy small{display:flex!important;align-items:center;gap:8px;width:max-content;max-width:100%;color:#7b9099!important;font-size:9.4px!important;line-height:1.4!important;font-weight:800!important;letter-spacing:.055em}.resource-story-copy small::before{content:"";width:6px;height:6px;border:1px solid #7898a5;transform:rotate(45deg);flex:0 0 auto}.resource-story-copy b{display:block!important;max-width:310px;margin-top:8px!important;color:var(--navy)!important;font-size:14px!important;line-height:1.55!important;font-weight:800!important;letter-spacing:-.015em}.resource-story-copy span{position:absolute;left:20px;bottom:15px;display:inline-flex!important;align-items:center;color:#527888!important;font-size:10px!important;line-height:1.35!important;font-weight:800!important}.resource-story-copy span::after{content:"↗"!important;margin-left:5px;transition:transform .16s ease}@media(hover:hover){.resource-rail--visual .resource-story:hover{background:#fbfcfc!important;transform:none!important}.resource-rail--visual .resource-story:hover .resource-story-copy{background:#fbfcfc}.resource-rail--visual .resource-story:hover img{filter:contrast(1.015);box-shadow:0 10px 28px rgba(16,56,74,.11)}.resource-rail--visual .resource-story:hover .resource-story-copy span::after{transform:translate(2px,-1px)}}@media(max-width:900px){.resource-rail--visual .resource-story{grid-template-rows:224px minmax(116px,auto)!important}.resource-story-media{height:224px}.resource-story-media--portrait img{max-height:202px!important}.resource-story-media--landscape img{max-height:185px!important}.resource-editorial-cover{padding:23px 22px 21px}.resource-editorial-cover strong{font-size:19px}.resource-story-copy{padding-left:17px;padding-right:17px}.resource-story-copy span{left:17px}}@media(max-width:720px){.resource-rail.resource-rail--visual{grid-template-columns:1fr!important}.resource-rail--visual .resource-story{grid-template-columns:176px minmax(0,1fr)!important;grid-template-rows:190px!important;border-right:0!important;border-top:0!important;border-bottom:1px solid var(--line)!important}.resource-rail--visual .resource-story:last-child{border-bottom:0!important}.resource-story-media{height:190px;padding:10px;border-right:1px solid var(--line);border-bottom:0}.resource-story-media--portrait img{max-height:170px!important}.resource-story-media--landscape img{max-width:100%!important;max-height:164px!important}.resource-story-media--editorial{padding:0}.resource-editorial-cover{padding:18px 15px}.resource-editorial-cover strong{font-size:15px;line-height:1.45}.resource-editorial-cover span{font-size:8px}.resource-story-copy{min-height:190px;padding:20px 19px 42px}.resource-story-copy span{left:19px;bottom:18px}}@media(max-width:480px){.resource-rail--visual .resource-story{grid-template-columns:126px minmax(0,1fr)!important;grid-template-rows:158px!important}.resource-story-media{height:158px;padding:8px}.resource-story-media--portrait img{max-height:142px!important}.resource-story-media--landscape img{max-height:116px!important}.resource-story-media--editorial{padding:0}.resource-editorial-cover{padding:14px 11px}.resource-editorial-cover em{font-size:7.5px}.resource-editorial-cover strong{font-size:12px}.resource-editorial-cover i{margin-top:8px;width:28px}.resource-editorial-cover span{padding-top:9px;font-size:7px}.resource-editorial-cover span b{font-size:7px!important}.resource-story-copy{min-height:158px;padding:16px 14px 38px}.resource-story-copy small{font-size:8.6px!important}.resource-story-copy b{font-size:12.3px!important;line-height:1.5!important}.resource-story-copy span{left:14px;bottom:13px;font-size:9.4px!important}}@media(prefers-reduced-motion:reduce){.resource-story-media img,.resource-story-copy span::after{transition:none!important}}

/* site-mobile-r124.css (the original link used media=max-width:820px) */
@media (max-width:820px) {
/* r124 — mobile-only homepage refinement. Desktop is intentionally untouched. */
@media(max-width:820px){
  html{scroll-padding-top:64px}
  .shell,.shell-wide,.site-header .shell-wide,.hero-grid,.trust-grid{width:calc(100% - 28px)!important}

  /* Header / menu */
  .site-header,.site-header.is-scrolled,.header-main,.site-header.is-scrolled .header-main{height:60px!important}
  .site-header .shell-wide{width:calc(100% - 24px)!important}
  .brand{min-height:30px!important;padding-left:37px!important;background-size:28px 28px!important;font-size:12.5px!important}
  .mobile-trigger{width:38px!important;height:38px!important;padding:8px!important;border-radius:0!important}
  .mobile-menu{top:60px!important;max-height:calc(100svh - 60px)!important;padding:15px 18px calc(20px + env(safe-area-inset-bottom))!important;box-shadow:0 16px 36px rgba(20,52,67,.09)!important}
  .mobile-menu strong{margin:10px 0 4px!important;font-size:8.8px!important;letter-spacing:.1em!important}
  .mobile-menu a{min-height:42px;padding:10px 2px!important;font-size:12.5px!important;line-height:1.5!important}

  /* Hero: retain the cinematic composition, but do not make users scroll a full screen before content. */
  .hero{min-height:548px!important;background-position:66% center!important}
  .hero-grid{min-height:548px!important;padding:78px 0 104px!important;align-items:center!important}
  .hero-copy{width:100%!important;max-width:500px!important}
  .hero-location{margin-bottom:8px!important;font-size:10px!important}
  .hero-copy h1{font-size:15.5px!important;line-height:1.35!important}
  .brand-line{margin-top:14px!important;font-size:clamp(38px,11.4vw,49px)!important;line-height:1.24!important;letter-spacing:-.055em!important}
  .hero-lede{max-width:360px!important;margin-top:15px!important;font-size:12.7px!important;line-height:1.72!important}
  .hero-actions{gap:9px 17px!important;margin-top:19px!important}
  .hero-actions a{font-size:11.4px!important}
  .hero-actions .primary{padding:10px 15px!important}
  .trust-grid{min-height:82px!important;grid-template-columns:1.08fr .92fr .92fr!important}
  .trust-item{min-width:0;padding:13px 9px!important;gap:2px!important}
  .trust-item:first-child{padding-left:0!important}
  .trust-item small{font-size:8.2px!important;line-height:1.35!important}
  .trust-item strong{font-size:11px!important;line-height:1.35!important;white-space:nowrap}

  /* Shared section rhythm */
  .results-section,.programs-section,.people-section,.company-section,.contact-section{padding-top:46px!important;padding-bottom:48px!important}
  .section-head{gap:7px!important;margin-bottom:20px!important}
  .section-head h2,.people-section .team-head h2,.contact-copy h2{font-size:29px!important;line-height:1.13!important;letter-spacing:-.04em!important}
  .section-head p,.people-section .team-head p{font-size:12.4px!important;line-height:1.7!important}

  /* Results: keep the proof gallery swipeable, but reduce dead space around it. */
  .results-section .section-head{margin-bottom:18px!important}
  .results-summary{gap:15px!important;padding-bottom:21px!important}
  .results-summary .result-numbers{grid-template-columns:96px 96px!important;gap:14px!important}
  .results-summary .result-number strong{font-size:46px!important;line-height:.95!important}
  .results-summary .result-number span{margin-top:6px!important;font-size:9.8px!important}
  .results-summary .school-list{grid-template-columns:1fr 1fr!important}
  .results-summary .school-list div,.results-summary .school-list div:nth-child(n){min-height:39px;padding:8px 9px 8px 0!important;border-left:0!important}
  .results-summary .school-list div:nth-child(even){padding-left:10px!important;border-left:1px solid rgba(255,255,255,.08)!important}
  .results-summary .school-list b{font-size:10.4px!important;line-height:1.4!important}
  .results-summary .school-list span{font-size:12px!important}
  .result-note{margin-top:8px!important;font-size:9px!important}
  .results-gallery-head{margin-top:19px!important;margin-bottom:10px!important}
  .results-gallery-head>div small{font-size:8.8px!important}
  .results-gallery-head>div strong{font-size:12.5px!important}
  .result-gallery{grid-auto-columns:min(78vw,286px)!important;gap:11px!important;padding-bottom:8px!important;scroll-padding-inline:0!important}
  .result-gallery-card{padding:5px!important}
  .result-gallery-card span{left:10px!important;bottom:10px!important;padding:4px 7px!important;font-size:8.8px!important}

  /* Courses: show all four choices without a hidden horizontal tab strip. */
  .programs-section .section-head p{max-width:36em!important}
  .course-explorer{display:grid!important;grid-template-columns:1fr!important;min-height:0!important;border-top:1px solid var(--line-dark)!important}
  .course-selector{display:grid!important;grid-template-columns:1fr 1fr!important;overflow:visible!important;padding:0!important;border:0!important;border-bottom:1px solid var(--line)!important;background:#fff!important}
  .course-choice{min-width:0!important;min-height:64px!important;padding:11px 12px!important;border:0!important;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;background:#fff!important}
  .course-choice:nth-child(2n){border-right:0!important}
  .course-choice:nth-last-child(-n+2){border-bottom:0!important}
  .course-choice::before{left:0!important;right:auto!important;top:0!important;bottom:0!important;width:2px!important;height:auto!important;transform:scaleY(0)!important;transform-origin:top!important}
  .course-choice[aria-selected='true']{background:#f5f8f9!important;box-shadow:none!important}
  .course-choice[aria-selected='true']::before{transform:scaleY(1)!important}
  .course-choice>span:first-child{font-size:8.7px!important}
  .course-choice strong{font-size:12.3px!important;line-height:1.35!important}
  .course-choice small{margin-top:2px!important;font-size:8.8px!important;line-height:1.35!important}
  .course-panel-copy{padding:20px 18px 21px!important}
  .course-panel-copy .panel-index{font-size:8.7px!important}
  .course-panel-copy h3{margin-top:5px!important;font-size:25px!important;line-height:1.2!important}
  .course-panel-copy p{max-width:none!important;margin-top:8px!important;font-size:11.6px!important;line-height:1.7!important}
  .course-panel-copy a{margin-top:13px!important;font-size:10.8px!important}
  .course-panel-visual,.course-panel-visual.visual-collage,.art-visual,.school-photo-visual{height:194px!important;min-height:194px!important}
  .common-photo-visual,.eju-photo-visual{grid-template-rows:94px 94px!important}
  .course-panel-visual.visual-collage .visual-label{left:14px!important;right:14px!important;bottom:12px!important;padding:10px 11px!important}
  .course-panel-visual.visual-collage .visual-label small{font-size:7.8px!important}
  .course-panel-visual.visual-collage .visual-label strong,.common-photo-visual .visual-label strong,.eju-photo-visual .visual-label strong,.school-photo-visual .visual-label strong{font-size:16px!important;line-height:1.3!important}
  .course-panel-visual.visual-collage .visual-label span{font-size:8.6px!important;line-height:1.4!important}
  .school-route{margin-top:5px!important}
  .school-route span{font-size:8px!important}

  /* Faculty: keep the editorial directory, but avoid a very long one-teacher-per-row list. */
  .people-section .team-head{gap:13px!important;margin-bottom:19px!important}
  .people-section .team-head p{margin-top:8px!important}
  .people-section .lead-teacher-link{max-width:none!important;margin-top:2px!important;padding:10px 0 10px 12px!important}
  .people-section .lead-teacher-link span{font-size:11.5px!important}
  .people-section .lead-teacher-link small{font-size:8.8px!important}
  .people-section .faculty-line{grid-template-columns:34px minmax(0,1fr)!important}
  .people-section .faculty-no{padding:17px 0 0 8px!important;font-size:8.5px!important}
  .people-section .faculty-line h3{padding:13px 0 11px!important;font-size:14.5px!important}
  .people-section .faculty-people,.people-section .faculty-science-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .people-section .faculty-person,.people-section .faculty-person:nth-child(odd){min-height:68px!important;padding:12px 11px 11px!important;border-left:1px solid #e2e9ec!important;border-top:1px solid #e7edef!important}
  .people-section .faculty-person:nth-child(odd){border-left:0!important}
  .people-section .faculty-person:nth-child(-n+2){border-top:0!important}
  .people-section .faculty-subject-col,.people-section .faculty-subject-col:nth-child(odd){padding:11px!important;border-left:1px solid #e2e9ec!important;border-top:1px solid #e2e9ec!important}
  .people-section .faculty-subject-col:nth-child(odd){border-left:0!important}
  .people-section .faculty-subject-col:nth-child(-n+2){border-top:0!important}
  .people-section .faculty-person b,.people-section .faculty-subject-teachers b{font-size:12.5px!important;white-space:normal!important}
  .people-section .faculty-duty,.people-section .faculty-school,.people-section .faculty-subject-teachers span{font-size:8.9px!important;line-height:1.45!important}
  .people-section .resources-head{margin-top:26px!important;padding-top:16px!important}
  .people-section .resources-head h3{font-size:13.5px!important}

  /* Company / contact */
  .company-section .section-head h2{font-size:27px!important}
  .company-overview{gap:13px!important;padding:13px 0 15px!important}
  .company-copy h3{font-size:19px!important;line-height:1.4!important}
  .company-copy p{font-size:11px!important;line-height:1.7!important}
  .company-facts{padding-top:10px!important}
  .company-facts div{grid-template-columns:66px 1fr!important;padding:5px 0!important}
  .company-detail,.company-detail:first-child,.company-detail:last-child{padding:12px 0!important}
  .company-detail h3{margin-bottom:5px!important;font-size:13px!important}
  .company-detail p,.company-detail li{font-size:10.3px!important;line-height:1.58!important}
  .contact-layout{gap:20px!important}
  .contact-copy>p{font-size:12.3px!important;line-height:1.68!important}
  .consult-meta{margin-top:17px!important}
  .consult-meta p,.consult-meta p+p{padding-bottom:9px!important}
  .consult-meta b{font-size:10px!important}
  .consult-meta span{font-size:9.6px!important}
  .qr-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:15px!important}
  .qr-grid figure{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;min-width:0}
  .qr-grid img{width:82px!important;height:82px!important}
  .qr-grid figcaption b{font-size:10.5px!important}
  .qr-grid figcaption span{font-size:8.8px!important}
  .contact-direct{gap:6px 12px!important;margin-top:12px!important;padding-top:10px!important}
  .contact-direct a{font-size:9.7px!important}
  .campus-panel{min-height:0!important}
  .campus-copy{padding:18px!important}
  .campus-copy h3{font-size:19px!important}
  .campus-copy p{font-size:9.9px!important;line-height:1.68!important}
  .campus-panel iframe{min-height:205px!important}

  /* Footer */
  .footer-main{grid-template-columns:1fr 1fr!important;gap:20px 18px!important;padding-top:24px!important;padding-bottom:21px!important}
  .footer-brand{grid-column:1/3!important}
  .footer-brand p{font-size:15px!important}
  .footer-brand small{font-size:8.9px!important}
  .footer-nav strong{font-size:9.5px!important}
  .footer-nav a{font-size:9px!important}
  .footer-bottom{gap:3px!important;padding-top:10px!important;padding-bottom:12px!important;font-size:8.5px!important}
}

@media(max-width:520px){
  .hero{min-height:528px!important;background-position:68% center!important}
  .hero-grid{min-height:528px!important;padding-top:73px!important;padding-bottom:98px!important}
  .brand-line{font-size:clamp(36px,11.6vw,45px)!important}
  .trust-grid{grid-template-columns:1fr 1fr 1fr!important}
  .trust-item{padding-left:7px!important;padding-right:7px!important}
  .trust-item strong{font-size:10.4px!important}
  .result-gallery{grid-auto-columns:82vw!important}
  .course-choice{min-height:62px!important;padding:10px!important}
  .course-panel-visual,.course-panel-visual.visual-collage,.art-visual,.school-photo-visual{height:184px!important;min-height:184px!important}
  .common-photo-visual,.eju-photo-visual{grid-template-rows:89px 89px!important}
  .people-section .faculty-person b,.people-section .faculty-subject-teachers b{font-size:12.2px!important}
  .qr-grid figure{grid-template-columns:72px minmax(0,1fr)!important}
  .qr-grid img{width:72px!important;height:72px!important}
}

@media(max-width:390px){
  .shell,.shell-wide,.hero-grid,.trust-grid{width:calc(100% - 24px)!important}
  .brand{font-size:11.8px!important}
  .hero-actions{gap:8px 14px!important}
  .hero-actions a{font-size:11px!important}
  .course-choice strong{font-size:11.8px!important}
  .course-choice small{font-size:8.4px!important}
  .resource-rail--visual .resource-story{grid-template-columns:112px minmax(0,1fr)!important}
  .qr-grid{grid-template-columns:1fr!important}
  .qr-grid figure{grid-template-columns:78px minmax(0,1fr)!important}
  .qr-grid img{width:78px!important;height:78px!important}
}

/* r127 — compact mobile reading order and progressive disclosures. */
@media(max-width:820px){
  /* Keep the opening statement to exactly two visual lines on phones:
     one Japanese line, followed by one combined Chinese line. */
  .hero-copy .brand-line{
    margin:0 0 12px!important;
    font-size:clamp(18px,5.45vw,23px)!important;
    line-height:1.22!important;
    letter-spacing:-.035em!important;
    white-space:nowrap!important;
  }
  .hero-copy .brand-line br{display:none!important}
  .hero-copy h1,
  .hero-copy .hero-lede{display:inline!important;white-space:nowrap!important}
  .hero-copy h1{
    margin:0 7px 0 0!important;
    font-size:clamp(11.5px,3.1vw,15px)!important;
    line-height:1.45!important;
    letter-spacing:-.02em!important;
  }
  .hero-copy .hero-lede{
    max-width:none!important;
    margin:0!important;
    font-size:clamp(9px,2.45vw,12px)!important;
    line-height:1.45!important;
    letter-spacing:-.025em!important;
  }
  .hero-copy .hero-actions{margin-top:20px!important}

  /* Icon-only disclosure controls. Content remains visible when JavaScript is absent. */
  .mobile-disclosure-host{position:relative!important;padding-right:52px!important}
  .mobile-disclosure-toggle{
    position:absolute;
    top:0;
    right:0;
    z-index:2;
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid var(--line-dark,#b9cbd2);
    border-radius:50%;
    background:transparent;
    color:var(--navy,#10384a);
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .mobile-disclosure-toggle[hidden],
  .mobile-disclosure-panel[hidden]{display:none!important}
  .mobile-disclosure-toggle>span{
    display:block;
    width:9px;
    height:9px;
    border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;
    transform:translateY(-2px) rotate(45deg);
    transition:transform .18s ease;
  }
  .mobile-disclosure-toggle[aria-expanded='true']>span{transform:translateY(2px) rotate(225deg)}
  .mobile-disclosure-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}
  .people-section .team-head.mobile-disclosure-host,
  .company-section .section-head.mobile-disclosure-host{min-height:44px!important}
  .contact-recruit-head.mobile-disclosure-host{min-height:44px!important;align-items:center!important}
  .campus-copy.mobile-disclosure-host{min-height:82px!important}
  .campus-copy.mobile-disclosure-host>.mobile-disclosure-toggle{top:15px;right:15px}

  /* Six resources stay in source order and are reachable through native horizontal swiping. */
  .resource-rail.resource-rail--visual{
    display:grid!important;
    grid-template-columns:none!important;
    grid-auto-flow:column!important;
    grid-auto-columns:min(82vw,360px)!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:1px;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    padding:0 1px 9px!important;
    border-bottom:0!important;
  }
  .resource-rail--visual .resource-story,
  .resource-rail--visual .resource-story:nth-child(3n),
  .resource-rail--visual .resource-story:nth-child(n+4){
    grid-column:auto!important;
    grid-template-columns:128px minmax(0,1fr)!important;
    grid-template-rows:168px!important;
    min-width:0!important;
    border:1px solid var(--line)!important;
    scroll-snap-align:start;
    scroll-snap-stop:always;
  }
  .resource-rail--visual .resource-story-media{
    height:168px!important;
    padding:9px!important;
    border-right:1px solid var(--line)!important;
    border-bottom:0!important;
  }
  .resource-rail--visual .resource-story-media--portrait img{max-height:150px!important}
  .resource-rail--visual .resource-story-media--landscape img{max-width:100%!important;max-height:126px!important}
  .resource-rail--visual .resource-story-copy{
    min-height:168px!important;
    padding:17px 15px 40px!important;
  }
  .resource-rail--visual .resource-story-copy span{left:15px!important;bottom:14px!important}
}

@media(max-width:390px){
  .resource-rail.resource-rail--visual{grid-auto-columns:82vw!important}
  .resource-rail--visual .resource-story,
  .resource-rail--visual .resource-story:nth-child(3n),
  .resource-rail--visual .resource-story:nth-child(n+4){
    grid-template-columns:112px minmax(0,1fr)!important;
    grid-template-rows:158px!important;
  }
  .resource-rail--visual .resource-story-media{height:158px!important;padding:8px!important}
  .resource-rail--visual .resource-story-media--portrait img{max-height:142px!important}
  .resource-rail--visual .resource-story-media--landscape img{max-height:112px!important}
  .resource-rail--visual .resource-story-copy{min-height:158px!important;padding:15px 13px 38px!important}
  .resource-rail--visual .resource-story-copy span{left:13px!important;bottom:12px!important}
}

@media(prefers-reduced-motion:reduce){
  .mobile-disclosure-toggle>span{transition:none!important}
}
}

/* src/home-enhancements.css */
/* Final homepage additions. This file is folded into site-home.css by tools/build-home.mjs. */

@media (min-width:821px) {
  /* Isolate the photo so only the campus image scales in. */
  .hero { background-image:none; }

  .hero::before {
    z-index:-1;
    background:
      linear-gradient(90deg,rgba(5,29,43,.93) 0%,rgba(5,29,43,.82) 27%,rgba(6,33,48,.52) 45%,rgba(7,38,54,.12) 63%,rgba(7,38,54,.02) 80%),
      linear-gradient(0deg,rgba(5,27,39,.18),transparent 36%),
      linear-gradient(180deg,rgba(5,29,42,.12),transparent 22%,transparent 76%,rgba(5,29,42,.18));
  }

  .hero::after {
    position:absolute;
    z-index:-2;
    inset:0;
    content:"";
    background:url('images-optimized/hero_background_4.webp') 56% 45% / cover no-repeat;
    pointer-events:none;
  }

  html.motion-enabled #results > .shell,
  html.motion-enabled #programs > .shell,
  html.motion-enabled #faculty > .shell,
  html.motion-enabled #company > .shell,
  html.motion-enabled #contact > .shell {
    opacity:0;
    transform:translateY(18px);
  }

  html.motion-enabled #results > .shell.is-motion-revealing,
  html.motion-enabled #programs > .shell.is-motion-revealing,
  html.motion-enabled #faculty > .shell.is-motion-revealing,
  html.motion-enabled #company > .shell.is-motion-revealing,
  html.motion-enabled #contact > .shell.is-motion-revealing {
    animation:tabitoSectionIn 840ms cubic-bezier(.22,1,.36,1) both;
  }

  html.motion-enabled #results > .shell.is-motion-revealed,
  html.motion-enabled #programs > .shell.is-motion-revealed,
  html.motion-enabled #faculty > .shell.is-motion-revealed,
  html.motion-enabled #company > .shell.is-motion-revealed,
  html.motion-enabled #contact > .shell.is-motion-revealed {
    opacity:1;
    transform:none;
  }

  .utility-nav .nav-course {
    position:relative;
    display:flex;
    align-items:center;
    min-height:42px;
  }

  .utility-nav .nav-course-trigger { z-index:1; }

  .course-flyout {
    position:absolute;
    top:calc(100% + 10px);
    right:50%;
    z-index:120;
    display:grid;
    width:238px;
    padding:7px;
    border:1px solid rgba(198,214,220,.94);
    background:rgba(255,255,255,.98);
    box-shadow:0 17px 42px rgba(10,40,53,.16);
    opacity:0;
    pointer-events:none;
    transform:translate(50%,-6px);
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
    visibility:hidden;
  }

  .course-flyout::before {
    position:absolute;
    top:-14px;
    right:0;
    left:0;
    height:14px;
    content:"";
  }

  .nav-course:hover .course-flyout,
  .nav-course:focus-within .course-flyout {
    opacity:1;
    pointer-events:auto;
    transform:translate(50%,0);
    visibility:visible;
  }

  .course-flyout a {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:13px;
    align-items:center;
    min-height:43px;
    padding:8px 10px;
    color:#315767!important;
    text-decoration:none;
    text-shadow:none!important;
  }

  .course-flyout a::after { display:none!important; }
  .course-flyout a:hover,
  .course-flyout a:focus-visible { background:#edf4f6; color:#10384a!important; }
  .course-flyout strong { font-size:12px; font-weight:800; }
  .course-flyout em { grid-column:2; color:#6590a0; font-size:10px; font-style:normal; }
  .site-header:not(.is-scrolled) .course-flyout { border-color:rgba(255,255,255,.72); }
}

.result-gallery-card { color:inherit; text-decoration:none; }
.people-section a.faculty-person { color:inherit; text-decoration:none; }
.people-section a.faculty-person:focus-visible { outline:2px solid #5e91a4; outline-offset:-3px; }
.image-lightbox {
  box-sizing:border-box;
  inset:0;
  width:min(760px,calc(100vw - 48px));
  height:min(800px,calc(100vh - 48px));
  height:min(800px,calc(100dvh - 48px));
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 48px);
  max-height:calc(100dvh - 48px);
  margin:auto;
  padding:0;
  overflow:hidden;
}
.image-lightbox[open] { display:grid; place-items:stretch; }
.image-lightbox .lightbox-inner { box-sizing:border-box; display:grid; grid-template-rows:auto auto; width:100%; height:auto; min-width:0; min-height:0; padding:18px; overflow:hidden; background:#fff; }
.image-lightbox .lightbox-inner img { align-self:center; justify-self:center; display:block; width:auto; height:auto; max-width:100%; max-height:min(720px,calc(100vh - 160px)); max-height:min(720px,calc(100dvh - 160px)); min-width:0; min-height:0; margin:auto; object-fit:contain; object-position:center; background:#f7f9fa; }
.image-lightbox .lightbox-caption { margin:0; padding:10px 42px 0; color:#607985; font-size:11px; line-height:1.55; text-align:center; }
.image-lightbox .lightbox-close { display:grid; place-items:center; width:38px; height:38px; padding:0; }

@media (max-width:820px) {
  .image-lightbox { width:calc(100vw - 24px); height:min(560px,calc(100vh - 24px)); height:min(560px,calc(100dvh - 24px)); max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); }
  .image-lightbox .lightbox-inner { padding:9px 9px 13px; }
  .image-lightbox .lightbox-inner img { max-height:min(calc(100vh - 96px),120vw); max-height:min(calc(100dvh - 96px),120vw); }
  .image-lightbox .lightbox-close { right:15px; top:15px; width:36px; height:36px; }
  .image-lightbox .lightbox-caption { padding:8px 40px 0 2px; font-size:10px; }
  .hero-copy .brand-line { margin:0 0 14px; }
}

/* Desktop-only hierarchy and motion companion styles. Motion itself is added
   with the Web Animations API so content remains visible without JavaScript. */
@media (min-width:821px) {
  .site-header .brand {
    min-height:42px;
    padding-left:54px!important;
    background-size:40px 40px!important;
    font-size:15px;
    line-height:1.2;
  }

  .hero-copy .brand-line {
    margin:0 0 23px;
    font-size:clamp(60px,5.2vw,78px);
    line-height:1.18;
  }

  .hero-copy h1 {
    margin:0;
    font-size:24px;
  }

  .section-head h2 {
    font-size:clamp(40px,3.25vw,49px);
  }

  .company-section .section-head h2,
  .people-section .team-head h2 {
    font-size:clamp(42px,3.35vw,51px);
  }

  .contact-copy h2 {
    font-size:clamp(38px,3vw,46px);
  }
}

@media (min-width:821px) and (prefers-reduced-motion:no-preference) {
  .hero::after {
    transform-origin:56% 45%;
    animation:tabitoHeroImageIn 1150ms cubic-bezier(.22,1,.36,1) both;
  }

  .hero-copy > .brand-line {
    animation:tabitoHeroTitleIn 780ms cubic-bezier(.22,1,.36,1) 100ms both;
  }

  .hero-copy > h1 {
    animation:tabitoHeroCopyIn 720ms cubic-bezier(.22,1,.36,1) 190ms both;
  }

  .hero-copy > .hero-lede {
    animation:tabitoHeroCopyIn 720ms cubic-bezier(.22,1,.36,1) 280ms both;
  }

  .hero-copy > .hero-actions {
    animation:tabitoHeroActionsIn 680ms cubic-bezier(.22,1,.36,1) 370ms both;
  }
}

@keyframes tabitoHeroImageIn {
  from { opacity:.80; transform:scale(1.012); }
  to { opacity:1; transform:scale(1); }
}

@keyframes tabitoHeroTitleIn {
  from { opacity:0; transform:translateY(16px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes tabitoHeroCopyIn {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes tabitoHeroActionsIn {
  from { opacity:0; transform:translateY(10px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes tabitoSectionIn {
  0% { opacity:0; transform:translateY(18px); }
  28% { opacity:.68; transform:translateY(12px); }
  100% { opacity:1; transform:translateY(0); }
}
