:root {
  --bg: #f6f2ea;
  --bg-soft: #efe9dd;
  --surface: #fbf8f2;
  --ink: #1b1a17;
  --ink-2: #4a463d;
  --muted: #8b8577;
  --line: #ddd5c6;
  --accent: #c2542f;
  --accent-soft: #e8c9b8;
  --shadow: 0 24px 60px -30px rgba(27, 26, 23, 0.35);
  --radius: 22px;
  --font-sans: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #12110f;
  --bg-soft: #1a1815;
  --surface: #1c1a16;
  --ink: #f2ede3;
  --ink-2: #c9c2b4;
  --muted: #8d8579;
  --line: #302c26;
  --accent: #e0724a;
  --accent-soft: #4a2d22;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 60%);
}

img,
svg {
  display: block;
}

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

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: padding 0.4s var(--ease), background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.5s var(--ease), background-color 0.4s ease, color 0.4s ease;
}
.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.logo-text em {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-2);
  transition: color 0.3s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}
.theme-toggle:hover {
  background: var(--bg-soft);
  transform: rotate(15deg);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-moon {
  display: none;
}
html[data-theme="dark"] .icon-sun {
  display: none;
}
html[data-theme="dark"] .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- shared ---------- */
main {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}
.arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .arrow,
.text-link:hover .arrow,
.contact-mail:hover .arrow {
  transform: translate(3px, -3px);
}
.text-link .arrow {
  transform: none;
}
.text-link:hover .arrow {
  transform: translateX(4px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: clamp(120px, 16vh, 180px) clamp(20px, 5vw, 64px) 90px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 640px;
}
.hero-title {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.hero-title .line {
  display: block;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-size: 0.42em;
  letter-spacing: 0.01em;
  display: inline-block;
  margin-top: 10px;
  margin-left: 0.1em;
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-intro {
  max-width: 480px;
  margin-top: 22px;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-2);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3f9b62;
  box-shadow: 0 0 0 0 rgba(63, 155, 98, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 155, 98, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 155, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 155, 98, 0); }
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(260px, 26vw, 360px);
  aspect-ratio: 3 / 3.8;
  border-radius: 200px 200px 28px 28px;
  background:
    linear-gradient(160deg, var(--accent-soft), var(--bg-soft) 70%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    color-mix(in srgb, var(--ink) 6%, transparent) 14px 15px
  );
  opacity: 0.5;
}
.portrait-initials {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(72px, 8vw, 108px);
  font-style: italic;
  color: var(--ink);
  opacity: 0.85;
}
.portrait-caption {
  position: absolute;
  bottom: 22px;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 0.3em;
  line-height: 1.7;
  text-align: center;
  color: var(--muted);
}

.orbit {
  position: absolute;
  border: 1px dashed var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one {
  width: clamp(320px, 33vw, 460px);
  aspect-ratio: 1;
  animation: spin 40s linear infinite;
}
.orbit-two {
  width: clamp(380px, 40vw, 560px);
  aspect-ratio: 1;
  border-style: solid;
  border-color: color-mix(in srgb, var(--line) 55%, transparent);
  animation: spin 70s linear infinite reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.badge {
  position: absolute;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
.badge-top {
  top: 10%;
  right: 4%;
  animation: float 6s ease-in-out infinite;
}
.badge-bottom {
  bottom: 12%;
  left: 2%;
  animation: float 7s ease-in-out infinite 0.6s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-footer {
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  right: clamp(20px, 5vw, 64px);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint {
  position: relative;
  padding-left: 22px;
}
.scroll-hint::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--muted);
}

/* ---------- sections ---------- */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-index {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  gap: 7px;
  align-items: center;
  transition: color 0.3s ease;
}
.section-link:hover {
  color: var(--accent);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.about-lead {
  grid-column: 1 / 7;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.about-body {
  grid-column: 8 / 13;
  padding-top: 6px;
  color: var(--ink-2);
  font-size: 15.5px;
}
.about-body p + p {
  margin-top: 16px;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 20px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats > div {
  padding: clamp(20px, 3vw, 34px);
  background: var(--bg);
  transition: background-color 0.4s ease;
}
.stats > div:hover {
  background: var(--bg-soft);
}
.stats dt {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stats sup {
  font-size: 0.4em;
  color: var(--accent);
  top: -0.6em;
  position: relative;
}
.stats dd {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.work-card--wide {
  grid-column: 1 / -1;
}
.work-link {
  display: block;
  padding: clamp(16px, 2vw, 24px);
}
.work-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 10px);
  overflow: hidden;
}
.work-card--wide .work-media {
  aspect-ratio: 21 / 8;
}
.media-a {
  background: linear-gradient(135deg, #dbe3d2, #a9bda4);
}
.media-b {
  background: linear-gradient(135deg, #d9d3e6, #a9a0c4);
}
.media-c {
  background: linear-gradient(135deg, #ecd9c2, #cfa27a);
}
.media-label {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(27, 26, 23, 0.6);
}

.media-mock {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  width: 60%;
  height: 55%;
}
.media-mock span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: rgba(27, 26, 23, 0.18);
  backdrop-filter: blur(2px);
  transition: transform 0.6s var(--ease);
}
.media-mock span:nth-child(1) { height: 48%; }
.media-mock span:nth-child(2) { height: 82%; }
.media-mock span:nth-child(3) { height: 64%; }
.work-card:hover .media-mock span:nth-child(2) { transform: scaleY(1.08); transform-origin: bottom; }

.media-phone {
  width: 34%;
  aspect-ratio: 9 / 16;
  max-height: 70%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 5px solid rgba(27, 26, 23, 0.35);
  box-shadow: 0 20px 40px -20px rgba(27, 26, 23, 0.6);
  transition: transform 0.6s var(--ease);
}
.work-card:hover .media-phone {
  transform: translateY(-8px) rotate(-2deg);
}

.media-type {
  font-family: var(--font-serif);
  font-size: clamp(70px, 11vw, 140px);
  line-height: 1;
  color: rgba(27, 26, 23, 0.55);
  letter-spacing: -0.04em;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .media-type {
  transform: scale(1.06) translateY(-4px);
}

.work-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 4px 8px;
}
.work-body h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work-body p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 46ch;
}
.work-year {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 4px;
}
.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-2);
}

/* ---------- timeline ---------- */
.timeline {
  border-top: 1px solid var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(26px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s ease;
}
.timeline-year {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}
.timeline-content h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 28px);
  letter-spacing: -0.01em;
}
.timeline-place {
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.timeline-content p:last-child {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---------- skills ---------- */
.skills {
  overflow: hidden;
}
.marquee {
  position: relative;
  margin: 0 calc(clamp(20px, 5vw, 64px) * -1) clamp(40px, 6vw, 70px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee span {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 40px);
  font-style: italic;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee i {
  font-style: normal;
  color: var(--accent);
  font-size: 14px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
}
.skill-col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.skill-col ul {
  margin-top: 8px;
}
.skill-col li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 14.5px;
}
.skill-col em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 64px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  right: -15%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}
.contact-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-title {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.contact-title em {
  font-style: italic;
  color: var(--accent);
}
.contact-note {
  max-width: 440px;
  margin-top: 26px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 40px clamp(20px, 5vw, 64px) 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 13.5px;
}
.socials a {
  color: var(--ink-2);
  transition: color 0.3s ease;
}
.socials a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.heart {
  color: var(--accent);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.hero-title.reveal { transition-delay: 0.05s; }
.hero-role.reveal { transition-delay: 0.12s; }
.hero-intro.reveal { transition-delay: 0.18s; }
.hero-actions.reveal { transition-delay: 0.24s; }
.hero-meta.reveal { transition-delay: 0.3s; }
.hero-visual.reveal { transition-delay: 0.15s; }

.work-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.work-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 130px;
  }
  .hero-visual {
    min-height: 380px;
    order: -1;
  }
  .hero-copy {
    max-width: 100%;
  }
  .about-lead { grid-column: 1 / -1; }
  .about-body { grid-column: 1 / -1; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: var(--bg);
    font-size: 26px;
    font-family: var(--font-serif);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    padding: 10px 0;
  }
  .nav a::after { display: none; }
  .menu-toggle[aria-expanded="true"] span { background: var(--ink); }

  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card--wide .work-media {
    aspect-ratio: 16 / 10;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  body::before { opacity: 0.25; }
  .hero {
    padding-top: 112px;
    padding-bottom: 76px;
  }
  .hero-visual {
    min-height: 320px;
  }
  .portrait {
    width: min(72vw, 300px);
  }
  .badge-top { right: 0; }
  .badge-bottom { left: 0; }
  .hero-footer .hero-coord { display: none; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .stats > div { padding: 20px; }
  .contact-actions .btn { flex: 1; justify-content: center; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

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