:root {
  /* Warm editorial palette */
  --bg-page: #F6F3EE;
  --bg-card: #FFFFFF;
  --bg-card-alt: #FAF8F5;
  --bg-inset: #EFECE7;
  --border: #E0DCD5;
  --border-hover: #C4BFB6;

  --ink: #1A1816;
  --ink-secondary: #3D3A36;
  --ink-muted: #7A756D;
  --ink-dim: #A9A49B;

  --accent: #B54A1C;
  --accent-soft: rgba(181, 74, 28, 0.08);
  --accent-hover: #9B3E15;
  --navy: #1C2E4A;

  --shadow-sm: 0 1px 3px rgba(26, 24, 22, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 24, 22, 0.07);
  --shadow-lg: 0 8px 24px rgba(26, 24, 22, 0.08);

  --radius: 8px;
  --radius-lg: 12px;

  --font-serif: "Source Serif 4", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  background-color: var(--bg-page);
  color: var(--ink-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 14px;
  z-index: 100;
}

@supports (backdrop-filter: blur(1px)) {
  .topbar {
    background: rgba(246, 243, 238, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--bg-page);
  letter-spacing: 0.02em;
}

.brand strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.brand small {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--bg-inset);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-cta {
  color: var(--accent) !important;
  font-weight: 600 !important;
  border: 1px solid var(--accent) !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ===== HERO ===== */
.hero-section {
  margin-top: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-bio {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 580px;
}

.hero-bio,
.pillar-desc,
.t-desc,
.honor p:last-child,
.pursuit-card p,
.edu-detail {
  text-align: justify;
  text-justify: inter-word;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg-page);
}

.btn-primary:hover {
  background: #000;
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-secondary);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-inset);
}

/* Profile Sidebar Card */
.profile-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.profile-photo-wrapper {
  padding: 32px 28px 0;
  display: flex;
  justify-content: center;
}

.avatar {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 4px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--border), 0 8px 20px rgba(26, 24, 22, 0.08);
}

.profile-body {
  padding: 18px 28px 28px;
  text-align: center;
}

.profile-name {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-role {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 500;
}

.profile-loc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.profile-loc::before {
  content: "•";
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}

.p-stat {
  background: var(--bg-card-alt);
  padding: 14px 10px;
  text-align: center;
}

.p-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
}

.p-stat span {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== METRICS STRIP ===== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
  box-shadow: var(--shadow-sm);
}

.m-item {
  background: var(--bg-card);
  padding: 28px 24px;
}

.m-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.m-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.m-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ===== SHARED SECTION LAYOUT ===== */
.sect {
  margin-top: 72px;
}

.sect-head {
  margin-bottom: 28px;
}

.sect-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.sect-label::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.sect-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.sect-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 900px;
}

/* ===== PILLARS ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.pillar:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--bg-inset);
  line-height: 1;
  margin-bottom: 12px;
}

.pillar h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.pillar-desc {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.pillar-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== EXPERIENCE ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 6px;
  padding-left: 28px;
}

.t-item {
  position: relative;
  padding-bottom: 28px;
}

.t-item:last-child {
  padding-bottom: 0;
}

.t-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 3px solid var(--border-hover);
}

.t-item.current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.t-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

.t-inner:hover {
  border-color: var(--border-hover);
}

.t-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.t-top h3 {
  margin: 0;
  font-size: 1.08rem;
}

.t-company {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
}

.t-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  background: var(--bg-inset);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.t-date.now {
  color: var(--accent);
  background: var(--accent-soft);
}

.t-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.t-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.t-tag {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-inset);
  color: var(--ink-muted);
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.skill-col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cat-marker {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.cat-marker.eng { background: var(--accent); }
.cat-marker.ai { background: var(--navy); }
.cat-marker.ops { background: #0d9488; }

.skill-col-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.sk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sk {
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  transition: all 0.15s;
}

.sk:hover {
  border-color: var(--border-hover);
  color: var(--ink);
}

.sk.core {
  font-weight: 600;
  color: var(--ink);
  border-color: var(--border-hover);
  background: var(--bg-inset);
}

/* ===== RESEARCH ===== */
.academic-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.a-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  flex: 1;
  min-width: 180px;
  transition: all 0.15s;
}

.a-chip:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.a-chip svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.a-chip strong {
  display: block;
  font-size: 0.84rem;
  font-family: var(--font-sans);
  color: var(--ink);
}

.a-chip span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-dim);
  margin-top: 1px;
}

.papers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.paper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.15s;
}

.paper:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.paper-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
}

.paper-type.journal {
  background: rgba(13, 148, 136, 0.08);
  color: #0d9488;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.paper-type.conf {
  background: rgba(28, 46, 74, 0.08);
  color: var(--navy);
  border: 1px solid rgba(28, 46, 74, 0.15);
}

.paper-type.ieee {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(181, 74, 28, 0.2);
}

.paper-yr {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-dim);
}

.paper h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.paper-authors {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.paper-venue {
  margin: 0 0 16px;
  font-size: 0.78rem;
  color: var(--ink-dim);
  font-style: italic;
}

.paper-foot {
  margin-top: auto;
}

.paper-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.paper-link:hover {
  text-decoration: underline;
}

/* Awards & Recognitions (Section B) */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.honor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.honor:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.honor-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.honor-badge.leadership {
  color: var(--navy);
  background: rgba(28, 46, 74, 0.08);
  border-color: rgba(28, 46, 74, 0.18);
}

.honor h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.honor-subtitle {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.honor p:last-child {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Personal Pursuits / Beyond the Code */
.pursuits-wrap {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.pursuit-card {
  padding: 6px 12px;
  border-left: 2px solid var(--border);
}

.pursuit-card:first-child {
  border-left: 2px solid var(--accent);
}

.pursuit-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 6px;
}

.pursuit-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ===== EDUCATION ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.edu-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.edu-card.primary-edu {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(181, 74, 28, 0.03) 0%, var(--bg-card) 100%);
}

.edu-tier {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.edu-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.edu-dept {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.edu-inst {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.edu-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-dim);
  background: var(--bg-inset);
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 16px;
}

.edu-detail {
  margin: auto 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ===== CONTACT ===== */
.contact-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.contact-top {
  margin-bottom: 28px;
  max-width: 100%;
}

.contact-top h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.4rem, 2vw, 1.95rem);
  letter-spacing: -0.02em;
}

.contact-top p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.ch {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: all 0.15s;
  min-width: 0;
}

a.ch:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.ch:not(a) {
  cursor: default;
}

.ch-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ch-marker.email { background: var(--accent); }
.ch-marker.linkedin { background: #0a66c2; }
.ch-marker.scholar { background: #4285f4; }
.ch-marker.loc { background: #0d9488; }
.ch-marker.lang { background: #92400e; }

.ch-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 2px;
}

.ch strong {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.4;
}

a.ch strong {
  word-break: break-all;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-dim);
}

.to-top {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.to-top:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .metrics-strip,
  .pillars-grid,
  .skills-grid,
  .papers-grid,
  .honors-grid,
  .pursuits-wrap,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .academic-bar {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: calc(100% - 28px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero-grid,
  .contact-wrap {
    padding: 24px 18px;
  }

  .sect {
    margin-top: 48px;
  }

  .t-top {
    flex-direction: column;
    gap: 6px;
  }
}
