:root {
  --bg: #f6f7f3;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --surface: #ffffff;
  --surface-soft: #eef2ed;
  --ink: #13231f;
  --ink-soft: #354943;
  --muted: #66756f;
  --line: rgba(19, 35, 31, 0.12);
  --line-strong: rgba(19, 35, 31, 0.2);
  --accent: #0e766e;
  --accent-deep: #095b55;
  --accent-soft: #dceeea;
  --warm: #c87442;
  --warm-soft: #f3e4d8;
  --shadow-sm: 0 10px 35px rgba(19, 35, 31, 0.07);
  --shadow-lg: 0 28px 80px rgba(19, 35, 31, 0.13);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --sans: "Avenir Next", Avenir, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --page: min(1180px, calc(100vw - 48px));
  --header-height: 74px;
}

:root[data-theme="dark"] {
  --bg: #0e1715;
  --bg-elevated: rgba(18, 29, 26, 0.86);
  --surface: #15231f;
  --surface-soft: #1a2c27;
  --ink: #edf5f1;
  --ink-soft: #c4d0cb;
  --muted: #96aaa2;
  --line: rgba(226, 241, 234, 0.12);
  --line-strong: rgba(226, 241, 234, 0.22);
  --accent: #55c6b8;
  --accent-deep: #8bddcf;
  --accent-soft: #173c36;
  --warm: #e49b6e;
  --warm-soft: #3e2c21;
  --shadow-sm: 0 10px 35px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 28rem),
    radial-gradient(circle at 95% 18%, color-mix(in srgb, var(--warm) 8%, transparent), transparent 24rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

::selection {
  color: #ffffff;
  background: var(--accent);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--accent-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: border-color 200ms ease, background-color 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: var(--bg-elevated);
}

.nav-shell {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
  font-weight: 650;
}

.brand__mark {
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand__mark span {
  color: var(--accent);
}

.brand__text {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 520;
  letter-spacing: 0;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.015em;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-toggle__moon,
:root[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__moon {
  display: block;
}

.menu-toggle {
  display: none;
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 12px;
}

.menu-toggle__label {
  font-size: 0.78rem;
  font-weight: 700;
}

.menu-toggle__lines {
  width: 17px;
  display: grid;
  gap: 4px;
}

.menu-toggle__lines span {
  width: 100%;
  height: 1.5px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease;
}

body.nav-open .menu-toggle__lines span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

body.nav-open .menu-toggle__lines span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: clamp(76px, 10vw, 132px) 0 clamp(72px, 9vw, 116px);
  color: #eff8f4;
  background:
    radial-gradient(circle at 26% 34%, rgba(24, 117, 103, 0.28), transparent 35rem),
    radial-gradient(circle at 82% 20%, rgba(199, 116, 66, 0.12), transparent 28rem),
    linear-gradient(145deg, #0d1b18 0%, #07110f 68%, #081412 100%);
  border-bottom: 1px solid rgba(132, 208, 193, 0.12);
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image: radial-gradient(rgba(121, 211, 194, 0.22) 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  mask-image: linear-gradient(115deg, black, transparent 72%);
  -webkit-mask-image: linear-gradient(115deg, black, transparent 72%);
}

.hero::after {
  position: absolute;
  z-index: 0;
  top: 8%;
  right: -8%;
  width: min(42vw, 600px);
  aspect-ratio: 1;
  border: 1px solid rgba(121, 211, 194, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px rgba(121, 211, 194, 0.025),
    0 0 0 145px rgba(121, 211, 194, 0.018);
}

.hero__grid {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(56px, 8vw, 110px);
}

.hero__eyebrow {
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #83d5c7;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #73cbbb;
  box-shadow: 0 0 0 5px rgba(115, 203, 187, 0.12);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.55rem, 6.4vw, 6.35rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
  color: #f3faf7;
}

.hero h1 em {
  color: #79d3c3;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(221, 143, 94, 0.65);
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.1em;
}

.hero__thesis {
  max-width: 690px;
  margin: 25px 0 0;
  color: rgba(222, 238, 231, 0.9);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.hero__intro {
  max-width: 680px;
  margin: 15px 0 0;
  color: rgba(188, 208, 199, 0.78);
  font-size: clamp(0.9rem, 1.18vw, 1rem);
  line-height: 1.75;
}

.hero__intro a {
  color: rgba(239, 248, 244, 0.96);
  border-bottom: 1px solid rgba(180, 219, 208, 0.3);
  transition: color 180ms ease, border-color 180ms ease;
}

.hero__intro a:hover {
  color: #8ce1d2;
  border-color: rgba(140, 225, 210, 0.72);
}

.hero__links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.hero__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  color: rgba(220, 235, 229, 0.7);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero__links a:hover {
  color: #ffffff;
  border-color: rgba(121, 211, 195, 0.58);
  transform: translateY(-1px);
}

.hero__links a span {
  color: #79d3c3;
  transition: transform 180ms ease;
}

.hero__links a:hover span {
  transform: translate(2px, -2px);
}

.portrait-card {
  position: relative;
  width: min(100%, 440px);
  justify-self: end;
}

.portrait-card::before {
  position: absolute;
  inset: -15px 24px 24px -15px;
  border: 1px solid rgba(221, 143, 94, 0.28);
  border-radius: var(--radius-lg);
  content: "";
  transform: rotate(-2.5deg);
}

.portrait-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.06;
  border: 1px solid rgba(224, 241, 235, 0.14);
  border-radius: var(--radius-lg);
  background: #12231f;
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.36);
}

.portrait-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait-card:hover .portrait-card__image img {
  transform: scale(1.055);
}

.portrait-card__badge {
  position: absolute;
  right: -22px;
  bottom: 28px;
  width: min(275px, 82%);
  padding: 18px 20px;
  border: 1px solid rgba(224, 241, 235, 0.13);
  border-radius: 18px;
  background: rgba(10, 24, 20, 0.84);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.portrait-card__badge strong,
.portrait-card__badge span {
  display: block;
}

.portrait-card__badge strong {
  color: #eef8f4;
  font-size: 0.86rem;
}

.portrait-card__badge span {
  margin-top: 5px;
  color: rgba(194, 214, 205, 0.66);
  font-size: 0.76rem;
  line-height: 1.5;
}

.signal {
  position: absolute;
  top: 26px;
  left: -26px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 241, 235, 0.13);
  border-radius: 50%;
  color: #79d3c3;
  background: rgba(10, 24, 20, 0.84);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.signal svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 160px) 0 0;
}

.section-heading {
  margin-bottom: clamp(42px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(160px, 0.3fr) minmax(0, 0.7fr);
  gap: 44px;
  align-items: start;
}

.section-kicker {
  margin: 7px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 28px;
  height: 1px;
  content: "";
  background: var(--accent);
}

.section-heading h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-heading__copy {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.section-heading__copy a,
.about-copy a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.section-heading__copy a:hover,
.about-copy a:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: start;
}

.about-copy {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.focus-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, white 45%, transparent) inset;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.focus-card:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.focus-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.focus-card:nth-child(2) .focus-card__icon {
  color: var(--warm);
  background: var(--warm-soft);
}

.focus-card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.focus-card h3 {
  margin: auto 0 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}

.paper-list {
  display: grid;
  gap: 18px;
}

.paper-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(260px, 0.47fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.paper-card::after {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  content: "";
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.paper-card:nth-child(2)::after {
  background: color-mix(in srgb, var(--warm) 7%, transparent);
}

.paper-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.paper-card__number {
  color: color-mix(in srgb, var(--accent) 74%, var(--muted));
  font-family: var(--serif);
  font-size: 3.15rem;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.paper-card__venue {
  margin: 0 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paper-card__venue::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.paper-card h3 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.28rem);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.paper-card__authors {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.paper-card__authors strong {
  color: var(--ink-soft);
  font-weight: 750;
}

.paper-card__summary {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding-left: clamp(22px, 3vw, 38px);
  border-left: 1px solid var(--line);
}

.paper-card__summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.72;
}

.paper-card__honor {
  margin-top: 18px;
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--warm);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
}

.paper-card__honor svg {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.paper-card__link {
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 760;
}

.paper-card__link span {
  transition: transform 180ms ease;
}

.paper-card__link:hover {
  color: var(--accent-deep);
}

.paper-card__link:hover span {
  transform: translate(3px, -2px);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(50px, 10vw, 130px);
}

.news-intro {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: start;
}

.news-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.45rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.news-intro p {
  max-width: 390px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--accent-deep);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.timeline p {
  margin: -3px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.timeline strong {
  color: var(--ink);
  font-weight: 720;
}

.timeline li:first-child::after {
  position: absolute;
  top: 27px;
  right: 0;
  padding: 3px 8px;
  border-radius: 999px;
  content: "Latest";
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talk-list {
  border-top: 1px solid var(--line);
}

.talk-item {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) 190px;
  gap: 32px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background-color 180ms ease;
}

.talk-item:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: color-mix(in srgb, var(--surface) 54%, transparent);
}

.talk-item time {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talk-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.talk-item span {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.contact-section {
  width: var(--page);
  margin: clamp(110px, 14vw, 190px) auto 0;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 7vw, 82px);
  border-radius: var(--radius-lg);
  color: #eefaf6;
  background: #123a34;
  box-shadow: var(--shadow-lg);
}

.contact-card::before,
.contact-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.contact-card::before {
  top: -145px;
  right: -90px;
  width: 410px;
  height: 410px;
}

.contact-card::after {
  right: 115px;
  bottom: -190px;
  width: 300px;
  height: 300px;
}

.contact-card__label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #8ed7ca;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card h2 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.contact-card__footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-card__footer p {
  max-width: 540px;
  margin: 0;
  color: rgba(238, 250, 246, 0.68);
  font-size: 0.9rem;
}

.contact-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 22px;
  border-radius: 14px;
  color: #123a34;
  background: #eefaf6;
  font-size: 0.83rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.contact-link:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.site-footer {
  width: var(--page);
  margin: 28px auto 0;
  padding: 32px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.73rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.hero__content > *,
.portrait-card {
  animation: rise-in 700ms both cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero__content > :nth-child(2) { animation-delay: 60ms; }
.hero__content > :nth-child(3) { animation-delay: 120ms; }
.hero__content > :nth-child(4) { animation-delay: 180ms; }
.hero__content > :nth-child(5) { animation-delay: 240ms; }
.portrait-card { animation-delay: 150ms; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
    gap: 54px;
  }

  .paper-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .paper-card__summary {
    grid-column: 2;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .paper-card__link {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 34px, 700px);
    --header-height: 68px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .brand__text {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 17px;
    left: 17px;
    max-height: 0;
    overflow: hidden;
    display: grid;
    gap: 0;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 240ms ease, padding 240ms ease, opacity 180ms ease, transform 240ms ease, border-color 240ms ease;
    backdrop-filter: blur(22px);
  }

  body.nav-open .site-nav {
    max-height: 410px;
    padding-top: 14px;
    padding-bottom: 14px;
    border-color: var(--line);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .no-js .site-nav {
    max-height: 410px;
    padding-top: 14px;
    padding-bottom: 14px;
    border-color: var(--line);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .no-js .menu-toggle {
    display: none;
  }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 550;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .hero__content {
    max-width: 680px;
  }

  .hero h1 {
    max-width: 650px;
  }

  .portrait-card {
    width: min(88%, 440px);
    justify-self: center;
  }

  .section-heading,
  .about-grid,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 22px;
  }

  .about-grid {
    gap: 48px;
  }

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

  .focus-card {
    min-height: 205px;
  }

  .news-layout {
    gap: 45px;
  }

  .news-intro {
    position: static;
  }

  .talk-item {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .talk-item span {
    grid-column: 2;
    margin-top: -25px;
    text-align: left;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100% - 30px);
    --radius-lg: 27px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16.5vw, 4.5rem);
  }

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

  .hero__links a {
    justify-content: space-between;
    padding: 11px 0;
    border-bottom-color: rgba(121, 211, 195, 0.18);
  }

  .portrait-card {
    width: calc(100% - 22px);
  }

  .portrait-card__badge {
    right: -11px;
    bottom: -18px;
  }

  .signal {
    top: -23px;
    left: -10px;
  }

  .section {
    padding-top: 96px;
  }

  .section-heading h2,
  .news-intro h2 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .paper-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 27px 23px;
  }

  .paper-card__number {
    font-size: 2.25rem;
  }

  .paper-card__summary {
    grid-column: 1;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .timeline li:first-child::after {
    top: 19px;
  }

  .timeline p {
    max-width: 90%;
  }

  .talk-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .talk-item span {
    grid-column: 1;
    margin-top: 1px;
  }

  .talk-item:hover {
    padding-right: 10px;
    padding-left: 10px;
  }

  .contact-section {
    margin-top: 110px;
  }

  .contact-card {
    padding: 38px 25px 28px;
  }

  .contact-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-link {
    justify-content: center;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --ink: #111111;
    --ink-soft: #222222;
    --muted: #555555;
    --line: #dddddd;
  }

  .site-header,
  .theme-toggle,
  .menu-toggle,
  .hero__links,
  .contact-section,
  .site-footer {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .section {
    padding-top: 54px;
  }

  .paper-card,
  .focus-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
