:root {
  --sand: #f6efe4;
  --sand-2: #efe4d2;
  --ink: #1d1a17;
  --muted: #6f665c;
  --hibiscus: #c8243b;
  --frangipani: #f3c74b;
  --lagoon: #2958be; /* Bali Linez blue — the BL logo, as in the app */
  --leaf: #2f6b4f;
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(246, 239, 228, .9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav__logo img { height: 56px; width: 56px; object-fit: contain; transform: scale(1.35); }
.nav__links { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.pill {
  display: inline-block; padding: 9px 18px; border-radius: 999px; text-decoration: none;
  white-space: nowrap; transition: background .2s, color .2s, transform .2s;
}
.pill:hover { transform: translateY(-1px); }
.pill--outline { border: 1.5px solid var(--lagoon); color: var(--lagoon); }
.pill--outline:hover { background: var(--lagoon); color: #fff; }
.pill--solid { background: var(--lagoon); color: #fff; border: 1.5px solid var(--lagoon); }
.pill--solid:hover { background: #1f4699; }
@media (max-width: 640px) {
  .nav__links { gap: 6px; font-size: 12px; }
  .pill { padding: 7px 11px; }
  .nav__logo img { height: 40px; width: 40px; transform: scale(1.2); }
  .nav { gap: 10px; }
}
/* Three pills and the logo still fit a 375px phone. */
@media (max-width: 420px) {
  .nav { padding-inline: 12px; gap: 8px; }
  .nav__links { gap: 4px; font-size: 11px; }
  .pill { padding: 6px 9px; }
  .nav__logo img { height: 34px; width: 34px; transform: scale(1.15); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.btn--dark { background: var(--ink); color: var(--sand); }
.btn--ghost { border: 1.5px solid var(--ink); }
.btn--light { background: var(--sand); color: var(--ink); }

.eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--hibiscus);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; }
.section-head { padding: 0 clamp(16px, 5vw, 64px); margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero {
  /* Not a full screen: the partner logos below should be in view straight away. */
  position: relative; min-height: max(540px, calc(100svh - 230px)); display: grid; align-items: center;
  padding: 104px clamp(16px, 5vw, 64px) 40px; overflow: hidden;
}
.hero__text { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { font-size: clamp(52px, 8.5vw, 116px); line-height: .92; font-weight: 800; }
.hero h1 em { font-style: italic; color: var(--lagoon); }
.hero .eyebrow { color: var(--lagoon); }
.lead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 520px; margin: 24px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-card {
  position: absolute; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(60, 30, 10, .35);
  will-change: transform; background: #fff;
}
.float-card img { width: 100%; height: 100%; object-fit: cover; }
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll::after { content: ""; display: block; width: 1px; height: 36px; margin: 8px auto 0; background: var(--muted); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0%,100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); } }
@media (max-width: 860px) {
  .hero__float { opacity: .35; }
}

/* ---------- Category tiles ---------- */
.collections { padding: 120px 0 80px; }
.tiles {
  display: grid; gap: 18px; padding: 0 clamp(16px, 5vw, 64px);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tile {
  position: relative; display: block; text-decoration: none; cursor: pointer;
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--sand-2); isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.tile:hover { transform: translateY(-6px); }
/* Portrait cards in the products' own format (A-size, 1 : 1.41) — the whole design shows. */
.tile__fan {
  position: absolute; top: 7%; left: 50%; width: 60%; aspect-ratio: 1 / 1.414;
  translate: -50% 0;
}
.tile__fan img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 8px;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.35);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.tile__fan img:nth-child(1) { transform: rotate(-9deg) translateX(-10%); }
.tile__fan img:nth-child(2) { transform: rotate(7deg) translateX(10%); }
.tile__fan img:nth-child(3) { transform: rotate(0); }
.tile:hover .tile__fan img:nth-child(1) { transform: rotate(-16deg) translate(-22%, -4%); }
.tile:hover .tile__fan img:nth-child(2) { transform: rotate(14deg) translate(22%, -4%); }
.tile:hover .tile__fan img:nth-child(3) { transform: translateY(-6%) scale(1.04); }
.tile__label { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-wrap: wrap; column-gap: 10px; justify-content: space-between; align-items: baseline; }
.tile__label strong { line-height: 1.05; }
.tile__label strong { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.tile__label span { font-size: 12px; color: var(--muted); }

/* ---------- Category bands ---------- */
.band { position: relative; padding: 140px 0; overflow: hidden; }
.band:nth-child(odd) { background: var(--sand-2); }
.band__bg {
  position: absolute; inset: -20% -10%; z-index: 0; opacity: .14;
  background-size: cover; background-position: center; filter: blur(40px) saturate(1.4);
  will-change: transform;
}
.band__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(24px, 5vw, 72px);
  padding: 0 clamp(16px, 5vw, 64px);
}
.band__title { position: sticky; top: 120px; align-self: start; }
.band__title h2 { font-size: clamp(44px, 6vw, 84px); }
.band__title p { color: var(--muted); line-height: 1.6; margin: 18px 0 0; }
.band__count { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 600; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.card {
  margin: 0; cursor: zoom-in; will-change: transform;
}
.card__img {
  aspect-ratio: 1 / 1.414; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 40px -22px rgba(40, 20, 0, .45);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__img { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 28px 50px -22px rgba(40, 20, 0, .55); }
.band.is-target .band__title h2 { color: var(--hibiscus); transition: color .6s; }
@media (max-width: 760px) {
  .band__inner { grid-template-columns: 1fr; }
  .band__title { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ---------- Partners ---------- */
.partners { padding: 8px 0 110px; }
.partners .section-head { margin-bottom: 28px; }
.partners h2 { font-size: clamp(30px, 3.6vw, 44px); }
/* A plain logo wall: every logo in the same box, so wide and round marks read at a similar size. */
.logos {
  list-style: none; margin: 0; padding: 0 clamp(16px, 5vw, 64px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 32px;
}
/* All in one row on a laptop screen, so every partner shows at first sight. */
.logos li { width: clamp(110px, 10vw, 170px); height: 84px; display: flex; align-items: center; justify-content: center; }
.logos img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logos__word { font-family: var(--serif); font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--lagoon); text-align: center; line-height: 1.1; }
@media (max-width: 600px) {
  .logos { gap: 22px 16px; }
  .logos li { width: 96px; height: 60px; }
  .logos__word { font-size: 22px; }
}

/* ---------- Wholesale inquiry ---------- */
.inquiry { padding: 0 clamp(16px, 5vw, 64px) 120px; scroll-margin-top: 80px; }
.inquiry__inner {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.3fr); gap: clamp(32px, 6vw, 80px);
  background: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 72px);
  box-shadow: 0 30px 60px -40px rgba(40, 20, 0, .35);
}
.inquiry__intro .eyebrow { color: var(--lagoon); }
.inquiry__intro p:last-child { color: var(--muted); line-height: 1.6; margin: 18px 0 0; max-width: 360px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.field span::after { content: " *"; color: var(--hibiscus); }
.field input, .field select {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid #ddd2c2; border-radius: 12px; background: var(--sand);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; padding-right: 36px; background-repeat: no-repeat; background-size: 6px 6px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
}
.field--choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.field--choices legend { padding: 0; margin-bottom: 6px; }
/* Categories as tick-able pills — one or more. */
.choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; margin: -4px; border-radius: 14px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 14px;
  border: 1.5px solid #ddd2c2; background: var(--sand); transition: background .2s, border-color .2s, color .2s;
}
.choice span::after { content: none; }
.choice input:checked + span { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.choice input:checked + span::before { content: "✓ "; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(41, 88, 190, .25); }
.field__error { color: var(--hibiscus); font-size: 13px; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.field input:focus, .field select:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(41, 88, 190, .15); }
.field input[aria-invalid], .field select[aria-invalid] { border-color: var(--hibiscus); }
.field--choices[aria-invalid] .choice span { border-color: var(--hibiscus); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__send { justify-self: start; border: 0; cursor: pointer; font-family: inherit; margin-top: 6px; }
.form__send:disabled { opacity: .6; cursor: default; }
.form__status { margin: 0; font-size: 14px; min-height: 1.4em; }
.form__status[data-tone="error"] { color: var(--hibiscus); }
.form__status[data-tone="ok"] { color: var(--leaf); }
@media (max-width: 760px) {
  .inquiry__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* Pinned partners (app.js): the row moves sideways while the page scrolls past. */
.partners.is-pinned { padding-bottom: 0; }
.partners.is-pinned .partners__pin {
  position: sticky; top: max(84px, calc(50svh - 170px));
  padding-bottom: 72px;
}
.partners__view { overflow: hidden; }
.partners.is-pinned .logos {
  flex-wrap: nowrap; justify-content: flex-start; width: max-content;
  gap: clamp(40px, 6vw, 96px); will-change: transform;
}
.partners.is-pinned .logos li { width: clamp(150px, 19vw, 280px); height: clamp(80px, 9vw, 130px); flex: none; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 0 clamp(16px, 5vw, 64px) 120px; }
.newsletter__inner {
  background: var(--hibiscus); color: var(--sand); border-radius: 28px;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); text-align: center;
}
.newsletter__inner h2 { font-size: clamp(36px, 6vw, 72px); }
.newsletter__inner p { margin: 16px auto 32px; max-width: 460px; line-height: 1.6; opacity: .9; }

/* ---------- Footer ---------- */
.footer { display: flex; align-items: center; gap: 14px; padding: 32px clamp(16px, 5vw, 64px) 48px; color: var(--muted); font-size: 13px; }
.footer__mark { width: 36px; height: 36px; object-fit: contain; }

/* ---------- Viewer ---------- */
.viewer { border: 0; padding: 24px; border-radius: 20px; max-width: min(92vw, 520px); background: var(--sand); }
.viewer::backdrop { background: rgba(29, 26, 23, .6); backdrop-filter: blur(4px); }
.viewer img { width: 100%; border-radius: 12px; }
.viewer__close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  [data-speed], .float-card, .band__bg { transform: none !important; }
}
