:root {
  --ink: #f5f2ea;
  --muted: #b8c3c8;
  --paper: #101214;
  --panel: #171b1d;
  --line: rgba(245, 242, 234, 0.14);
  --gold: #d5a03f;
  --cyan: #61d2d5;
  --red: #cc3f32;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

.page-shell {
  width: 100%;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 96vh;
  min-width: 0;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px clamp(18px, 4vw, 58px) 28px;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  z-index: -3;
}

.hero__shade {
  z-index: -2;
  background:
    radial-gradient(circle at 75% 28%, rgba(97, 210, 213, 0.22), transparent 30%),
    linear-gradient(90deg, rgba(9, 10, 11, 0.94) 0%, rgba(9, 10, 11, 0.68) 45%, rgba(9, 10, 11, 0.28) 100%),
    linear-gradient(0deg, rgba(16, 18, 20, 1), rgba(16, 18, 20, 0.08) 26%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.brand,
.nav__links,
.audio-btn {
  border: 1px solid var(--line);
  background: rgba(14, 17, 18, 0.56);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-weight: 800;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #15110a;
  font-size: 13px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px;
  border-radius: 999px;
}

.nav__links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav__links a:hover {
  background: rgba(245, 242, 234, 0.1);
  color: var(--ink);
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.audio-btn__icon {
  color: var(--cyan);
}

.hero__content {
  align-self: center;
  width: min(900px, 100%);
  max-width: calc(100vw - clamp(36px, 8vw, 116px));
  min-width: 0;
  padding: 80px 0 54px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 900px;
  font-size: clamp(48px, 6.8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

h1 span {
  display: block;
}

.hero__lead {
  max-width: 620px;
  color: #dde5e4;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.btn--primary {
  background: var(--red);
  border-color: transparent;
}

.btn--ghost {
  background: rgba(245, 242, 234, 0.08);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(920px, 100%);
  max-width: calc(100vw - clamp(36px, 8vw, 116px));
  border: 1px solid var(--line);
  background: var(--line);
}

.stat-strip div {
  min-height: 104px;
  padding: 20px;
  background: rgba(13, 16, 17, 0.72);
  backdrop-filter: blur(16px);
}

.stat-strip strong {
  display: block;
  font-size: 30px;
  color: var(--gold);
}

.stat-strip span {
  color: var(--muted);
  font-weight: 600;
}

.intro,
.experience,
.contact {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 58px);
}

.intro h2,
.contact h2 {
  max-width: 980px;
  font-size: clamp(32px, 5vw, 74px);
  line-height: 1.02;
}

.intro p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

.work-card {
  min-height: 430px;
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.work-card:last-child {
  border-right: 0;
}

.work-card__visual {
  position: relative;
  height: 174px;
  margin-bottom: 36px;
  overflow: hidden;
  border: 1px solid rgba(245, 242, 234, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgba(97, 210, 213, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 210, 213, 0.17) 1px, transparent 1px),
    #101416;
  background-size: 26px 26px;
}

.work-card__visual span {
  position: absolute;
  display: block;
  border: 2px solid currentColor;
}

.work-card--map .work-card__visual {
  color: var(--cyan);
}

.work-card--map span:nth-child(1) {
  inset: 32px 28px 42px 34px;
  border-radius: 45% 55% 52% 48%;
}

.work-card--map span:nth-child(2) {
  inset: 58px 70px 62px 74px;
  border-radius: 48% 52% 40% 60%;
}

.work-card--map span:nth-child(3) {
  width: 46px;
  height: 46px;
  right: 42px;
  top: 38px;
  border-radius: 50%;
  background: rgba(97, 210, 213, 0.2);
}

.work-card--game .work-card__visual {
  color: var(--red);
}

.work-card--game span:nth-child(1) {
  left: 28px;
  bottom: 28px;
  width: 72%;
  height: 44px;
  transform: skewX(-24deg);
  background: rgba(204, 63, 50, 0.22);
}

.work-card--game span:nth-child(2) {
  right: 34px;
  top: 30px;
  width: 54px;
  height: 84px;
  background: rgba(213, 160, 63, 0.18);
}

.work-card--game span:nth-child(3) {
  left: 52px;
  top: 48px;
  width: 96px;
  height: 50px;
}

.work-card--survey .work-card__visual {
  color: var(--gold);
}

.work-card--survey span:nth-child(1) {
  left: 50%;
  top: 28px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(213, 160, 63, 0.25);
}

.work-card--survey span:nth-child(2),
.work-card--survey span:nth-child(3) {
  width: 2px;
  height: 110px;
  top: 62px;
  border: 0;
  background: currentColor;
  transform-origin: top;
}

.work-card--survey span:nth-child(2) {
  left: 49%;
  transform: rotate(22deg);
}

.work-card--survey span:nth-child(3) {
  left: 51%;
  transform: rotate(-22deg);
}

.work-card h3,
.timeline h3 {
  font-size: 24px;
  line-height: 1.15;
}

.work-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 800;
}

.contact {
  align-items: start;
  background: #d5a03f;
  color: #101214;
}

.contact .section-label {
  color: #6b1f19;
}

.contact__panel {
  display: grid;
  gap: 10px;
  padding: 28px;
  border: 1px solid rgba(16, 18, 20, 0.22);
  background: rgba(255, 255, 255, 0.24);
}

.contact__panel a,
.contact__panel span {
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 800;
}

.audio-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 36px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 18, 20, 0.9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.audio-consent button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--cyan);
  color: #071112;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .nav {
    display: grid;
    grid-template-columns: auto auto;
    align-items: stretch;
  }

  .nav__links {
    order: 3;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border-radius: 8px;
  }

  .nav__links a {
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
  }

  .stat-strip,
  .work-grid,
  .intro,
  .experience,
  .contact {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .nav {
    width: 320px;
    max-width: calc(100vw - 40px);
    justify-content: normal;
  }

  .nav__links {
    max-width: calc(100vw - 40px);
  }

  .audio-btn {
    justify-self: end;
  }

  .nav__links a {
    font-size: 13px;
  }

  .hero__content,
  .stat-strip {
    width: 320px;
    max-width: calc(100vw - 40px);
  }

  .brand span:last-child,
  #audio-label {
    display: none;
  }

  h1 {
    font-size: 30px;
    line-height: 1.04;
  }

  h1 span {
    display: block;
  }

  .hero__lead {
    font-size: 16px;
  }

  .stat-strip div {
    min-height: 92px;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
