:root {
  --bg: #050505;
  --panel: #101010;
  --ink: #f4f0e8;
  --muted: rgba(244, 240, 232, 0.62);
  --line: rgba(244, 240, 232, 0.16);
  --hot: #ff4f1f;
  --gold: #d6b36a;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  z-index: 10;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.site-nav {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(18px, 4vw, 58px);
  mix-blend-mode: difference;
}

.brand,
.site-nav a {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.site-nav nav { display: flex; gap: clamp(16px, 3vw, 36px); }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #000;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .76;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.18) 48%, rgba(0,0,0,.74)),
    linear-gradient(180deg, rgba(0,0,0,.08), #050505 96%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20vh clamp(18px, 4vw, 58px) 8vh;
}

.eyebrow,
.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 32px 0 0;
  display: grid;
  gap: 4px;
  line-height: .78;
}

.hero h1 span {
  font-size: clamp(76px, 17vw, 238px);
  font-weight: 900;
  letter-spacing: -.02em;
}

.hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 240, 232, .7);
  font-size: clamp(52px, 11vw, 146px);
  font-style: normal;
  font-weight: 900;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 54px;
}

.hero-bottom p {
  max-width: 690px;
  margin: 0;
  color: rgba(244, 240, 232, .78);
  font-size: clamp(20px, 2.8vw, 34px);
  line-height: 1.24;
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill.light {
  background: var(--ink);
  color: #050505;
}

section { position: relative; }

.profile-section,
.recognition-section,
.work-section,
.frames-section,
.contact-section {
  padding: 104px clamp(18px, 4vw, 58px);
}

.section-title {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-title span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 92px);
  line-height: .86;
  text-transform: uppercase;
}

.section-title.compact h2 { font-size: clamp(30px, 5vw, 70px); }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: center;
}

.portrait {
  margin: 0;
  border: 1px solid var(--line);
  padding: 10px;
  background: #0b0b0b;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.profile-copy p {
  max-width: 880px;
  margin: 0 0 24px;
  color: rgba(244, 240, 232, .82);
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.22;
  font-weight: 650;
}

.facts,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.facts span,
.tag-list span {
  border: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rail {
  display: grid;
  grid-template-columns: .32fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.brand-list span {
  min-height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: rgba(244,240,232,.72);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

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

.project-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080808;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.2) 42%, rgba(0,0,0,.86));
}

.project-card:hover img { transform: scale(1.045); }

.index {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.project-copy {
  position: absolute;
  z-index: 2;
  inset: auto 18px 18px;
}

.project-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 8px 0 6px;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: .92;
}

.project-copy p {
  margin: 0;
  color: rgba(244,240,232,.72);
  font-size: 15px;
  line-height: 1.4;
}

.frames-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.frame {
  padding: 0;
  border: 1px solid var(--line);
  background: #080808;
  cursor: pointer;
  overflow: hidden;
}

.frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .45s ease;
}

.frame:hover img { transform: scale(1.04); }

.contact-section {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 980px;
  margin: 22px 0 20px;
  font-size: clamp(38px, 7vw, 112px);
  line-height: .92;
}

.contact-section p {
  margin: 0;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 1px solid var(--line);
  padding: 0;
  background: #060606;
  color: var(--ink);
}

.project-dialog::backdrop { background: rgba(0,0,0,.82); }

.close-dialog {
  position: sticky;
  z-index: 4;
  top: 12px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0,0,0,.62);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .7fr);
  gap: 24px;
  padding: 26px;
  align-items: end;
}

.dialog-head img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dialog-head h2 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: .9;
}

.dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.dialog-frames {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 26px 26px;
}

.dialog-frames img,
.single-frame img {
  width: 100%;
  object-fit: cover;
}

.single-frame { padding: 26px; }

.load-error { color: var(--hot); }

@media (max-width: 900px) {
  .site-nav nav { display: none; }
  .hero-bottom,
  .contact-section,
  .rail,
  .profile-grid,
  .dialog-head {
    grid-template-columns: 1fr;
    display: grid;
  }
  .project-grid,
  .frames-grid,
  .dialog-frames {
    grid-template-columns: 1fr;
  }
  .brand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { min-height: 360px; }
}
