/* ───── Font ───── */
@font-face {
  font-family: 'Vollda';
  src: url('fonts/Vollda.woff2') format('woff2'),
       url('fonts/Vollda.woff') format('woff'),
       url('fonts/Vollda.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ───── Reset & base ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #1d1d1b;
  --white: #ffffff;
  --gray:  #f4f4f4;
  --mid:   #aaaaaa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vollda', Georgia, 'Times New Roman', serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ───── Intro overlay ───── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  cursor: pointer;
  transition: opacity 0.7s ease;
}

#intro.fade-out { opacity: 0; pointer-events: none; }

#diceCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.skip-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  pointer-events: none;
}

/* ───── Main content ───── */
#main {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

#main.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ───── Nav ───── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e8e8;
}

.nav-logo { height: 36px; width: auto; }

.nav-cta {
  font-family: 'Vollda', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.5; }

/* ───── Hero ───── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-logo {
  width: clamp(120px, 20vw, 200px);
  margin-bottom: 48px;
}

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 56px;
}

/* ───── Buttons ───── */
.btn-outline {
  display: inline-block;
  padding: 15px 48px;
  border: 1px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-family: 'Vollda', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-filled {
  display: inline-block;
  padding: 16px 48px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-family: 'Vollda', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-filled:hover { opacity: 0.75; }

/* ───── Product ───── */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
  align-items: center;
}

.product-photo img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.product-photo img:hover { filter: grayscale(0%); }

.product-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.product-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.product-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 36px;
}

.product-specs {
  list-style: none;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 36px;
}

.product-specs li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.product-specs li span:first-child { color: var(--mid); }

.product-price {
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

/* ───── Divider ───── */
.suits-divider {
  text-align: center;
  padding: 40px 20px;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  color: #ccc;
}

/* ───── Order form ───── */
.order {
  max-width: 580px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.order h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 60px;
}

.field { margin-bottom: 36px; }

.field > label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  font-family: 'Vollda', Georgia, serif;
  font-size: 1rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus { border-color: var(--black); }

.field input::placeholder { color: #bbb; }

/* Radio cards */
.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  display: block;
  cursor: pointer;
}

.radio-card input { display: none; }

.radio-card span {
  display: block;
  padding: 14px 12px;
  border: 1px solid #ccc;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.radio-card input:checked + span {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Contact row */
.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: end;
}

.contact-row select { width: auto; }

/* Submit */
.btn-submit {
  width: 100%;
  padding: 18px;
  margin-top: 12px;
}

.btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.form-error {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #c00;
  min-height: 20px;
}

/* Success */
.order-success {
  display: none;
  text-align: center;
  padding: 60px 0;
}

.order-success .success-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.order-success h3 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.order-success p {
  color: var(--mid);
  letter-spacing: 0.05em;
}

/* ───── Footer ───── */
footer {
  border-top: 1px solid #eee;
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

footer p {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ───── Responsive ───── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }

  .product {
    grid-template-columns: 1fr;
    padding: 60px 20px;
    gap: 40px;
  }

  .radio-row { grid-template-columns: 1fr; }

  .contact-row { grid-template-columns: 1fr; }
}
