:root {
  --ink: #171513;
  --muted: #766b5c;
  --paper: #e7d7bf;
  --panel: #f5ebd8;
  --line: rgba(43, 31, 22, 0.18);
  --green: #234a25;
  --green-deep: #102714;
  --gold: #d99b3d;
  --coral: #7a292e;
  --blue: #315c66;
  --night: #111416;
  --wood: #8d5d2a;
  --shadow: 0 26px 78px rgba(36, 24, 16, 0.2);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(43, 31, 22, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 31, 22, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.62;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: clamp(16px, 4vw, 52px);
  right: clamp(16px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.brand-mark,
.main-nav {
  pointer-events: auto;
  background: rgba(245, 235, 216, 0.82);
  border: 1px solid rgba(43, 31, 22, 0.14);
  box-shadow: 0 12px 34px rgba(36, 24, 16, 0.12);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-deep);
  font-weight: 900;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 4px;
  border-radius: 999px;
  padding: 5px;
}

.main-nav a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.main-nav a:hover {
  background: rgba(35, 74, 37, 0.12);
  color: var(--green-deep);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(40px, 5.5vw, 96px);
  align-items: center;
  overflow: hidden;
  padding: 116px clamp(22px, 6vw, 96px) 84px;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, rgba(16, 39, 20, 0.16), transparent 42%),
    radial-gradient(circle at 86% 14%, rgba(217, 155, 61, 0.34), transparent 24%),
    radial-gradient(circle at 8% 92%, rgba(122, 41, 46, 0.16), transparent 26%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(43, 31, 22, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 31, 22, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
  pointer-events: none;
}

.hero-copy,
.portrait-stage {
  position: relative;
  z-index: 1;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(68px, 11vw, 156px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-statement {
  margin: 28px 0 0;
  max-width: 600px;
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 22px);
}

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

.button,
.filter,
.lang-toggle button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.filter:hover,
.lang-toggle button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button.ghost {
  background: rgba(245, 235, 216, 0.68);
  color: var(--ink);
}

.portrait-stage {
  min-height: 640px;
}

.portrait-stage::before {
  position: absolute;
  inset: 76px 4px auto auto;
  width: min(74vw, 560px);
  aspect-ratio: 1;
  border-radius: 34% 66% 42% 58%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  content: "";
  transform: rotate(-6deg);
  opacity: 0.92;
}

.portrait-stage::after {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 74%;
  height: 178px;
  background: repeating-linear-gradient(
    -12deg,
    rgba(69, 48, 29, 0.16),
    rgba(69, 48, 29, 0.16) 2px,
    transparent 2px,
    transparent 16px
  );
  content: "";
  opacity: 0.45;
}

.hero-illustration {
  position: absolute;
  top: 88px;
  right: 0;
  width: min(44vw, 500px);
  aspect-ratio: 1.42;
  margin: 0;
  border: 10px solid rgba(245, 235, 216, 0.82);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-illustration::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 22, 0.16), transparent 40%),
    radial-gradient(circle at 52% 4%, rgba(217, 155, 61, 0.26), transparent 22%);
  content: "";
  pointer-events: none;
}

.hero-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  z-index: 2;
  width: 210px;
  border: 1px solid rgba(43, 31, 22, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(245, 235, 216, 0.9);
  box-shadow: 0 20px 54px rgba(36, 24, 16, 0.18);
  backdrop-filter: blur(18px);
  animation: note-float 7.5s ease-in-out infinite;
  will-change: transform;
}

.floating-note strong {
  display: block;
  font-size: 20px;
  line-height: 1.12;
}

.floating-note span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.note-top {
  top: 34px;
  left: 64px;
}

.note-mid {
  right: 0;
  top: 232px;
  animation-delay: -2.1s;
}

.note-bottom {
  left: 24px;
  bottom: 164px;
  animation-delay: -4.2s;
}

.note-side {
  right: 42px;
  bottom: 18px;
  animation-delay: -5.6s;
}

@keyframes note-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  45% {
    transform: translate3d(0, -8px, 0) rotate(0.4deg);
  }

  70% {
    transform: translate3d(5px, -3px, 0) rotate(-0.25deg);
  }
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.signal-band article {
  min-height: 156px;
  padding: 26px clamp(18px, 3vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.signal-band article:last-child {
  border-right: 0;
}

.signal-band span {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-band strong {
  display: block;
  margin-top: 18px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.18;
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(22px, 6vw, 96px);
}

.section h2 {
  margin: 0;
  max-width: 940px;
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-lead {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  margin-bottom: 36px;
}

.section-lead.compact {
  display: block;
  max-width: 940px;
}

.section-lead p:not(.section-kicker),
.contact-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

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

.about-grid article,
.expertise-map article,
.work-card,
.resume-side,
.timeline article {
  border: 1px solid var(--line);
  background: var(--panel);
}

.about-grid article {
  min-height: 250px;
  border-radius: 26px;
  padding: 28px;
}

.about-grid span {
  display: block;
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.about-grid h3,
.expertise-map h3,
.work-card h3,
.timeline h3,
.resume-side h3 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
}

.about-grid p,
.expertise-map p,
.work-card p,
.timeline p,
.resume-side p {
  margin: 0;
  color: var(--muted);
}

.expertise-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(360px, 1fr);
  gap: clamp(32px, 5vw, 80px);
  background: var(--panel);
}

.expertise-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.expertise-map article {
  border-radius: 22px;
  padding: 24px;
}

.expertise-map article:nth-child(1) {
  border-top: 8px solid var(--green);
}

.expertise-map article:nth-child(2) {
  border-top: 8px solid var(--gold);
}

.expertise-map article:nth-child(3) {
  border-top: 8px solid var(--blue);
}

.expertise-map article:nth-child(4) {
  border-top: 8px solid var(--coral);
}

.work-section {
  background: #eadcc6;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter,
.lang-toggle button {
  background: rgba(245, 235, 216, 0.86);
  color: var(--ink);
}

.filter.active,
.lang-toggle button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.work-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(36, 24, 16, 0.08);
}

.design-gallery-card {
  grid-column: 1 / -1;
}

.work-top {
  position: relative;
  display: grid;
  min-height: 124px;
  align-content: space-between;
  gap: 20px;
  padding: 22px;
  color: var(--ink);
  background: color-mix(in srgb, var(--green) 16%, var(--panel));
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 45%);
}

.work-top::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--banner-image) center / cover no-repeat;
  opacity: 0;
  transition: opacity 160ms ease;
}

.work-top.has-image::before {
  opacity: 0.42;
}

.work-top.has-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(18, 20, 22, 0.28), rgba(18, 20, 22, 0.58));
}

.work-top[data-tone="coral"] {
  background: color-mix(in srgb, var(--coral) 18%, var(--panel));
}

.work-top[data-tone="gold"] {
  background: color-mix(in srgb, var(--gold) 28%, var(--panel));
}

.work-top[data-tone="blue"] {
  background: color-mix(in srgb, var(--blue) 17%, var(--panel));
}

.work-top[data-tone="wood"] {
  background: color-mix(in srgb, var(--wood) 24%, var(--panel));
}

.work-top span {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(43, 31, 22, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.work-top strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  opacity: 0.62;
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.work-title a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.work-title a:hover {
  color: var(--green);
}

.language-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  transform: translateY(-3px);
  border: 1px solid rgba(43, 31, 22, 0.2);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  vertical-align: middle;
}

.result-line {
  color: var(--green-deep);
  font-weight: 950;
}

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

.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.work-link {
  width: max-content;
  max-width: 100%;
  color: var(--ink);
  font-weight: 950;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.qr-trigger {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border: 1px solid rgba(43, 31, 22, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  cursor: default;
}

.qr-popover {
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: calc(100% + 12px);
  width: 178px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.qr-popover img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.qr-trigger:hover .qr-popover,
.qr-trigger:focus .qr-popover,
.qr-trigger:focus-within .qr-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.design-carousel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.design-track {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 10px;
  animation: gallery-slide 36s linear infinite;
}

.design-carousel:hover .design-track {
  animation-play-state: paused;
}

.design-shot {
  width: 280px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  color: var(--ink);
  cursor: zoom-in;
  text-align: left;
}

.design-shot img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.design-shot span {
  display: block;
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

@keyframes gallery-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.now-section {
  background:
    linear-gradient(115deg, rgba(122, 41, 46, 0.14), transparent 40%),
    linear-gradient(250deg, rgba(35, 74, 37, 0.12), transparent 34%),
    #f1e4cf;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.now-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(245, 235, 216, 0.9);
  color: inherit;
  padding: 24px;
  text-decoration: none;
  box-shadow: 0 16px 46px rgba(36, 24, 16, 0.1);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.now-card::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(35, 74, 37, 0.32);
  content: "";
}

.now-card:nth-child(1)::after {
  background: rgba(35, 74, 37, 0.32);
}

.now-card:nth-child(2)::after {
  background: rgba(35, 74, 37, 0.32);
}

.now-card:nth-child(3)::after {
  background: rgba(35, 74, 37, 0.32);
}

.now-card.expect::after {
  background: rgba(35, 74, 37, 0.32);
}

.now-card:hover {
  transform: translateY(-6px);
  border-color: rgba(35, 74, 37, 0.38);
  box-shadow: 0 24px 64px rgba(36, 24, 16, 0.16);
}

.now-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.now-card .qr-trigger {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  text-transform: none;
}

.now-card h3 {
  margin: 18px 0 12px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
}

.now-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.project-meta {
  margin-top: auto !important;
  padding-top: 18px;
  color: var(--green-deep) !important;
  font-weight: 900;
}

.inline-project-link {
  color: var(--green-deep);
  font-weight: 950;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.inline-project-link.pending {
  cursor: pointer;
}

.image-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(17, 20, 22, 0.78);
}

.image-lightbox.visible {
  display: grid;
}

.image-lightbox figure {
  width: min(980px, 94vw);
  margin: 0;
}

.image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.image-lightbox figcaption {
  margin-top: 12px;
  color: #fff;
  text-align: center;
  font-weight: 900;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(245, 235, 216, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.resume-section {
  background:
    linear-gradient(115deg, rgba(35, 74, 37, 0.18), transparent 42%),
    var(--night);
  color: #fff;
}

.resume-section .section-kicker {
  color: var(--gold);
}

.resume-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}

.lang-toggle {
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}

.resume-side,
.timeline article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.resume-side {
  position: sticky;
  top: 96px;
  border-radius: 28px;
  padding: 28px;
}

.resume-side h3 {
  margin-top: 0;
  font-size: 34px;
}

.resume-side p {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 850;
}

.resume-intro {
  margin-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 15px;
  font-weight: 760 !important;
  line-height: 1.75;
}

.resume-side dl {
  margin: 26px 0 0;
}

.resume-side dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.resume-side dd {
  margin: 5px 0 18px;
  color: rgba(255, 255, 255, 0.8);
}

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

.timeline article {
  border-radius: 22px;
  overflow: hidden;
}

.timeline-trigger {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  width: 100%;
  min-height: 168px;
  border: 0;
  padding: 24px 54px 24px 24px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  position: relative;
}

.timeline-trigger::after {
  position: absolute;
  top: 26px;
  right: 24px;
  content: "+";
  color: var(--gold);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.company-logo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.logo-health {
  background: linear-gradient(135deg, var(--gold), var(--night));
}

.logo-free {
  background: linear-gradient(135deg, var(--green), var(--night));
}

.logo-robotics {
  background: linear-gradient(135deg, var(--green), #0f2214);
}

.logo-ai {
  background: linear-gradient(135deg, var(--blue), #141819);
}

.logo-video {
  background: linear-gradient(135deg, var(--wood), #2a1a11);
}

.logo-live {
  background: linear-gradient(135deg, var(--coral), #281014);
}

.experience-copy {
  display: block;
}

.timeline-trigger[aria-expanded="true"]::after {
  content: "-";
}

.timeline-trigger:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.timeline time {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 950;
}

.timeline h3 {
  color: #fff;
}

.timeline-summary {
  display: block;
  grid-column: 2;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 800;
}

.timeline-detail {
  display: none;
  margin: -10px 24px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline article.expanded .timeline-detail {
  display: block;
}

.timeline p {
  color: rgba(255, 255, 255, 0.74);
}

.timeline-detail ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.timeline-detail li + li {
  margin-top: 9px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 560px);
  gap: 40px;
  align-items: center;
}

.email-link {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ink);
  border-radius: 26px;
  padding: 22px 24px;
  background: rgba(245, 235, 216, 0.9);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 950;
  overflow-wrap: anywhere;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(36, 24, 16, 0.12);
}

.email-link img {
  width: 34px;
  height: 34px;
  filter: invert(1);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .hero,
  .section-lead,
  .expertise-section,
  .contact-section,
  .resume-layout {
    grid-template-columns: 1fr;
  }

  .portrait-stage {
    min-height: 560px;
  }

  .signal-band,
  .about-grid,
  .now-grid,
  .work-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-side {
    position: static;
  }

}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    align-items: flex-start;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 272px;
    border-radius: 22px;
  }

  .main-nav a {
    padding: 6px 8px;
    font-size: 12px;
  }

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

  .hero h1 {
    max-width: 100%;
    font-size: clamp(52px, 15vw, 64px);
    overflow-wrap: break-word;
  }

  .hero-statement {
    font-size: clamp(30px, 10vw, 44px);
  }

  .portrait-stage {
    min-height: 480px;
  }

  .hero-illustration {
    top: 34px;
    right: 10px;
    width: min(88vw, 380px);
    border-width: 7px;
    border-radius: 24px;
  }

  .portrait-stage::before {
    inset: 18px 0 auto auto;
    width: min(78vw, 330px);
  }

  .portrait-stage::after {
    bottom: 24px;
    height: 120px;
  }

  .floating-note {
    width: 148px;
    padding: 12px 13px;
    border-radius: 16px;
  }

  .floating-note strong {
    font-size: 18px;
  }

  .floating-note span {
    font-size: 12px;
  }

  .note-top {
    top: 0;
  }

  .note-mid {
    top: 238px;
  }

  .note-bottom {
    left: 16px;
    bottom: 124px;
  }

  .note-side {
    right: 8px;
    bottom: 46px;
  }

  .signal-band,
  .about-grid,
  .expertise-map,
  .now-grid,
  .work-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .now-card {
    min-height: 220px;
  }

  .signal-band article {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .signal-band article:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 68px;
  }

  .resume-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .email-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
