:root {
  --navy: #071a3d;
  --navy-2: #102a56;
  --red: #d71920;
  --gold: #c7a64b;
  --blue-grey: #6f8299;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --pink: #f5dfe2;
  --sky: #dce8f3;
  --ink: #17243b;
  --muted: #5b6678;
  --line: #d9dde4;
  --shadow: 0 18px 48px rgba(7, 26, 61, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 99; }
.skip-link:focus { left: 1rem; top: 1rem; padding: .75rem 1rem; background: white; color: var(--navy); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
  background: rgba(7, 26, 61, .96);
  border-top: 5px solid var(--red);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--navy); background: var(--gold);
  font-weight: 900; letter-spacing: -.08em;
}
.brand-copy strong { display: block; font-size: .98rem; }
.brand-copy span { display: block; color: #c8d3e3; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle { display: none; border: 1px solid #ffffff55; color: #fff; background: transparent; padding: .55rem .75rem; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: .7rem .75rem; border-radius: 9px; text-decoration: none; color: #e7edf6; font-size: .9rem; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: #fff; background: #ffffff18; }

.hero {
  position: relative;
  min-height: 650px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 44%, rgba(199,166,75,.16), transparent 24%),
    radial-gradient(circle at 85% 70%, rgba(215,25,32,.16), transparent 28%),
    linear-gradient(125deg, #061e4a 0%, #071a3d 58%, #1b1229 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .42;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 1.3px, transparent 1.5px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent 38%, black 100%);
}
.hero::after {
  content: ""; position: absolute; right: -70px; top: 75px; width: 620px; height: 620px;
  border: 1px solid rgba(255,255,255,.11); border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.014);
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 40px)); margin: auto;
  padding: 112px 0 80px;
}
.eyebrow { color: var(--gold); font-size: .82rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 20px 0 26px; font-size: clamp(3.5rem, 8.4vw, 7.2rem); line-height: .87; letter-spacing: -.065em; }
.hero h1 span { color: var(--gold); }
.hero-lead { max-width: 720px; margin: 0 0 28px; font-size: clamp(1.05rem, 2vw, 1.38rem); color: #e1e8f2; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 34px; color: #becbda; font-size: .9rem; }
.hero-meta strong { color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 9px; padding: .82rem 1.15rem; border-radius: 999px; font-weight: 800; text-decoration: none; background: #fff; color: var(--navy); border: 2px solid transparent; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.button.secondary { color: #fff; background: transparent; border-color: #ffffff66; }
.button.red { color: #fff; background: var(--red); }

.content { width: min(1180px, calc(100% - 40px)); margin: auto; }
.section { padding: 86px 0; }
.section.alt { background: var(--cream); }
.section-head { display: grid; grid-template-columns: minmax(0, .75fr) minmax(320px, 1.25fr); gap: 50px; align-items: end; margin-bottom: 40px; }
.section-head h2 { margin: 8px 0 0; color: var(--navy); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Home overview: heading and summary are both short now, so centre the pair and
   tighten the gap. Bottom-aligning a five-line heading against three lines of
   text left a wide empty band above the paragraph. */
#overview .section-head { align-items: center; gap: 44px; margin-bottom: 28px; }
.kicker { color: var(--red); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 900; }

.module-grid, .profile-grid, .feature-grid { display: grid; gap: 22px; }
.module-grid { grid-template-columns: repeat(3, 1fr); }
.module-card { position: relative; min-height: 330px; padding: 30px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.module-card::after { content: ""; position: absolute; right: -55px; bottom: -55px; width: 180px; height: 180px; border: 34px solid var(--sky); border-radius: 50%; opacity: .75; }
.module-card:nth-child(2)::after { border-color: var(--pink); }
.module-card:nth-child(3)::after { border-color: #e7ddbd; }
.module-no { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #fff; background: var(--navy); font-size: 1.2rem; font-weight: 900; }
.module-card h3 { position: relative; z-index: 1; margin: 22px 0 12px; color: var(--navy); font-size: 1.65rem; line-height: 1.1; }
.module-card p { position: relative; z-index: 1; color: var(--muted); }
.text-link { position: relative; z-index: 1; font-weight: 900; color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.band { color: #fff; background: var(--navy); border-left: 12px solid var(--gold); padding: 34px 0; }
.band .content { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.band h2 { margin: 0 0 4px; font-size: 1.7rem; }
.band p { margin: 0; color: #c9d3e1; }

.page-hero { color: #fff; background: linear-gradient(122deg, var(--navy), #102c5f 70%, #25142c); padding: 82px 0 74px; }
.page-hero h1 { max-width: 900px; margin: 12px 0 18px; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.06em; }
.page-hero p { max-width: 760px; margin: 0; color: #d8e1ed; font-size: 1.15rem; }
.privacy-note { margin-top: 28px; max-width: 850px; padding: 16px 18px; border-left: 5px solid var(--gold); background: rgba(255,255,255,.09); border-radius: 0 12px 12px 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.search-box { flex: 1 1 280px; padding: .9rem 1rem; border: 1px solid #bfc7d2; border-radius: 12px; font: inherit; background: #fff; }
.search-box:focus { outline: 3px solid rgba(199,166,75,.35); border-color: var(--navy); }
.profile-grid { grid-template-columns: repeat(4, 1fr); }
.profile-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 34px rgba(7,26,61,.09); }
.portrait { aspect-ratio: 4/3; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--navy-2), var(--navy)); position: relative; overflow: hidden; }
.portrait::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 26px solid rgba(199,166,75,.27); right: -35px; bottom: -40px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.initials { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.8); background: rgba(255,255,255,.12); font-weight: 900; font-size: 1.7rem; }
.profile-copy { padding: 21px; }
.profile-role { color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.profile-copy h2, .profile-copy h3 { margin: 5px 0 8px; color: var(--navy); font-size: 1.25rem; line-height: 1.15; }
.profile-copy p { margin: 7px 0; color: var(--muted); font-size: .9rem; }
.profile-copy strong { color: var(--ink); }
/* Student group label: a quiet left-bar label under the name. Deliberately
   plain so it does not compete with the red role label above it; the group
   leader swaps the bar to red and gains a small LEADER badge. */
.profile-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding-left: 9px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
}
.profile-group.is-leader {
  border-left-color: var(--red);
  color: var(--navy);
}
.profile-group-lead {
  padding: 1px 6px 2px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Story quote banner: a cream band directly under the hero, before the profile
   grid. Two columns on wide screens so a ten-line dialogue does not run tall. */
.quote-banner {
  padding: 56px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-quote {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .3fr) minmax(0, 1fr);
  gap: 20px 40px;
  align-items: start;
  margin: 0;
  padding-left: 26px;
  border-left: 6px solid var(--gold);
}
.story-quote h2 {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
}
.story-quote blockquote {
  grid-column: 2;
  margin: 0;
  padding: 0;
}
.story-quote blockquote p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}
.story-quote blockquote p:last-child { margin-bottom: 0; }
.story-quote figcaption {
  grid-column: 2;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 2px solid rgba(199,166,75,.45);
}
.story-quote .proverb-zh {
  display: block;
  color: var(--navy);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.2;
}
.story-quote .proverb-pinyin {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.story-quote .proverb-en {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}
.story-quote figcaption cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-style: normal;
}

/* Page-level disclaimer: a quiet line at the foot of the content, set off by a
   hairline rule so it reads as a note about the page rather than body copy. */
.page-disclaimer { padding: 8px 0 52px; }
.page-disclaimer p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}
.profile-card.placeholder { background: #fcfbf7; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { padding: 26px; border-radius: 20px; border-top: 6px solid var(--red); background: #fff; box-shadow: var(--shadow); }
.team-card .portrait { border-radius: 14px; aspect-ratio: 5/3; margin-bottom: 20px; }
.team-card h2 { color: var(--navy); margin: 6px 0 8px; }
.team-card p { color: var(--muted); }
.team-card dl { margin: 18px 0 0; border-top: 1px solid var(--line); }
.team-card dt { margin-top: 12px; color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.team-card dd { margin: 2px 0 0; }

.module-summary { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.summary-panel, .outcomes { padding: 30px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.summary-panel h2, .outcomes h2 { margin-top: 0; color: var(--navy); }
.outcomes { background: var(--navy); color: #fff; }
.outcomes h2 { color: #fff; }
.outcomes li { margin: .65rem 0; color: #dce5f0; }

.outline-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.outline-table th { padding: 16px; color: #fff; background: var(--navy); text-align: left; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.outline-table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; }
.outline-table tr:nth-child(even) td { background: #faf8f2; }
.outline-table td:first-child { width: 80px; color: var(--red); font-weight: 900; }
.outline-table strong { color: var(--navy); }
.tag { display: inline-block; margin-top: 7px; padding: .25rem .55rem; border-radius: 999px; color: var(--navy); background: var(--sky); font-size: .72rem; font-weight: 800; }

.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.journey-step { position: relative; padding: 25px 18px; min-height: 155px; border-radius: 16px; background: var(--cream); }
.journey-step:nth-child(2), .journey-step:nth-child(5) { background: var(--sky); }
.journey-step:nth-child(3) { background: var(--pink); }
.journey-step:nth-child(4) { color: #fff; background: var(--navy); }
.journey-step b { display: block; color: var(--red); font-size: 1.25rem; }
.journey-step:nth-child(4) b { color: var(--gold); }
.journey-step span { display: block; margin-top: 9px; font-weight: 800; }
.journey-step p { margin: 6px 0 0; font-size: .86rem; }

.site-footer { padding: 42px 0; color: #d6dfeb; background: #041127; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 32px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; }
.site-footer a { color: #d6dfeb; }
.site-footer small { color: #a9b7c9; font-size: 1rem; line-height: 1.65; }
.footer-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid #ffffff22; }
.empty-state { padding: 34px; border: 1px dashed var(--blue-grey); border-radius: 16px; color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .module-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); }
  .module-summary { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 66px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; padding: 12px 20px 18px; background: var(--navy); }
  .site-nav.open { display: flex; }
  .hero { min-height: 610px; }
  .hero-inner { padding-top: 86px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .module-grid, .profile-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .outline-wrap { overflow-x: auto; padding-bottom: 10px; }
  .outline-table { min-width: 720px; }
  .journey { grid-template-columns: 1fr 1fr; }
  .story-quote { grid-template-columns: 1fr; gap: 14px; padding-left: 20px; }
  .story-quote h2, .story-quote blockquote, .story-quote figcaption { grid-column: 1; }
  .quote-banner { padding: 40px 0; }
}
@media (max-width: 520px) {
  .brand-copy span { display: none; }
  .module-grid, .profile-grid, .team-grid, .journey { grid-template-columns: 1fr; }
  .band .content { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 60px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .module-card, .profile-card, .team-card, .button { transition: transform .2s ease, box-shadow .2s ease; }
  .module-card:hover, .profile-card:hover, .team-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(7,26,61,.15); }
}

/* ARU × CJLU logo in navigation bar */
.brand-logo {
  display: block;
  width: 110px;
  height: 60px;
  max-width: 110px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 3px;
}

.brand {
  flex-shrink: 0;
}

.header-inner {
  min-height: 72px;
}

/* Teaching-team headshots: square frames preserve faces in portrait and square photos. */
.team-card .portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 18px;
  background: #f1f3f5;
}

.team-card .portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
}

/* Keep photos unobstructed by the decorative circle. */
.team-card .portrait::after {
  display: none;
}


/* Semantic Data Technologies: twelve-day course directory */
.sdt-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.sdt-topic-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-height: 125px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(7, 26, 61, .035);
}
.sdt-topic-link:hover,
.sdt-topic-link:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 7px 22px rgba(7, 26, 61, .12);
}
.sdt-topic-day {
  grid-column: 1;
  color: var(--red);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.sdt-topic-name {
  grid-column: 1;
  align-self: end;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}
.sdt-topic-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  color: var(--blue-grey);
}
.sdt-day-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sdt-day-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  scroll-margin-top: 100px;
}
.sdt-day-number {
  flex: 0 0 43px;
  color: var(--red);
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sdt-day-label {
  color: var(--muted);
  font-size: .75rem;
}
.sdt-day-item h3 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}
@media (max-width: 950px) {
  .sdt-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .sdt-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdt-day-list { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .sdt-topic-grid { grid-template-columns: 1fr; }
  .sdt-topic-link { min-height: 90px; }
}

.profile-card .portrait {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.profile-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
}

.profile-card .portrait::after {
  display: none;
}


/* Homepage global reach counters: styled to fit the academic programme. */
.visitor-section {
  background: var(--paper);
}
.visitor-section-head { margin-bottom: 34px; }
.visitor-panels {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: stretch;
}
.visitor-panel {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(7, 26, 61, .06);
}
.visitor-panel-label {
  display: block;
  color: var(--red);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.visitor-panel h3 {
  color: var(--navy);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  margin: 14px 0 9px;
}
.visitor-panel > p {
  color: var(--muted);
  margin: 0 0 22px;
}
.visitor-counter-display {
  display: inline-flex;
  max-width: 100%;
  min-height: 76px;
  align-items: center;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.visitor-count-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 30px;
}
.visitor-country-widget {
  display: flex;
  min-height: 140px;
  align-items: flex-start;
  justify-content: flex-start;
}
.visitor-country-widget a {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: 8px;
}
.visitor-country-widget img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}
.visitor-panel > .visitor-panel-footnote {
  margin: 20px 0 0;
  font-size: .83rem;
  color: var(--muted);
}
.visitor-stats-link {
  color: var(--navy);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.visitor-stats-link:hover,
.visitor-stats-link:focus-visible {
  color: var(--red);
}
.visitor-method-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .79rem;
}
@media (max-width: 760px) {
  .visitor-panels { grid-template-columns: 1fr; }
  .visitor-panel { padding: 24px; }
}


/* Student stories */
.stories-hero {
  padding: clamp(64px, 9vw, 115px) 0 clamp(60px, 7vw, 90px);
  background: radial-gradient(circle at 82% 28%, rgba(199,166,75,.19), transparent 26%), linear-gradient(122deg, #071a3d, #102c5f 78%, #271a35);
}
.stories-hero h1 {
  max-width: none;
  font-size: clamp(3.9rem, 9vw, 7.6rem);
  letter-spacing: -.075em;
  line-height: .88;
  margin: 18px 0 28px;
}
.stories-title-dot { color: var(--gold); }
.stories-hero p { max-width: 760px; font-size: clamp(1rem, 1.9vw, 1.24rem); }
.stories-section-intro { margin-bottom: 36px; }
.stories-section-intro h2 {
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: -.05em;
  line-height: 1.05;
  margin: 8px 0 0;
}
.student-story {
  padding: clamp(22px, 4vw, 50px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--red);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.story-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.story-category {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
  font-weight: 900;
  color: var(--red);
}
.story-location {
  font-size: .86rem;
  color: var(--muted);
}
.story-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, .65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.story-lead-grid h3 {
  color: var(--navy);
  font-size: clamp(2rem, 4.8vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -.055em;
  margin: 0 0 24px;
}
.story-deck {
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  margin: 0 0 20px;
}
.story-credit {
  color: var(--navy);
  font-size: .9rem;
  margin-bottom: 0;
}
.story-credit strong { font-weight: 900; }
.story-at-a-glance {
  padding: 23px 25px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
}
.story-aside-label {
  font-size: .72rem;
  color: var(--red);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
}
.story-at-a-glance dl { margin: 9px 0 0; }
.story-at-a-glance dl div { padding: 11px 0; border-top: 1px solid #d7d0bf; }
.story-at-a-glance dt {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}
.story-at-a-glance dd { margin: 3px 0 0; color: var(--navy); font-size: .92rem; font-weight: 700; }
.story-visual-header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: clamp(30px, 5vw, 54px) 0 15px;
}
.story-visual-caption { color: var(--muted); font-size: .82rem; }
.story-topic-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.story-topic-tile {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 20px;
  background: #edf3f8;
  border: 1px solid #dce5ed;
  border-radius: 14px;
}
.story-topic-tile:nth-child(2) { background: #f7f0dd; border-color: #eaddbc; }
.story-topic-tile:nth-child(3) { background: #f6e8e9; border-color: #efcfd1; }
.story-topic-tile:nth-child(4) { background: #edf0fa; border-color: #d9e2f2; }
.story-topic-symbol {
  color: var(--red);
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.065em;
  opacity: .72;
}
.story-topic-tile b { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.2; }
.story-topic-tile small { display: block; color: var(--muted); margin-top: 8px; font-size: .8rem; line-height: 1.35; }
.story-reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, .7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  margin: clamp(34px, 5vw, 60px) 0;
}
.story-copy { max-width: 760px; }
.story-copy p { margin: 0 0 20px; color: var(--ink); font-size: 1.07rem; line-height: 1.75; }
.story-pullquote {
  border-top: 4px solid var(--gold);
  padding: 10px 0 24px;
}
.story-quote-mark { display: block; color: var(--gold); font-size: 5rem; line-height: .9; font-family: Georgia, serif; }
.story-pullquote blockquote {
  margin: 6px 0 20px;
  color: var(--navy);
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.04em;
}
.story-quote-credit { color: var(--muted); font-size: .85rem; }
.story-article-footer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  gap: 15px 30px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .83rem;
}
.story-article-footer strong { color: var(--navy); }
.story-article-footer a { color: var(--red); font-weight: 800; text-underline-offset: 4px; }
.story-invitation-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.story-invitation-inner > div { max-width: 760px; }
.story-invitation h2 {
  color: var(--navy);
  margin: 8px 0 15px;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.05em;
}
.story-invitation p { font-size: 1.05rem; color: var(--muted); }
.story-invitation p.story-invitation-small { margin-bottom: 0; font-size: .89rem; }
.story-invitation .button { flex-shrink: 0; background: var(--navy); color: #fff; }
.story-home-link {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding: 25px 30px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.story-home-link .story-home-copy { min-width: 0; }
.story-home-link .story-home-copy strong { display: block; color: var(--navy); font-size: 1.3rem; }
.story-home-link .story-home-copy span { display: block; color: var(--muted); margin-top: 5px; font-size: .9rem; }
.story-home-link a { flex-shrink: 0; color: var(--red); font-weight: 900; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .story-topic-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-lead-grid, .story-reading-grid { grid-template-columns: 1fr; }
  .story-at-a-glance { max-width: 590px; }
}
@media (max-width: 620px) {
  .story-invitation-inner, .story-home-link { align-items: flex-start; flex-direction: column; }
  .story-topic-tile { min-height: 150px; }
}
@media (max-width: 430px) {
  .story-topic-gallery { grid-template-columns: 1fr; }
  .story-topic-tile { min-height: 125px; }
}


/* Four As research story */
.story-collection-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: clamp(48px, 6vw, 76px) 0 clamp(30px, 4vw, 46px);
  color: var(--red);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.story-collection-divider::before,
.story-collection-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.research-story { border-top-color: var(--gold); }
.research-story .story-lead-grid h3 {
  font-size: clamp(1.95rem, 4.5vw, 3.45rem);
}
.research-story-lead {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, .85fr);
  gap: clamp(24px, 3.6vw, 48px);
}
.four-as-paper-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--red);
  font-weight: 900;
  text-underline-offset: 4px;
}
.four-as-figure { margin: 0; min-width: 0; }
.four-as-photo-placeholder {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px;
  border: 2px dashed #a3b0be;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(199,166,75,.18), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(16,42,86,.12), transparent 42%),
    linear-gradient(135deg, #f7f6f0, #ebf0f6);
  text-align: center;
}
.four-as-photo-placeholder::before,
.four-as-photo-placeholder::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(7,26,61,.1);
  border-radius: 50%;
}
.four-as-photo-placeholder::before { top: -55px; right: -65px; }
.four-as-photo-placeholder::after { bottom: -100px; left: -62px; width: 250px; }
.four-as-photo-monogram {
  color: var(--navy);
  font-size: clamp(4.3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: 1;
}
.four-as-photo-monogram span { color: var(--gold); }
.four-as-photo-label {
  color: var(--red);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .17em;
}
.four-as-photo-hint {
  color: var(--muted);
  max-width: 240px;
  font-size: .88rem;
}
.four-as-figure figcaption {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}
.four-as-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.four-as-intro { max-width: 830px; margin: 54px 0 22px; }
.four-as-intro h4 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -.04em;
}
.four-as-intro p { max-width: 770px; margin: 0; color: var(--muted); }
.four-as-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.four-as-card {
  display: flex;
  flex-direction: column;
  min-height: 254px;
  padding: clamp(17px, 2vw, 24px);
  border-radius: 15px;
  background: #edf3f8;
  border: 1px solid #dce5ed;
}
.four-as-card:nth-child(2) { background: #f7f0dd; border-color: #eaddbc; }
.four-as-card:nth-child(3) { background: #f6e8e9; border-color: #efcfd1; }
.four-as-card:nth-child(4) { background: #edf0fa; border-color: #d9e2f2; }
.four-as-number {
  display: block;
  color: var(--red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.four-as-card h5 {
  margin: 16px 0 10px;
  color: var(--navy);
  font-size: clamp(1.26rem, 2.2vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.four-as-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.5;
}
.four-as-principle {
  display: block;
  padding-top: 13px;
  border-top: 1px solid rgba(7,26,61,.12);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.four-as-reading { margin-bottom: 42px; }
.four-as-reading .story-copy a {
  color: var(--red);
  text-underline-offset: 4px;
}
@media (max-width: 1050px) {
  .four-as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .four-as-card { min-height: 215px; }
}
@media (max-width: 900px) {
  .research-story-lead { grid-template-columns: 1fr; }
  .four-as-figure { max-width: 560px; }
}
@media (max-width: 520px) {
  .four-as-grid { grid-template-columns: 1fr; }
  .four-as-card { min-height: 0; }
  .four-as-photo-placeholder { min-height: 240px; }
  .story-collection-divider { gap: 14px; }
}


/* Real images for the competition and Four As stories */
.story-event-photo {
  margin: 18px 0 26px;
}
.story-event-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f0f3f6;
  box-shadow: 0 10px 25px rgba(7,26,61,.08);
}
.story-event-photo figcaption {
  padding: 11px 2px 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}
.four-as-figure a {
  display: block;
  border-radius: 18px;
  outline-offset: 5px;
}
.four-as-figure a:hover img,
.four-as-figure a:focus-visible img {
  box-shadow: 0 12px 30px rgba(7,26,61,.15);
  border-color: var(--gold);
}
.four-as-figure img {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 18px rgba(7,26,61,.08);
  transition: box-shadow .2s ease, border-color .2s ease;
}


/* Chaopei Yu learning journey: portrait, achievements and editorial layout */
.chao-story { border-top-color: var(--gold); }
.chao-story-lead {
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .78fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.chao-story-lead h3 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.chao-story-opening {
  margin: 28px 0 0;
  max-width: 650px;
  padding-left: 20px;
  border-left: 4px solid var(--gold);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.65;
}
.chao-story-figure {
  width: 100%;
  max-width: 420px;
  margin: 0;
  justify-self: center;
}
.chao-story-figure img {
  display: block;
  width: 100%;
  max-height: 540px;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #f5f1ed;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(7, 26, 61, .10);
}
.chao-story-figure figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
.chao-story-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vw, 55px);
}
.chao-story-highlight {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 145px;
  padding: 24px 20px;
  background: var(--cream);
  border: 1px solid #e7dcc9;
  border-radius: 15px;
}
.chao-story-highlight:nth-child(2) { background: #edf3f8; border-color: #dbe6f0; }
.chao-story-highlight:nth-child(3) { background: #f5e9ea; border-color: #efd6da; }
.chao-highlight-value {
  color: var(--navy);
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.04em;
}
.chao-highlight-label { color: var(--muted); font-size: .87rem; line-height: 1.45; }
.chao-story-reading .story-copy p { font-size: 1.04rem; }
.chao-side-note {
  margin-top: 32px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.chao-side-note p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: .92rem;
}
@media (max-width: 900px) {
  .chao-story-lead { grid-template-columns: 1fr; }
  .chao-story-figure { justify-self: start; max-width: 360px; }
}
@media (max-width: 640px) {
  .chao-story-highlights { grid-template-columns: 1fr; }
  .chao-story-highlight { min-height: 0; gap: 8px; padding: 19px 20px; }
  .chao-story-figure { max-width: 100%; }
}


/* The Learning Lab feedback */
.feedback-hero {
  background:
    radial-gradient(circle at 80% 35%, rgba(199, 166, 75, .19), transparent 28%),
    linear-gradient(125deg, #071a3d 0%, #0e2c5a 68%, #281c39 100%);
}
.feedback-hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  max-width: 1050px;
}
.feedback-hero h1 span { color: var(--gold); }
.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .83fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.feedback-section-heading h2 {
  margin: 9px 0 15px;
  color: var(--navy);
  font-size: clamp(2.05rem, 3.6vw, 3rem);
  letter-spacing: -.05em;
  line-height: 1.07;
}
.feedback-section-heading > p { color: var(--muted); margin: 0 0 28px; }
.feedback-form {
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 19px;
  padding: clamp(22px, 3.3vw, 36px);
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 26, 61, .065);
}
.feedback-fieldset { border: 0; margin: 0 0 25px; padding: 0; min-width: 0; }
.feedback-fieldset legend,
.feedback-field label,
.feedback-name-field label,
.feedback-label-row label {
  display: block;
  color: var(--navy);
  font-size: .94rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.feedback-fieldset legend { margin-bottom: 14px; }
.feedback-identity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.feedback-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}
.feedback-radio-card:has(input:checked) {
  border-color: var(--gold);
  background: #faf5e8;
  box-shadow: 0 0 0 2px rgba(199, 166, 75, .18);
}
.feedback-radio-card input { margin: 4px 0 0; accent-color: var(--navy); }
.feedback-radio-card strong { display: block; color: var(--navy); font-size: .96rem; }
.feedback-radio-card small { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.feedback-field,
.feedback-name-field { margin-bottom: 23px; }
.feedback-name-field[hidden], .feedback-status[hidden], .feedback-wall-empty[hidden] { display: none !important; }
.feedback-field input,
.feedback-field select,
.feedback-field textarea,
.feedback-name-field input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #b9c3d0;
  border-radius: 11px;
  font: inherit;
  color: var(--navy);
  background: #fff;
}
.feedback-field textarea { resize: vertical; min-height: 154px; }
.feedback-field select { cursor: pointer; }
.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus,
.feedback-name-field input:focus {
  outline: 3px solid rgba(199, 166, 75, .3);
  border-color: var(--navy);
}
.feedback-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.feedback-label-row span { color: var(--muted); font-size: .77rem; white-space: nowrap; }
.feedback-consent { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: .88rem; line-height: 1.55; }
.feedback-consent input { flex: 0 0 auto; margin: 4px 0 0; accent-color: var(--navy); }
.feedback-privacy {
  margin: 18px 0 22px;
  padding: 14px 17px;
  color: var(--muted);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: .78rem;
  line-height: 1.6;
}
.feedback-submit-row { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.feedback-submit-button { background: var(--navy); color: #fff; border: 0; cursor: pointer; }
.feedback-submit-button:disabled { opacity: .55; cursor: wait; }
.feedback-submit-hint { color: var(--muted); font-size: .8rem; flex: 1 1 180px; }
.feedback-status {
  padding: 14px 15px;
  margin: 20px 0 0;
  border: 1px solid #afcdb6;
  background: #eef8ef;
  color: #225032;
  border-radius: 11px;
  font-size: .9rem;
}
.feedback-status-error { border-color: #edc2c2; background: #fff1f1; color: #752525; }
.feedback-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-preview-rail { position: sticky; top: 108px; }
.feedback-preview-card, .feedback-loop-panel {
  padding: clamp(22px, 2.8vw, 29px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}
.feedback-preview-card h3 { margin: 11px 0 22px; color: var(--navy); font-size: 1.55rem; line-height: 1.2; }
.feedback-preview-post, .feedback-wall-post {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
  background: #fff;
  overflow-wrap: anywhere;
}
.feedback-preview-post { background: var(--paper); }
.feedback-post-top { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.feedback-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}
.feedback-post-top strong { display: block; color: var(--navy); line-height: 1.15; }
.feedback-post-top small { display: block; color: var(--muted); margin-top: 4px; font-size: .78rem; }
.feedback-post-category {
  display: inline-block;
  padding: 5px 10px;
  background: #f4ecca;
  color: var(--navy);
  border-radius: 7px;
  font-size: .76rem;
  font-weight: 800;
}
.feedback-preview-post p, .feedback-wall-post .feedback-post-body {
  margin: 16px 0 0;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-wrap;
}
.feedback-preview-caption { margin: 15px 0 0; color: var(--muted); font-size: .77rem; }
.feedback-loop-panel { margin-top: 18px; background: var(--cream); }
.feedback-loop-panel h3 { margin: 10px 0; color: var(--navy); font-size: 1.38rem; }
.feedback-loop-panel p { color: var(--muted); margin-bottom: 0; font-size: .9rem; line-height: 1.6; }
.feedback-wall-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.feedback-wall-post { box-shadow: 0 5px 16px rgba(7,26,61,.045); }
.feedback-post-date { color: var(--muted); display: block; margin-top: 17px; font-size: .75rem; }
.feedback-wall-empty {
  padding: clamp(30px, 4vw, 56px);
  border: 1px dashed #b2bed0;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.feedback-wall-empty-icon { font-size: 2.8rem; color: var(--gold); }
.feedback-wall-empty h3 { color: var(--navy); font-size: 1.6rem; margin: 6px 0 10px; }
.feedback-wall-empty p { margin: 0 auto; max-width: 580px; color: var(--muted); }
.feedback-page-note { padding: 25px 0; }
.feedback-page-note p { max-width: 1000px; font-size: .79rem; color: var(--muted); }
.feedback-home-link { margin-top: 15px; }
.feedback-home-link .story-home-copy strong { font-size: 1.15rem; }
@media (max-width: 970px) {
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-preview-rail { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 15px; }
  .feedback-loop-panel { margin: 0; }
  .feedback-wall-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .feedback-identity-options, .feedback-preview-rail, .feedback-wall-grid { grid-template-columns: 1fr; }
  .feedback-form { padding: 23px; }
}


/* Compact Hermit's Reasoning: illustration alongside the dialogue */
.quote-banner:has(.hermit-layout) {
  padding: clamp(26px, 3.5vw, 42px) 0;
}
.hermit-layout {
  display: grid;
  grid-template-columns: minmax(190px, 28%) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 44px);
  align-items: start;
}
.hermit-illustration {
  margin: 0;
  min-width: 0;
}
.hermit-illustration img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 286px);
  object-fit: cover;
  object-position: 45% 46%;
  border-radius: 13px;
  border: 1px solid rgba(7, 26, 61, .13);
  box-shadow: 0 8px 20px rgba(7, 26, 61, .09);
}
.hermit-illustration figcaption {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .77rem;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}
.hermit-layout .story-quote {
  display: block;
  min-width: 0;
  margin: 0;
  padding-left: clamp(17px, 2.2vw, 23px);
  border-left-width: 4px;
}
.hermit-layout .story-quote h2 {
  margin: 1px 0 16px;
  font-size: clamp(1.55rem, 2.35vw, 2.05rem);
}
.hermit-layout .story-quote blockquote { margin: 0; }
.hermit-layout .story-quote blockquote p {
  margin-bottom: 9px;
  font-size: clamp(.97rem, 1.18vw, 1.05rem);
  line-height: 1.55;
}
.hermit-layout .story-quote figcaption {
  margin-top: 16px;
  padding-top: 13px;
}
@media (max-width: 760px) {
  .hermit-layout {
    grid-template-columns: minmax(152px, 32%) minmax(0, 1fr);
    gap: 20px;
  }
  .hermit-illustration img {
    height: clamp(166px, 28vw, 218px);
  }
  .hermit-layout .story-quote { padding-left: 15px; }
  .hermit-layout .story-quote blockquote p { font-size: .97rem; line-height: 1.5; }
}
@media (max-width: 540px) {
  /* The image floats alongside the opening, then text uses the full width.
     It never becomes a full-width image above the story. */
  .hermit-layout {
    display: flow-root;
  }
  .hermit-illustration {
    float: left;
    width: clamp(114px, 37%, 174px);
    margin: 0 16px 12px 0;
  }
  .hermit-illustration img {
    height: clamp(142px, 43vw, 200px);
    border-radius: 11px;
  }
  .hermit-illustration figcaption { font-size: .7rem; }
  .hermit-layout .story-quote {
    display: block;
    margin: 0;
    padding-left: 0;
    border-left: 0;
  }
  .hermit-layout .story-quote h2 {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    line-height: 1.16;
    margin: 0 0 10px;
  }
  .hermit-layout .story-quote blockquote p {
    font-size: .95rem;
    line-height: 1.53;
    margin-bottom: 10px;
  }
  .hermit-layout .story-quote figcaption { clear: both; }
}


/* Learning Lab teaching philosophy quotation */
.feedback-philosophy {
  padding: clamp(26px, 3.8vw, 42px) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.feedback-philosophy-quote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(15px, 2vw, 28px);
  row-gap: 9px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.feedback-philosophy-mark {
  grid-column: 1;
  grid-row: 1 / 3;
  font: 700 clamp(3.5rem, 6vw, 5.4rem)/.75 Georgia, serif;
  color: var(--gold);
}
.feedback-philosophy-quote blockquote {
  grid-column: 2;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.42rem, 2.7vw, 2.18rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.36;
}
.feedback-philosophy-quote figcaption {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: .89rem;
  font-weight: 700;
}
.feedback-philosophy-dash {
  display: inline-block;
  width: 27px;
  height: 2px;
  flex: 0 0 27px;
  background: var(--gold);
}
.feedback-philosophy-quote figcaption a {
  color: var(--navy);
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
}
.feedback-philosophy-quote figcaption a:hover,
.feedback-philosophy-quote figcaption a:focus-visible {
  color: var(--red);
}
@media (max-width: 560px) {
  .feedback-philosophy { padding: 28px 0; }
  .feedback-philosophy-quote { column-gap: 12px; }
  .feedback-philosophy-mark { font-size: 3.3rem; }
  .feedback-philosophy-quote blockquote { font-size: 1.4rem; }
}
