:root {
  --bg: #f7f0e6;
  --bg-deep: #10231f;
  --surface: rgba(255, 251, 244, 0.82);
  --surface-strong: #fffaf1;
  --ink: #16221f;
  --muted: #66716b;
  --line: rgba(22, 34, 31, 0.14);
  --accent: #d56332;
  --accent-deep: #9e3c21;
  --sage: #6a7f5c;
  --gold: #dfb55b;
  --shadow: 0 24px 80px rgba(59, 42, 27, 0.16);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 118px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 15%, rgba(213, 99, 50, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(106, 127, 92, 0.22), transparent 24rem),
    linear-gradient(135deg, #fbf3e6 0%, #efe4d1 52%, #e5ddcb 100%);
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(16, 35, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 31, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
}

body::after {
  position: fixed;
  right: -16rem;
  bottom: -20rem;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  content: "";
  background: conic-gradient(from 170deg, rgba(16, 35, 31, 0.16), rgba(213, 99, 50, 0.2), rgba(223, 181, 91, 0.14), rgba(16, 35, 31, 0.16));
  border-radius: 50%;
  filter: blur(10px);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: var(--content);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 54px;
  padding: 12px 14px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 50px rgba(55, 38, 23, 0.12);
  backdrop-filter: blur(22px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  min-width: max-content;
  padding: 0;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(22, 34, 31, 0.1);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.brand:hover .brand-pill {
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 10px 24px rgba(59, 42, 27, 0.08);
  transform: translateY(-1px);
}

.site-nav {
  gap: 6px;
  padding: 6px;
  background: rgba(16, 35, 31, 0.07);
  border: 1px solid rgba(16, 35, 31, 0.06);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.site-nav a.active {
  color: #fff8ed;
  background: linear-gradient(135deg, var(--bg-deep), #203b34);
  box-shadow:
    0 12px 30px rgba(16, 35, 31, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.site-nav a.active::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(213, 99, 50, 0.18);
}

.site-nav a.active::after {
  position: absolute;
  right: 18px;
  bottom: -8px;
  left: 18px;
  height: 3px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
}

.nav-cta {
  padding: 12px 18px;
  color: #fff9ee;
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(213, 99, 50, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.nav-cta[aria-expanded="true"] {
  background: var(--bg-deep);
  box-shadow: 0 16px 36px rgba(16, 35, 31, 0.24);
  transform: translateY(-1px);
}

.contact-popover {
  position: fixed;
  inset: 0;
  z-index: 35;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
  pointer-events: none;
}

.contact-popover.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease;
  pointer-events: auto;
}

.contact-popover-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 35, 31, 0.12);
  border: 0;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.contact-popover-panel {
  position: absolute;
  top: 92px;
  right: max(20px, calc((100vw - 1120px) / 2));
  width: min(690px, calc(100vw - 40px));
  max-height: calc(100dvh - 112px);
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 88% 0%, rgba(223, 181, 91, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(247, 240, 230, 0.9));
  border: 1px solid rgba(22, 34, 31, 0.14);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(16, 35, 31, 0.22);
  transform: translateY(-12px) scale(0.98);
  transition: transform 220ms ease;
}

.contact-popover.is-open .contact-popover-panel {
  transform: translateY(0) scale(1);
}

.contact-popover-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 13px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.contact-popover-intro {
  max-width: 530px;
  padding-right: 72px;
}

.contact-popover-intro h2 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.contact-popover-intro p {
  margin-bottom: 0;
}

.contact-popover-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
  margin-top: 24px;
}

.contact-mini-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(22, 34, 31, 0.1);
  border-radius: 22px;
}

.contact-mini-card-main,
.schedule-card {
  grid-column: 1 / -1;
}

.contact-mini-card > span:first-child {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.contact-mini-card h3 {
  margin: 0 0 8px;
}

.contact-mini-card p {
  margin: 0;
}

.contact-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-inline-actions .button {
  min-height: 46px;
  padding: 0 18px;
}

.schedule-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.schedule-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(16, 35, 31, 0.06);
  border-radius: 16px;
}

.schedule-list strong {
  color: var(--bg-deep);
}

.schedule-list span {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.schedule-note {
  margin-top: 12px;
  font-size: 0.9rem;
}

.section {
  padding: 70px 0;
}

#internship,
#projects,
#campus {
  position: relative;
  scroll-margin-top: 118px;
  margin: 46px 0;
  padding: clamp(34px, 5vw, 56px);
  background:
    radial-gradient(circle at 90% 8%, var(--module-glow), transparent 20rem),
    linear-gradient(135deg, rgba(255, 250, 241, 0.82), rgba(245, 235, 218, 0.62)),
    rgba(255, 251, 244, 0.7);
  border: 1px solid color-mix(in srgb, var(--module-accent) 30%, transparent);
  border-radius: 42px;
  box-shadow: 0 24px 80px rgba(59, 42, 27, 0.11);
  backdrop-filter: blur(18px);
}

#internship {
  --module-accent: #607c52;
  --module-glow: rgba(96, 124, 82, 0.2);
}

#projects {
  --module-accent: #c89433;
  --module-glow: rgba(223, 181, 91, 0.24);
}

#campus {
  --module-accent: #407c74;
  --module-glow: rgba(64, 124, 116, 0.2);
}

#internship::before,
#projects::before,
#campus::before {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 8px 10px;
  color: var(--module-accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--module-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--module-accent) 22%, transparent);
  border-radius: 999px;
  content: attr(data-module);
}

#internship .eyebrow,
#projects .eyebrow,
#campus .eyebrow,
#internship .timeline-date,
#campus .timeline-date {
  color: var(--module-accent);
}

.module-focus {
  animation: module-focus 820ms ease;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.54fr);
  gap: 44px;
  align-items: center;
}

.campus-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(520px, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.campus-section .section-heading h2 {
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: 0.98;
}

.campus-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.campus-proof span {
  padding: 9px 11px;
  color: var(--module-accent);
  font-size: 0.78rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--module-accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--module-accent) 20%, transparent);
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 140px);
  padding-bottom: 64px;
  scroll-margin-top: 118px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", "Songti SC", serif;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(4rem, 8vw, 6.8rem);
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--sage), var(--bg-deep));
  background-clip: text;
}

.hero-identity {
  display: flex;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
  margin-bottom: 24px;
}

.profile-portrait {
  flex: 0 0 auto;
  width: clamp(116px, 13vw, 156px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(22, 34, 31, 0.14);
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(59, 42, 27, 0.16);
  transform: rotate(-1.6deg);
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 29%;
}

.identity-caption {
  max-width: 480px;
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-narrative {
  display: grid;
  max-width: 670px;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-narrative p {
  margin: 0;
  color: rgba(22, 34, 31, 0.72);
  font-size: 1rem;
  line-height: 1.85;
}

.hero-narrative p:first-child {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 800;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff8ef;
  background: var(--bg-deep);
  box-shadow: 0 18px 38px rgba(16, 35, 31, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.76);
  border: 1px solid var(--line);
}

.hero-card {
  position: relative;
  min-height: 520px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(16, 35, 31, 0.96), rgba(28, 53, 46, 0.9)),
    var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card::before {
  position: absolute;
  inset: 20px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  pointer-events: none;
}

.hero-card::after {
  position: absolute;
  top: -100px;
  right: -140px;
  width: 320px;
  height: 320px;
  content: "";
  background: radial-gradient(circle, rgba(223, 181, 91, 0.44), transparent 68%);
}

.availability-pill {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 10px 14px;
  color: #fff0d1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.profile-header {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
}

.profile-header span,
.card-label {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 248, 237, 0.5);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-header strong {
  display: block;
  color: #fff8ed;
  font-size: 1.15rem;
  line-height: 1.35;
}

.keyword-panel {
  position: relative;
  z-index: 1;
  padding: 18px;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-tags span {
  padding: 8px 10px;
  color: #fff4df;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(240, 190, 104, 0.12);
  border: 1px solid rgba(240, 190, 104, 0.16);
  border-radius: 999px;
}

.profile-orbit {
  position: relative;
  display: grid;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 54px auto 36px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  place-items: center;
  animation: slow-spin 18s linear infinite;
}

.profile-orbit::before,
.profile-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.profile-orbit::before {
  inset: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-orbit::after {
  inset: 82px;
  background: radial-gradient(circle, rgba(213, 99, 50, 0.18), transparent 66%);
}

.avatar {
  position: relative;
  z-index: 2;
  display: grid;
  width: 138px;
  height: 138px;
  color: var(--bg-deep);
  font-family: "Fraunces", "Songti SC", serif;
  font-size: 4.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff8ed, #dfb55b);
  border-radius: 42% 58% 51% 49%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  place-items: center;
  animation: counter-spin 18s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(223, 181, 91, 0.1);
}

.dot-one {
  top: 18px;
  left: 46%;
}

.dot-two {
  right: 28px;
  bottom: 80px;
  background: var(--accent);
}

.dot-three {
  bottom: 64px;
  left: 34px;
  background: #91a77b;
}

.profile-facts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-facts div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.profile-facts dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-facts dd {
  margin: 0;
  color: #fff7e8;
  font-weight: 700;
  line-height: 1.55;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-tags span {
  padding: 7px 10px;
  color: #fff8ed;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.quick-stats article,
.fit-card,
.project-card,
.skill-matrix article,
.note-list,
.contact-section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(59, 42, 27, 0.1);
  backdrop-filter: blur(18px);
}

.quick-stats article {
  padding: 22px;
  border-radius: var(--radius-md);
}

.quick-stats strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Fraunces", "Songti SC", serif;
  font-size: 2.6rem;
  line-height: 1;
}

.quick-stats span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  align-self: start;
}

.section-heading.wide {
  max-width: 760px;
  margin-bottom: 30px;
}

#internship.internship-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: stretch;
}

#internship .section-heading {
  max-width: 820px;
}

#internship .section-heading p:not(.eyebrow) {
  max-width: 720px;
}

.internship-scale {
  max-width: 1040px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(96, 124, 82, 0.18), transparent 18rem),
    rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(96, 124, 82, 0.18);
  border-radius: 30px;
  box-shadow: 0 18px 60px rgba(59, 42, 27, 0.1);
  backdrop-filter: blur(18px);
}

.scale-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.scale-heading span {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scale-heading strong {
  color: var(--bg-deep);
  font-size: 1.05rem;
}

.scale-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(146px, 1fr));
  gap: 12px;
}

.scale-track::before {
  position: absolute;
  top: 36px;
  right: 8%;
  left: 8%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, rgba(64, 124, 116, 0.25), rgba(213, 99, 50, 0.42), rgba(96, 124, 82, 0.32));
  border-radius: 999px;
}

.scale-item {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 0 8px 10px;
  text-align: center;
}

.brand-badge {
  display: grid;
  width: 120px;
  height: 72px;
  margin-bottom: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 237, 0.86)),
    #fff8ed;
  border: 4px solid #fff8ed;
  border-radius: 24px;
  box-shadow:
    0 14px 34px rgba(16, 35, 31, 0.16),
    0 0 0 1px color-mix(in srgb, var(--brand-color, var(--bg-deep)) 20%, transparent);
  place-items: center;
}

.brand-badge img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.scale-item.bytedance {
  --brand-color: #10231f;
}

.scale-item.aliyun {
  --brand-color: #d56332;
}

.scale-item.hithink {
  --brand-color: #b34e3f;
}

.scale-item.hikvision {
  --brand-color: #407c74;
}

.scale-item time {
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.scale-item strong {
  color: var(--ink);
  line-height: 1.2;
}

.scale-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.fit-board {
  display: grid;
  gap: 16px;
}

.fit-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-md);
}

.fit-card span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent-deep);
  font-weight: 900;
}

.fit-card.highlight-card {
  color: #fff8ed;
  background: var(--bg-deep);
}

.fit-card.highlight-card p,
.fit-card.highlight-card span {
  color: rgba(255, 248, 237, 0.72);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(360px, auto);
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.project-card.outcome-card {
  --project-accent: #d56332;
}

.project-card.ai-card {
  --project-accent: #607c52;
}

.project-card.system-card {
  --project-accent: #407c74;
}

.project-card.analysis-card {
  --project-accent: #c89433;
}

.project-card {
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--project-accent, var(--accent)) 18%, transparent), transparent 17rem),
    var(--surface);
}

.project-card h3 {
  max-width: 520px;
  margin-top: 24px;
  font-family: "Fraunces", "Songti SC", serif;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span,
.tag-list li {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(16, 35, 31, 0.06);
  border-radius: 999px;
}

.project-card .project-meta span:first-child {
  color: var(--project-accent, var(--accent-deep));
  background: color-mix(in srgb, var(--project-accent, var(--accent)) 12%, transparent);
}

.tag-list {
  padding: 0;
  margin: 20px 0 28px;
  list-style: none;
}

.project-link {
  width: fit-content;
  margin-top: auto;
  color: var(--accent-deep);
  padding: 0;
  font-weight: 900;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.project-link::after {
  display: inline-block;
  margin-left: 8px;
  content: "→";
  transition: transform 180ms ease;
}

.project-link:hover::after {
  transform: translateX(4px);
}

.project-link {
  color: var(--project-accent, var(--accent-deep));
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 18px;
  width: 2px;
  content: "";
  background: rgba(16, 35, 31, 0.12);
}

.timeline article {
  position: relative;
  padding: 22px 22px 22px 58px;
  background: rgba(255, 250, 241, 0.66);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.timeline article::before {
  position: absolute;
  top: 28px;
  left: 10px;
  width: 18px;
  height: 18px;
  content: "";
  background: var(--accent);
  border: 5px solid #fff6e8;
  border-radius: 50%;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-weight: 900;
}

.campus-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.campus-card {
  position: relative;
  min-height: 176px;
  padding: clamp(22px, 2.4vw, 30px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(64, 124, 116, 0.14), transparent 13rem),
    rgba(255, 250, 241, 0.7);
  border: 1px solid color-mix(in srgb, var(--module-accent) 22%, transparent);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(59, 42, 27, 0.08);
}

.campus-card::after {
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  content: "";
  background: color-mix(in srgb, var(--module-accent) 12%, transparent);
  border-radius: 50%;
}

.campus-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.campus-card p,
.campus-list {
  position: relative;
  z-index: 1;
}

.education-card,
.campus-highlight {
  grid-column: span 2;
}

.education-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: auto;
}

.campus-highlight {
  min-height: auto;
}

.campus-education-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.campus-education-list p {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
}

.campus-education-list strong {
  color: var(--ink);
}

.campus-education-list span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.campus-education-list em {
  color: var(--module-accent);
  font-style: normal;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.campus-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.campus-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 9px;
  color: var(--muted);
}

.campus-list li::before {
  width: 7px;
  height: 7px;
  margin-top: 0.55em;
  content: "";
  background: var(--module-accent);
  border-radius: 999px;
}

.internship-timeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding-top: 10px;
  max-width: 1040px;
}

.internship-timeline::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 186px;
  width: 2px;
  content: "";
  background: linear-gradient(to bottom, rgba(96, 124, 82, 0), rgba(96, 124, 82, 0.65), rgba(96, 124, 82, 0));
  border-radius: 999px;
}

.internship-entry {
  display: grid;
  grid-template-columns: 150px 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.internship-date {
  display: grid;
  gap: 4px;
  padding-top: 30px;
  color: var(--bg-deep);
  font-weight: 900;
  text-align: right;
}

.internship-date strong {
  color: var(--accent-deep);
  font-size: 1.05rem;
}

.internship-date span {
  color: var(--muted);
  font-size: 0.9rem;
}

.internship-node {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin: 32px auto 0;
  background: #69d8a7;
  border: 4px solid #eef3dc;
  border-radius: 50%;
  box-shadow:
    0 0 0 7px rgba(105, 216, 167, 0.16),
    0 12px 30px rgba(16, 35, 31, 0.14);
}

.internship-card,
.internship-detail article {
  background: rgba(255, 250, 241, 0.7);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(59, 42, 27, 0.09);
  backdrop-filter: blur(18px);
}

.internship-card {
  min-height: 0;
  padding: clamp(26px, 4vw, 36px);
  border-radius: var(--radius-lg);
}

.internship-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.internship-topline h3 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.internship-status {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(96, 124, 82, 0.12);
  border: 1px solid rgba(96, 124, 82, 0.18);
  border-radius: 999px;
}

.internship-snapshot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.internship-snapshot div {
  padding: 16px;
  background: rgba(16, 35, 31, 0.055);
  border: 1px solid rgba(16, 35, 31, 0.08);
  border-radius: 18px;
}

.internship-snapshot span,
.internship-detail span {
  display: block;
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.internship-snapshot strong {
  display: block;
  line-height: 1.45;
}

.internship-results {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 26px;
  list-style: none;
}

.internship-results li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.58;
}

.internship-results li::before {
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 900;
  content: ">";
}

.expand-toggle {
  width: 100%;
  min-height: 52px;
  color: #fff8ed;
  font-weight: 900;
  background: linear-gradient(135deg, var(--bg-deep), #203b34);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(16, 35, 31, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.expand-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(16, 35, 31, 0.24);
}

.internship-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.internship-detail[hidden] {
  display: none;
}

.internship-detail article {
  padding: 20px;
  border-radius: 22px;
}

.internship-detail article.resume-detail {
  padding: 24px;
}

.internship-detail p {
  margin-bottom: 0;
}

.resume-detail ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.resume-detail li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.resume-detail li::before {
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 900;
  content: ">";
}

.skill-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-matrix article {
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-md);
}

.skill-matrix article:nth-child(even) {
  transform: translateY(28px);
}

.notes-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
}

.note-list {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.note-list a {
  display: grid;
  gap: 8px;
  padding: 24px;
  font-size: 1.16rem;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding-left 180ms ease;
}

.note-list a:hover {
  padding-left: 32px;
  background: rgba(255, 255, 255, 0.38);
}

.note-list a:last-child {
  border-bottom: 0;
}

.note-list span {
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  margin: 70px 0 90px;
  padding: clamp(28px, 5vw, 54px);
  color: #fff8ed;
  background:
    radial-gradient(circle at 88% 18%, rgba(223, 181, 91, 0.34), transparent 22rem),
    var(--bg-deep);
  border-radius: var(--radius-lg);
}

.contact-closing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-section p {
  max-width: 660px;
  color: rgba(255, 248, 237, 0.72);
}

.contact-section .eyebrow {
  color: #f0be68;
}

.contact-section .button.primary {
  color: var(--bg-deep);
  background: #fff5dc;
}

.contact-section .button.secondary {
  color: #fff8ed;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-directory {
  display: grid;
  gap: 12px;
}

.contact-directory article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.contact-directory span {
  color: #f0be68;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.contact-directory strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff8ed;
  font-size: 0.98rem;
}

.contact-directory button,
.contact-directory a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  color: #fff8ed;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-directory button:hover,
.contact-directory a:hover {
  background: rgba(240, 190, 104, 0.18);
  transform: translateY(-1px);
}

.project-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3.5vw, 44px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
  pointer-events: none;
}

.project-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 35, 31, 0.5);
  border: 0;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.drawer-panel {
  position: relative;
  width: min(1180px, calc(100vw - 48px));
  height: min(86vh, 880px);
  overflow: hidden;
  color: #fff8ed;
  background:
    radial-gradient(circle at 14% 12%, rgba(223, 181, 91, 0.28), transparent 20rem),
    radial-gradient(circle at 92% 4%, rgba(64, 124, 116, 0.36), transparent 18rem),
    linear-gradient(180deg, #11251f, #0b1916);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(16, 35, 31, 0.42);
  transform: translateY(18px) scale(0.97);
  transition: transform 260ms ease;
}

.project-drawer.is-open .drawer-panel {
  transform: translateY(0) scale(1);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 10px 14px;
  color: #fff8ed;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.drawer-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  height: 100%;
}

.drawer-overview {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 54px);
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.08), rgba(255, 248, 237, 0.02)),
    rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-detail {
  min-width: 0;
  height: 100%;
  padding: clamp(28px, 3.4vw, 46px);
  overflow-y: auto;
  scrollbar-color: rgba(240, 190, 104, 0.5) rgba(255, 255, 255, 0.08);
}

.drawer-panel .eyebrow {
  color: #f0be68;
}

.drawer-panel h2 {
  margin: 18px 0;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.94;
}

.drawer-summary,
.drawer-content p {
  color: rgba(255, 248, 237, 0.7);
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}

.drawer-tags span {
  padding: 8px 10px;
  color: rgba(255, 248, 237, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.drawer-hint {
  margin-top: auto;
  padding-top: 32px;
  color: rgba(255, 248, 237, 0.42);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-content {
  display: grid;
  gap: 16px;
}

.drawer-content article {
  padding: clamp(20px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
}

.drawer-content span {
  display: inline-flex;
  margin-bottom: 16px;
  color: #f0be68;
  font-weight: 900;
}

.drawer-content h3 {
  color: #fff8ed;
}

.drawer-challenge-section {
  display: grid;
  gap: 16px;
}

.drawer-challenges {
  display: grid;
  gap: 14px;
}

.challenge-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.challenge-block,
.solution-block {
  padding: 14px;
  border-radius: 16px;
}

.challenge-block {
  background: rgba(255, 248, 237, 0.08);
}

.solution-block {
  background: rgba(240, 190, 104, 0.13);
  border: 1px solid rgba(240, 190, 104, 0.16);
}

.challenge-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: rgba(255, 248, 237, 0.52);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.challenge-block h4,
.solution-block h4 {
  margin: 0 0 8px;
  color: #fff8ed;
  font-size: 0.98rem;
}

.solution-block h4 {
  color: #f3c773;
}

.challenge-block p,
.solution-block p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 14px 18px;
  color: #fff8ed;
  font-weight: 800;
  background: var(--bg-deep);
  border-radius: 999px;
  box-shadow: 0 16px 44px rgba(16, 35, 31, 0.24);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.assistant-widget {
  position: fixed;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: clamp(22px, 3vw, 34px);
  z-index: 38;
  pointer-events: none;
}

.assistant-launcher {
  position: relative;
  display: grid;
  width: min(382px, calc(100vw - 48px));
  gap: 5px;
  padding: 18px 56px 18px 66px;
  color: var(--ink);
  text-align: left;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 181, 91, 0.36), transparent 11rem),
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(237, 225, 205, 0.9));
  border: 1px solid rgba(22, 34, 31, 0.16);
  border-radius: 24px;
  box-shadow:
    0 22px 70px rgba(16, 35, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: opacity 180ms ease, transform 220ms ease, box-shadow 220ms ease;
  pointer-events: auto;
  backdrop-filter: blur(20px);
}

.assistant-launcher::before {
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  color: #fff8ed;
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--bg-deep), #25483e);
  border-radius: 50%;
  content: "AI";
  place-items: center;
  box-shadow:
    0 0 0 8px rgba(16, 35, 31, 0.08),
    0 12px 26px rgba(16, 35, 31, 0.18);
  transform: translateY(-50%);
}

.assistant-launcher::after {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  color: #fff8ed;
  font-size: 1rem;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
  content: "→";
  place-items: center;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.assistant-launcher:hover {
  box-shadow:
    0 28px 82px rgba(16, 35, 31, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transform: translateY(-3px);
}

.assistant-launcher:hover::after {
  background: var(--bg-deep);
  transform: translate(3px, -50%);
}

.assistant-launcher span {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.assistant-launcher strong {
  color: var(--ink);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.assistant-launcher em {
  color: rgba(22, 34, 31, 0.64);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.45;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(600px, calc(100vw - 48px));
  height: min(820px, calc(100dvh - 48px));
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(213, 99, 50, 0.14), transparent 15rem),
    radial-gradient(circle at 92% 8%, rgba(106, 127, 92, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(245, 236, 221, 0.96));
  border: 1px solid rgba(22, 34, 31, 0.16);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(16, 35, 31, 0.28);
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  visibility: hidden;
  transition: opacity 220ms ease, transform 240ms ease, visibility 0s linear 240ms;
  pointer-events: none;
}

.assistant-widget.is-recommendation-mode .assistant-panel {
  width: min(700px, calc(100vw - 48px));
}

.assistant-widget.is-open .assistant-launcher {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
}

.assistant-widget.is-open .assistant-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition: opacity 220ms ease, transform 240ms ease;
  pointer-events: auto;
}

.assistant-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 16px;
}

.assistant-header .eyebrow {
  margin-bottom: 8px;
}

.assistant-header h2 {
  max-width: 420px;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 0.98;
}

.assistant-header-note {
  max-width: 460px;
  margin: 10px 0 0;
  color: rgba(22, 34, 31, 0.6);
  font-size: 0.9rem;
  line-height: 1.65;
}

.assistant-close,
.assistant-clear,
.assistant-mode-tabs button,
.assistant-quick-prompts button {
  cursor: pointer;
}

.assistant-close {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.assistant-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 26px 14px;
}

.assistant-mode-tabs button {
  min-height: 42px;
  color: var(--muted);
  font-weight: 900;
  background: rgba(16, 35, 31, 0.06);
  border: 1px solid rgba(16, 35, 31, 0.08);
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.assistant-mode-tabs button.is-active {
  color: #fff8ed;
  background: var(--bg-deep);
  box-shadow: 0 12px 28px rgba(16, 35, 31, 0.16);
  transform: translateY(-1px);
}

.assistant-messages {
  display: flex;
  flex: 1;
  flex-basis: 310px;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  margin: 0 20px;
  padding: 18px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(22, 34, 31, 0.09);
  border-radius: 22px;
}

.assistant-widget.is-recommendation-mode .assistant-messages {
  flex-basis: 250px;
  min-height: 230px;
}

.assistant-message {
  display: grid;
  max-width: 88%;
  gap: 6px;
}

.assistant-message span {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-message p {
  margin: 0;
  padding: 12px 14px;
  color: rgba(22, 34, 31, 0.78);
  font-size: 0.93rem;
  line-height: 1.68;
  white-space: pre-wrap;
  background: rgba(255, 250, 241, 0.8);
  border: 1px solid rgba(22, 34, 31, 0.08);
  border-radius: 16px 16px 16px 4px;
}

.assistant-message-user {
  align-self: flex-end;
}

.assistant-message-user span {
  color: var(--sage);
  text-align: right;
}

.assistant-message-user p {
  color: #fff8ed;
  background: linear-gradient(135deg, #203b34, #10231f);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 16px 16px 4px 16px;
}

.assistant-message.is-loading p {
  color: rgba(22, 34, 31, 0.54);
}

.assistant-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 26px 0;
}

.assistant-quick-prompts button {
  padding: 8px 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(213, 99, 50, 0.08);
  border: 1px solid rgba(213, 99, 50, 0.13);
  border-radius: 999px;
}

.assistant-form {
  display: grid;
  gap: 12px;
  padding: 14px 26px 22px;
}

.assistant-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.assistant-recommendation-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.assistant-recommendation-fields label:last-child {
  grid-column: 1 / -1;
}

.assistant-form input,
.assistant-form textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 34, 31, 0.13);
  border-radius: 16px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.assistant-form input {
  min-height: 44px;
  padding: 0 13px;
}

.assistant-form textarea {
  min-height: 108px;
  padding: 12px 13px;
  resize: vertical;
}

.assistant-recommendation-fields textarea {
  min-height: 148px;
}

.assistant-form input:focus,
.assistant-form textarea:focus {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(213, 99, 50, 0.45);
  box-shadow: 0 0 0 4px rgba(213, 99, 50, 0.12);
}

.assistant-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.assistant-clear {
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(22, 34, 31, 0.1);
  border-radius: 999px;
}

.assistant-form-actions .button {
  min-height: 44px;
  padding: 0 18px;
}

.assistant-form-actions .button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.assistant-disclaimer {
  margin: 0;
  color: rgba(22, 34, 31, 0.5);
  font-size: 0.76rem;
  line-height: 1.55;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes counter-spin {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes module-focus {
  0% {
    box-shadow:
      0 0 0 0 rgba(213, 99, 50, 0.22),
      0 24px 80px rgba(59, 42, 27, 0.11);
    transform: translateY(0);
  }

  40% {
    box-shadow:
      0 0 0 12px rgba(213, 99, 50, 0.1),
      0 30px 90px rgba(59, 42, 27, 0.16);
    transform: translateY(-3px);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(213, 99, 50, 0),
      0 24px 80px rgba(59, 42, 27, 0.11);
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    align-items: stretch;
    border-radius: 28px;
  }

  .site-nav {
    flex: 1 1 min(560px, 100%);
    justify-content: space-between;
    overflow-x: auto;
  }

  .nav-cta {
    flex: 0 0 auto;
  }

  .contact-popover-panel {
    top: 118px;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .contact-popover-grid {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .campus-section,
  .notes-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .campus-section .section-heading h2 {
    font-size: clamp(2.5rem, 8vw, 4.2rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    min-height: 500px;
  }

  .quick-stats,
  .skill-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .internship-snapshot,
  .internship-detail {
    grid-template-columns: 1fr;
  }

  .internship-scale {
    overflow-x: auto;
  }

  .scale-track {
    min-width: 760px;
  }

  .internship-timeline::before {
    left: 9px;
  }

  .internship-entry {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .internship-date {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 0;
    text-align: left;
  }

  .internship-node {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 4px;
  }

  .internship-card {
    grid-column: 2;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.feature {
    grid-row: auto;
  }

  .campus-board,
  .education-card,
  .campus-education-list {
    grid-template-columns: 1fr;
  }

  .education-card,
  .campus-highlight {
    grid-column: auto;
  }

  .drawer-panel {
    width: min(920px, calc(100vw - 36px));
    height: min(90vh, 900px);
  }

  .drawer-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .drawer-overview {
    padding: 28px 30px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .drawer-panel h2 {
    max-width: calc(100% - 72px);
    font-size: clamp(2.25rem, 8vw, 4rem);
  }

  .drawer-hint {
    display: none;
  }

  .challenge-pair {
    grid-template-columns: 1fr;
  }

  .skill-matrix article:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 640px) {
  :root {
    --content: min(100vw - 24px, 1120px);
  }

  .site-header {
    top: 10px;
    margin-bottom: 36px;
    padding: 10px;
  }

  .site-nav a {
    padding: 9px 11px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 3.9rem);
  }

  .hero-identity {
    align-items: flex-end;
  }

  .profile-portrait {
    width: 104px;
    border-radius: 24px;
  }

  .identity-caption {
    font-size: 0.86rem;
  }

  .section {
    padding: 48px 0;
  }

  #internship,
  #projects,
  #campus {
    margin: 28px 0;
    padding: 28px 20px;
    border-radius: 30px;
  }

  #internship::before,
  #projects::before,
  #campus::before {
    position: static;
    display: inline-flex;
    margin-bottom: 18px;
  }

  .quick-stats,
  .skill-matrix {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
    padding: 22px;
  }

  .profile-orbit {
    width: 260px;
  }

  .profile-facts div {
    grid-template-columns: 1fr;
  }

  .project-card,
  .fit-card,
  .internship-card,
  .quick-stats article {
    padding: 22px;
  }

  .internship-topline {
    display: grid;
  }

  .contact-actions,
  .contact-actions .button,
  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .assistant-widget {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .assistant-launcher {
    min-width: 0;
    width: 100%;
  }

  .assistant-panel {
    right: 0;
    left: 0;
    width: auto;
    height: min(90dvh, 760px);
    border-radius: 26px;
  }

  .assistant-header {
    padding: 18px 18px 12px;
  }

  .assistant-mode-tabs,
  .assistant-form {
    padding-right: 18px;
    padding-left: 18px;
  }

  .assistant-quick-prompts {
    padding-right: 18px;
    padding-left: 18px;
  }

  .assistant-messages {
    margin: 0 12px;
    padding: 12px;
    min-height: 220px;
  }

  .assistant-widget.is-recommendation-mode .assistant-messages {
    min-height: 180px;
  }

  .assistant-recommendation-fields {
    grid-template-columns: 1fr;
  }

  .assistant-recommendation-fields label:last-child {
    grid-column: auto;
  }

  .assistant-form-actions {
    align-items: stretch;
  }

  .assistant-form-actions .button,
  .assistant-clear {
    flex: 1 1 0;
  }

  .drawer-panel {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .drawer-overview,
  .drawer-detail {
    padding: 22px;
  }

  .drawer-close {
    top: 14px;
    right: 14px;
  }

  .drawer-content article {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
