/* Homepage prototype — scoped to index.html */
.home-page{background:#fff;color:#173332}
.home-page .site-header{position:sticky;top:0}
.home-hero{position:relative;overflow:hidden;background:#eef5ef;border-bottom:1px solid var(--line)}
.home-hero-inner{max-width:1280px;margin:0 auto;min-height:300px;display:grid;grid-template-columns:minmax(390px,.82fr) 1.55fr;align-items:stretch}
.home-hero-copy{padding:38px 28px 34px 36px;display:flex;flex-direction:column;justify-content:center;z-index:2}
.home-hero-copy .hero-eyebrow{font-weight:800;color:var(--accent-dark);text-transform:uppercase;letter-spacing:.13em;font-size:.78rem;margin-bottom:10px}
.home-hero-copy h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.55rem,4.4vw,4.35rem);line-height:.95;margin:0 0 12px;color:#173f2e;letter-spacing:-.03em}
.home-hero-copy h1 span{display:block}
.home-hero-copy .hero-subtitle{font-size:clamp(1.25rem,2vw,1.75rem);line-height:1.2;color:#183d2d;font-weight:650;margin:0 0 14px}
.home-hero-copy .hero-description{max-width:540px;margin:0;color:#435851;font-size:1.05rem;line-height:1.55}
.home-hero-art{min-height:300px;background:url('images/optimization-hero.png') center/cover no-repeat;position:relative}
.home-hero-art:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#eef5ef 0%,rgba(238,245,239,.52) 12%,rgba(238,245,239,0) 33%)}
.home-main{max-width:1180px;margin:0 auto;padding:22px 24px 46px}
.home-intro{display:grid;grid-template-columns:230px minmax(0,1fr) 310px;gap:22px;align-items:stretch;margin-top:-6px}
.profile-photo{background:linear-gradient(180deg,#f2f5ef,#e8eee2);border:1px solid var(--line);border-radius:16px;overflow:hidden;min-height:318px;display:flex;align-items:flex-end;justify-content:center}
.profile-photo img{width:100%;height:100%;max-height:350px;object-fit:contain;object-position:center bottom;display:block}
.intro-copy{padding:8px 2px 0}
.intro-copy h2{font-family:Georgia,"Times New Roman",serif;font-size:2.15rem;line-height:1.05;color:var(--deep);margin:0 0 5px}
.intro-role{font-size:1.05rem;line-height:1.32;color:#2e403a;margin-bottom:16px}
.intro-copy p{font-size:.98rem;line-height:1.56;color:#40534d;margin:.55rem 0}
.home-button{display:inline-flex;align-items:center;gap:10px;margin-top:10px;background:var(--accent-dark);color:#fff!important;text-decoration:none;font-weight:750;padding:10px 16px;border-radius:8px;box-shadow:0 6px 16px rgba(47,80,43,.16)}
.home-button:hover{background:#375522;color:#fff}
.teaching-panel{border:1px solid #dfe7d6;border-radius:16px;background:linear-gradient(180deg,#f1f5df,#f7f9ef);padding:17px;display:flex;flex-direction:column;min-height:318px}
.teaching-panel h2{font-family:Georgia,"Times New Roman",serif;color:var(--deep);font-size:1.6rem;margin:0 0 12px;display:flex;justify-content:space-between;align-items:center}
.teaching-panel h2 span{font-family:system-ui;font-size:1.4rem;font-weight:400}
.teaching-board{position:relative;display:block;overflow:hidden;border-radius:10px;background:#173f2e;min-height:188px;text-decoration:none;color:white;border:1px solid rgba(23,63,46,.18)}
.teaching-board:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 25% 40%,rgba(255,255,255,.07),transparent 30%),linear-gradient(135deg,#234d36,#102d24)}
.board-math{position:absolute;inset:0;display:grid;place-items:center;font-family:Georgia,"Times New Roman",serif;font-style:italic;color:rgba(255,255,255,.92);font-size:2rem;letter-spacing:.02em}
.board-math small{display:block;font-family:system-ui;font-size:.72rem;font-style:normal;letter-spacing:.08em;text-transform:uppercase;opacity:.68;margin-top:13px;text-align:center}
.teaching-panel p{color:#4e5f51;line-height:1.5;margin:14px 0 10px;font-size:.94rem}
.teaching-panel .home-button{margin-top:auto;align-self:flex-start}
.home-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 16px}
.home-link-card{border:1px solid var(--line);border-radius:14px;background:#fbfcf9;padding:18px 17px 16px;text-align:center;text-decoration:none;color:inherit;min-height:148px;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:.18s ease}
.home-link-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(20,55,53,.09);color:inherit}
.home-link-icon{width:46px;height:46px;border-radius:50%;background:var(--soft);display:grid;place-items:center;margin-bottom:8px;color:var(--deep);font-size:1.45rem;font-weight:800}
.home-link-card strong{font-family:Georgia,"Times New Roman",serif;font-size:1.16rem;color:var(--deep)}
.home-link-card span{font-size:.83rem;line-height:1.35;color:var(--muted);margin-top:5px}
.research-themes{background:#f0f4e5;border:1px solid #e1e7d8;border-radius:16px;padding:19px 20px 20px;margin-top:15px}
.section-heading-row{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px}
.section-heading-row h2{font-family:Georgia,"Times New Roman",serif;font-size:1.65rem;color:var(--deep);margin:0}
.section-heading-row a{font-size:.9rem;font-weight:750;text-decoration:none}
.theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.theme-card{overflow:hidden;background:white;border:1px solid #e0e6dc;border-radius:11px;text-decoration:none;color:inherit;transition:.18s ease}
.theme-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,55,53,.1);color:inherit}
.theme-card img{display:block;width:100%;height:130px;object-fit:cover}
.theme-card-body{padding:12px 12px 14px}
.theme-card strong{font-size:.97rem;color:var(--deep)}
.theme-card p{margin:4px 0 0;font-size:.8rem;line-height:1.35;color:#55635e}
.campus-feature{position:relative;overflow:hidden;border-radius:16px;margin-top:18px;min-height:275px;background:#234}
.campus-feature img{width:100%;height:310px;display:block;object-fit:cover;object-position:center 53%}
.campus-feature:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(26,64,81,.78) 0%,rgba(26,64,81,.28) 42%,rgba(26,64,81,0) 68%)}
.campus-copy{position:absolute;z-index:2;left:26px;top:25px;color:white;max-width:320px;text-shadow:0 1px 5px rgba(0,0,0,.2)}
.campus-copy strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:1.35rem}
.campus-copy span{display:block;margin-top:3px;font-size:.92rem;opacity:.93}
.home-page .site-footer{background:#173f33;border-top:0}
.home-page .footer-wrap{color:rgba(255,255,255,.82)}
.home-page .footer-wrap strong{color:white}
@media(max-width:980px){.home-hero-inner{grid-template-columns:1fr}.home-hero-copy{padding:42px 28px 22px}.home-hero-art{min-height:245px}.home-hero-art:before{background:linear-gradient(180deg,#eef5ef 0%,rgba(238,245,239,0) 28%)}.home-intro{grid-template-columns:210px 1fr}.teaching-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:18px;min-height:unset}.teaching-panel h2{grid-column:1/-1}.teaching-board{grid-row:2/5;min-height:190px}.teaching-panel p{margin-top:0}.home-links,.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){.home-main{padding:20px 14px 40px}.home-hero-copy{padding:34px 20px 18px}.home-hero-copy h1{font-size:2.75rem}.home-hero-art{min-height:190px}.home-intro{grid-template-columns:1fr}.profile-photo{min-height:0;height:330px}.profile-photo img{max-height:330px}.intro-copy{padding:2px}.teaching-panel{display:flex}.teaching-panel h2{display:flex}.teaching-board{min-height:185px}.home-links,.theme-grid{grid-template-columns:1fr}.home-link-card{min-height:118px}.theme-card{display:grid;grid-template-columns:42% 1fr}.theme-card img{height:100%;min-height:128px}.campus-feature,.campus-feature img{min-height:235px;height:235px}.campus-copy{left:18px;top:18px;max-width:230px}.section-heading-row{align-items:flex-start;flex-direction:column;gap:4px}}

/* Three-column introduction: About · Collaboration · Teaching */
.home-intro{grid-template-columns:210px minmax(250px,1fr) minmax(250px,.92fr) minmax(270px,.98fr);gap:18px}
.intro-copy,.collaboration-panel,.teaching-panel{min-height:330px}
.intro-copy{display:flex;flex-direction:column;padding:8px 4px 17px}
.intro-copy .home-button{margin-top:auto;align-self:flex-start}
.collaboration-panel{border:1px solid #dfe7d6;border-radius:16px;background:linear-gradient(180deg,#f7f9f3,#eef4e7);padding:17px;display:flex;flex-direction:column}
.collaboration-panel h2{font-family:Georgia,"Times New Roman",serif;color:var(--deep);font-size:1.42rem;line-height:1.12;margin:0 0 10px}
.collaboration-panel p{color:#4b5d55;line-height:1.5;margin:8px 0 12px;font-size:.92rem}
.collaboration-panel .home-button{margin-top:auto;align-self:flex-start}
.collaboration-icon{width:58px;height:58px;border-radius:50%;background:#dfead4;color:var(--deep);display:grid;place-items:center;font-size:1.65rem;font-weight:800;margin:3px 0 4px}
@media(max-width:1120px){.home-intro{grid-template-columns:200px 1fr 1fr}.teaching-panel{grid-column:2/4}.profile-photo{grid-row:1/3}.intro-copy,.collaboration-panel{min-height:300px}.teaching-panel{min-height:unset}}
@media(max-width:780px){.home-intro{grid-template-columns:1fr 1fr}.profile-photo{grid-row:auto}.intro-copy{min-height:330px}.collaboration-panel,.teaching-panel{min-height:unset}.collaboration-panel{grid-column:1/-1}.teaching-panel{grid-column:1/-1}}
@media(max-width:660px){.home-intro{grid-template-columns:1fr}.intro-copy{min-height:unset}.intro-copy .home-button{margin-top:14px}.collaboration-panel{grid-column:auto}.teaching-panel{grid-column:auto}}

/* Version 5: profile identity below portrait + research philosophy */
.home-intro.home-intro-v5{
  grid-template-columns:minmax(220px,.78fr) minmax(300px,1.2fr) minmax(290px,1fr);
  gap:20px;
  align-items:stretch;
}
.profile-card,
.research-philosophy-panel,
.home-intro-v5 .collaboration-panel{
  min-height:360px;
}
.profile-card{
  display:flex;
  flex-direction:column;
  border:1px solid #dfe7d6;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  padding:0 16px 17px;
}
.profile-card .profile-photo{
  margin:0 -16px 0;
  border:0;
  border-radius:16px 16px 0 0;
  min-height:250px;
  height:250px;
  background:linear-gradient(180deg,#f3f6f0,#e9efe5);
  align-items:flex-start;
}
.profile-card .profile-photo img{
  width:100%;
  height:100%;
  max-height:none;
  object-fit:contain;
  object-position:center top;
}
.profile-identity{padding:13px 1px 4px}
.profile-identity h2{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--deep);
  font-size:1.55rem;
  line-height:1.05;
  margin:0 0 6px;
}
.profile-identity .intro-role{
  margin:0;
  font-size:.9rem;
  line-height:1.38;
  color:#40534d;
}
.profile-card .home-button{margin-top:auto;align-self:flex-start}
.research-philosophy-panel{
  border:1px solid #dfe7d6;
  border-radius:16px;
  background:linear-gradient(180deg,#fbfcf9,#f2f6ed);
  padding:24px 23px 18px;
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
}
.research-philosophy-panel:after{
  content:"";
  position:absolute;
  width:210px;
  height:210px;
  right:-85px;
  top:-90px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(87,119,64,.10),rgba(87,119,64,0) 68%);
  pointer-events:none;
}
.research-philosophy-panel h2{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--deep);
  font-size:1.7rem;
  line-height:1.12;
  margin:0 0 14px;
}
.research-philosophy-panel p{
  color:#465a52;
  font-size:.96rem;
  line-height:1.58;
  margin:0 0 20px;
  max-width:620px;
}
.decision-flow{
  margin:5px 0 18px;
  padding:18px 10px;
  border-top:1px solid #dce5d6;
  border-bottom:1px solid #dce5d6;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#244834;
}
.decision-flow span{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
  font-size:1rem;
}
.decision-flow b{color:#7a9660;font-weight:600}
.research-philosophy-panel .home-button{margin-top:auto;align-self:flex-start}
.home-intro-v5 .collaboration-panel{padding:24px 22px 18px}
.home-intro-v5 .collaboration-panel h2{font-size:1.55rem}
.home-intro-v5 .collaboration-panel .home-button{margin-top:auto}
@media(max-width:980px){
  .home-intro.home-intro-v5{grid-template-columns:minmax(220px,.8fr) 1.3fr}
  .home-intro-v5 .collaboration-panel{grid-column:1/-1;min-height:unset}
  .profile-card,.research-philosophy-panel{min-height:360px}
}
@media(max-width:660px){
  .home-intro.home-intro-v5{grid-template-columns:1fr}
  .profile-card,.research-philosophy-panel,.home-intro-v5 .collaboration-panel{min-height:unset}
  .profile-card .profile-photo{height:315px}
  .decision-flow{flex-wrap:wrap;justify-content:center}
}

/* Version 6: restore Teaching as the fourth primary homepage column */
.home-intro.home-intro-v5{
  grid-template-columns:minmax(210px,.82fr) minmax(270px,1.08fr) minmax(270px,1fr) minmax(250px,.95fr);
}
.home-intro-v5 .teaching-panel-v6{
  min-height:360px;
  display:flex;
  flex-direction:column;
  padding:24px 22px 18px;
}
.home-intro-v5 .teaching-panel-v6 .home-button{margin-top:auto;align-self:flex-start}
@media(max-width:1180px){
  .home-intro.home-intro-v5{grid-template-columns:repeat(2,minmax(280px,1fr));}
  .home-intro-v5 .collaboration-panel{grid-column:auto;min-height:360px}
  .home-intro-v5 .teaching-panel-v6{min-height:360px}
}
@media(max-width:660px){
  .home-intro.home-intro-v5{grid-template-columns:1fr}
  .home-intro-v5 .collaboration-panel,.home-intro-v5 .teaching-panel-v6{min-height:unset}
}
