/* Shared editorial layer for every page in the static website. */
:root {
  --bg: #f8f7f3;
  --surface: #fff;
  --surface-soft: #f2f0ea;
  --text: #25302b;
  --muted: #626b65;
  --primary: #92563e;
  --primary-strong: #77432f;
  --accent: #92563e;
  --lavender: #f2f0ea;
  --border: #deded7;
  --shadow: 0 12px 30px rgba(38, 48, 43, .06);
  --site-bg: #f8f7f3;
  --site-card: #fff;
  --site-text: #25302b;
  --site-muted: #626b65;
  --site-border: #deded7;
  --site-accent: #92563e;
  --site-soft: #f2f0ea;
}
:root[data-theme="dark"] {
  --bg: #171c1a;
  --surface: #202623;
  --surface-soft: #252c28;
  --text: #f2f4ef;
  --muted: #b6c0b8;
  --primary: #dfad91;
  --primary-strong: #f0c4aa;
  --accent: #dfad91;
  --lavender: #252c28;
  --border: #3a443e;
  --shadow: 0 12px 30px rgba(0, 0, 0, .13);
  --site-bg: #171c1a;
  --site-card: #202623;
  --site-text: #f2f4ef;
  --site-muted: #b6c0b8;
  --site-border: #3a443e;
  --site-accent: #dfad91;
  --site-soft: #252c28;
}
body { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.site-header {
  height: auto;
  min-height: 72px;
  padding: 12px clamp(22px, 5vw, 80px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}
.brand { gap: 8px; color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
}
.brand-mark svg { width: 100%; height: 100%; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 30px); }
.site-header nav a { padding: 7px 0; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a.active, .site-header nav a[aria-current="page"] { color: var(--text); }
.site-header nav a.active::after { bottom: 1px; height: 1px; background: var(--primary); }
.site-header nav a[href="team.html"] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
}
.site-header nav a[href="team.html"]:hover,
.site-header nav a[href="team.html"].active { border-color: var(--primary); color: var(--primary); }
.site-header nav a[href="team.html"].active::after { display: none; }
.theme-toggle {
  display: grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  justify-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  box-shadow: none;
  font-size: 18px;
}
.theme-toggle .theme-knob { display: none; }
.theme-toggle .theme-icon,
.theme-toggle .theme-icon:first-child,
.theme-toggle .theme-icon:nth-child(2) {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin: 0;
  color: var(--primary);
}
.theme-toggle .theme-icon svg { width: 19px; height: 19px; }
:root[data-theme="light"] .theme-toggle .theme-icon:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon:nth-child(2) { display: none; }
.eyebrow, .kicker { color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .15em; }
.eyebrow-dot { width: 6px; height: 6px; box-shadow: none; }
.button {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}
.button-primary, :root[data-theme="dark"] .button-primary { background: var(--primary); color: var(--bg); box-shadow: none; }
.button-primary:hover { background: var(--primary-strong); box-shadow: none; }
.button-secondary { background: transparent; border-color: var(--border); }
.button:hover { transform: translateY(-1px); }

/* Home: one clear story, a useful report example, then four destinations. */
.hero {
  max-width: 1260px;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(35px, 6vw, 90px);
  padding: 75px clamp(22px, 5vw, 80px) 80px;
}
.hero h1, .members-intro h1 {
  max-width: 690px;
  margin: 18px 0 20px;
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.hero h1 em, .members-intro h1 em { color: var(--primary); font-style: normal; }
.hero-text { max-width: 590px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.actions { margin-top: 25px; gap: 10px; }
.hero-footnote { margin-top: 28px; font-size: 12px; }
.hero-visual { min-height: 0; overflow: visible; }
.hero-visual::before, .hero-visual::after, .floating-tag { display: none; }
.report-card {
  width: min(100%, 390px);
  aspect-ratio: auto;
  display: block;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: none;
}
.report-head { justify-content: space-between; width: 100%; height: auto; margin-bottom: 22px; }
.report-head b { width: 40px; height: 40px; font-size: 0; }
.report-head .report-logo { width: 40px; height: 40px; color: var(--primary); }
.report-head span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.skeleton { display: block; height: 5px; margin: 9px 0; }
.skeleton.short { margin-bottom: 18px; }
.result { display: flex; margin: 18px 0; padding: 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.result strong { font-size: 22px; }
.pill { border-radius: 5px; background: #e7f3ea; color: #266d4d; }
.insight { display: flex; justify-content: flex-start; padding: 12px 0 0; border-top: 1px solid var(--border); }
.insight-icon { display: grid; background: var(--surface-soft); }
.insight b, .insight p { display: block; }
.insight b { font-size: 12px; }
.insight p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-team {
  max-width: 1260px;
  margin: 0 auto;
  padding: 32px clamp(22px, 5vw, 80px) 78px;
}
.home-team-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 23px; }
.home-team-heading h2 { margin: 8px 0 8px; font: 400 clamp(31px, 3.4vw, 45px)/1.12 Georgia, serif; letter-spacing: -.035em; }
.home-team-heading p { max-width: 590px; margin: 0; color: var(--muted); font-size: 14px; }
.home-team-heading .button { flex: 0 0 auto; }
.home-team-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.home-team-list a {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 12px;
  min-height: 86px;
  padding: 15px 16px 15px 0;
  border-bottom: 1px solid var(--border);
}
.home-team-list a:nth-child(odd) { padding-right: 28px; }
.home-team-list a:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--border); }
.home-team-list a:hover strong, .home-team-list a:hover > span:last-child { color: var(--primary); }
.home-team-list .home-team-index { grid-row: span 2; color: var(--primary); font-size: 11px; font-weight: 800; }
.home-team-list strong { font-size: 15px; font-weight: 700; }
.home-team-list a > span:nth-last-child(2) { grid-column: 2; color: var(--muted); font-size: 12px; }
.home-team-list a > span:last-child { grid-column: 3; grid-row: 1 / span 2; color: var(--muted); font-size: 17px; }
.principles { gap: 0; padding: 22px clamp(22px, 5vw, 80px); background: var(--surface); }
.principle { justify-content: flex-start; gap: 10px; font-size: 12px; font-weight: 700; }
.principle + .principle { padding-left: 20px; border-left: 1px solid var(--border); }
.principle span { width: auto; height: auto; color: var(--primary); background: transparent; font-size: 10px; }

/* Shared page sections and content hierarchy. */
.section { max-width: 1200px; padding: 82px clamp(22px, 5vw, 80px); }
.section h2, .team-cta h2, .members-section-heading h2, .faculty h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.14;
  letter-spacing: -.04em;
}
.section-copy p { max-width: 670px; font-size: 15px; line-height: 1.8; }
.about-grid { grid-template-columns: .85fr 1.15fr; gap: 60px; }
.notice { margin-top: 26px; padding: 15px 18px; border-left: 2px solid var(--primary); border-radius: 0; background: var(--surface-soft); }
.approach {
  padding: 76px clamp(22px, 5vw, 80px) 85px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.approach-head { max-width: 1120px; margin-bottom: 26px; }
.approach-head p { max-width: 370px; font-size: 14px; }
.approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.approach-card {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 22px 24px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
}
.approach-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: none; }
.approach-icon,
.approach-card:nth-child(2) .approach-icon,
.approach-card:nth-child(3) .approach-icon {
  width: 33px;
  height: 33px;
  margin: 10px 0 14px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 17px;
}
.approach-card h3 { margin-bottom: 6px; font-size: 21px; }
.approach-card p { max-width: 440px; font-size: 14px; line-height: 1.65; }
.approach-card .button {
  align-self: flex-start;
  min-height: 0;
  margin-top: auto;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}
.about-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px clamp(22px, 5vw, 80px) 76px;
}
.about-next p { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.about-next > div { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer { padding: 25px clamp(22px, 5vw, 80px); background: var(--bg); }
.site-footer .brand { font-size: 15px; }
.site-footer .brand-mark { width: 26px; height: 26px; }

/* Feature page: grouped workflow, experience, and safeguards. */
.features-page { max-width: 1200px; margin: auto; padding: 78px clamp(22px, 5vw, 80px) 95px; }
.page-lead { max-width: 710px; margin-bottom: 55px; }
.page-lead h1 { margin: 13px 0 16px; font: 400 clamp(43px, 4.8vw, 68px)/1.07 Georgia, serif; letter-spacing: -.045em; }
.page-lead p { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.feature-group { margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--border); }
.feature-group-head { display: grid; grid-template-columns: minmax(160px, .36fr) 1fr; gap: 22px; margin-bottom: 23px; align-items: baseline; }
.feature-group-head span { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.feature-group-head h2 { margin: 0; font: 400 clamp(26px, 3vw, 36px)/1.15 Georgia, serif; letter-spacing: -.035em; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-item { min-height: 155px; padding: 19px 20px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.feature-item .feature-number { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.feature-item h3 { margin: 14px 0 7px; font: 400 20px/1.2 Georgia, serif; }
.feature-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-disclaimer { max-width: 790px; margin: 34px 0 0; padding: 17px 20px; border-left: 2px solid var(--primary); background: var(--surface-soft); color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }

/* Team directory and individual profiles. */
.team-intro { max-width: 590px; margin: -2px 0 30px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member-card { border-radius: 11px; box-shadow: none; }
.member-card:hover { transform: translateY(-2px); box-shadow: none; }
.member-card-link { display: grid; grid-template-columns: 42% 58%; min-height: 230px; }
.portrait, .portrait.blue, .portrait.peach, .portrait.lilac { min-height: 230px; height: 100%; background: var(--surface-soft); }
.portrait-label { display: none; }
.portrait-fallback { width: 94px; height: 94px; background: var(--surface); color: var(--primary); font-size: 32px; }
.member-card .member-info { display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.member-card .member-info h3 { min-height: 0; margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); }
.member-card .member-info .roll-number { margin: 0; font-size: 12px; }
.faculty { margin-top: 55px; padding: 25px; border-radius: 9px; background: var(--surface); }
.faculty-symbol { width: 42px; height: 42px; border-radius: 8px; background: var(--surface-soft); font-size: 20px; }
.faculty h2 { font-size: 28px; }
.profile-page.is-active { max-width: 1170px; padding: 50px clamp(22px, 5vw, 80px) 95px; animation: none; }
.back-link { margin-bottom: 25px; font-size: 12px; }
.profile-hero { grid-template-columns: 255px minmax(0, 1fr); gap: clamp(28px, 5vw, 65px); align-items: start; margin: 0 0 50px; }
.profile-photo { max-width: 255px; aspect-ratio: 4/4.5; border-radius: 9px; }
.profile-hero .profile-photo.portrait-fallback { width: 255px; max-width: 100%; height: auto; aspect-ratio: 4/4.5; }
.profile-title { margin: 10px 0 7px; font-size: clamp(39px, 4.5vw, 59px); line-height: 1.08; letter-spacing: -.045em; }
.profile-roll { margin: 0 0 18px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.profile-hero p:not(.profile-roll):not(.profile-placeholder-note) { max-width: 640px; font-size: 15px; }
.member-contact { gap: 4px; margin-top: 15px; font-size: 12px; }
.member-contact a { text-decoration-thickness: 1px; }
.profile-links { display: flex; align-items: stretch; gap: 10px; margin-top: 21px; }
.profile-links .button {
  display: inline-flex;
  flex: 0 0 132px;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.profile-links .button:hover { border-color: var(--primary-strong); background: var(--primary-strong); color: #fff; }
.profile-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 14px; }
.profile-panel { padding: 26px; border-radius: 9px; }
.profile-panel h2 { margin-bottom: 14px; font-size: 25px; }
.profile-panel li { margin-bottom: 8px; }
.profile-panel li::marker { color: var(--primary); }
.profile-placeholder-note { font-size: 11px; }

/* Dedicated app demo uses the same outer site language; the Flutter UI stays intact. */
.demo-layout { max-width: 1220px; grid-template-columns: minmax(0, 1fr) minmax(390px, 520px); gap: clamp(38px, 5vw, 78px); padding-top: 67px; }
.demo-intro { padding-top: 7px; }
.demo-intro h1 { max-width: 620px; font-size: clamp(40px, 4.2vw, 61px); line-height: 1.08; }
.intro-copy { margin-top: 20px; font-size: 15px; line-height: 1.75; }
.journey { gap: 5px; margin-top: 23px; }
.journey-step { min-height: 40px; border-radius: 8px; }
.journey-step .journey-title { font-size: 13px; }
.journey-step.active { box-shadow: none; }
.demo-disclosure { margin-top: 24px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--site-border); background: transparent; }
.demo-stage { padding: 0 0 20px; border: 0; border-radius: 0; background: transparent; }
.stage-header { padding-top: 3px; }
.stage-controls { gap: 6px; }
.control { border-radius: 7px; }
.device { box-shadow: 0 16px 32px rgba(0, 0, 0, .14); }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-visual { justify-items: start; }
  .about-grid { grid-template-columns: 1fr; gap: 8px; }
  .member-grid { grid-template-columns: 1fr; }
  .home-team-list { grid-template-columns: 1fr; }
  .home-team-list a:nth-child(odd), .home-team-list a:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-stage { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .site-header { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-height: 0; padding: 11px 18px 9px; }
  .site-header nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 3px;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a,
  .site-header nav a:not(.nav-cta) { display: inline-block; flex: 0 0 auto; font-size: 12px; }
  .site-header nav .theme-toggle { width: 32px; height: 32px; flex-basis: 32px; }
  .hero { padding: 54px 20px 60px; }
  .hero h1 { font-size: clamp(45px, 10vw, 58px); }
  .hero-visual { margin-top: 0; }
  .hero-visual::before, .hero-visual::after { display: none; }
  .report-card { width: 100%; max-width: 390px; }
  .home-team { padding: 20px 20px 58px; }
  .home-team-heading { display: block; }
  .home-team-heading .button { margin-top: 16px; }
  .principles { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .principle + .principle { padding-left: 0; border-left: 0; }
  .section, .features-page { padding: 62px 20px; }
  .approach { padding: 62px 20px; }
  .approach-grid, .feature-list { grid-template-columns: 1fr; }
  .profile-links { display: flex; flex-wrap: wrap; }
  .profile-links .button { width: 132px; }
  .about-next { display: block; padding: 20px 20px 62px; }
  .about-next > div { margin-top: 18px; }
  .approach-card { min-height: 175px; }
  .feature-group-head { grid-template-columns: 1fr; gap: 5px; }
  .feature-item { min-height: 0; }
  .member-card-link { grid-template-columns: 39% 61%; min-height: 175px; }
  .portrait { min-height: 175px; }
  .member-card .member-info { padding: 16px; }
  .member-card .member-info h3 { font-size: 21px; }
  .faculty { grid-template-columns: 42px 1fr; padding: 20px; }
  .profile-page.is-active { padding: 34px 20px 70px; }
  .profile-hero { grid-template-columns: 1fr; gap: 21px; margin-bottom: 30px; }
  .profile-photo { width: 100%; max-width: 225px; }
  .profile-grid { grid-template-columns: 1fr; }
  .demo-layout { padding: 50px 18px 60px; }
  .demo-intro h1 { font-size: clamp(39px, 9vw, 53px); }
  .demo-stage { padding: 0; }
  .site-footer { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero > div:first-child, .hero-visual, .report-card, .profile-page.is-active { animation: none !important; }
}
