/* Fonts — self-hosted subsets extracted from the design bundle.
   Archivo is a variable font: one file serves weights 400–700. */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/anton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/anton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/anton-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/archivo-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Base — no box-sizing reset: the design was authored against default
   content-box sizing (container and phone widths exclude their padding). */
body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
}

a { color: var(--color-gold); text-decoration: none; }
a:hover { color: var(--color-gold-light); }

input::placeholder,
textarea::placeholder { color: var(--color-text-faint); opacity: 1; }

.container { max-width: var(--container-max); margin: 0 auto; }

/* Header */
.site-header { display: flex; justify-content: center; padding: 28px 0 8px; }
.site-logo { height: 44px; width: auto; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px var(--container-pad) 88px;
}
.hero-copy,
.hero-phone { position: relative; z-index: 1; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }

/* Sparkles — scattered 4-point twinkles behind the hero (Rekt Design System) */
.hero-sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  line-height: 1;
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; opacity: .7; }
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
}

.lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 420px;
}

.hero-cta { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 34px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  color: var(--color-on-gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--color-gold-light); color: var(--color-on-gold); }

.store-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-ring);
}
.chip-icon { width: 16px; height: 16px; color: var(--color-text); }
.chip-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.chip-value { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--color-text); }

/* Phone mock (splash screen) */
.hero-phone { display: flex; justify-content: center; }
.phone {
  width: 300px;
  height: 620px;
  border-radius: 48px;
  background: var(--color-surface-raised);
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--color-ring);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: radial-gradient(120% 90% at 50% 0%, var(--color-glow) 0%, var(--color-bg) 60%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 14px;
  background: var(--color-black);
}
.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--color-gold);
  animation: spin 1s linear infinite;
}
.phone-logo { width: 150px; height: auto; }
.phone-title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
}
.phone-sub { font-size: 13px; color: var(--color-text-muted); margin-top: -18px; }
.phone-homebar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-homebar);
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Collage — overlapping photo strip between hero and work sections */
.collage {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px 0 56px;
}
.collage-track {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  animation: collage-scroll 60s linear infinite;
}
.collage:hover .collage-track { animation-play-state: paused; }
.collage-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.collage img {
  flex: 0 0 auto;
  width: 150px;
  height: 170px;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  margin-right: -26px;
}
.collage-group img:nth-child(4n + 1) { transform: rotate(-4deg) translateY(8px); }
.collage-group img:nth-child(4n + 2) { transform: rotate(3deg) translateY(-10px); width: 170px; height: 190px; z-index: 2; position: relative; }
.collage-group img:nth-child(4n + 3) { transform: rotate(-2deg) translateY(12px); width: 135px; height: 152px; }
.collage-group img:nth-child(4n) { transform: rotate(5deg) translateY(-5px); width: 160px; height: 180px; z-index: 1; position: relative; }

@keyframes collage-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .collage-track { animation: none; }
}

/* Work with us */
.work-grid {
  padding: 72px var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.work-copy { display: flex; flex-direction: column; gap: 18px; }

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.9vw, 44px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--color-text);
}

.work-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 400px;
}

.work-form { display: flex; flex-direction: column; gap: 14px; }
.hidden-field { display: none; }
.work-form input,
.work-form textarea,
.waitlist-form input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  outline: none;
}
.work-form textarea { resize: none; }
.work-form input:focus,
.work-form textarea:focus,
.waitlist-form input:focus { border-color: var(--color-gold); }
.work-form .btn { padding: 17px; }

/* Waitlist modal */
.waitlist-modal {
  box-sizing: border-box; /* width below includes padding, unlike the rest of the page */
  width: min(400px, calc(100vw - 48px));
  padding: 36px 32px 32px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface-raised);
  color: var(--color-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.waitlist-modal::backdrop { background: rgba(0, 0, 0, 0.65); }
.waitlist-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.waitlist-close:hover { color: var(--color-text); }
.waitlist-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.waitlist-copy { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--color-text-muted); }
.waitlist-form { display: flex; flex-direction: column; gap: 14px; }
.waitlist-form[hidden] { display: none; }
.waitlist-form .btn { padding: 16px; }
.waitlist-error { margin: 0; font-size: 13px; color: var(--color-coral); }
.waitlist-copy:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border-subtle); }
.footer-row {
  padding: 28px var(--container-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { height: 26px; width: auto; opacity: 0.9; }
.copyright { font-size: 13px; color: var(--color-text-faint); }

/* Responsive — tablet: keep two columns, ease the side padding */
@media (max-width: 960px) {
  :root { --container-pad: 40px; }
  .hero { gap: 32px; }
  .work-grid { gap: 40px; }
}

/* Responsive — mobile: single centered column, Luma-style hero
   (copy first, phone mock below), stacked form and footer */
@media (max-width: 720px) {
  :root { --container-pad: 24px; }

  .site-header { padding: 24px 0 4px; }
  .site-logo { height: 36px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 40px var(--container-pad) 64px;
  }
  .hero-copy { align-items: center; text-align: center; gap: 22px; }
  .lede { font-size: 17px; }
  .hero-cta { justify-content: center; }
  .store-chips { justify-content: center; }

  .phone { width: 260px; height: 540px; }

  .collage { padding: 16px 0 44px; }
  .collage img { width: 104px; height: 120px; margin-right: -20px; }
  .collage-group img:nth-child(4n + 2) { width: 120px; height: 136px; }
  .collage-group img:nth-child(4n + 3) { width: 94px; height: 108px; }
  .collage-group img:nth-child(4n) { width: 112px; height: 128px; }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px var(--container-pad) 64px;
  }
  .work-copy { text-align: center; align-items: center; }

  .footer-row {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
