/* =========================================================================
   PUMP KITCHENS AE — core
   Tokens, reset, typography, nav, buttons, shared section furniture.

   Palette: black and off-white carry the whole page, with a single pastel
   green as the only colour. Three steps of that green exist purely so it
   stays legible on both surfaces — pastel reads on black but fails on white,
   so light surfaces get the darker steps.
   ========================================================================= */

:root {
  /* --- surface ---
     Five grounds, not two. Running section after section of the same black
     is what made the page feel repetitive, so the pastel green earns its own
     light ground (--mint) and its own dark one (--forest). True black is then
     spent deliberately, on the two places that need the most contrast. */
  --paper: #ffffff;
  --bone: #f5f4f0;
  --bone-warm: #efeee9;
  --mint: #e8f0e4;
  --mint-deep: #d9e7d3;
  --forest: #0e1b12;
  --ink: #101214;
  --ink-deep: #070809;
  --ink-soft: #171a1c;

  /* --- brand: one pastel green against the black/off-white ---
     --accent      pastel, for DARK surfaces
     --accent-mid  darkened so 11px uppercase still clears AA on white
     --accent-deep deepest, for prices and labels on light surfaces      */
  --accent: #a9cba4;
  --accent-mid: #5c7a52;
  --accent-deep: #40563a;
  --haze: #e9ebe7;
  --haze-soft: #f2f3f0;

  /* --- type on light --- */
  --t-hi: #12161a;
  --t-mid: #4b565e;
  /* --t-lo carries 10-12px labels and the macro rows, so it has to clear AA at
     small sizes on EVERY light ground: 5.5:1 on --paper, 5.0:1 on --bone,
     4.7:1 on --mint (the mint wash is the tightest of the three). */
  --t-lo: #5f6a70;
  --rule: rgba(18, 22, 26, 0.1);
  --rule-soft: rgba(18, 22, 26, 0.055);

  /* --- type on dark --- */
  --d-hi: #f6f4f0;
  --d-mid: #a3aeb5;
  /* same reasoning on the dark surfaces: 5.2:1 on --ink-deep, 4.8:1 on --ink */
  --d-lo: #7d888f;
  --d-rule: rgba(255, 255, 255, 0.12);
  --d-rule-soft: rgba(255, 255, 255, 0.06);

  /* --- type families --- */
  --f-display: "Anton", "Haettenschweiler", "Arial Narrow Bold", Impact, sans-serif;
  --f-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  /* --- metrics --- */
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --maxw-text: 62ch;
  --nav-h: 68px;

  /* --- motion ---
     Two easings, and a split between INTERACTION time and ENTRANCE time.
     Hover/press feedback has to feel instant (Emil Kowalski's standard:
     press 100-160ms, hover well under 300ms), so it uses --t-tap / --t-hover.
     One-time scroll entrances are rarer and can be expressive, so those keep
     their own longer durations inline. */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-tap: 140ms;
  --t-hover: 200ms;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--t-hi);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, canvas, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 1080px; }

.section { padding-block: clamp(80px, 11vw, 168px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--dark { background: var(--ink); color: var(--d-hi); }
.section--deep { background: var(--ink-deep); color: var(--d-hi); }
.section--bone { background: var(--bone); }
.section--haze { background: var(--haze-soft); }

/* A light ground in the brand green. Light is the default type context, so
   this needs no child overrides — just the ground. */
.section--mint { background: var(--mint); }

/* A dark ground in the brand green. Applied ALONGSIDE .section--dark or
   .section--deep so every "on dark" child rule already written keeps
   matching; this only swaps the ground out from under them. */
.section--dark.tone-forest,
.section--deep.tone-forest { background: var(--forest); }

.section--dark .t-mid, .section--deep .t-mid { color: var(--d-mid); }
.section--dark .t-lo,  .section--deep .t-lo  { color: var(--d-lo); }

/* ---------- typography ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.d-xxl { font-size: clamp(56px, 13.5vw, 208px); }
.d-xl  { font-size: clamp(44px, 8.6vw, 128px); }
.d-lg  { font-size: clamp(34px, 5.6vw, 82px); }
.d-md  { font-size: clamp(27px, 3.9vw, 54px); }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-lo);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
.eyebrow--plain::before { display: none; }
.section--dark .eyebrow, .section--deep .eyebrow { color: var(--accent); }

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--t-mid);
  max-width: var(--maxw-text);
  font-weight: 300;
}
.section--dark .lede, .section--deep .lede { color: var(--d-mid); }

.t-mid { color: var(--t-mid); }
.t-lo { color: var(--t-lo); }

/* numeric detail — macros, prices, counters */
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-hover) var(--e-out), box-shadow var(--t-hover) var(--e-out);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-mid);
  transform: translateY(101%);
  transition: transform 0.4s var(--e-out);
}
.btn__arrow { transition: transform var(--t-hover) var(--e-out); }

/* press feedback: a quick, small scale-down so the button feels physical.
   140ms and 0.98 sit inside the subtle range that reads as a press, not a
   bounce. Fires on real click and on keyboard activation. */
.btn:active { transform: translateY(0) scale(0.98); transition-duration: var(--t-tap); }

/* hover effects only where a real pointer can hover, so they never stick on a
   touch screen after a tap */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18, 22, 26, 0.19); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .btn--ghost:hover { --btn-fg: #fff; }
}

/* Ghost buttons carry both their text and their ring on variables, so a dark
   context only has to restate the two values. Without this the ink-dark text
   and ink-dark ring vanish the moment the nav inverts over a dark section. */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--t-hi);
  --btn-ring: var(--rule);
  box-shadow: inset 0 0 0 1px var(--btn-ring);
}

.nav.on-dark .btn--ghost,
.section--dark .btn--ghost,
.section--deep .btn--ghost {
  --btn-fg: var(--d-hi);
  --btn-ring: rgba(255, 255, 255, 0.22);
}
.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
.btn--light:hover { --btn-fg: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--e-out), box-shadow 0.45s var(--e-out),
              backdrop-filter 0.45s var(--e-out), transform 0.5s var(--e-out);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--rule-soft);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-dark { color: var(--d-hi); }
.nav.on-dark.is-stuck {
  background: rgba(10, 13, 15, 0.76);
  box-shadow: 0 1px 0 var(--d-rule-soft);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 22px; width: auto; transition: opacity 0.35s var(--e-out); }
.nav__logo .logo-dark { display: none; }
.nav.on-dark .logo-light { display: none; }
.nav.on-dark .logo-dark { display: block; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 6px;
  color: inherit;
  opacity: 0.72;
  transition: opacity var(--t-hover) var(--e-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-hover) var(--e-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { opacity: 1; }
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__cta { margin-left: 4px; }

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.nav.on-dark .nav__burger { box-shadow: inset 0 0 0 1px var(--d-rule); }
.nav__burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--e-out), opacity 0.3s;
}
.nav__burger span + span { margin-top: 4px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.nav__panel {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: var(--ink);
  color: var(--d-hi);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: var(--nav-h) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  /* visibility, not just clip-path — otherwise the five links stay in the tab
     order while the panel is shut and focus disappears off-screen. It is held
     until the clip animation finishes on close, and flips instantly on open. */
  visibility: hidden;
  transition: clip-path 0.7s var(--e-out), visibility 0s linear 0.7s;
  pointer-events: none;
}
.nav__panel.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--e-out), visibility 0s linear 0s;
  pointer-events: auto;
}
.nav__panel a {
  font-family: var(--f-display);
  font-size: clamp(34px, 9vw, 62px);
  text-transform: uppercase;
  line-height: 1.06;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s var(--e-out), transform 0.5s var(--e-out);
}
.nav__panel.is-open a { opacity: 1; transform: none; }
.nav__panel.is-open a:nth-child(1) { transition-delay: 0.1s; }
.nav__panel.is-open a:nth-child(2) { transition-delay: 0.16s; }
.nav__panel.is-open a:nth-child(3) { transition-delay: 0.22s; }
.nav__panel.is-open a:nth-child(4) { transition-delay: 0.28s; }
.nav__panel.is-open a:nth-child(5) { transition-delay: 0.34s; }
.nav__panel-foot {
  margin-top: 36px;
  font-size: 13px;
  color: var(--d-mid);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- marquee ---------- */
/* Runs on the green ground: a band of colour immediately under the white
   hero, so the palette declares itself before the first dark section. */
.marquee {
  overflow: hidden;
  padding-block: clamp(16px, 2.2vw, 30px);
  border-block: 1px solid rgba(64, 86, 58, 0.14);
  background: var(--mint);
  --mq-dur: 34s;
}
.section--dark .marquee, .marquee--dark {
  background: var(--ink);
  border-color: var(--d-rule-soft);
  color: var(--d-hi);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: mq-slide var(--mq-dur) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item {
  font-family: var(--f-display);
  font-size: clamp(26px, 4.4vw, 62px);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  padding-inline: clamp(18px, 2.4vw, 34px);
  white-space: nowrap;
  line-height: 1;
}
/* On the mint ground the pastel accent would vanish, so the outline and the
   dots step down to the deep green; dark contexts step back up. */
.marquee__item--out {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-deep);
}
.marquee__dot {
  width: clamp(7px, 0.75vw, 11px);
  height: clamp(7px, 0.75vw, 11px);
  border-radius: 50%;
  background: var(--accent-deep);
  flex: none;
}
.section--dark .marquee__item--out,
.marquee--dark .marquee__item--out { -webkit-text-stroke-color: var(--accent); }
.section--dark .marquee__dot,
.marquee--dark .marquee__dot { background: var(--accent); }
@keyframes mq-slide {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- rotating seal (mirrors the real Pump cup print) ---------- */
.seal {
  position: relative;
  width: clamp(112px, 12vw, 160px);
  aspect-ratio: 1;
  flex: none;
}
.seal svg { width: 100%; height: 100%; animation: seal-spin 26s linear infinite; }
.seal text {
  font-family: var(--f-sans);
  font-size: 11.4px;
  font-weight: 500;
  letter-spacing: 0.235em;
  text-transform: uppercase;
  fill: currentColor;
}
.seal__core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.seal__core img { width: 42%; }
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--e-out), transform 0.9s var(--e-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 102% 0);
  transition: clip-path 1.05s var(--e-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal="mask"].is-in { clip-path: inset(0 0 -2% 0); }

[data-reveal="scale"] {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--e-out), transform 1.4s var(--e-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal="scale"].is-in { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.foot {
  background: var(--forest);
  color: var(--d-hi);
  padding-block: clamp(64px, 8vw, 108px) 34px;
}
.foot__top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(44px, 5vw, 72px);
  border-bottom: 1px solid var(--d-rule-soft);
}
.foot__logo { height: 26px; width: auto; margin-bottom: 22px; }
/* the footer is a dark ground but not a .section--dark, so it never inherited
   the on-dark type colours — without this the lede renders grey-on-black */
.foot .lede { color: var(--d-mid); }
.foot h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.foot__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--d-mid); }
.foot__list a { transition: color 0.3s var(--e-out); }
.foot__list a:hover { color: var(--d-hi); }
.foot__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--d-lo);
}
.foot__note { max-width: 46ch; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .foot__top { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
  .seal svg { animation: none; }
}
