/* Editorial visual layer.
   Load after assets/css/style.css. Legacy optional effects are not needed.
   Complete replacement: rounded portrait + pastel disc, illustrated research cards.
   Existing Hero text, publications, projects, career timeline and Contact are preserved. */

/* ======================================================================
   Theme / navigation / shared controls
   ====================================================================== */

body.editorial-theme {
  --bg: #ffffff;
  --ink: #202329;
  --muted: #535a64;
  --quiet: #626974;
  --line: #e1e3e7;
  --accent: #6048df;
  --accent-ink: #6048df;
  --paper: #f8f8f7;
  background: var(--bg);
  color: var(--ink);
  --warm-rgb: 225, 73, 96;
  --warm-hero-opacity: .075;
  --warm-pub-opacity: .045;
  --portrait-halo-size: 130%;
  --portrait-halo-opacity: .80;
}

.editorial-theme .projects-section,
.editorial-theme .publications-hero {
  background: #fff;
}

.editorial-theme .site-header {
  background: rgba(255, 255, 255, .97);
  border-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.editorial-theme .nav-link,
.editorial-theme .text-link,
.editorial-theme .footer-inner {
  color: #424852;
}

.editorial-theme .nav-link::after {
  background: #252a32;
}

.editorial-theme .text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #b8bec8;
  text-underline-offset: 6px;
}

.editorial-theme .social-row a,
.editorial-theme .back-top {
  background: #fff;
  color: #454c58;
  border-color: var(--line);
  box-shadow: none;
}

.editorial-theme .btn {
  border-radius: 10px;
  font-size: 16px;
  min-height: 54px;
}

.editorial-theme .btn-primary {
  background: #23272f;
  border-color: #23272f;
  box-shadow: 0 3px 0 rgba(25, 28, 35, .09);
}

.editorial-theme .btn-secondary {
  background: #fff;
  border-color: #cfd3da;
  color: #343b45;
  box-shadow: none;
}

/* ======================================================================
   Hero / portrait / research statement
   ====================================================================== */

.editorial-theme .hero {
  padding-top: 62px;
  background: radial-gradient(
    680px 470px at 97% 7%,
    rgba(var(--warm-rgb), var(--warm-hero-opacity)),
    transparent 72%
  ),
  #fff;
}

.editorial-theme .hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.7vw, 78px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.08;
}

/* Keep the full-width biography above the decorative disc. */
.editorial-theme .hero-grid > .hero-copy {
  position: relative;
  z-index: 2;
}

/* Portrait: an actual pale circular surface behind the rounded photograph.
   A pseudo-element supplies the disc, so no extra HTML or JavaScript is needed. */
.editorial-theme .hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: visible;
  width: min(100%, 390px);
  height: auto;
  aspect-ratio: 939 / 1146;
  justify-self: end;
  margin: 0;
}

.editorial-theme .hero-visual::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 56%;
  z-index: 0;
  width: var(--portrait-halo-size);
  aspect-ratio: 1;
  border: 1px solid rgba(215, 222, 240, .05);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 70%, rgba(185, 219, 251, .25), transparent 70%),
    radial-gradient(circle at 77% 24%, rgba(225, 203, 250, .21), transparent 72%),
    linear-gradient(145deg, #f6faff, #fbf8fd);
  opacity: var(--portrait-halo-opacity);
  filter: none;
  transform: translate(-50%, -50%);
}

/* Do not stack an old .portrait-halo element over the new disc. */
.editorial-theme .hero-visual > .portrait-halo {
  display: none;
}

.editorial-theme .portrait-frame {
  position: relative;
  z-index: 1;
  inset: auto;
  width: 93%;
  height: auto;
  aspect-ratio: 939 / 1146;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  background: #f8f8fa;
  box-shadow: 0 16px 42px rgba(52, 58, 77, .10);
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.editorial-theme .portrait-frame::after {
  content: none;
}

.editorial-theme .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.editorial-theme .hero-profile .hero-role {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin: 0 0 26px;
  padding: 6px 11px;
  border: 1px solid #dddfe4;
  border-radius: 5px;
  background: #fafafa;
  color: #454d58;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: none;
}

body.editorial-theme .hero-profile .hero-statement {
  max-width: none;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  position: relative;
}

body.editorial-theme .hero-profile .hero-statement::before,
body.editorial-theme .hero-profile .hero-statement::after {
  content: none;
  display: none;
}

body.editorial-theme .hero-profile .hero-statement .hero-intro {
  max-width: 100%;
  margin: 0;
  color: #272a32;
  font-size: clamp(29px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -.032em;
  text-wrap: balance;
}

body.editorial-theme .hero-profile .hero-statement .statement-accent {
  color: #97374f;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(
    105deg,
    #8d2940 0%,
    #bf3855 25%,
    #d85870 50%,
    #ad304c 75%,
    #8d2940 100%
    );
  background-size: 260% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 7px rgba(215, 65, 96, 0.12),
    0 0 16px rgba(215, 65, 96, 0.06);
}

body.editorial-theme .hero-profile .hero-biography {
  width: 100%;
  max-width: none;
  margin: 0 0 25px;
}

body.editorial-theme .hero-profile .hero-biography p {
  margin: 0;
  color: #485260;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.85;
}

body.editorial-theme .hero-profile .hero-biography p + p {
  margin-top: 14px;
}

/* Hero biography links — Bold only */

body.editorial-theme .hero-profile .hero-biography a {
  color: #2e3744;
  font-weight: 500;
  text-decoration: none;
}

body.editorial-theme .hero-profile .hero-biography a:hover {
  color: #181e28;
  text-decoration: none;
}

body.editorial-theme .hero-profile .hero-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0;
}

body.editorial-theme .hero-profile .hero-links-row .social-row {
  margin: 0;
}

/* ======================================================================
   Section headings / research interests
   ====================================================================== */

.editorial-theme .section-heading {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.editorial-theme .section-title {
  color: #323840;
  font-size: clamp(25px, 2.35vw, 32px);
  font-weight: 600;
  letter-spacing: .055em;
}

.editorial-theme .research-strip {
  margin-top: 58px;
}

.editorial-theme .research-strip .section-heading {
  margin-bottom: 26px;
}

.editorial-theme .research-strip .section-title {
  font-size: clamp(28px, 2.6vw, 36px);
}

.editorial-theme .selected-section .section-title {
  font-size: clamp(28px, 2.7vw, 36px);
}

.editorial-theme .research-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding: 28px;
  border: 1px solid #e2e4e9;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff 62%, #fdfbfc);
  box-shadow: 0 8px 22px rgba(41, 49, 66, .035);
  transform: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* No generic icons, numbered labels or decorative red bars. */
.editorial-theme .research-card::before,
.editorial-theme .research-card::after {
  content: none;
}

.editorial-theme .research-card-heading {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  align-items: center;
  column-gap: 22px;
  min-width: 0;
}

.editorial-theme .research-illustration {
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  margin: 0;
  display: grid;
  place-items: center;
}

.editorial-theme .research-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.editorial-theme .research-copy {
  width: 100%;
  min-width: 0;
}

.editorial-theme .research-card h3 {
  margin: 0;
  color: #252b34;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.editorial-theme .research-card p {
  margin: 0;
  color: #505b68;
  font-size: 19px;
  line-height: 1.7;
}

/* A missing icon never produces a broken-image symbol or an empty column. */
.editorial-theme .research-card--text-only .research-card-heading {
  grid-template-columns: minmax(0, 1fr);
}

/* =========================================================
   Research Interests — Focused horizontal carousel
   ========================================================= */

.editorial-theme .research-carousel {
  --research-card-width: min(700px, 64vw);
  --research-card-gap: clamp(16px, 2vw, 26px);
  --research-arrow-size: 46px;
  position: relative;
  min-width: 0;
}

/* Without JavaScript, keep all research cards accessible by scrolling. */
.editorial-theme .research-carousel-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 22px 0 28px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x pan-y;
}

.editorial-theme .research-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.editorial-theme .research-carousel-viewport:focus-visible {
  outline: 2px solid #b8a6af;
  outline-offset: -3px;
  border-radius: 10px;
}

.editorial-theme .research-carousel-track {
  position: relative;
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: var(--research-card-gap);
}

.editorial-theme .research-carousel .research-card {
  flex: 0 0 var(--research-card-width);
  width: var(--research-card-width);
  min-height: 256px;
  scroll-snap-align: center;
  transition:
    opacity 650ms ease,
    filter 650ms ease,
    transform 650ms cubic-bezier(.22, 1, .36, 1),
    border-color 250ms ease,
    box-shadow 250ms ease;
}

/* JavaScript performs cyclic centering with cloned boundary slides. */
.editorial-theme .research-carousel[data-enhanced="true"] .research-carousel-viewport {
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.editorial-theme .research-carousel[data-enhanced="true"] .research-carousel-track {
  will-change: transform;
  transition-property: transform;
  transition-duration: 650ms;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.editorial-theme .research-carousel[data-enhanced="true"] .research-card {
  opacity: .22;
  filter: blur(2px) saturate(.65);
  transform: scale(.93);
  pointer-events: none;
}

.editorial-theme .research-carousel[data-enhanced="true"] .research-card.is-neighbor {
  opacity: .43;
  filter: blur(1.4px) saturate(.8);
  transform: scale(.955);
  pointer-events: auto;
  cursor: pointer;
}

.editorial-theme .research-carousel[data-enhanced="true"] .research-card.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
  pointer-events: auto;
  border-color: #d9d5dc;
  box-shadow: 0 14px 32px rgba(41, 49, 66, .07);
}

/* Arrows sit directly to the left and right of the focused card. */
.editorial-theme .research-carousel-side-controls {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.editorial-theme .research-carousel-side-controls[hidden] {
  display: none;
}

.editorial-theme .research-carousel-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--research-arrow-size);
  height: var(--research-arrow-size);
  padding: 0;
  border: 1px solid rgba(220, 222, 228, .92);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #303641;
  box-shadow: 0 5px 18px rgba(30, 35, 45, .08);
  font: 400 24px/1 Georgia, serif;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.editorial-theme .research-carousel-arrow--prev {
  left: max(4px, calc(50% - var(--research-card-width) / 2 - var(--research-arrow-size) - 10px));
}

.editorial-theme .research-carousel-arrow--next {
  right: max(4px, calc(50% - var(--research-card-width) / 2 - var(--research-arrow-size) - 10px));
}

@media (hover: hover) and (pointer: fine) {
  .editorial-theme .research-carousel-arrow:hover {
    background: #fff;
    box-shadow: 0 7px 22px rgba(30, 35, 45, .13);
    transform: translateY(-50%) scale(1.06);
  }
}

.editorial-theme .research-carousel-arrow:focus-visible {
  outline: 2px solid #a8657e;
  outline-offset: 3px;
}

.editorial-theme .research-carousel-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ======================================================================
   Selected publications / all publications
   ====================================================================== */

.editorial-theme .selected-section {
  background: radial-gradient(
    720px 500px at 0% 90%,
    rgba(var(--warm-rgb), var(--warm-pub-opacity)),
    transparent 75%
  ),
  #fafafa;
  border-color: var(--line);
}

.editorial-theme .publication-item {
  background: #fff;
  border-color: #dbdfe5;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(27, 33, 44, .035);
}

.editorial-theme .publication-title {
  color: #252b33;
  font-weight: 500;
}

.editorial-theme .publication-authors {
  color: #535c68;
  font-size: 19px;
}

.editorial-theme .publication-venue {
  color: #333f51;
  font-weight: 500;
  font-size: 19px;
}

/* Publications — Self-author Bold Underline */

.editorial-theme .publication-authors strong,
.editorial-theme .publication-authors .author-self {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;

  color: #202329;
  font-weight: 700;

  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.editorial-theme .publication-figure {
  background: #fff;
  border-color: #dfe2e7;
  border-radius: 6px;
  box-shadow: 0 3px 0 -1px #eceef1,
    0 12px 22px -12px rgba(28, 34, 46, .30);
}

.editorial-theme .pub-links a {
  background: #fff;
  color: #354355;
  border-color: #d9dee6;
  border-radius: 6px;
  box-shadow: none;
}

.editorial-theme .filter-btn.active {
  background: #282d35;
  border-color: #282d35;
  color: #fff;
}

.editorial-theme .year-marker h2 {
  color: #414b5b;
  font-weight: 500;
}

/* ======================================================================
   Projects
   ====================================================================== */

.editorial-theme .project-card {
  background: #fff;
  border-color: #dfe2e6;
  border-radius: 10px;
  box-shadow: 0 5px 17px rgba(30, 35, 45, .025);
}

.editorial-theme .project-title {
  color: #29303a;
}

.editorial-theme .project-meta,
.editorial-theme .project-organization {
  color: #596372;
}

.editorial-theme .project-summary {
  color: #485361;
  font-size: 19px;
}

.editorial-theme .project-role-badge {
  background: #f7f7f6;
  border-color: #cdd1d8;
  border-radius: 6px;
  box-shadow: inset 3px 0 0 #3a414e;
  color: #37404d;
  padding-left: 17px;
}

.editorial-theme .project-area {
  background: #fafafa;
  border-color: #e1e3e7;
  border-radius: 5px;
  box-shadow: none;
  color: #535d69;
}

.editorial-theme .project-logo-shell {
  width: 230px;
  height: 76px;
  max-width: 50%;
}

.editorial-theme .project-logo-shell:empty {
  width: 0;
  height: 0;
}

.editorial-theme .project-logo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

/* ======================================================================
   Experience / Education timeline
   ====================================================================== */

.editorial-theme .credential-section {
  padding-block: 65px;
}

.editorial-theme .career-timeline {
  --logo-col: 196px;
  --rail-col: 36px;
  --career-gap: 28px;
  display: grid;
  gap: 0;
}

.editorial-theme .career-entry {
  display: grid;
  grid-template-columns: var(--logo-col)
    var(--rail-col)
    minmax(0, 1fr);
  column-gap: var(--career-gap);
  min-height: 192px;
}

.editorial-theme .career-logo {
  display: grid;
  place-items: center;
  align-self: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 12px;
}

.editorial-theme .career-logo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.editorial-theme .career-logo-fallback {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #596476;
}

.editorial-theme .career-rail {
  position: relative;
  align-self: stretch;
}

.editorial-theme .career-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #b5becb;
}

.editorial-theme .career-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: #48566e;
  box-shadow: 0 0 0 2px #8591a5,
    0 0 0 6px #f3f4f7;
}

.editorial-theme .career-entry:first-child .career-rail::before {
  top: 50%;
}

.editorial-theme .career-entry:last-child .career-rail::before {
  bottom: 50%;
}

.editorial-theme .career-entry:only-child .career-rail::before {
  top: 20px;
  bottom: 20px;
}

.editorial-theme .career-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 30px 0;
}

.editorial-theme .career-entry:not(:last-child) .career-content {
  border-bottom: 1px solid #e5e7eb;
}

.editorial-theme .career-period {
  margin: 0 0 9px;
  color: #596579;
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.editorial-theme .career-title {
  margin: 0 0 8px;
  color: #262d37;
  font-size: 23px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.editorial-theme .career-org {
  margin: 0;
  color: #45546b;
  font-size: 18px;
  line-height: 1.6;
}

.editorial-theme .career-gpa {
  margin: 8px 0 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: #596579;
  font: 500 16px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
}

.editorial-theme .career-notes {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #596579;
  font-size: 16px;
}

/* ======================================================================
   Contact Me / text link buttons
   ====================================================================== */

.editorial-theme #contact .contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr)
    minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(30px, 4vw, 46px);
  background: #f8f8f7;
  border: 1px solid #e1e3e7;
  border-radius: 12px;
  box-shadow: none;
}

.editorial-theme #contact .section-title {
  margin: 0 0 18px;
  color: #252b33;
  font-size: clamp(27px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.editorial-theme #contact .contact-copy p {
  margin: 0;
  max-width: 570px;
  color: #535d69;
  font-size: 19px;
  line-height: 1.8;
}

.editorial-theme #contact .contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.editorial-theme #contact .contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #dedfe3;
  border-radius: 7px;
  color: #343b46;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.editorial-theme #contact .contact-link-arrow {
  flex-shrink: 0;
  color: #808895;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease,
    color 0.2s ease;
}

.editorial-theme #contact .contact-link:focus-visible {
  outline: 2px solid #596579;
  outline-offset: 3px;
}

/* ======================================================================
   Responsive layout
   ====================================================================== */

@media screen and (min-width: 761px) {
  body.editorial-theme .hero-profile .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr)
      clamp(255px, 28vw, 370px);
    column-gap: 48px;
    row-gap: 0;
    align-items: center;
    min-height: 0;
  }

  body.editorial-theme .hero-profile .hero-grid > .hero-copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    align-self: center;
  }

  body.editorial-theme .hero-profile .hero-grid > .hero-visual {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 370px;
    height: auto;
    aspect-ratio: 939 / 1146;
    min-width: 0;
    align-self: center;
    justify-self: start;
    margin: 0;
  }

  body.editorial-theme .hero-profile .hero-grid.hero-without-photo {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (min-width: 761px) and (max-width: 1100px) {
  .editorial-theme .hero-visual::before {
    width: 120%;
    top: 50%;
    left: 50%;
  }
}

@media (max-width: 900px) {
  .editorial-theme .career-timeline {
    --logo-col: 144px;
    --rail-col: 28px;
    --career-gap: 20px;
  }
}

@media (max-width: 850px) {
  .editorial-theme #contact .contact-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

@media screen and (max-width: 760px) {
  .editorial-theme .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .editorial-theme .hero-grid > .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .editorial-theme .hero-grid > .hero-visual {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: min(330px, 100%);
    margin: 0;
  }

  .editorial-theme .hero {
    padding-top: 32px;
  }

  .editorial-theme .section-title {
    font-size: 27px;
  }

  .editorial-theme .research-card {
    padding: 24px;
  }

  .editorial-theme .research-strip {
    margin-top: 54px;
  }

  .editorial-theme .hero-visual::before {
    width: 114%;
    top: 50%;
    left: 50%;
  }

  .editorial-theme .credential-section {
    padding-block: 45px;
  }

  body.editorial-theme .hero-profile .hero-role {
    margin-bottom: 22px;
    font-size: 15px;
  }

  body.editorial-theme .hero-profile .hero-statement .hero-intro {
    font-size: 29px;
  }

  body.editorial-theme .hero-profile .hero-biography p {
    font-size: 17px;
    line-height: 1.8;
  }
}

@media (max-width: 600px) {
  .editorial-theme .career-timeline {
    --logo-col: 76px;
    --rail-col: 22px;
    --career-gap: 12px;
  }

  .editorial-theme .career-logo {
    aspect-ratio: 1;
    padding: 4px;
  }

  .editorial-theme .career-entry {
    min-height: 176px;
  }

  .editorial-theme .career-content {
    padding: 26px 0;
  }

  .editorial-theme .career-title {
    font-size: 20px;
  }

  .editorial-theme .career-org {
    font-size: 16px;
  }

  .editorial-theme .career-period,
  .editorial-theme .career-gpa {
    font-size: 15px;
  }

  .editorial-theme .career-logo-fallback {
    font-size: 18px;
  }
}

@media (max-width: 550px) {
  .editorial-theme .research-card-heading {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
  }

  .editorial-theme .research-illustration {
    width: 180px;
    max-width: 100%;
  }

  .editorial-theme .research-card h3 {
    font-size: 24px;
  }

  .editorial-theme .research-card p {
    font-size: 17px;
  }

  .editorial-theme #contact .contact-card {
    padding: 28px 22px;
  }

  .editorial-theme #contact .contact-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-theme #contact .contact-link {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .editorial-theme .research-card {
    padding: 22px;
  }

  .editorial-theme .research-card h3 {
    font-size: 23px;
  }

  .editorial-theme .career-timeline {
    --logo-col: 60px;
    --rail-col: 18px;
    --career-gap: 10px;
  }
}

/* Carousel breakpoints */

@media (max-width: 900px) {
  .editorial-theme .research-carousel {
    --research-card-width: min(590px, 75vw);
  }
}

/* Mobile */

@media (max-width: 600px) {
  .editorial-theme .research-carousel {
    --research-card-width: min(440px, 84vw);
    --research-card-gap: 14px;
    --research-arrow-size: 36px;
  }

  .editorial-theme .research-carousel .research-card {
    min-height: 0;
    padding: 22px 23px;
  }

  .editorial-theme .research-carousel .research-card-heading {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .editorial-theme .research-carousel .research-illustration {
    width: 165px;
    max-width: 100%;
  }

  .editorial-theme .research-carousel .research-card h3 {
    font-size: 23px;
  }

  .editorial-theme .research-carousel .research-card p {
    font-size: 18px;
    line-height: 1.6;
  }
}

/* ======================================================================
   Motion preference / interaction / print
   ====================================================================== */

@media (hover: hover) and (pointer: fine) {
  .editorial-theme
  .research-carousel[data-enhanced="true"]
  .research-card.is-active:hover {
    border-color: #cdd3de;
    box-shadow: 0 17px 34px rgba(41, 49, 66, 0.085);
  }

  .editorial-theme #contact .contact-link:hover {
    background: #fcfcfc;
    border-color: #aeb4bf;
    transform: translateY(-1px);
  }

  .editorial-theme #contact
  .contact-link:hover .contact-link-arrow {
    color: #343b46;
    transform: translate(2px, -2px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.editorial-theme .hero-profile
  .hero-statement .statement-accent {
    animation: principles-rose-flow 9s ease-in-out infinite;
  }

  @keyframes principles-rose-flow {
    0%, 100% {
      background-position: 0% 50%;
      text-shadow: 0 0 7px rgba(215, 65, 96, 0.10),
        0 0 16px rgba(215, 65, 96, 0.05);
    }

    50% {
      background-position: 100% 50%;
      text-shadow: 0 0 10px rgba(215, 65, 96, 0.30),
        0 0 22px rgba(215, 65, 96, 0.10);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-theme *,
  .editorial-theme *::before,
  .editorial-theme *::after {
    animation: none !important;
    transition: none !important;
  }

  .editorial-theme #contact .contact-link,
  .editorial-theme #contact .contact-link-arrow {
    transition: none;
  }
}

@media (forced-colors: active) {
  body.editorial-theme .hero-profile .hero-statement .statement-accent {
    background: none;
    color: LinkText;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    animation: none;
  }

  .editorial-theme .career-rail::before {
    background: CanvasText;
  }

  .editorial-theme .career-node {
    border-color: CanvasText;
  }
}

@media print {
  .editorial-theme .hero,
  .editorial-theme .selected-section {
    background: #fff;
  }

  body.editorial-theme .hero-profile .hero-statement .statement-accent {
    background: none;
    color: #262d37;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    animation: none;
  }

  .editorial-theme .hero-visual::before {
    display: none;
  }

  .editorial-theme .research-card,
  .editorial-theme .career-entry {
    break-inside: avoid;
    box-shadow: none;
  }
}
