:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-elevated: rgba(255, 255, 255, 0.76);
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #101b2d;
  --muted: #5c6675;
  --line: rgba(16, 27, 45, 0.13);
  --line-strong: rgba(16, 27, 45, 0.22);
  --accent: #ee6c2f;
  --accent-strong: #cf4f1b;
  --accent-soft: #ffe2d4;
  --aqua: #68c6bd;
  --navy: #152945;
  --navy-soft: #233d5d;
  --shadow: 0 22px 70px rgba(28, 38, 55, 0.11);
  --shadow-soft: 0 12px 35px rgba(28, 38, 55, 0.07);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --header-height: 78px;
  --container: 1180px;
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1522;
  --bg-elevated: rgba(15, 25, 40, 0.78);
  --surface: #121e2e;
  --surface-strong: #172538;
  --ink: #eef3f8;
  --muted: #a9b5c4;
  --line: rgba(225, 234, 243, 0.12);
  --line-strong: rgba(225, 234, 243, 0.22);
  --accent: #ff8550;
  --accent-strong: #ff9669;
  --accent-soft: rgba(238, 108, 47, 0.18);
  --aqua: #71d8cd;
  --navy: #08111e;
  --navy-soft: #192d47;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.2);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 3%, color-mix(in srgb, var(--accent-soft) 58%, transparent) 0, transparent 28rem),
    radial-gradient(circle at 3% 31%, color-mix(in srgb, var(--aqua) 11%, transparent) 0, transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(127, 139, 153, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 139, 153, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button {
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h3 {
  line-height: 1.22;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

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

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

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--aqua) 12%, transparent), transparent 67%);
  transform: translate(calc(var(--pointer-x) - 50%), calc(var(--pointer-y) - 50%));
  transition: opacity 300ms ease;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-color: var(--line);
  background: var(--bg-elevated);
  box-shadow: 0 10px 35px rgba(18, 29, 44, 0.06);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1320px);
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

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

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

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

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

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[data-theme="light"] .sun-icon,
[data-theme="dark"] .moon-icon {
  display: none;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 68px);
  padding-bottom: 82px;
  align-items: center;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.83fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.eyebrow,
.section-index,
.card-kicker {
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow span {
  width: 33px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.5rem, 6.7vw, 6.8rem);
}

.hero h1 em {
  display: block;
  background: linear-gradient(115deg, var(--accent) 5%, #ee8d49 47%, var(--aqua) 105%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.27rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button svg,
.text-link svg,
.email-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 18%, transparent);
  color: var(--bg);
}

.button-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 25%, transparent);
  transform: translateY(-3px);
}

.button-quiet {
  background: var(--bg-elevated);
}

.button-quiet:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-3px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 710px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  padding-right: 22px;
}

.hero-meta div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  width: min(100%, 480px);
  margin-inline: auto;
  isolation: isolate;
}

.portrait-card {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 42px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  backdrop-filter: blur(12px);
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  background: #fff;
}

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

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

.portrait-card figcaption {
  display: flex;
  padding: 16px 10px 8px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39b77d;
  box-shadow: 0 0 0 5px rgba(57, 183, 125, 0.12);
}

.portrait-orbit {
  position: absolute;
  inset: -8%;
  z-index: -1;
}

.orbit {
  position: absolute;
  inset: 3%;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 45% 55% 48% 52%;
  transform: rotate(-14deg);
}

.orbit-two {
  inset: 10% -5%;
  border-color: color-mix(in srgb, var(--aqua) 35%, transparent);
  transform: rotate(18deg);
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.dot-one {
  top: 8%;
  right: 12%;
}

.dot-two {
  bottom: 12%;
  left: 2%;
  background: var(--aqua);
  box-shadow: 0 0 0 1px var(--aqua);
}

.floating-label {
  position: absolute;
  z-index: 4;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
  backdrop-filter: blur(16px);
}

.label-bt {
  top: 11%;
  left: -15%;
  animation: float 6s ease-in-out infinite;
}

.label-dt {
  right: -14%;
  bottom: 31%;
  animation: float 7s 800ms ease-in-out infinite;
}

.label-se {
  bottom: 8%;
  left: -12%;
  animation: float 6.5s 300ms ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  animation: arrow-bounce 1.8s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

.about-section {
  padding-top: 128px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 54px;
}

.section-index {
  margin-bottom: 18px;
}

.section-index.light {
  color: #ff9d70;
}

.section-heading h2,
.contact-card h2,
.current-work-card h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.heading-note {
  max-width: 250px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(13px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(310px, 0.6fr);
  gap: 22px;
}

.about-story {
  padding: clamp(30px, 5vw, 62px);
}

.about-story p {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--muted);
}

.about-story p:last-child {
  margin-bottom: 0;
}

.about-story .large-copy {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.35;
}

.about-story a {
  color: var(--accent-strong);
  text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.principles-card {
  display: flex;
  padding: clamp(30px, 4vw, 45px);
  flex-direction: column;
  background: var(--navy);
  color: #f4f7fb;
}

.principles-card .card-kicker {
  color: #ff9d70;
}

.principles-card blockquote {
  margin: 10px 0 32px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.4;
}

.principle-list {
  display: grid;
  margin-top: auto;
  gap: 0;
}

.principle-list span {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #bac8d8;
  font-size: 0.8rem;
}

.interest-strip {
  display: flex;
  margin-top: 24px;
  padding: 18px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.interest-strip::-webkit-scrollbar {
  display: none;
}

.interest-strip span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}

.interest-strip span:not(:last-child)::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.research-section {
  overflow: hidden;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.research-card {
  position: relative;
  min-height: 480px;
  padding: 32px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.research-card::before {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.research-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.research-card:hover::before {
  opacity: 1;
}

.research-card.featured {
  background: color-mix(in srgb, var(--accent-soft) 44%, var(--surface));
}

.research-number {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.research-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 42px 0 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  color: var(--accent);
  transform: rotate(-4deg);
}

.research-icon svg {
  width: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.research-card h3 {
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.research-card p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.89rem;
}

.tag-list {
  display: flex;
  margin: auto 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.tag-list li,
.current-tags span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.adaptation-flow {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  margin-top: 24px;
  padding: 34px;
  gap: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.flow-intro h3 {
  margin-bottom: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
}

.flow-steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.flow-steps li {
  position: relative;
  padding: 0 15px;
}

.flow-steps li:not(:last-child)::after {
  position: absolute;
  top: 13px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  content: "";
  transform: rotate(45deg);
}

.flow-steps span,
.flow-steps strong,
.flow-steps small {
  display: block;
}

.flow-steps span {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}

.flow-steps strong {
  font-size: 0.84rem;
}

.flow-steps small {
  color: var(--muted);
  font-size: 0.68rem;
}

.current-work-section {
  padding-block: 24px;
}

.current-work-card {
  position: relative;
  display: grid;
  min-height: 560px;
  padding: clamp(36px, 6vw, 78px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 70px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 82% 20%, rgba(104, 198, 189, 0.17), transparent 27%),
    linear-gradient(135deg, #0f2036, #152c49 65%, #183952);
  box-shadow: 0 34px 90px rgba(9, 24, 40, 0.25);
  color: #f7fafc;
  overflow: hidden;
}

.current-work-card::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  pointer-events: none;
}

.current-work-copy,
.current-work-visual {
  position: relative;
  z-index: 1;
}

.current-work-card h2 {
  margin-bottom: 24px;
  color: #fff;
}

.current-work-copy > p:not(.section-index) {
  max-width: 660px;
  color: #becbdd;
  font-size: 1rem;
}

.current-tags {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 8px;
}

.current-tags span {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #d8e2ed;
}

.current-work-visual {
  min-height: 390px;
}

.current-work-visual::before,
.current-work-visual::after {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.current-work-visual::before {
  width: 270px;
  height: 270px;
}

.current-work-visual::after {
  width: 390px;
  height: 390px;
  border-style: dashed;
}

.system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 36px;
  background: linear-gradient(145deg, var(--accent), #e14f27);
  box-shadow: 0 20px 60px rgba(238, 108, 47, 0.34);
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2.4rem;
  transform: translate(-50%, -50%) rotate(-6deg);
}

.system-node {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #dfe8f2;
  font-size: 0.64rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.node-one { top: 6%; left: 38%; }
.node-two { top: 29%; right: 0; }
.node-three { right: 11%; bottom: 12%; }
.node-four { bottom: 4%; left: 20%; }
.node-five { top: 30%; left: -2%; }

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

.publication-item {
  display: grid;
  padding: 32px 8px;
  grid-template-columns: 180px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background 180ms ease;
}

.publication-item:hover {
  padding-inline: 22px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.publication-year {
  display: inline-flex;
  min-width: 52px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.publication-copy h3 {
  max-width: 730px;
  margin-bottom: 8px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.publication-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.publication-copy cite {
  font-style: normal;
}

.publication-link {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.publication-link:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(7deg) scale(1.05);
}

.publication-link svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.text-link {
  display: inline-flex;
  margin-bottom: 8px;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 0.79rem;
  font-weight: 750;
  text-decoration: none;
}

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

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 54px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  padding: 0 0 48px 32px;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 28px;
  border-left: 1px solid var(--line-strong);
}

.timeline-item::before {
  position: absolute;
  top: 5px;
  left: -6px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  content: "";
}

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

.timeline-date {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.timeline-content h3 {
  margin-bottom: 7px;
  font-size: 1.3rem;
}

.timeline-content > p:not(.card-kicker) {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline-detail {
  max-width: 490px;
}

.community-card {
  align-self: start;
  padding: 36px;
}

.community-card h3 {
  margin-bottom: 28px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.25;
}

.event-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.event-list span {
  display: inline-block;
  min-width: 48px;
  color: var(--accent-strong);
  font-weight: 800;
}

.contact-section {
  padding-top: 72px;
}

.contact-card {
  display: grid;
  padding: clamp(36px, 7vw, 84px);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 90px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 5% 100%, rgba(238, 108, 47, 0.18), transparent 30%),
    var(--navy);
  box-shadow: 0 32px 90px rgba(8, 22, 38, 0.27);
  color: #f7fafc;
}

.contact-card h2 {
  max-width: 650px;
  margin-bottom: 24px;
  color: #fff;
}

.contact-copy > p:not(.section-index) {
  max-width: 570px;
  color: #bac8d8;
}

.email-link {
  display: inline-flex;
  margin-top: 24px;
  align-items: center;
  gap: 10px;
  color: #ff9d70;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 750;
  text-decoration-color: rgba(255, 157, 112, 0.4);
}

.profile-links {
  display: grid;
}

.profile-links a {
  display: grid;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #f2f6fa;
  text-decoration: none;
  transition: padding 180ms ease, color 180ms ease;
}

.profile-links a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.profile-links a:hover {
  padding-left: 10px;
  color: #ff9d70;
}

.profile-links span {
  font-size: 0.83rem;
  font-weight: 750;
}

.profile-links small {
  color: #91a1b5;
  font-size: 0.66rem;
}

.site-footer {
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.68rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 750;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

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

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
    gap: 48px;
  }

  .floating-label {
    font-size: 0.6rem;
  }

  .label-bt,
  .label-se {
    left: -6%;
  }

  .label-dt {
    right: -7%;
  }

  .research-card {
    min-height: 510px;
    padding: 28px;
  }

  .current-work-card {
    gap: 30px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    position: relative;
  }

  .menu-toggle span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 200ms ease, top 200ms ease;
  }

  .menu-toggle span:first-child { top: 16px; }
  .menu-toggle span:last-child { top: 23px; }

  .menu-toggle[aria-expanded="true"] span:first-child {
    top: 20px;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    top: 20px;
    transform: rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    padding: 15px 24px 28px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-16px);
    visibility: hidden;
    backdrop-filter: blur(20px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .mobile-menu a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 70px);
  }

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

  .hero-copy {
    max-width: 730px;
  }

  .hero-visual {
    width: min(84vw, 500px);
    margin-top: 20px;
  }

  .scroll-cue {
    display: none;
  }

  .about-grid,
  .current-work-card,
  .contact-card,
  .journey-layout {
    grid-template-columns: 1fr;
  }

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

  .research-card:last-child {
    grid-column: 1 / -1;
    min-height: 430px;
  }

  .adaptation-flow {
    grid-template-columns: 1fr;
  }

  .current-work-card {
    gap: 42px;
  }

  .current-work-visual {
    width: min(100%, 470px);
    margin-inline: auto;
  }

  .contact-card {
    gap: 45px;
  }

  .community-card {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
  }

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

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-meta div,
  .hero-meta div + div {
    padding: 0;
    border-left: 0;
  }

  .hero-meta div + div {
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .hero-visual {
    width: min(88vw, 430px);
  }

  .floating-label {
    padding: 8px 11px;
  }

  .label-bt { top: 7%; left: -2%; }
  .label-dt { right: -2%; bottom: 28%; }
  .label-se { bottom: 6%; left: 0; }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .contact-card h2,
  .current-work-card h2 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .heading-row {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .heading-note {
    max-width: 100%;
  }

  .about-story,
  .principles-card,
  .community-card {
    padding: 27px;
    border-radius: var(--radius-md);
  }

  .interest-strip {
    border-radius: var(--radius-sm);
  }

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

  .research-card,
  .research-card:last-child {
    grid-column: auto;
    min-height: 440px;
    border-radius: var(--radius-md);
  }

  .flow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px 10px;
  }

  .flow-steps li:not(:last-child)::after {
    display: none;
  }

  .adaptation-flow {
    padding: 27px;
    border-radius: var(--radius-md);
  }

  .current-work-card,
  .contact-card {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .current-work-visual {
    min-height: 320px;
    transform: scale(0.9);
  }

  .publication-item {
    padding: 28px 0;
    grid-template-columns: 1fr 48px;
    gap: 16px;
  }

  .publication-item:hover {
    padding-inline: 10px;
  }

  .publication-meta {
    grid-column: 1 / -1;
  }

  .publication-copy {
    grid-column: 1;
  }

  .publication-link {
    grid-column: 2;
  }

  .timeline-item {
    padding-left: 23px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .footer-inner p:nth-child(2) {
    display: none;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}
