:root {
  color-scheme: dark;
  --bg: #080d14;
  --surface: rgba(15, 22, 32, 0.82);
  --surface-solid: #101823;
  --surface-soft: rgba(28, 39, 53, 0.72);
  --ink: #f0f3f7;
  --muted: #a0aaba;
  --line: rgba(197, 211, 230, 0.18);
  --line-strong: rgba(211, 223, 238, 0.36);
  --accent: #aac4df;
  --accent-bright: #dce9f6;
  --accent-soft: rgba(142, 180, 217, 0.12);
  --header-bg: rgba(8, 13, 20, 0.84);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --max-width: 1200px;
  --radius: 1.15rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2f6;
  --surface: rgba(250, 252, 254, 0.88);
  --surface-solid: #f8fafc;
  --surface-soft: rgba(223, 232, 241, 0.72);
  --ink: #111923;
  --muted: #5e6976;
  --line: rgba(37, 56, 75, 0.16);
  --line-strong: rgba(37, 56, 75, 0.3);
  --accent: #315a7d;
  --accent-bright: #173a59;
  --accent-soft: rgba(49, 90, 125, 0.1);
  --header-bg: rgba(237, 242, 246, 0.86);
  --shadow: 0 24px 70px rgba(31, 47, 63, 0.13);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(7, 12, 19, 0.12), rgba(7, 12, 19, 0.72)),
    url("../images/cosmic-grid.png");
  background-position: center top;
  background-size: cover;
  content: "";
  opacity: 0.9;
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 9, 15, 0.28);
  content: "";
  pointer-events: none;
}

:root[data-theme="light"] body::before {
  filter: grayscale(1) invert(0.88);
  opacity: 0.2;
}

:root[data-theme="light"] body::after {
  background: rgba(237, 242, 246, 0.64);
}

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

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

button {
  color: inherit;
  font: inherit;
}

.shell {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-color: var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  letter-spacing: -0.08em;
}

.site-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav a,
.site-footer a {
  position: relative;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

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

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-picker {
  position: relative;
}

.language-button,
.icon-button {
  min-height: 2.65rem;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(15, 22, 32, 0.68);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .language-button,
:root[data-theme="light"] .icon-button {
  background: rgba(250, 252, 254, 0.76);
}

.language-button {
  display: inline-flex;
  min-width: 4.75rem;
  padding: 0.55rem 0.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.language-button:hover,
.language-button[aria-expanded="true"],
.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.language-button svg,
.theme-toggle svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.language-chevron {
  font-size: 1rem;
  line-height: 0.75;
  transform: translateY(-0.1rem);
  transition: transform 180ms ease;
}

.language-button[aria-expanded="true"] .language-chevron {
  transform: translateY(0.1rem) rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 70;
  width: 10.5rem;
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.85rem;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  text-align: left;
}

.language-menu button span:last-child {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.language-menu button:hover,
.language-menu button:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.language-menu button[aria-checked="true"] {
  background: var(--accent-bright);
  color: #0b1119;
}

.language-menu button[aria-checked="true"] span:last-child {
  color: inherit;
}

.icon-button {
  display: grid;
  width: 2.65rem;
  place-items: center;
  border-radius: 50%;
}

.theme-toggle .moon-icon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

.menu-toggle {
  display: none;
}

.icon-button:focus-visible,
.language-button:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.module {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding-top: 6.5rem;
  padding-bottom: 1rem;
}

.hero-module {
  position: relative;
  display: grid;
  min-height: calc(100svh - 8rem);
  background-image:
    linear-gradient(90deg, rgba(7, 12, 19, 0.68), rgba(7, 12, 19, 0.46)),
    url("../images/cosmic-grid.png");
  background-position: center;
  background-size: cover;
  grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.72fr);
  grid-template-rows: 1fr auto;
}

.hero-module::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 20, 0.34), rgba(8, 13, 20, 0.1));
  content: "";
  pointer-events: none;
}

:root[data-theme="light"] .hero-module::before {
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.35), rgba(248, 250, 252, 0.06));
}

:root[data-theme="light"] .hero-module {
  background-image:
    linear-gradient(90deg, rgba(246, 249, 252, 0.82), rgba(235, 241, 246, 0.68)),
    url("../images/cosmic-grid.png");
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(2rem, 5vw, 5.25rem);
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.module-heading h2,
.about-heading h2,
.contact-module h2 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 8.2vw, 7.5rem);
}

.hero h1 span {
  color: var(--accent-bright);
  text-shadow: 0 0 38px rgba(184, 211, 238, 0.18);
}

.hero-intro {
  max-width: 39rem;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  margin-top: 2.25rem;
  align-items: center;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-bright);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 720;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.button-primary {
  background: var(--accent-bright);
  color: #0a1119;
}

.button:hover {
  box-shadow: 0 0 30px rgba(184, 211, 238, 0.22);
  transform: translateY(-2px);
}

.text-link {
  color: var(--accent-bright);
  font-size: 0.875rem;
  font-weight: 680;
}

.text-link span:last-child,
.contact-method > span:last-child {
  display: inline-block;
  transition: transform 180ms ease;
}

.text-link:hover span:last-child,
.contact-method:hover > span:last-child {
  transform: translate(0.2rem, -0.2rem);
}

.hero-visual {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.hero-visual::before {
  position: absolute;
  inset: 12% 10%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle at 72% 30%, rgba(218, 233, 247, 0.13), transparent 36%);
  content: "";
}

.orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.orbit-large {
  top: -18%;
  right: -42%;
  width: 132%;
  aspect-ratio: 1;
}

.orbit-small {
  top: 6%;
  right: -18%;
  width: 72%;
  aspect-ratio: 1;
  border-style: dashed;
  opacity: 0.55;
}

.star {
  position: absolute;
  color: var(--accent-bright);
  text-shadow: 0 0 18px var(--accent-bright);
}

.star-one {
  top: 24%;
  right: 23%;
  font-size: 1.2rem;
}

.star-two {
  right: 58%;
  bottom: 22%;
  font-size: 0.75rem;
  opacity: 0.7;
}

.hero-monogram {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3.5rem);
  bottom: 2.25rem;
  color: rgba(228, 237, 246, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 11vw, 10.5rem);
  letter-spacing: -0.13em;
  line-height: 0.8;
  text-shadow: 0 0 50px rgba(212, 228, 243, 0.16);
}

:root[data-theme="light"] .hero-monogram {
  color: rgba(26, 48, 67, 0.88);
}

.visual-caption {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.hero-statusbar {
  position: relative;
  z-index: 2;
  display: grid;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.hero-statusbar > div {
  display: flex;
  min-height: 5.25rem;
  padding: 1rem 1.5rem;
  align-items: center;
  gap: 0.75rem;
}

.hero-statusbar > div + div {
  border-left: 1px solid var(--line);
}

.status-row,
.hero-principle {
  font-size: 0.8125rem;
  font-weight: 650;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border: 1px solid var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(206, 225, 243, 0.6);
}

.meta-index,
.module-index,
.process-grid > li > span,
.preview-number {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.section {
  padding-block: 0.75rem;
  scroll-margin-top: 5.5rem;
}

.module-heading {
  display: grid;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.7fr);
  align-items: end;
  gap: 3rem;
}

.module-heading .eyebrow {
  margin-bottom: 0.75rem;
}

.module-heading h2,
.about-heading h2,
.contact-module h2 {
  font-size: clamp(2.25rem, 4.2vw, 4.5rem);
}

.module-heading > p,
.module-heading > div + p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.capability-card {
  min-height: 17rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.capability-card + .capability-card {
  border-left: 1px solid var(--line);
}

.capability-card:nth-child(odd) {
  border-left: 0;
}

.capability-card:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.capability-card h3 {
  max-width: 15ch;
  margin: 2.75rem 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.capability-card p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
}

.capability-points {
  display: grid;
  max-width: 36rem;
  margin: 0 0 1.2rem;
  padding: 0;
  gap: 0.6rem;
  color: var(--muted);
  list-style: none;
}

.capability-points li {
  padding-left: 1.1rem;
}

.capability-points li::before {
  display: inline-block;
  width: 1.1rem;
  margin-left: -1.1rem;
  color: var(--accent);
  content: "↳";
}

.capability-card .capability-tools {
  color: var(--accent-bright);
  font-size: 0.875rem;
  font-weight: 680;
}

.project-grid {
  display: grid;
  padding: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(4, 9, 15, 0.26);
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

:root[data-theme="light"] .project-card {
  background: rgba(255, 255, 255, 0.38);
}

.project-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  transform: translateY(-4px);
}

.project-preview {
  position: relative;
  height: 15rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0b121c;
}

:root[data-theme="light"] .project-preview {
  background: #d9e3ec;
}

.preview-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  color: var(--accent-bright);
}

.preview-one {
  background-image:
    linear-gradient(rgba(170, 196, 223, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 196, 223, 0.08) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
}

.preview-panel {
  position: absolute;
  right: 10%;
  bottom: 10%;
  display: grid;
  width: 72%;
  height: 62%;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  background: rgba(20, 30, 43, 0.86);
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.55rem;
  transform: perspective(600px) rotateY(-8deg) rotateX(3deg);
}

.preview-panel i {
  display: block;
  border-radius: 0.2rem 0.2rem 0 0;
  background: linear-gradient(#d5e6f5, #496b8b);
}

.preview-panel i:nth-child(1) { height: 34%; }
.preview-panel i:nth-child(2) { height: 68%; }
.preview-panel i:nth-child(3) { height: 50%; }
.preview-panel i:nth-child(4) { height: 86%; }

.preview-two {
  background: radial-gradient(circle at 55% 45%, #31455a, #101722 48%, #080d14 74%);
}

.preview-orb {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 9rem;
  height: 12rem;
  border: 1px solid rgba(230, 239, 248, 0.4);
  border-radius: 52% 48% 35% 65% / 38% 47% 53% 62%;
  background: linear-gradient(135deg, #edf3f8 0%, #50677f 38%, #111925 66%, #aac4df 100%);
  box-shadow: 0 0 44px rgba(183, 209, 233, 0.2);
  transform: translate(-50%, -50%) rotate(24deg);
}

.preview-three {
  background:
    radial-gradient(circle at 70% 25%, rgba(190, 216, 240, 0.22), transparent 32%),
    #0b121c;
}

.preview-device {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 7rem;
  height: 13rem;
  padding: 0.45rem;
  border: 1px solid rgba(230, 239, 248, 0.55);
  border-radius: 1.4rem;
  background: #05080d;
  box-shadow: 1.5rem 1.5rem 0 rgba(145, 176, 206, 0.12);
  transform: translate(-50%, -48%) rotate(8deg);
}

.preview-device span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  background:
    linear-gradient(rgba(206, 223, 239, 0.12) 1px, transparent 1px),
    linear-gradient(145deg, #1c2b3b, #090e15);
  background-size: 100% 2rem, auto;
}

.project-content {
  padding: 1.5rem;
}

.project-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.project-content > p:not(.project-kicker) {
  margin: 1rem 0 1.25rem;
  color: var(--muted);
}

.tag-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.tag-list li {
  padding: 0.32rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 620;
}

.about-module {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-heading,
.about-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.about-heading {
  border-right: 1px solid var(--line);
}

.about-heading h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.about-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
}

.availability-line {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent-bright) !important;
  font-size: 0.875rem;
  font-weight: 700;
}

.about-points {
  display: grid;
  margin: 1.5rem 0 0;
  padding: 0;
  gap: 0;
  list-style: none;
  counter-reset: about-point;
}

.about-points li {
  display: grid;
  padding: 0.8rem 0;
  grid-template-columns: 2rem minmax(0, 1fr);
  border-top: 1px solid var(--line);
  color: var(--muted);
  counter-increment: about-point;
}

.about-points li::before {
  color: var(--accent);
  content: "0" counter(about-point);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.education-card {
  width: 100%;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.education-heading {
  display: flex;
  margin-bottom: 0.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.degree-list {
  display: grid;
  margin: 1rem 0 1.25rem;
  padding: 0;
  gap: 0.35rem;
  color: var(--muted);
  list-style: none;
}

.degree-list li::before {
  margin-right: 0.65rem;
  color: var(--accent);
  content: "↳";
}

.education-links {
  display: grid;
  gap: 0.5rem;
}

.education-links a {
  display: grid;
  padding: 0.65rem 0.75rem;
  grid-template-columns: minmax(5rem, 0.35fr) minmax(0, 1fr);
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--accent-bright);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.education-links a:hover {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.education-links span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.education-links strong {
  min-width: 0;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.compact-heading {
  display: block;
}

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

.process-grid li {
  min-height: 13rem;
  padding: 1.75rem;
}

.process-grid li + li {
  border-left: 1px solid var(--line);
}

.process-grid h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-module {
  position: relative;
  display: grid;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  align-items: end;
  gap: 4rem;
}

.contact-module::after {
  position: absolute;
  top: -8rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(186, 210, 233, 0.11);
  content: "";
  pointer-events: none;
}

.contact-module > * {
  position: relative;
  z-index: 1;
}

.contact-details p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.contact-list {
  border-bottom: 1px solid var(--line);
}

.contact-method {
  display: grid;
  min-height: 4.25rem;
  padding: 0.9rem 0.2rem;
  align-items: center;
  gap: 1rem;
  grid-template-columns: minmax(5.5rem, 0.34fr) minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
  color: var(--accent-bright);
  transition: background-color 180ms ease, padding 180ms ease;
}

a.contact-method:hover {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  background: var(--accent-soft);
}

.contact-method-label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-method strong {
  min-width: 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 680;
  overflow-wrap: anywhere;
}

.contact-detail {
  color: var(--ink);
}

.contact-detail strong[data-i18n="contact.resumePending"] {
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
}

.footer-inner {
  display: flex;
  min-height: 5rem;
  padding: 0 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 980px) {
  .site-nav {
    gap: 1rem;
  }

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

  .hero h1 {
    font-size: clamp(4rem, 10vw, 6.5rem);
  }

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

  .project-card {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) 1fr;
  }

  .project-preview {
    height: auto;
    min-height: 20rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .menu-toggle {
    display: grid;
    gap: 0.35rem;
  }

  .menu-toggle span {
    display: block;
    width: 1rem;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

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

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

  .site-nav {
    position: absolute;
    top: 4.75rem;
    right: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-solid);
    gap: 0;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

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

  .site-nav a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1rem;
  }

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

  .hero-copy {
    padding-bottom: 2.5rem;
  }

  .hero-visual {
    min-height: 19rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-monogram {
    font-size: 8rem;
  }

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

  .hero-statusbar > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .module-heading,
  .about-module,
  .contact-module {
    grid-template-columns: 1fr;
  }

  .module-heading,
  .contact-module {
    gap: 1.5rem;
  }

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

  .capability-card {
    min-height: auto;
  }

  .capability-card + .capability-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-heading {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-grid li:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 4.4rem;
    gap: 0.65rem;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .language-button {
    min-width: 4.2rem;
    padding-inline: 0.6rem;
  }

  .icon-button {
    width: 2.55rem;
    min-height: 2.55rem;
  }

  .site-nav {
    top: 4.4rem;
  }

  .hero {
    padding-top: 5.25rem;
  }

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

  .hero-copy {
    padding: 2.5rem 1.5rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-heading,
  .about-heading,
  .about-copy,
  .contact-module {
    padding: 1.5rem;
  }

  .module-heading h2,
  .about-heading h2,
  .contact-module h2 {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
  }

  .contact-method {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-method-label {
    grid-column: 1 / -1;
    margin-bottom: -0.75rem;
  }

  .education-links a {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .project-card {
    display: block;
  }

  .project-preview {
    min-height: 15rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .process-grid li + li,
  .process-grid li:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-inner {
    padding: 1.25rem 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
  }
}

@media (max-width: 380px) {
  .brand > span:last-child {
    display: none;
  }
}

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

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

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