/* Fonts are preconnected + linked in index.html <head> so they load in
   parallel with this sheet rather than serially after it. */

/* ═══════════════════════════════════════════
   NYIOR — tokens sampled from packaging
   navy   #252C6B  logo ground
   sky    #4BA8DC  label wordmark
   pale   #DCEEF7  label wash
   yellow #F2C230  premium seal (used once)
   ═══════════════════════════════════════════ */

:root {
  --navy: #252C6B;
  --navy-d: #1A2050;
  --sky: #4BA8DC;
  --sky-d: #1D6E9C;   /* darkened from the label sky so small text clears WCAG AA on cream */
  --pale: #DCEEF7;
  --yellow: #F2C230;

  /* White page, grey containers — the colour lives in the product photos
     and in small functional accents, never in full-width fills. */
  --bg: #FFFFFF;
  --bg-alt: #F4F5F7;     /* soft grey container, like the reference cards */
  --card: #F4F5F7;
  --ink: #14182E;
  --ink-2: #5B6178;      /* navy-biased grey, not neutral */
  --line: #E8EAEF;

  --on-navy: #EDF3F8;
  --on-navy-2: #A7B2D4;
  --display: #252C6B;    /* deep navy for display type on light grounds */
  --drop-rgb: 75,168,220;   /* condensation bead — read by script.js */

  --ff-d: "Fraunces", Georgia, serif;
  --ff-b: "Outfit", system-ui, -apple-system, sans-serif;
  --ff-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --wrap: 1200px;
  --r: 14px;          /* soft container rounding */
  --r-pill: 100px;    /* pill buttons */
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10142B;
    --bg-alt: #151A38;
    --card: #1A2043;
    --ink: #EAEEF8;
    --ink-2: #9AA4C6;
    --line: #2A3159;
    --navy: #1A2050;
    --pale: #223056;
    --display: #EAEEF8;
    --sky-d: #6FBEE8;   /* lift the sky so it holds contrast on dark ground */
    --drop-rgb: 255,255,255;
  }
}
:root[data-theme="dark"] {
  --bg: #10142B; --bg-alt: #151A38; --card: #1A2043;
  --ink: #EAEEF8; --ink-2: #9AA4C6; --line: #2A3159;
  --navy: #1A2050; --pale: #223056;
  --display: #EAEEF8; --sky-d: #6FBEE8; --drop-rgb: 255,255,255;
}
:root[data-theme="light"] {
  --bg: #FFFFFF; --bg-alt: #F4F5F7; --card: #F4F5F7;
  --ink: #14182E; --ink-2: #5B6178; --line: #E8EAEF;
  --navy: #252C6B; --pale: #DCEEF7;
  --display: #252C6B; --sky-d: #1D6E9C; --drop-rgb: 75,168,220;
}

/* ── base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-b);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 8px; top: 8px; }

:where(a, button):focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sky-d); margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--ff-d);
  font-weight: 500;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; }

.cn, .hero-cn, .why-cn, .offer-cn, .foot-cn { font-family: var(--ff-cn); }

.sec-lede {
  color: var(--ink-2);
  font-size: 1.06rem;
  max-width: 56ch;
  margin: 18px 0 0;
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--ff-b); font-size: .92rem; font-weight: 500;
  padding: 14px 28px;
  background: var(--navy); color: #fff;
  border: 1px solid var(--navy);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover {
  background: var(--navy-d); border-color: var(--navy-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(37,44,107,.5);
}
.btn-sm { padding: 10px 20px; font-size: .85rem; }
/* pale pill — tracks the page ground so it works in both themes */
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); border-color: var(--ink-2); color: var(--ink); }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; min-height: 74px; }
.brand img { width: 92px; height: auto; border-radius: 3px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: .92rem; text-decoration: none; color: var(--ink);
  position: relative; padding-block: 4px;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--sky);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile { display: none; flex-direction: column; padding: 8px 24px 24px; border-top: 1px solid var(--line); }
.mobile a { padding: 14px 0; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1rem; }
.mobile a:last-child { border-bottom: 0; }
.mobile-cta { color: var(--sky-d); font-weight: 500; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.drops {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .5;
}
.hero-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
  padding-block: clamp(40px, 5vw, 72px);
}
.hero-copy { max-width: 30rem; }
h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: .94;
  display: flex; flex-direction: column;
}
.h1-a { font-weight: 300; font-style: italic; color: var(--display); }
.h1-b {
  font-weight: 700; color: var(--sky-d); letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: .12em;
}
/* the ampersand rides small and italic beside the word rather than
   sitting alone on its own line */
.h1-b em {
  font-style: italic; font-weight: 300;
  font-size: .46em; color: var(--display);
  opacity: .55; flex: none;
}

.hero-cn {
  font-size: 1.12rem; font-weight: 400; color: var(--ink-2);
  margin: 20px 0 0; letter-spacing: .04em;
}
.hero-lede { color: var(--ink-2); margin: 16px 0 0; font-size: 1.05rem; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-marks {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none; margin: 34px 0 0; padding: 0;
}
.hero-marks li {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); display: flex; align-items: center; gap: 8px;
}
.hero-marks li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sky); flex: none;
}
.hero-fig { margin: 0; position: relative; }
.hero-fig img {
  width: 100%; border-radius: var(--r);
  aspect-ratio: 4/5; object-fit: cover;
  box-shadow: 0 24px 48px -32px rgba(37,44,107,.34);
}

/* ── marquee strip ── */
.strip {
  background: var(--bg); color: var(--ink-2);
  overflow: hidden; padding: 16px 0;
  border-block: 1px solid var(--line);
}
.strip-run {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  animation: run 34s linear infinite;
}
.strip-run span {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
}
.strip-run span:nth-child(8n+1) { font-family: var(--ff-cn); letter-spacing: .16em; color: var(--sky-d); }
.strip-run i { width: 4px; height: 4px; border-radius: 50%; background: var(--sky); flex: none; }
@keyframes run { to { transform: translateX(-50%); } }

/* ── sections ── */
.sec { padding-block: clamp(64px, 9vw, 118px); }
/* .sec-tint wraps its content in a soft grey container rather than
   bleeding colour across the full viewport width */
.sec-tint > .wrap {
  max-width: calc(var(--wrap) + 2 * clamp(28px, 4vw, 56px));
  background: var(--bg-alt);
  border-radius: var(--r);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
}
#contact > .wrap { padding-inline: 0; }
.sec-head { max-width: 60ch; margin-bottom: clamp(38px, 5vw, 62px); }

/* ── product grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
/* grey container on white, no border — colour comes from the photograph */
.card {
  grid-column: span 1;
  background: var(--card);
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(20,24,46,.3);
}
/* the whole coconut is the hero SKU — it takes the full row and turns
   horizontal so the photograph gets room to work */
.card-wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}
.card-img { position: relative; overflow: hidden; background: #E9EBEF; }
.card-img img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  transition: transform .7s var(--ease);
}
.card-wide .card-img { height: 100%; }
.card-wide .card-img img {
  aspect-ratio: 16/11;          /* keeps the row from growing to the photo's full height */
  height: 100%; width: 100%;
  object-position: center 42%;
}
.card-wide .card-body { justify-content: center; padding: 36px 38px; gap: 12px; }
.card-wide h3 { font-size: 1.7rem; }
.card-wide .card-body > p:not(.cn) { font-size: 1rem; max-width: 44ch; }
.card-wide .tags { margin-top: 6px; }   /* sits with the copy, not floated to the base */
.card:hover .card-img img { transform: scale(1.045); }
.vol {
  position: absolute; left: 14px; top: 14px;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  color: #fff; font-family: var(--ff-d); font-weight: 500;
  font-size: 1.15rem; line-height: 1;
  padding: 9px 12px; border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.vol i { font-style: normal; font-size: .62em; opacity: .82; margin-left: 1px; }
.vol-seal { background: var(--yellow); color: var(--navy-d); font-size: .92rem; padding: 10px 13px; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body > p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.card-body .cn { font-size: .88rem; color: var(--sky-d); letter-spacing: .05em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 0; padding: 12px 0 0; }
.tags li {
  font-size: .71rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 100px;
}

/* ── why ── */
.why-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.why-cn { font-size: 1.05rem; color: var(--sky-d); margin: 26px 0 0; letter-spacing: .05em; }
.facts { margin: 0; display: grid; gap: 2px; }
.facts > div { padding: 22px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt {
  font-family: var(--ff-d); font-size: 1.1rem; font-weight: 600;
  color: var(--display); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 10px;
}
.facts dt::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky); flex: none;
}
.facts dd { margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 46ch; padding-left: 16px; }

/* ── image banner (rounded container, not a full-bleed colour block) ── */
.bleed {
  position: relative; overflow: hidden;
  width: calc(100% - 48px);
  max-width: var(--wrap);
  margin: 0 auto;
  border-radius: var(--r);
}
.bleed img {
  width: 100%; height: clamp(320px, 46vh, 500px);
  object-fit: cover; object-position: center 38%;
}
/* a soft scrim only where the type sits — the photograph stays the subject */
.bleed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(18,22,52,.62) 0%,
    rgba(18,22,52,.34) 38%,
    rgba(18,22,52,0) 70%
  );
}
.bleed-q {
  position: absolute; z-index: 2;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 100%;
  padding-inline: clamp(28px, 5vw, 64px);
}
.bleed-q p {
  font-family: var(--ff-cn);
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  font-weight: 300; line-height: 1.32;
  color: #fff; margin: 0; letter-spacing: .04em;
}
.bleed-q span {
  display: block; margin-top: 18px;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: #EAF4FB;                      /* on the dark scrim, not the page ground */
  text-shadow: 0 1px 12px rgba(10,14,36,.7);
}
.bleed-q p { text-shadow: 0 2px 18px rgba(10,14,36,.55); }

/* ── serve ── */
.serve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.serve-card {
  padding: 34px 30px 38px;
  background: var(--bg-alt);
  border: 0;
  border-radius: var(--r);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.serve-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -22px rgba(20,24,46,.28);
}
.serve-card h3 { color: var(--display); }
.serve-card .cn { font-size: .86rem; color: var(--sky-d); margin: 6px 0 12px; letter-spacing: .08em; }
.serve-card p:last-child { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* ── offer ── */
.offer { background: var(--bg); padding-block: clamp(64px, 9vw, 110px); }
.offer-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.offer-fig { margin: 0; }
.offer-fig img {
  width: 100%; border-radius: var(--r);
  aspect-ratio: 4/5; object-fit: cover;
  box-shadow: 0 26px 50px -28px rgba(37,44,107,.42);
}
.offer-cn { font-family: var(--ff-cn); color: var(--sky-d); margin: 18px 0 28px; letter-spacing: .06em; }

/* ── contact ── */
.contact-in {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(36px, 5vw, 72px); align-items: start;
  background: var(--bg-alt);
  border-radius: var(--r);
  padding: clamp(36px, 5vw, 68px);
}
.addr { font-style: normal; font-size: .95rem; color: var(--ink-2); }
.addr p { margin: 0 0 4px; }
.addr-k {
  font-size: .71rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky-d); margin-top: 24px; margin-bottom: 8px;
}
.addr > .addr-k:first-child { margin-top: 0; }
.addr a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.addr a:hover { border-bottom-color: var(--sky-d); }

/* ── footer ── */
.foot { background: var(--bg); border-top: 1px solid var(--line); color: var(--ink-2); padding-block: 44px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot img { width: 82px; border-radius: 3px; }
.foot-cn { font-size: .87rem; color: var(--sky-d); margin: 0; letter-spacing: .05em; }
.foot-c { font-size: .8rem; margin: 0; color: var(--ink-2); opacity: .8; }

/* ── reveal ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ═══ responsive ═══ */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links, .nav-in > .btn-sm { display: none; }
  .burger { display: block; margin-left: auto; }
  .mobile[data-open="true"] { display: flex; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 56px; }
  .hero-copy { max-width: none; }
  .hero-fig { order: -1; }
  .hero-fig img { aspect-ratio: 16/11; }
  .why-in, .contact-in, .offer-in { grid-template-columns: 1fr; }
  .offer-fig { max-width: 400px; }
  .serve { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  h1 { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-wide { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .card-wide .card-img img { aspect-ratio: 4/3; height: auto; min-height: 0; }
  .card-wide .card-body { padding: 24px 22px 28px; }
  .card-wide h3 { font-size: 1.3rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .strip-run { animation-duration: 24s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .drops { display: none; }
}
