:root {
  color: #050505;
  background: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  --page-pad: clamp(20px, 4vw, 58px);
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #ffffff;
  color: #050505;
}

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

.page-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: #ffffff;
}

.nav {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 92px;
  padding: 24px var(--page-pad) 0;
  color: #050505;
}

.brand {
  width: max-content;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  font-size: 14px;
  font-weight: 520;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #050505;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.button-dark {
  background: #050505;
  color: #ffffff;
}

.button-light {
  min-height: 46px;
  padding: 0 22px;
  background: #ffffff;
  color: #050505;
  gap: 8px;
}

.hero {
  position: absolute;
  inset: 92px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  grid-template-rows: 1fr;
  padding: 0 var(--page-pad) var(--page-pad);
}

.copy-layer {
  position: relative;
  z-index: 4;
  align-self: start;
  padding-top: clamp(20px, 4vh, 44px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(28px, 4.8vh, 44px);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 580;
  line-height: 1;
}

.kicker em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}

.diamond {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #050505;
  transform: rotate(45deg);
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(54px, 6.35vw, 96px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.fold-line {
  margin-top: 0.04em;
  font-family: var(--serif);
  font-size: 1.16em;
  font-style: italic;
  font-weight: 500;
}

.intro-copy {
  position: absolute;
  left: var(--page-pad);
  bottom: var(--page-pad);
  z-index: 6;
  width: min(430px, 42vw);
}

.intro-copy p {
  margin: 0 0 22px;
  color: #050505;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  font-weight: 450;
}

.visual-stage {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: stretch;
  justify-self: stretch;
  min-width: 0;
  overflow: visible;
}

.source-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  right: clamp(-100px, -6vw, -44px);
  top: 50%;
  width: min(64vw, 980px);
  height: min(82vh, 860px);
  transform: translateY(-48%);
  object-fit: contain;
  filter: none;
}

.camera-card {
  position: absolute;
  left: min(calc(var(--page-pad) + 470px), calc(100vw - 330px));
  bottom: var(--page-pad);
  z-index: 10;
  width: clamp(200px, 16vw, 236px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #050505;
  border-radius: 0;
  background: #ffffff;
}

.camera-feed,
.hand-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.hand-overlay {
  pointer-events: none;
}

.camera-button {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #050505;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}

.camera-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  max-width: 120px;
  color: #050505;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  text-align: right;
}

.gesture-debug {
  display: none;
}

@media (max-width: 1020px) {
  .page-shell {
    min-height: 720px;
  }

  .nav {
    grid-template-columns: 1fr auto;
    height: 84px;
    padding-top: 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .hero {
    inset-top: 84px;
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }

  .copy-layer {
    padding-top: 26px;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(54px, 13vw, 104px);
  }

  .visual-stage {
    position: absolute;
    inset: 210px 0 104px auto;
    width: 54vw;
    min-width: 300px;
  }

  .hero-canvas {
    right: -72px;
    width: min(76vw, 720px);
    height: 66vh;
  }

  .camera-card {
    left: var(--page-pad);
    top: auto;
    bottom: 168px;
    width: clamp(166px, 34vw, 240px);
  }

  .intro-copy {
    width: min(390px, calc(100vw - var(--page-pad) * 2));
  }
}

@media (max-width: 700px) {
  .page-shell {
    min-height: 760px;
  }

  .nav {
    grid-template-columns: 1fr auto;
    gap: 12px;
    height: 76px;
  }

  .nav-actions .button:first-child {
    display: none;
  }

  .button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero {
    inset: 76px 0 0;
  }

  .kicker {
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(45px, 15vw, 74px);
    line-height: 0.92;
  }

  .visual-stage {
    inset: 430px -36px 218px auto;
    width: 52vw;
    min-width: 210px;
    opacity: 0.95;
  }

  .hero-canvas {
    right: -52px;
    width: 62vw;
    height: 28vh;
  }

  .camera-card {
    bottom: 178px;
    width: min(190px, 44vw);
  }

  .intro-copy {
    bottom: 22px;
  }

  .intro-copy p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.45;
  }
}
