/* =========================================================================
   Kaya's — Coming Soon
   ========================================================================= */

/* -------------------------------------------------------------- fonts ----
   These point at files that do not exist yet. Until you drop the real
   .woff2 files into /assets/fonts/, the browser silently falls through to
   the web-font fallbacks in --font-display / --font-body. Adding the files
   later needs no code change at all — see assets/fonts/README.md.
   -------------------------------------------------------------------- */
@font-face {
  font-family: 'NeueAsia';
  src: url('../fonts/neue-asia.woff2') format('woff2'),
       url('../fonts/neue-asia.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Antebas';
  src: url('../fonts/antebas-regular.woff2') format('woff2'),
       url('../fonts/antebas-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Antebas';
  src: url('../fonts/antebas-medium.woff2') format('woff2'),
       url('../fonts/antebas-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------- tokens ---- */
:root {
  --ink:        #7F011F;
  --ink-80:     rgba(127, 1, 31, .80);
  --ink-60:     rgba(127, 1, 31, .60);
  --rule:       rgba(127, 1, 31, .20);
  --rule-soft:  rgba(127, 1, 31, .10);
  --bg:         #F6F4F2;
  --paper:      #FFFFFF;
  --error:      #A32218;

  --font-display: 'NeueAsia', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Antebas', 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --header-h: clamp(58px, 7vw, 78px);
  --gutter:   clamp(1.25rem, 5vw, 3.25rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* -------------------------------------------------------------- reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ----------------------------------------------------------- utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: .7rem 1.4rem;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------ buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .72em 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: clamp(.62rem, .78vw, .72rem);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s var(--ease),
              color .3s var(--ease),
              border-color .3s var(--ease),
              transform .3s var(--ease);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--rule);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(127, 1, 31, .04);
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--solid:hover {
  background: #66011a;
  border-color: #66011a;
  transform: translateY(-1px);
}

.btn--wide {
  width: 100%;
  justify-content: center;
  padding-block: 1.05em;
  letter-spacing: .2em;
}

.btn:active { transform: translateY(0); }

/* Instagram glyph */
.icon-ig {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  flex: none;
}
.icon-ig__dot { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

/* Translucency is an enhancement only. Browsers without backdrop-filter keep
   the opaque bar above, rather than a see-through header with no blur. */
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: rgba(246, 244, 242, .90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.site-header__logo { display: block; line-height: 0; }
.site-header__logo img {
  height: clamp(24px, 3.2vw, 38px);
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.2vw, .85rem);
}

/* --------------------------------------------------------------- hero ---- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.hero__tagline {
  margin: 0;
  padding: clamp(1.4rem, 3.2vw, 2.6rem) var(--gutter) 0;
  text-align: right;
  font-size: clamp(.62rem, .9vw, .8rem);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-80);
  animation: fade-up 1s .1s both var(--ease);
}

.hero__stage {
  position: relative;
  flex: 1;
  min-height: clamp(430px, 54vh, 640px);
}

/* ----------------------------------------------------------- headline ---- */
.headline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  z-index: 1;
  overflow: hidden;
  animation: reveal-blur 1.5s .15s both ease-out;
}

.headline__track {
  display: flex;
  width: max-content;
  animation: drift 42s linear infinite;
  will-change: transform;
}

.headline__item {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.2rem, 15.5vw, 15rem);
  line-height: .92;
  letter-spacing: .015em;
  color: var(--ink);
  white-space: nowrap;
  padding-right: .3em;
}

.headline__dot {
  font-style: normal;
  margin-left: .1em;
}

/* ------------------------------------------------------------ collage ---- */
.collage {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collage__item {
  position: absolute;
  width: clamp(112px, 13.5vw, 210px);
  transition: rotate .55s var(--ease),
              translate .55s var(--ease),
              scale .55s var(--ease);
  animation: rise 1.1s both var(--ease);
}

.collage__item--1 { left:  2%; top:  4%; width: clamp(116px, 14vw,   214px); rotate: -7deg;   animation-delay: .30s; }
.collage__item--2 { left: 27%; top: 12%; width: clamp(106px, 12.8vw, 198px); rotate:  3.5deg; animation-delay: .42s; }
.collage__item--3 { left: 60%; top:  2%; width: clamp(118px, 14.4vw, 220px); rotate: -4.5deg; animation-delay: .54s; }
.collage__item--4 { left: 39%; top: 54%; width: clamp(110px, 13.2vw, 204px); rotate:  5deg;   animation-delay: .66s; }
.collage__item--5 { left: 68%; top: 60%; width: clamp(113px, 13.6vw, 208px); rotate: -6deg;   animation-delay: .78s; }

.collage__item:hover,
.collage__item:focus-within {
  rotate: 0deg;
  translate: 0 -10px;
  scale: 1.045;
  z-index: 5;
}

/* ----------------------------------------------------------- polaroid ---- */
.polaroid {
  margin: 0;
  background: var(--paper);
  padding: clamp(7px, .72vw, 12px) clamp(7px, .72vw, 12px) 0;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 20px 38px -20px rgba(80, 20, 30, .38),
              0 2px 8px rgba(80, 20, 30, .06);
}

.polaroid__frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #EBE6E2;
}

.polaroid__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid__caption {
  padding: clamp(9px, 1vw, 15px) 2px clamp(10px, 1.1vw, 16px);
  text-align: center;
  font-size: clamp(.5rem, .72vw, .66rem);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ------------------------------------------------------------- ticker ---- */
.ticker {
  flex: none;
  overflow: hidden;
  padding-block: clamp(.7rem, 1.15vw, 1.05rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* No `gap` here on purpose: the loop translates by exactly -50%, which only
   lands seamlessly when every child carries its own trailing margin. A gap
   would leave half a gap unaccounted for and the strip would jump each cycle. */
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-run 34s linear infinite;
  will-change: transform;
}

.ticker__item,
.ticker .kolam {
  margin-right: clamp(1rem, 2.1vw, 2rem);
}

.ticker__item {
  font-size: clamp(.6rem, .85vw, .76rem);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* kolam motif, echoing the marks inside the logo's counters */
.kolam {
  width: clamp(11px, 1.15vw, 15px);
  height: clamp(11px, 1.15vw, 15px);
  color: var(--ink);
  opacity: .7;
  flex: none;
}

/* ------------------------------------------------------------- notify ---- */
.notify {
  padding: clamp(4rem, 9vw, 8.5rem) var(--gutter);
  /* keeps the logo clear of the sticky header when "Notify Me" jumps here */
  scroll-margin-top: var(--header-h);
}

.notify__inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.notify__logo {
  width: clamp(150px, 20vw, 235px);
  height: auto;
  margin: 0 auto clamp(1.6rem, 3.2vw, 2.5rem);
}

.notify__heading {
  margin: 0 0 clamp(2.2rem, 4.5vw, 3.2rem);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.55rem, 3.7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--ink);
}

/* --------------------------------------------------------------- form ---- */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.4vw, 1.7rem);
}

.field {
  text-align: left;
  margin-bottom: clamp(1.3rem, 2.6vw, 1.85rem);
}

.field__label {
  display: block;
  margin-bottom: .55rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.field__input {
  width: 100%;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.field__input:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.field.has-error .field__input {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 var(--error);
}

/* autofill in WebKit repaints the field white — keep it on-brand */
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 100px var(--bg) inset, 0 1px 0 var(--ink);
  caret-color: var(--ink);
}

/* consent checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: .4rem 0 clamp(1.9rem, 3.6vw, 2.5rem);
  text-align: left;
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent__box {
  position: relative;
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 1px solid var(--rule);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.consent input:checked + .consent__box {
  background: var(--ink);
  border-color: var(--ink);
}

.consent input:checked + .consent__box::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 4px;
  height: 8.5px;
  border: solid var(--bg);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

.consent input:focus-visible + .consent__box {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.consent__text {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-60);
}

.form__status {
  min-height: 1.5em;
  margin: 1.1rem 0 0;
  font-size: .8rem;
  line-height: 1.45;
}
.form__status.is-ok    { color: var(--ink); }
.form__status.is-error { color: var(--error); }

.form.is-busy .btn--wide { opacity: .6; pointer-events: none; }

/* ------------------------------------------------------------- footer ---- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem clamp(1.5rem, 3.5vw, 2.75rem);
  padding: clamp(2rem, 4.5vw, 3.25rem) var(--gutter);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--ink);
  text-decoration: none;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-footer a:hover { border-bottom-color: var(--rule); }

.site-footer__copy {
  margin: 0;
  width: 100%;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* --------------------------------------------------------- animations ---- */
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-25%, 0, 0); }   /* one of four copies */
}

@keyframes ticker-run {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }   /* half of a doubled set */
}

@keyframes reveal-blur {
  from { opacity: 0; filter: blur(22px); }
  to   { opacity: 1; filter: blur(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================ responsive == */

/* Tablet — pull the collage in a little so nothing runs off the edge. */
@media (max-width: 1100px) {
  .collage__item--1 { left:  1%; top:  5%; }
  .collage__item--2 { left: 27%; top: 14%; }
  .collage__item--3 { left: 62%; top:  3%; }
  .collage__item--4 { left: 37%; top: 55%; }
  .collage__item--5 { left: 67%; top: 61%; }
}

/* Phone — the scattered collage becomes a swipeable rail under the headline. */
@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero__stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.75rem, 6vw, 2.5rem);
    padding-block: clamp(2rem, 8vw, 3.5rem);
    min-height: 0;
  }

  .hero__tagline {
    text-align: left;
    letter-spacing: .2em;
  }

  .headline {
    position: static;
    translate: none;
    order: 1;
  }

  .headline__item {
    font-size: clamp(3.4rem, 18vw, 7rem);
  }

  .collage {
    position: static;
    order: 2;
    display: flex;
    gap: clamp(.85rem, 3vw, 1.25rem);
    padding-inline: var(--gutter);
    padding-bottom: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .collage::-webkit-scrollbar { display: none; }

  .collage__item {
    position: static;
    flex: none;
    width: min(56vw, 235px);
    scroll-snap-align: center;
    rotate: 0deg;
  }

  .collage__item:hover,
  .collage__item:focus-within {
    translate: none;
    scale: 1;
  }

  .polaroid__caption { font-size: .58rem; }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .btn__label { font-size: inherit; }
}

/* Very small phones — drop the Instagram label, keep the glyph. */
@media (max-width: 400px) {
  .site-header__nav .btn--solid .btn__label { display: none; }
  .site-header__nav .btn--solid { padding-inline: .85em; }
}

/* ------------------------------------------------------ reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  /* No marquee: show a single, centred headline instead. */
  .headline { overflow: visible; }
  .headline__track {
    animation: none;
    width: auto;
    justify-content: center;
  }
  .headline__item:not(:first-child) { display: none; }
  .headline__item {
    font-size: clamp(3rem, 12vw, 9rem);
    padding-right: 0;
  }

  .ticker__track {
    animation: none;
    width: 100%;
    justify-content: center;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------- print --- */
@media print {
  .site-header, .ticker, .skip-link { display: none; }
  body { background: #fff; }
}
