:root {
  --ink: #101012;
  --paper: #ffffff;
  --mist: #f2f1ee;
  --muted: #6b6a66;
  --line: rgba(16, 16, 18, 0.12);
  --accent: #2f5bff;
  --font-serif: "Fraunces", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.mono-accent {
  font-family: var(--font-mono);
  color: var(--muted);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 30px;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--accent);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Buttons */

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  padding: 15px 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--ink);
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-line-invert {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--paper);
}

.btn-line-invert:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 8, 9, 0.82) 0%, rgba(8, 8, 9, 0.35) 42%, rgba(8, 8, 9, 0) 75%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: var(--paper);
  padding-bottom: 72px;
  max-width: 720px;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  color: var(--paper);
}

.hero h1 .mono-accent {
  display: block;
  font-size: 0.32em;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin: 26px 0 34px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-ctas .btn-line {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--paper);
}

.hero-ctas .btn-line:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Archive */

.archive {
  padding: 96px 0 0;
}

.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.archive-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.archive-arrows {
  font-family: var(--font-mono);
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

.archive-card {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
}

.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.archive-card:hover img {
  transform: scale(1.05);
}

.archive-card-detail img {
  object-position: 65% 40%;
  transform: scale(1.6);
}

.archive-card:hover.archive-card-detail img {
  transform: scale(1.7);
}

.archive-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.archive-card figcaption .mono-accent {
  color: var(--paper);
}

/* Viewport */

.viewport {
  padding: 110px 0;
  background: var(--mist);
}

.viewport-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.viewport-media h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 32px;
}

.viewport-frame {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.viewport-frame img {
  width: 62%;
  transform: rotate(-14deg);
  filter: grayscale(1) contrast(1.05);
  box-shadow: 0 30px 60px -20px rgba(16, 16, 18, 0.35);
}

.viewport-detail {
  padding-top: 4px;
}

.viewport-detail .tag {
  color: var(--accent);
  margin-bottom: 14px;
}

.viewport-detail h3 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.viewport-desc {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 32px;
}

.spec-table {
  border-top: 1px solid var(--line);
  margin: 0 0 32px;
}

.spec-table > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.spec-table dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.spec-table dd {
  margin: 0;
}

.viewport-buy {
  display: flex;
  align-items: center;
  gap: 20px;
}

.price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  white-space: nowrap;
}

/* Marquee (shared mechanics) */

.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee .sep {
  color: var(--accent);
  font-size: 0.7em;
}

/* Trust strip */

.trust {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow-center {
  text-align: center;
  margin-bottom: 22px;
}

.marquee-trust .marquee-track {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Detail band */

.detail-band {
  position: relative;
  height: 56vh;
  min-height: 340px;
  overflow: hidden;
}

.detail-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-band.in-view img {
  transform: scale(1);
}

.detail-caption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  color: var(--paper);
}

.detail-caption .mono-accent {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 8px;
}

.detail-caption p {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

/* Tagline marquee */

.marquee-tagline {
  background: var(--ink);
  padding: 30px 0;
}

.marquee-track-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  animation-duration: 32s;
}

.marquee-track-lg .phrase {
  color: var(--paper);
}

.marquee-track-lg .sep {
  color: #55555c;
  font-size: 0.7em;
}

/* Atelier */

.atelier {
  padding: 110px 0;
}

.atelier-intro {
  max-width: 780px;
}

.atelier h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 0 0 28px;
}

.atelier-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.atelier-step {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.atelier-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.atelier-step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* CTA band */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  color: var(--paper);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
}

.newsletter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter input {
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--paper);
  min-width: 240px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */

.site-footer {
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
}

.footer-brand .logo {
  font-size: 1.1rem;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

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

@media (max-width: 900px) {
  .viewport-grid {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-card-detail {
    display: none;
  }

  .atelier-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    padding: 28px;
    gap: 22px;
    font-size: 0.9rem;
    transform: translateY(-100%);
    transition: transform 0.2s ease;
    z-index: 9;
  }

  .nav.open {
    transform: translateY(0);
  }

  .cart-btn span {
    display: none;
  }

  .nav-toggle {
    display: block;
    width: 26px;
    height: 18px;
    position: relative;
  }

  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ink);
  }

  .nav-toggle::before {
    top: 0;
  }

  .nav-toggle span {
    top: 8px;
  }

  .nav-toggle::after {
    bottom: 0;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-row {
    justify-content: center;
    text-align: center;
  }

  .atelier-steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
