:root {
  --bg: #070807;
  --panel: rgba(17, 19, 19, 0.78);
  --panel-solid: #101212;
  --text: #f4f1e8;
  --muted: #a9aea8;
  --soft: #71786f;
  --line: rgba(244, 241, 232, 0.14);
  --accent: #82f3df;
  --accent-2: #ff6a3d;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 7, 0.24), var(--bg) 720px),
    radial-gradient(circle at 20% 0%, rgba(130, 243, 223, 0.09), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 32px), var(--max));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 8, 7, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(130, 243, 223, 0.42);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px 24px 78px;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  left: auto;
  right: clamp(18px, 6vw, 120px);
  top: clamp(96px, 12vh, 150px);
  width: min(72vw, 1180px);
  height: min(74vh, 760px);
  object-fit: contain;
  object-position: center;
  opacity: 0.38;
  filter: blur(10px) saturate(0.82) brightness(0.86);
  transform: rotate(-3deg);
  border-radius: 18px;
  mask-image: radial-gradient(ellipse at 56% 48%, #000 0%, rgba(0, 0, 0, 0.82) 44%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 56% 48%, #000 0%, rgba(0, 0, 0, 0.82) 44%, transparent 78%);
}

.hero-shade {
  background:
    radial-gradient(circle at 68% 32%, rgba(130, 243, 223, 0.1), transparent 34%),
    linear-gradient(90deg, rgba(7, 8, 7, 0.98) 0%, rgba(7, 8, 7, 0.82) 48%, rgba(7, 8, 7, 0.68) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 7, 0.18) 46%, rgba(7, 8, 7, 0.64) 100%);
  backdrop-filter: blur(2px);
}

.hero-content-grid {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 58px;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 1.06;
  font-weight: 780;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.12;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(244, 241, 232, 0.82);
  font-size: clamp(17px, 1.5vw, 20px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 34px;
}

.hero-tags span,
.experience-column em {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 241, 232, 0.84);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(130, 243, 223, 0.6);
  background: var(--accent);
  color: #06100e;
  box-shadow: 0 0 30px rgba(130, 243, 223, 0.18);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 84px;
  z-index: 2;
  width: min(330px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 8, 7, 0.66);
  backdrop-filter: blur(18px);
}

.hero-panel span,
.work-card span,
.featured-copy span,
.method-card span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
}

.hero-panel p,
.featured-copy p,
.work-card p,
.method-card p,
.proof-strip p,
.about-copy p {
  color: var(--muted);
}

.hero-profile {
  display: grid;
  gap: 16px;
}

.hero-profile-card,
.hero-profile-summary,
.hero-profile-meta article,
.experience-profile-card,
.experience-stat,
.experience-column {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(9, 11, 11, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-profile-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.hero-profile-photo {
  aspect-ratio: 1 / 1.16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef3ee;
}

.hero-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.hero-profile-card span,
.hero-profile-summary span,
.experience-profile-card span,
.experience-column span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-profile-card h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3vw, 42px);
}

.hero-profile-card p,
.hero-profile-summary p,
.experience-profile-card p,
.experience-stat span,
.experience-column p {
  margin-bottom: 0;
  color: var(--muted);
}

.hero-profile-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-profile-meta article {
  min-height: 150px;
  padding: 20px;
}

.hero-profile-meta strong,
.experience-stat strong {
  display: block;
  margin-bottom: 16px;
  color: #fffdf4;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
}

.hero-profile-meta span {
  color: var(--muted);
  font-size: 14px;
}

.hero-profile-summary {
  padding: 20px;
}

.hero-profile-summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 116px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 48px;
}

.about .section-head {
  max-width: 980px;
}

.about .section-head h2 {
  color: #fffdf4;
  font-size: clamp(54px, 8.4vw, 108px);
  line-height: 1.04;
  text-shadow: 0 18px 64px rgba(255, 255, 255, 0.08);
}

.section-head-row {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 48px;
  align-items: end;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.14;
  font-weight: 760;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.25;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.profile-card,
.about-copy,
.metrics,
.method-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-card,
.about-copy,
.metrics {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.profile-card {
  display: grid;
  gap: 24px;
  padding: 22px;
}

.avatar-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(130, 243, 223, 0.12), rgba(255, 106, 61, 0.08)),
    url("./assets/vertical-computer.jpg") center / cover;
  overflow: hidden;
}

.avatar-card span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.24);
  border-radius: 50%;
  background: rgba(7, 8, 7, 0.62);
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
}

.avatar-card strong {
  max-width: 240px;
  font-size: 38px;
  line-height: 1;
}

.about-copy {
  padding: 38px;
  font-size: 18px;
}

.contact-line {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-line span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 13px;
}

.metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.metrics article {
  padding: 26px;
  border-right: 1px solid var(--line);
}

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

.metrics strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-2);
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
}

.featured-work {
  position: relative;
  display: block;
  min-height: 520px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-solid);
}

.featured-work img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: #050606;
}

.featured-work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 7, 0.84), transparent 72%);
}

.featured-copy {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 1;
  max-width: 470px;
}

.featured-copy h3 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 4.2vw, 58px);
}

.featured-copy em {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(130, 243, 223, 0.34);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

.works-mid-title {
  display: grid;
  place-items: center;
  margin: 52px 0 22px;
}

.works-mid-title h3 {
  margin: 0;
  color: #fffdf4;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
}

.work-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.work-card:hover,
.method-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 243, 223, 0.36);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #050606;
}

.work-card div {
  padding: 20px;
}

.work-card h3 {
  margin-top: 8px;
}

.avatar-real {
  min-height: 380px;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(130, 243, 223, 0.12), rgba(255, 106, 61, 0.08)),
    #f4f5f2;
}

.avatar-real img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.experience {
  padding-top: 108px;
}

.experience-head {
  margin-bottom: 48px;
}

.experience-head h2 {
  max-width: 1120px;
  font-size: clamp(48px, 6.8vw, 96px);
  line-height: 1.08;
}

.experience-dashboard {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 34px;
}

.experience-profile-card,
.experience-stat {
  min-height: 238px;
  padding: 28px;
}

.experience-profile-card h3 {
  margin-bottom: 18px;
  font-size: clamp(26px, 2.6vw, 36px);
}

.experience-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.experience-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-column {
  min-height: 310px;
  padding: 34px 30px;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(7, 8, 7, 0.54);
}

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

.experience-column h3 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 42px);
}

.experience-column div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.experience-column:nth-child(3) div {
  margin-top: 52px;
}

.skill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -16px 0 34px;
}

.skill-strip span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.portfolio-lane {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(130, 243, 223, 0.045) 1px, transparent 1px) 0 0 / 82px 82px,
    linear-gradient(90deg, rgba(130, 243, 223, 0.035) 1px, transparent 1px) 0 0 / 82px 82px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(8, 10, 10, 0.82);
  overflow: hidden;
}

.portfolio-lane-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 30px 12px;
}

.portfolio-lane-head h3 {
  margin: 0;
  color: #fffdf4;
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1;
}

.portfolio-wall {
  position: relative;
  overflow: hidden;
  padding: 18px 0 32px;
  cursor: grab;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.portfolio-wall:active {
  cursor: grabbing;
}

.portfolio-wall-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: portfolioAutoScroll 46s linear infinite;
  will-change: transform;
}

.portfolio-wall-set {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(210px, 18vw, 310px);
  grid-template-rows: repeat(3, clamp(150px, 13.6vw, 222px));
  gap: 18px;
  flex: 0 0 auto;
  padding-inline: 30px;
}

.portfolio-wall:hover .portfolio-wall-track,
.portfolio-wall:focus-within .portfolio-wall-track {
  animation-play-state: paused;
}

.portfolio-tile {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #050606;
  transition: transform 180ms ease, border-color 180ms ease;
}

.portfolio-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 243, 223, 0.38);
}

.portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050606;
  opacity: 0.88;
  filter: saturate(0.92) contrast(1.04);
  transition: opacity 180ms ease, transform 260ms ease;
}

.portfolio-tile:hover img {
  opacity: 1;
  transform: scale(1.025);
}

.portfolio-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 5, 5, 0.24), transparent 38%, rgba(4, 5, 5, 0.26)),
    linear-gradient(90deg, rgba(4, 5, 5, 0.18), transparent 62%);
}

.portfolio-tile span {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(130, 243, 223, 0.18);
  border-radius: 6px;
  background: rgba(7, 9, 9, 0.72);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

@keyframes portfolioAutoScroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

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

.method-card {
  min-height: 260px;
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.method-card span {
  color: var(--accent-2);
}

.method-card h3 {
  margin-top: 50px;
}

.proof {
  padding-top: 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.proof-strip img {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  object-fit: contain;
  background: #050606;
}

.proof-strip h2 {
  font-size: clamp(32px, 3.4vw, 46px);
}

.proof-strip div {
  padding: 24px 24px 24px 0;
}

.contact {
  padding: 120px 24px 42px;
  background:
    linear-gradient(180deg, rgba(7, 8, 7, 0), var(--bg) 28%),
    var(--bg);
}

.contact-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 8, 7, 0.78);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: center;
}

.contact-inner h2 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(42px, 5.8vw, 80px);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  color: var(--muted);
}

.contact-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.qr-card {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.qr-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.project-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(130, 243, 223, 0.09), transparent 34%),
    linear-gradient(180deg, #0b0c0c, var(--bg));
}

.project-hero {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 168px 0 58px;
}

.project-hero h1 {
  max-width: 960px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 94px);
}

.project-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.detail-gallery {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.detail-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.detail-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #050606;
}

.detail-wide {
  grid-column: span 2;
}

.detail-wide img {
  height: auto;
}

.detail-tall {
  grid-row: span 2;
}

.detail-tall img {
  height: auto;
  object-position: top;
}

.detail-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
}

.render-gallery-grid {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.render-gallery-card {
  position: relative;
  min-height: 320px;
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #050606;
  transition: transform 180ms ease, border-color 180ms ease;
}

.render-gallery-card:target {
  border-color: rgba(130, 243, 223, 0.78);
  box-shadow: 0 0 0 1px rgba(130, 243, 223, 0.22), 0 22px 70px rgba(130, 243, 223, 0.08);
}

.render-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 243, 223, 0.42);
}

.render-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050606;
}

.render-gallery-card span {
  position: absolute;
  left: 14px;
  top: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(130, 243, 223, 0.18);
  border-radius: 6px;
  background: rgba(7, 9, 9, 0.72);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.related-projects {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-projects a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease;
}

.related-projects a:hover {
  transform: translateY(-2px);
  border-color: rgba(130, 243, 223, 0.42);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, var(--max));
    margin: 34px auto 0;
  }

  .section-head-row,
  .about-grid,
  .proof-strip,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .qr-card {
    width: 220px;
  }

  .work-grid,
  .method-grid,
  .experience-dashboard,
  .experience-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-profile-card {
    grid-column: span 2;
  }

  .experience-columns {
    border: 0;
    gap: 18px;
  }

  .experience-column,
  .experience-column + .experience-column {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .proof-strip div {
    padding: 0 8px 18px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 8px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 116px 18px 44px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 8, 7, 0.72), rgba(7, 8, 7, 0.96) 74%),
      linear-gradient(90deg, rgba(7, 8, 7, 0.86), rgba(7, 8, 7, 0.42));
  }

  .hero-bg {
    right: -16vw;
    top: 84px;
    width: 118vw;
    height: 48vh;
    opacity: 0.22;
    filter: blur(12px) saturate(0.76) brightness(0.82);
  }

  h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero h1 {
    font-size: clamp(34px, 9.5vw, 48px);
    line-height: 1.16;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-profile-card {
    grid-template-columns: 104px 1fr;
  }

  .hero-profile-meta,
  .experience-dashboard,
  .experience-columns {
    grid-template-columns: 1fr;
  }

  .experience-profile-card {
    grid-column: auto;
  }

  .experience-head h2 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .experience-profile-card,
  .experience-stat,
  .experience-column {
    min-height: auto;
    padding: 24px;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 78px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .about .section-head h2 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .about-copy,
  .contact-inner {
    padding: 24px;
  }

  .metrics,
  .work-grid,
  .method-grid,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .portfolio-lane-head {
    align-items: start;
    flex-direction: column;
    padding: 24px 18px 4px;
  }

  .portfolio-wall {
    padding: 14px 0 24px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .portfolio-wall-track {
    animation-duration: 38s;
  }

  .portfolio-wall-set {
    grid-auto-columns: minmax(180px, 58vw);
    grid-template-rows: repeat(3, 150px);
    gap: 12px;
    padding-inline: 18px;
  }

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

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

  .featured-work,
  .featured-work img {
    min-height: 430px;
  }

  .featured-work::after {
    background: linear-gradient(0deg, rgba(7, 8, 7, 0.94), rgba(7, 8, 7, 0.18));
  }

  .featured-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .proof-strip {
    padding: 12px;
  }

  .proof-strip img {
    height: 250px;
  }

  .proof-strip h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .contact {
    padding: 80px 14px 28px;
  }

  .contact-inner {
    gap: 24px;
  }

  .contact-inner h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .qr-card {
    width: min(100%, 260px);
  }

  .project-hero {
    width: min(calc(100% - 28px), var(--max));
    padding: 132px 0 40px;
  }

  .detail-gallery {
    width: min(calc(100% - 28px), var(--max));
  }

  .render-gallery-grid {
    width: min(calc(100% - 28px), var(--max));
    grid-template-columns: 1fr;
  }

  .detail-wide,
  .detail-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .detail-card img,
  .detail-wide img,
  .detail-tall img {
    height: auto;
    max-height: none;
  }

  .related-projects {
    width: min(calc(100% - 28px), var(--max));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

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