:root {
  --bg: #000;
  --ink: #f5f5f0;
  --muted: #8a8a84;
  --line: rgba(245, 245, 240, 0.14);
  --soft: rgba(245, 245, 240, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Syne", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code {
  font-size: 0.92em;
  padding: 0.12em 0.35em;
  border-radius: 0.3em;
  background: var(--soft);
  border: 1px solid var(--line);
}

.veil {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(255, 255, 255, 0.035), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #000 40%, #000 100%);
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

/* —— Top bar —— */
.top {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 40;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.82);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.logo img {
  border-radius: 8px;
}

.top nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.top nav a:hover {
  color: var(--ink);
}

/* —— Hero: one composition —— */
.hero {
  min-height: calc(100svh - 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 6vh, 4rem) var(--pad) clamp(2.5rem, 7vh, 5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.hero-copy {
  max-width: 28rem;
  animation: rise 0.9s var(--ease) both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.6rem, 11vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.lede {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: rgba(245, 245, 240, 0.82);
  max-width: 18ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.solid {
  background: var(--ink);
  color: #0a0a0a;
}

.btn.solid:hover { background: #fff; }

.btn.line {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}

.btn.line:hover { border-color: rgba(245, 245, 240, 0.35); }

.btn-meta {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.55;
}

.btn.sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.fine {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-device {
  margin: 0;
  justify-self: center;
  width: min(100%, 22rem);
  animation: rise 1.05s var(--ease) 0.12s both;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.65));
}

.hero-device img {
  width: 100%;
  height: auto;
  border-radius: 1.65rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Look film —— */
.look,
.builds,
.close {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--pad);
}

.block-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.block-head h2,
.close h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.block-head p,
.close p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 38ch;
}

.film {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11rem, 15rem);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.film::-webkit-scrollbar { height: 6px; }
.film::-webkit-scrollbar-thumb {
  background: rgba(245, 245, 240, 0.2);
  border-radius: 999px;
}

.film figure {
  margin: 0;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.film figure.is-in {
  opacity: 1;
  transform: none;
}

.film img {
  width: 100%;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: #111;
}

.film figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* —— Builds —— */
.build-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.tabs {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.tab {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.tab.is-on {
  background: var(--ink);
  color: #0a0a0a;
}

.build-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.build-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.build-row {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.build-row.is-open {
  background: rgba(255, 255, 255, 0.035);
}

.build-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  text-align: left;
}

.build-tag {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.build-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  font-weight: 700;
}

.build-body {
  display: none;
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid transparent;
}

.build-row.is-open .build-body {
  display: block;
  border-top-color: var(--line);
  padding-top: 0.9rem;
}

.notes {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--body);
  font-size: 0.9rem;
  color: rgba(245, 245, 240, 0.78);
  max-height: 14rem;
  overflow: auto;
}

.notes-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.build-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.build-size {
  font-size: 0.82rem;
  color: var(--muted);
}

.build-empty {
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  color: var(--muted);
}

.build-empty a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* —— Close —— */
.close {
  text-align: left;
  border-top: 1px solid var(--line);
}

.close .btn {
  margin-top: 1.5rem;
}

/* —— Footer —— */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem var(--pad) 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.foot-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

.foot-mark img { border-radius: 6px; }

.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-copy {
    max-width: none;
    text-align: center;
    margin: 0 auto;
  }

  .lede { max-width: none; margin-inline: auto; }

  .cta { justify-content: center; }

  .hero-device {
    width: min(72vw, 18rem);
    order: -1;
  }

  .top nav a:nth-child(1) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .hero-device,
  .film figure {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
