/* =============================================================================
   Trici & Vinzi — address page
   Structure: tokens → base → components → sections → responsive
   ============================================================================= */

/* ---------- Design tokens ------------------------------------------------- */
:root {
  --cream:  #F4EBD6;
  --white:  #FFFDF7;
  --ink:    #1C1A17;
  --yellow: #F6C945;
  --blue:   #A7CCE8;
  --red:    #D93A2B;
  --pink:   #F0A9B6;
  --green:  #1E4B3A;

  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-ui: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --ease-pop: cubic-bezier(.2, .8, .2, 1);
  --paper: var(--pink);          /* hero background, changed by the swatches */
}

/* ---------- Base ------------------------------------------------------------ */
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--yellow); color: var(--ink); }
input, textarea, button { font-family: var(--font-ui); }
input::placeholder, textarea::placeholder { color: rgba(28, 26, 23, 0.35); }
h1, h2 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; }
p { text-wrap: pretty; }

.container { max-width: 1280px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin   { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Shared components ---------------------------------------------- */
/* small uppercase label */
.label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.label--faded { opacity: 0.6; }

/* stickers: little rotated tags */
.sticker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 9px 16px;
}
.sticker--ink { background: var(--ink); color: var(--cream); }
.sticker--yellow {
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--ink); letter-spacing: 0.2em;
  padding: 9px 14px; box-shadow: 4px 4px 0 var(--ink);
}
.sticker--tilt-l { transform: rotate(-2deg); }
.sticker--tilt-r { transform: rotate(2deg); }
.sticker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); display: inline-block; }

/* buttons */
.btn {
  display: inline-block; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  border: 3px solid var(--ink);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn--red {
  background: var(--red); color: var(--cream);
  padding: 18px 28px; box-shadow: 5px 5px 0 var(--ink);
}
.btn--red:hover { color: var(--cream); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--submit {
  width: 100%; padding: 20px; margin-top: 4px; letter-spacing: 0.2em;
  box-shadow: 6px 6px 0 var(--ink);
}
.btn--submit:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.btn--submit:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: 6px 6px 0 var(--ink); }
.btn--ink-small {
  background: var(--ink); color: var(--cream);
  font-size: 11px; letter-spacing: 0.2em; padding: 14px 22px;
}
.btn--ink-small:hover { background: var(--red); color: var(--cream); }

.pill {
  background: var(--ink); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 999px; margin-left: 8px;
  transition: background 0.15s;
}
.pill:hover { background: var(--red); color: var(--cream); }

.link-underline {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); border-bottom: 3px solid var(--ink); padding-bottom: 3px;
}
.link-underline:hover { color: var(--red); border-color: var(--red); }

/* ---------- 0. Ticker ------------------------------------------------------- */
.ticker {
  position: sticky; top: 0; z-index: 40;
  background: var(--red); color: var(--cream);
  overflow: hidden; border-bottom: 3px solid var(--ink);
}
.ticker__track {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 11px 0;
  animation: ticker 26s linear infinite; will-change: transform;
}
.ticker__group { display: inline-flex; align-items: center; }
.ticker__item { padding: 0 22px; }
.ticker__star { color: var(--yellow); }

/* ---------- 1. Hero --------------------------------------------------------- */
.hero {
  background: var(--paper);
  position: relative; overflow: hidden;
  border-bottom: 3px solid var(--ink);
  transition: background 0.5s;
}
.hero__bar {
  padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.wordmark { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.wordmark__amp { font-style: italic; }
.hero__tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__tools .label { font-size: 10px; opacity: 0.7; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--paper-swatch, #ccc);
  border: 2px solid var(--ink);
  transition: transform 0.15s;
}
.swatch:hover { transform: scale(1.15); }
.swatch.is-active { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }

.hero__grid {
  padding-top: 60px; padding-bottom: 90px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px; align-items: center;
}
.hero__copy { min-width: 0; position: relative; }
.hero__title {
  font-size: 132px; line-height: 1.06; letter-spacing: -0.035em; margin-top: 26px;
}
.hero__title em { color: var(--red); }
.hero__lead { font-size: 21px; line-height: 1.4; font-weight: 500; max-width: 34ch; margin: 34px 0 0; }
.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }

/* photo pile */
.pile { position: relative; height: 620px; min-width: 0; }
.print {
  margin: 0;
  position: absolute; left: var(--left); top: var(--top); width: var(--w);
  z-index: var(--z, 10);
  transform: rotate(var(--rot));
  background: var(--white); padding: 10px 10px 40px;
  border: 2px solid var(--ink);
  box-shadow: 0 18px 40px rgba(28, 26, 23, 0.22);
  cursor: pointer;
  transition: transform 0.35s var(--ease-pop);
}
.print:hover { transform: rotate(calc(var(--rot) * 0.3)) scale(1.03); }
.print.is-top { z-index: 20; }
.print img {
  width: 100%; aspect-ratio: var(--ratio); object-fit: cover; object-position: var(--pos);
  filter: saturate(1.08);
}
.print figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.print__num { opacity: 0.5; }
.print__tape {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%) rotate(calc(var(--rot) * -1.5));
  width: 74px; height: 22px; background: var(--tape); opacity: 0.9;
  border: 1.5px solid rgba(28, 26, 23, 0.5);
}
/* the single taped print next to the form */
.print--static {
  position: relative; left: auto; top: auto; width: auto; max-width: 320px;
  margin-top: 40px; cursor: default;
  --rot: -3deg;
  border: 3px solid var(--ink); padding: 10px 10px 36px;
  box-shadow: 8px 8px 0 var(--ink);
}
.print--static:hover { transform: rotate(var(--rot)); }
.print--static img { aspect-ratio: 4 / 5; object-position: center 40%; filter: none; }
.print--static figcaption { bottom: 9px; justify-content: flex-start; }

/* spinning badge */
.badge { position: absolute; right: -6px; bottom: 6px; z-index: 30; pointer-events: none; }
.badge__svg { width: 150px; height: 150px; animation: spin 18s linear infinite; }
.badge__ring { font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; fill: var(--cream); }
.badge__center { font-family: var(--font-display); font-style: italic; font-size: 34px; fill: var(--cream); }

/* ---------- 2. Movie -------------------------------------------------------- */
.film {
  background: var(--green); padding: 80px 36px 96px;
  border-bottom: 3px solid var(--ink); scroll-margin-top: 60px;
  position: relative; overflow: hidden;
}
.film__ghost {
  position: absolute; left: 36px; top: 30px;
  font-family: var(--font-display); font-style: italic; font-size: 120px; line-height: 1;
  color: rgba(244, 235, 214, 0.12); pointer-events: none; user-select: none;
}
.film__container { max-width: 560px; margin: 0 auto; position: relative; }   /* portrait frame: matches the 3:4 movie */
.sticker--press {
  position: absolute; left: -10px; top: -22px; z-index: 5;
  transform: rotate(-4deg); padding: 10px 16px;
}
.film__mat {
  background: var(--pink); padding: 14px;
  border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
.film__stage {
  position: relative; aspect-ratio: 3 / 4; background: var(--blue); overflow: hidden;
  border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--blue); }

/* ---------- 3. Evidence ----------------------------------------------------- */
.evidence { background: var(--cream); padding: 84px 0 40px; }
.evidence__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.evidence__title { font-size: 92px; line-height: 0.9; letter-spacing: -0.03em; }
.evidence__title em { color: var(--green); }
.evidence__meta { padding-bottom: 12px; }

.grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 150px; gap: 18px; margin-top: 44px;
}
.cell {
  grid-column: var(--col); grid-row: var(--row);
  position: relative; min-width: 0; overflow: hidden;
  border: 3px solid var(--ink); background: var(--bg);
  transition: transform 0.3s var(--ease-pop);
}
.cell:hover { transform: rotate(var(--hrot)) scale(1.02); }
.cell img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); filter: saturate(1.06); }
.cell__tag {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 12px; transform: rotate(var(--rot)); box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- 4. Address form ------------------------------------------------- */
.address {
  background: var(--blue); border-top: 3px solid var(--ink);
  padding: 84px 0 100px; scroll-margin-top: 60px;
  position: relative; overflow: hidden;
}
.sun { position: absolute; right: -40px; top: 40px; width: 260px; height: 260px; pointer-events: none; }
.sun__svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }

.address__grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px; align-items: start; position: relative;
}
.address__copy { min-width: 0; }
.address__title { font-size: 96px; line-height: 0.9; letter-spacing: -0.03em; margin-top: 28px; }
.address__title em { color: var(--red); }
.address__lead { font-size: 20px; line-height: 1.45; font-weight: 500; max-width: 34ch; margin: 26px 0 0; }
.address__smallprint {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; line-height: 2.3; text-transform: uppercase;
  margin-top: 30px; padding-top: 18px; border-top: 3px solid var(--ink); max-width: 380px;
}

/* the card */
.card {
  min-width: 0; background: var(--white);
  border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--ink);
}
.form { padding: 40px 44px 44px; display: flex; flex-direction: column; gap: 30px; }
.form__section { display: flex; flex-direction: column; gap: 18px; }
.form__section + .form__section { padding-top: 26px; border-top: 2px dashed rgba(28, 26, 23, 0.3); }
.form__head {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}
.form__num {
  width: 26px; height: 26px; border-radius: 50%; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.form__num--1 { background: var(--red); color: var(--cream); }
.form__num--2 { background: var(--green); color: var(--cream); }
.form__num--3 { background: var(--pink); color: var(--ink); border: 2px solid var(--ink); }
.form__row { display: grid; gap: 18px; }
.form__row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form__row--postcode { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.field__label { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.field input, .field textarea {
  width: 100%; font-size: 20px; font-weight: 500; padding: 10px 0;
  border: none; border-bottom: 3px solid var(--ink); background: none; color: var(--ink);
  outline: none; border-radius: 0; transition: border-color 0.15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--red); }
.field__error {
  display: none; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.field.is-invalid input { border-bottom-color: var(--red); }
.field.is-invalid .field__error { display: block; }

.form__server-error {
  margin: 0; background: var(--yellow); border: 3px solid var(--ink); padding: 12px 16px;
  font-size: 14px; font-weight: 500; line-height: 1.4;
}

/* honeypot: off-screen, not display:none (bots skip display:none) */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* success state */
.success { padding: 96px 48px 104px; text-align: center; background: var(--yellow); }
.success__title {
  font-family: var(--font-display); font-style: italic; font-size: 120px; line-height: 0.9;
  letter-spacing: -0.03em; color: var(--red);
}
.success__text { font-size: 20px; line-height: 1.45; font-weight: 500; max-width: 30ch; margin: 22px auto 0; }
.success .btn { margin-top: 30px; }

/* ---------- 5. Footer ------------------------------------------------------- */
.footer { background: var(--ink); color: var(--cream); padding: 60px 0 48px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; flex-wrap: wrap; }
.footer__wordmark { font-family: var(--font-display); font-size: 92px; line-height: 0.9; letter-spacing: -0.03em; }
.footer__wordmark em { font-style: italic; color: var(--yellow); }
.footer__more { margin-top: 18px; letter-spacing: 0.22em; }
.footer__links {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; line-height: 2.4; text-transform: uppercase; text-align: right;
}
.footer__link { color: var(--cream); display: block; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.footer__link:hover { color: var(--yellow); }
.footer__mail { opacity: 0.6; margin-top: 8px; }

/* ---------- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .badge__svg, .sun__svg { animation: none; }
}

/* ---------- Responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero__title { font-size: 104px; }
  .evidence__title, .address__title, .footer__wordmark { font-size: 76px; }
}

@media (max-width: 900px) {
  .container { padding-left: 22px; padding-right: 22px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 44px; padding-bottom: 64px; }
  .hero__title { font-size: 64px; }
  .hero__lead { font-size: 18px; }
  .pile { height: 420px; max-width: 520px; }
  .badge__svg { width: 110px; height: 110px; }

  .film { padding: 60px 22px 70px; }
  .film__ghost { font-size: 72px; top: 18px; left: 22px; }
  .film__mat { box-shadow: 6px 6px 0 var(--ink); }

  .evidence { padding-top: 64px; }
  .evidence__title, .address__title { font-size: 52px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 12px; }
  .cell { grid-column: var(--mcol); grid-row: var(--mrow); }

  .address { padding: 64px 0 80px; }
  .sun { width: 160px; height: 160px; right: -50px; top: 10px; }
  .address__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .address__lead { font-size: 18px; }
  .card { box-shadow: 8px 8px 0 var(--ink); }
  .form { padding: 28px 22px 30px; }
  .success { padding: 64px 24px 72px; }
  .success__title { font-size: 80px; }

  .footer__wordmark { font-size: 56px; }
  .footer__links { text-align: left; }
}

@media (max-width: 520px) {
  .hero__title { font-size: 54px; }
  .pile { height: 380px; }
  /* prints scale with the container width; nudge the lower two up a little.
     (plain `top`, not `--top`: the inline style in index.html would win otherwise) */
  #pile .print:nth-child(3) { top: 170px; }
  #pile .print:nth-child(4) { top: 160px; }
  .form__row--2 { grid-template-columns: minmax(0, 1fr); }
  .field input, .field textarea { font-size: 18px; }
  .success__title { font-size: 64px; }
}
