/* ==========================================================================
   NIZOR — Strategic Procurement. Trusted Results.
   Design system & global styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Apotek Extended';
  src: url('../fonts/ApotekExtended-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apotek Extended';
  src: url('../fonts/ApotekExtended-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Now Display';
  src: url('../fonts/HelveticaNowDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --green: #7C9900;
  --green-dark: #647A00;
  --green-deep: #4C5C00;
  --green-light: #93B300;
  --green-pale: #F2F6E3;
  --green-tint: #FAFCF3;

  /* Neutrals */
  --ink: #14160F;
  --text: #33362C;
  --text-light: #6B6E63;
  --text-muted: #9A9C93;
  --line: #E3E4DD;
  --line-soft: #EFF0EA;
  --off-white: #F6F6F2;
  --warm-white: #FBFBF8;
  --beige: #EDE6D4;
  --beige-dark: #E2DAC3;
  --white: #FFFFFF;

  /* Type */
  /* Headings and UI run on Helvetica Now — lighter and more refined than the
     display face. Apotek is reserved for the logo wordmark only. */
  --font-display: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-logo: 'Apotek Extended', 'Arial Narrow', Arial, sans-serif;

  --tracking-wide: 0.08em;
  --tracking-wider: 0.16em;
  --tracking-widest: 0.24em;

  /* Layout */
  --container: 1240px;
  --container-narrow: 860px;
  --gutter: 32px;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-2xl: 128px;

  /* Corner radii — echoes the rounded joints in the logo mark */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  /* Chrome */
  --header-h: 104px;
}

@media (max-width: 900px) {
  :root {
    --gutter: 22px;
    --space-xl: 68px;
    --space-2xl: 84px;
    --header-h: 76px;
  }
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Locks scrolling while the preloader is on screen */
body.is-loading { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Weight stays at 400 — only the Regular cut is licensed, so anything heavier
   would be faux-bolded by the browser. The airiness comes from tracking. */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.18;
  color: var(--ink);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-xl); }
.section--lg { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-lg); }
.section--pale,
.section--tinted {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
  border-radius: var(--radius-xl);
}

.section--pale { background: var(--warm-white); }
.section--tinted { background: var(--green-tint); }

.stack > * + * { margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   5. Typography helpers
   -------------------------------------------------------------------------- */

/* Small uppercase label above a heading */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 var(--space-sm);
  display: block;
}

.eyebrow--muted { color: var(--text-muted); }

.h-display {
  font-size: clamp(2.05rem, 4.8vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1.1;
}

.h-1 { font-size: clamp(1.7rem, 3.5vw, 2.55rem); letter-spacing: 0; }
.h-2 { font-size: clamp(1.4rem, 2.7vw, 1.95rem); letter-spacing: 0.005em; }
.h-3 { font-size: clamp(1.08rem, 1.85vw, 1.32rem); letter-spacing: 0.01em; }
.h-4 { font-size: 1rem; letter-spacing: 0.015em; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.72;
  color: var(--text-light);
}

.muted { color: var(--text-light); }

/* Highlights a keyword inside body copy — the brand's "kernwoorden" */
.key { color: var(--green); }

.rule {
  width: 56px;
  height: 2px;
  background: var(--green);
  border: 0;
  border-radius: var(--radius-pill);
  margin: var(--space-md) 0;
}

.rule--center { margin-inline: auto; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  --btn-bd: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 28px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
}

.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

/* On narrow screens buttons stack and share one width, so a pair reads as a
   single block rather than two ragged pills. */
@media (max-width: 600px) {
  .hero__actions,
  .cta__actions,
  .band__inner div > div[style*="flex"] {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn,
  .cta__actions .btn,
  .band .btn {
    width: 100%;
    justify-content: center;
  }
}

.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,.55);
}
.btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* Beige fill with green lettering. Uses the deep green — brand green on beige
   only reaches 2.6:1, well under the readable threshold at this size. */
.btn--beige {
  --btn-bg: var(--beige);
  --btn-fg: var(--green-deep);
  --btn-bd: var(--beige);
}
.btn--beige:hover {
  background: var(--beige-dark);
  border-color: var(--beige-dark);
  color: var(--green-deep);
}

.btn--on-green {
  --btn-bg: #fff;
  --btn-fg: var(--green-deep);
  --btn-bd: #fff;
}
.btn--on-green:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

/* Text link with an animated underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--green);
  padding-bottom: 4px;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .5s var(--ease), color .3s var(--ease);
}
.link:hover { background-size: 0% 1px; }
.link__arrow { transition: transform .4s var(--ease); }
.link:hover .link__arrow { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   7. Preloader
   -------------------------------------------------------------------------- */

/* Rebuilds the brand pattern sheet: a green-to-white wash with the mark
   tiled over it and the pay-off sitting at the foot of the page. */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(180deg,
    #7C9900 0%,
    #86A100 14%,
    #A8BE4B 38%,
    #CFDC9C 60%,
    #EAF0D5 78%,
    #FBFCF6 92%,
    #FFFFFF 100%);
  pointer-events: none;
  overflow: hidden;
}

/* Tiled mark. White at a low opacity so it reads as a watermark up top and
   melts away as the wash turns white towards the bottom. */
.preloader__pattern {
  position: absolute;
  inset: -10%;
  background-color: #fff;
  opacity: .22;
  -webkit-mask: url('../logo/nizor-mark.svg') repeat center / 190px;
  mask: url('../logo/nizor-mark.svg') repeat center / 190px;
}

.preloader__tagline {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 64px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: clamp(13px, 1.6vw, 19px);
  color: var(--green);
}

@media (max-width: 640px) {
  .preloader__pattern { -webkit-mask-size: 120px; mask-size: 120px; }
  .preloader__tagline { font-size: 12px; }
}

/* Fades the green curtain away, revealing the hero underneath */
.preloader.is-clearing {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}

.preloader.is-done { display: none; }

/* The travelling mark. Positioned bottom-left, then FLIP-animated into the
   header slot by js. Uses its own layer so it sits above the green curtain. */
.preloader-mark {
  position: fixed;
  z-index: 210;
  left: var(--gutter);
  bottom: var(--gutter);
  width: 132px;
  color: var(--green);
  will-change: transform;
}

/* Recolours mid-flight: green while it sits on the pale foot of the pattern,
   white by the time it lands on the dark hero. */
.preloader-mark .mark { transition: background-color 1.1s var(--ease); }
.preloader-mark.is-flying { color: #fff; }

/* --- Logo primitives ---------------------------------------------------- */

/* The mark is drawn as a CSS mask so it inherits colour from `color`,
   letting the same asset be white on the hero and green on light sections. */
.mark {
  display: block;
  width: 100%;
  aspect-ratio: 124.256 / 82.394;
  background: currentColor;
  -webkit-mask: url('../logo/nizor-mark.svg') no-repeat center / contain;
  mask: url('../logo/nizor-mark.svg') no-repeat center / contain;
}

.wordmark {
  font-family: var(--font-logo);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: currentColor;
}

/* The travel itself — corner to header slot */
.preloader-mark.is-flying {
  transition: transform 1.25s var(--ease);
}

@media (max-width: 900px) {
  .preloader-mark { width: 92px; }
}

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 18px;
  transition: background .5s var(--ease), box-shadow .5s var(--ease),
              padding .5s var(--ease);
}

.header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Logo lockup sits centred at the top — this is where the preloader mark lands */
.header__logo {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  transition: color .5s var(--ease);
}

.header__logo .mark { width: 46px; transition: width .5s var(--ease); }
.header__logo .wordmark { font-size: 21px; }

/* Hidden until the preloader hands the mark over */
.header__logo.is-awaiting { opacity: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: #fff;
  padding-block: 4px;
  transition: color .4s var(--ease), opacity .4s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__link.is-active { color: var(--green-light); }

/* Scrolled / solid state — used on the homepage after the hero, and always
   on interior pages that open on a light background. */
.header.is-solid {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 12px;
}

.header.is-solid .header__logo { color: var(--green); }
.header.is-solid .header__logo .mark { width: 38px; }
.header.is-solid .nav__link { color: var(--text); }
.header.is-solid .nav__link.is-active { color: var(--green); }
.header.is-solid .nav__toggle span { background: var(--ink); }

/* Mobile toggle */
.nav__toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: var(--gutter);
  width: 30px;
  height: 20px;
  z-index: 2;
}

.nav__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: transform .45s var(--ease), opacity .3s var(--ease), background .5s var(--ease);
}

.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 9px; }
.nav__toggle span:nth-child(3) { top: 16px; }

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: block; }

  /* Opacity and pointer-events carry the open/closed state; the clip-path is
     only the flourish on top. That way a browser that mishandles the animated
     clip still gets a working menu, and the closed panel can never swallow
     clicks meant for the page underneath. */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--green);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    clip-path: circle(0% at calc(100% - 34px) 32px);
    transition: clip-path .6s var(--ease), opacity .35s var(--ease),
                visibility 0s linear .6s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    clip-path: circle(150% at calc(100% - 34px) 32px);
    transition: clip-path .6s var(--ease), opacity .3s var(--ease),
                visibility 0s linear 0s;
  }

  .nav__link,
  .header.is-solid .nav__link {
    color: #fff;
    font-size: 15px;
  }

  .header.is-solid .nav__link.is-active,
  .nav__link.is-active { color: var(--green-pale); }

  .header__inner { align-items: flex-start; }
  .header__logo { width: 70px; }
  .header.is-solid .header__logo { width: 64px; }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero plays in full colour — the greyscale treatment is for the inline
   photography further down the page, not the banner. */
.hero__media img,
.hero__media video,
.hero__media .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.05);
}

/* Legibility scrim — dark at the bottom where the copy sits */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,22,15,.5) 0%, rgba(20,22,15,0) 34%),
    linear-gradient(0deg, rgba(20,22,15,.78) 0%, rgba(20,22,15,.14) 52%, rgba(20,22,15,0) 78%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(64px, 11vh, 128px);
  color: #fff;
  /* Carries legibility now that the scrim is gone */
  text-shadow: 0 1px 26px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.35);
}

.hero__content .btn { text-shadow: none; }

.hero__title {
  color: #fff;
  max-width: 17ch;
}

.hero__text {
  max-width: 46ch;
  margin-top: var(--space-md);
  color: rgba(255,255,255,.82);
}

/* Pay-off, set under the headline */
.hero__payoff {
  margin: 18px 0 0;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--space-lg);
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(64px, 11vh, 128px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  writing-mode: vertical-rl;
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: scrollHint 2.4s var(--ease-inout) infinite;
}

@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  .hero__scroll { display: none; }
}

/* Compact hero for interior pages. Carries the brand pattern over a slowly
   drifting white-to-green wash. */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-md));
  padding-bottom: var(--space-lg);
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: linear-gradient(115deg,
    #FFFFFF 0%,
    #F4F8E6 16%,
    #D7E3A8 32%,
    #A8BE4B 48%,
    #7C9900 60%,
    #C3D383 74%,
    #F2F6E3 88%,
    #FFFFFF 100%);
  background-size: 320% 320%;
  animation: pageHeroWash 22s var(--ease-inout) infinite;
}

@keyframes pageHeroWash {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* Brand pattern sheet, laid over the wash */
.page-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../logo/pattern.png');
  background-repeat: repeat;
  /* Natural size — the artwork is drawn at this scale and tiles seamlessly.
     Rescaling it changes the density the pattern was designed around. */
  background-size: 1646px 578px;
  background-position: center;
}

.page-hero__inner { position: relative; z-index: 1; max-width: 62ch; }

/* Interior titles sit a step below the homepage banner in scale */
.page-hero .h-display {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.14;
}

.page-hero .lead { font-size: clamp(.98rem, 1.3vw, 1.08rem); }
.page-hero .eyebrow { margin-bottom: 10px; }

/* Keeps the copy legible wherever the wash happens to be */
.page-hero__inner .eyebrow { color: var(--green-deep); }
.page-hero__inner h1 { color: var(--ink); }
.page-hero__inner .lead { color: var(--text); }

@media (max-width: 900px) {
  .page-hero__pattern { -webkit-mask-size: 130px; mask-size: 130px; }
}

/* --------------------------------------------------------------------------
   9b. Statement — the opening line, lifted out of the banner
   -------------------------------------------------------------------------- */

/* Scroll-driven sequence. The section is deliberately taller than the viewport
   so the sticky stage inside it has runway to play out three beats:
   beige mark on white -> the wash floods beige and swallows the mark ->
   the copy types in. `--p` (0-1) is written by js on scroll. */
.statement {
  position: relative;
  z-index: 0;
  height: 300vh;
  --p: 0;
}

/* Opens on brand green so the beige mark actually reads — beige on white is
   almost invisible. */
.statement__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green);
}

/* Beat 2 — beige floods over the green */
.statement__wash {
  position: absolute;
  inset: 0;
  background: var(--beige);
  opacity: calc((var(--p) - 0.26) / 0.22);
}

/* Beat 1 — the mark, held while the section is green, then faded out */
.statement__logo {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  width: clamp(180px, 26vw, 340px);
  height: auto;
  opacity: calc(1 - (var(--p) - 0.26) / 0.16);
  transform: scale(calc(1 - var(--p) * 0.14));
}

/* Beat 3 — the copy */
.statement__body {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  opacity: calc((var(--p) - 0.52) / 0.16);
}

/* Static fallback: no js, or the visitor asked for less motion */
.statement.is-static { height: auto; }
.statement.is-static .statement__sticky {
  position: static;
  height: auto;
  padding-block: clamp(52px, 8vh, 92px);
  background: var(--beige);
}
.statement.is-static .statement__wash,
.statement.is-static .statement__logo { display: none; }
.statement.is-static .statement__body { opacity: 1; }

.statement__text {
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  line-height: 1.55;
  color: var(--ink);
}

/* The brand name keeps the logo face */
.statement__brand {
  font-family: var(--font-logo);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--green);
}

/* Typewriter. Characters are pre-rendered and merely hidden, so the paragraph
   holds its final height and nothing reflows while it types. */
.statement__text[data-typewriter] .ch { visibility: hidden; }
.statement__text[data-typewriter] .ch.is-on { visibility: visible; }

.statement__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline: 1px;
  vertical-align: -0.14em;
  background: var(--green);
  border-radius: 1px;
  animation: caretBlink .9s steps(1) infinite;
}

@keyframes caretBlink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }

/* --------------------------------------------------------------------------
   10. Media / placeholders
   -------------------------------------------------------------------------- */

/* Marks where a photo goes until the real image is supplied. The label is
   set with data-label on the element. */
.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg,
      #E8E8E2 0px, #E8E8E2 12px,
      #E1E1DA 12px, #E1E1DA 24px);
  color: var(--text-muted);
  min-height: 260px;
  border-radius: inherit;
}

.placeholder::after {
  content: attr(data-label);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.9);
  color: var(--text-light);
  white-space: nowrap;
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--off-white);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.04);
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
}

.media--zoom:hover img { transform: scale(1.045); }

.media--ratio-4-3 { aspect-ratio: 4 / 3; }
.media--ratio-3-4 { aspect-ratio: 3 / 4; }
.media--ratio-16-9 { aspect-ratio: 16 / 9; }
.media--ratio-1-1 { aspect-ratio: 1 / 1; }

/* --------------------------------------------------------------------------
   11. Section header
   -------------------------------------------------------------------------- */

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__title + .section-head__text { margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   12. Split (image + text) block
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.split--reverse .split__media { order: 2; }

.split__body { max-width: 52ch; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* --------------------------------------------------------------------------
   13. Pillar cards
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-lg);
  transition: background .5s var(--ease), border-color .5s var(--ease),
              transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden;
}

.pillar:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -30px rgba(20,22,15,.45);
}

.pillar:hover { background: var(--beige-dark); }

/* Pillar 1 is the core proposition and carries more visual weight */
/* .pillar--primary is kept in the markup for ordering semantics but no longer
   carries a separate colour — the set reads as one family. */

.pillar__num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-widest);
  color: var(--green-deep);
  margin-bottom: var(--space-md);
}

.pillar__title { margin-bottom: var(--space-sm); }

.pillar__text {
  color: var(--text);
  font-size: 15.5px;
  margin-bottom: var(--space-md);
}

.pillar__foot { margin-top: auto; }

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   14. USP / feature list
   -------------------------------------------------------------------------- */

/* Sits outside .container in the markup, so it carries its own gutters */
.usps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.usp {
  display: flex;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .45s var(--ease), background .45s var(--ease);
}

.usp:hover { border-color: var(--green); background: var(--green-tint); }

.usp__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--green);
}

.usp__text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   15. Audience cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-md);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .5s var(--ease), transform .5s var(--ease),
              box-shadow .5s var(--ease);
}

.card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -28px rgba(20,22,15,.4);
}

.card__icon {
  width: 30px;
  height: 30px;
  color: var(--green);
  margin-bottom: var(--space-md);
}

.card__title { margin-bottom: 12px; }

.card__text {
  font-size: 15.5px;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   16. Chips / tags
   -------------------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease);
}

.chip:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* --------------------------------------------------------------------------
   17. Client list
   -------------------------------------------------------------------------- */

.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 44px;
}

.clients__item {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .4s var(--ease);
}

.clients__item:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   17b. Partners marquee
   -------------------------------------------------------------------------- */
.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-block: 26px;
  background: #fff;
  border-block: 1px solid var(--beige);
  overflow: hidden;
}

.partners__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
  text-align: center;
}

.partners__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.partners__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  padding-right: 56px;
  animation: partners-scroll 34s linear infinite;
}

.partners:hover .partners__track { animation-play-state: paused; }

.partners__item {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.partners__item img {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; }
  .partners__viewport { overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   18. Accordion
   -------------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--line); }

.acc {
  border-bottom: 1px solid var(--line);
}

.acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: 24px 22px;
  text-align: left;
  border-radius: var(--radius);
  transition: color .4s var(--ease), background .4s var(--ease);
}

.acc__trigger:hover { color: var(--green); background: var(--green-tint); }

.acc__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: inherit;
}

.acc__icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.acc__icon::before,
.acc__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}

.acc__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; margin-top: -.75px; }
.acc__icon::after { left: 50%; top: 0; height: 100%; width: 1.5px; margin-left: -.75px; }

.acc.is-open .acc__icon::after { transform: rotate(90deg); opacity: 0; }
.acc.is-open .acc__trigger { color: var(--green); }

.acc__panel {
  overflow: hidden;
  height: 0;
  transition: height .55s var(--ease);
}

.acc__inner {
  padding: 0 22px var(--space-md);
  max-width: 68ch;
}

/* Two-column checklist inside a panel */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 32px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-light);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 11px;
  height: 6px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   19. Highlight band (green)
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
  background: var(--green);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.band h2, .band h3 { color: #fff; }
.band .lead, .band p { color: rgba(255,255,255,.86); }
.band .eyebrow { color: rgba(255,255,255,.7); }
.band .checklist li { color: rgba(255,255,255,.86); }
.band .checklist li::before { border-color: #fff; }

/* Faint tiled mark, echoing the brand pattern sheet */
.band__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../logo/pattern.png');
  background-repeat: repeat;
  background-size: 1646px 578px;
  background-position: center;
}

@media (max-width: 900px) {
  .band__inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   20. Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.stat { text-align: center; }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--green);
  line-height: 1;
}

.stat__label {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   21. CTA banner
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: var(--space-2xl);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius-xl);
  text-align: center;
}

.cta__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__media img,
.cta__media .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(.42);
}

.cta__inner { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   22. Contact strip
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.contact-item {
  padding: clamp(24px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .45s var(--ease);
}

.contact-item:hover { border-color: var(--green); }

.contact-item__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-item__value {
  font-size: 16px;
  color: var(--ink);
  transition: color .3s var(--ease);
}

a.contact-item__value:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,.62);
  padding-top: var(--space-xl);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  font-size: 14.5px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg) var(--space-md);
  padding-bottom: var(--space-xl);
}

.footer__lockup {
  width: 236px;
  height: auto;
  margin-bottom: var(--space-md);
}

.footer__title {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__list li + li { margin-top: 11px; }

.footer__list a { transition: color .3s var(--ease); }
.footer__list a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px var(--space-md);
  padding-block: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   24. WhatsApp float
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 17px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(20,22,15,.45);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease),
              background .4s var(--ease);
}

.wa-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wa-float:hover { background: var(--green-dark); }

.wa-float svg { width: 24px; height: 24px; flex-shrink: 0; }

.wa-float__label {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  transition: max-width .55s var(--ease), opacity .4s var(--ease),
              margin-left .55s var(--ease);
}

.wa-float:hover .wa-float__label {
  max-width: 220px;
  opacity: 1;
  margin-left: 11px;
}

@media (max-width: 900px) {
  .wa-float { right: 16px; bottom: 16px; height: 52px; }
}

/* --------------------------------------------------------------------------
   25. Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* Staggers children of a revealed container */
.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal-group.is-in > * { opacity: 1; transform: none; }
.reveal-group.is-in > *:nth-child(1) { transition-delay: .00s; }
.reveal-group.is-in > *:nth-child(2) { transition-delay: .07s; }
.reveal-group.is-in > *:nth-child(3) { transition-delay: .14s; }
.reveal-group.is-in > *:nth-child(4) { transition-delay: .21s; }
.reveal-group.is-in > *:nth-child(5) { transition-delay: .28s; }
.reveal-group.is-in > *:nth-child(6) { transition-delay: .35s; }
.reveal-group.is-in > *:nth-child(7) { transition-delay: .42s; }
.reveal-group.is-in > *:nth-child(8) { transition-delay: .49s; }
.reveal-group.is-in > *:nth-child(9) { transition-delay: .56s; }

/* Hero copy animates in once the preloader has cleared */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
}

body.is-revealed .hero-anim {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

body.is-revealed .hero-anim:nth-of-type(2) { transition-delay: .1s; }
body.is-revealed .hero-anim:nth-of-type(3) { transition-delay: .2s; }

/* --------------------------------------------------------------------------
   26. Utilities
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--gutter);
  z-index: 300;
  padding: 12px 22px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: top .3s var(--ease);
}

.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   27. Full-bleed image break
   -------------------------------------------------------------------------- */

.imagebreak {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 0 auto var(--space-2xl);
}

/* The source is a tall portrait shot, so the crop stays generous rather than
   letterboxing it down to a strip. */
.imagebreak__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 16 / 9;
  background: var(--off-white);
}

.imagebreak__media img,
.imagebreak__media .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* On narrow screens the portrait crop suits both the photo and the viewport */
@media (max-width: 700px) {
  .imagebreak__media { aspect-ratio: 4 / 5; }
}
