/* ============================================================
   SPICE IT — style.css
   Figma design: WEB / Main Design (1440px)
   ============================================================ */

:root {
  --green: #89cc0c; /* primary neon green */
  --green-bright: #c8ff63; /* service section bg  */
  --green-light: #efffd0; /* light green rows    */
  --offwhite: #fcfffa; /* page background (from Figma) */
  --black: #040303;
  --gray: #6b6b6b;
  --transparent: transparent;

  --font-brand: "Texta Alt", Arial, sans-serif;
  --font-display: "Right Grotesk", "Arial Narrow", sans-serif;
  --font-body: "LL Riforma", "Helvetica Neue", Arial, sans-serif;
  --font-brand-alt: "Staatliches", "Arial Narrow", sans-serif;
  --font-druk-cond: "Druk Cond Trial", "Arial Narrow", sans-serif;
  --font-bond4f-ultralight: "Bond4F-UltraLight", "Arial Narrow", sans-serif;

  --container: 1380px;
}

@font-face {
  font-family: "Bond4F-UltraLight";
  src: url("fonts/bond4f-ultralight.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Druk Cond Trial";
  src: url("fonts/DrukCond-Super-Trial.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Right Grotesk";
  src: url("fonts/right-grotesk-tight-black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LL Riforma";
  src: url("fonts/LL Riforma Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Texta Alt";
  src: url("fonts/TextaAltBlack.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Staatliches";
  src: url("fonts/Staatliches-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--black);
}

.container {
  margin: 0 auto;
  padding: 0 50px;
}

/* ---------- generic type ---------- */
.section-title-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr min-content;
  gap: 5px;
  grid-template-areas:
    "title title"
    "subtitle-1 subtitle-2";
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(84px, 14.6vw, 210px);
  line-height: 1;
  letter-spacing: 0;
  grid-area: title;
  text-transform: uppercase;
  margin: auto;
  text-align: center;
}

.section-subtitle-left {
  grid-area: subtitle-1;
  text-align: left;
}
.section-subtitle-right {
  grid-area: subtitle-2;
  text-align: right;
}

.accent {
  color: var(--green);
  position: relative;
  z-index: 1;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.hidden {
  display: none !important;
}

/* ---------- CTA button ---------- */
.btn-cta {
  --cta-arrow-color: var(--green);
  --cta-chevron-image: url("images/cta-chevron-green.svg");
  --cta-label-bg: var(--black);
  --cta-label-fg: #fff;

  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0;
}
.btn-cta.secondary,
.service.alt-a .btn-cta {
  --cta-arrow-color: var(--black);
  --cta-chevron-image: url("images/cta-chevron-black.svg");
}
.btn-cta .chevrons {
  display: inline-flex;
  align-items: center;
  height: 1.75em;
}
.btn-cta .chevron {
  width: 26px;
  height: 1.75em;
  flex: 0 0 auto;
  display: block;
  background-image: var(--cta-chevron-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.btn-cta .chevron + .chevron {
  margin-left: -8px;
}
.btn-cta .chevron:first-child {
  opacity: 0.5;
}
.btn-cta .chevron:last-child {
  opacity: 1;
}

.btn-cta:hover .chevron:first-child,
.btn-cta:focus-visible .chevron:first-child {
  animation: chevron-pulse-a 0.8s ease-in-out infinite;
}
.btn-cta:hover .chevron:last-child,
.btn-cta:focus-visible .chevron:last-child {
  animation: chevron-pulse-b 0.8s ease-in-out infinite;
}
.btn-cta .btn-label {
  font-family: "Druk Cond Trial", var(--font-display);
  font-size: clamp(42px, 3.45vw, 56px);
  font-weight: 1000;
  line-height: 0.84;
  letter-spacing: 0;
  background: var(--cta-label-bg);
  color: var(--cta-label-fg);
  border: 0;
  outline: 0;
  border-radius: 5px;
  padding: 4px;
  display: inline-block;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-cta .btn-label,
.job-poster .btn-cta .btn-label {
  font-size: clamp(36px, 2.9vw, 46px);
}

@media (max-width: 1024px) {
  .btn-cta {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .btn-cta {
    gap: 9px;
  }
  .btn-cta .btn-label {
    font-size: clamp(30px, 9vw, 42px);
  }
  .btn-cta .chevrons {
    height: 41px;
  }
  .btn-cta .chevron {
    width: 20px;
    height: 41px;
  }
  .btn-cta .chevron + .chevron {
    margin-left: -6px;
  }
}

@keyframes chevron-pulse-a {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes chevron-pulse-b {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ---------- image placeholders ---------- */
.img-ph {
  position: relative;
  background:
    linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.08) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.08) 75%,
        transparent 75%
      )
      0 0/28px 28px,
    #cfd4c8;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.img-ph::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--green-bright);
  opacity: 0.1;
}

/* ingredients cards (images extracted from the Figma PDF) */
.img-ph-1 {
  background-image: url("images/ing-left.jpg");
}
.img-ph-2 {
  background-image: url("images/ing-mid.jpg");
}
.img-ph-3 {
  background-image: url("images/ing-right.jpg");
}
/* services */
.img-ph-4 {
  background-image: url("images/service-1.jpg");
}
.img-ph-5 {
  background-image: url("images/service-2.jpg");
}
.img-ph-6 {
  background-image: url("images/service-3.jpg");
}
.img-ph-7 {
  background-image: url("images/service-4.jpg");
}
.img-ph-8 {
  background-image: url("images/service-5.jpg");
}
.img-ph-9 {
  background-image: url("images/service-6.jpg");
}
/* culture slider */
.img-ph-c1 {
  background-image: url("images/culture-slides/img1.JPG");
}
.img-ph-c2 {
  background-image: url("images/culture-slides/img2.jpg");
}
.img-ph-c3 {
  background-image: url("images/culture-slides/img3.jpg");
}
.img-ph-c4 {
  background-image: url("images/culture-slides/img4.jpg");
}
.img-ph-c5 {
  background-image: url("images/culture-slides/img5.jpg");
}
.img-ph-c6 {
  background-image: url("images/culture-slides/img6.jpg");
}
.img-ph-c7 {
  background-image: url("images/culture-slides/img7.jpg");
}
/* job photos */
.img-ph-j1 {
  background-image: url("images/job-1.jpg");
}
.img-ph-j2 {
  background-image: url("images/job-2.jpg");
}
.img-ph-j3 {
  background-image: url("images/job-3.jpg");
}
.img-ph-j4 {
  background-image: url("images/job-4.jpg");
}
.img-ph-j5 {
  background-image: url("images/job-5.jpg");
}
.img-ph-j6 {
  background-image: url("images/job-6.jpg");
}
.img-ph-j7 {
  background-image: url("images/job-7.jpg");
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 30px 0 60px;
  position: relative;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  height: 140px;
  width: 50px;
  top: 30px;
  left: 30px;
  border-top: 1px dashed var(--black);
  border-left: 1px dashed var(--black);
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 100%);
  mask-image: linear-gradient(0deg, transparent 0, #000 100%);
}
.hero::after {
  left: auto;
  right: 30px;
  border-left: 0;
  border-right: 1px dashed var(--black);
}
.hero .container {
  padding: 82px 82px 0 82px;
}

.logo {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(26px, 6vw, 90px);
  text-decoration: none;
  color: var(--black);
}
.logo span {
  color: var(--green);
}

.hero-stage {
  margin-top: -2%;
}

.hero-title {
  font-family: "Druk Cond Trial", var(--font-display);
  font-weight: 1000;
  font-size: clamp(96px, 16.36vw, 250px);
  line-height: 0.9;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  max-width: 1276px;
}
.hero-title .line {
  display: inline-block;
}
.hero-title .line.above {
  position: relative;
  z-index: 2;
}

.hero-cta {
  position: relative;
  z-index: 3;
  margin-top: -14px;
  float: right;
}
.hero-stage::after {
  content: "";
  display: block;
  clear: both;
}

.hero-pin {
  position: absolute;
  left: 5%;
  top: 5%;
  width: 1.55em;
  height: auto;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(0, var(--hero-pin-shift, 0px), 0);
  will-change: transform;
  transition: transform 0.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .hero-pin {
    transform: none;
    transition: none;
  }
}

.hero-tagline {
  margin: 620px auto 0;
  text-align: center;
  font-family: "Right Grotesk", var(--font-display);
  font-size: clamp(34px, 4.86vw, 70px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  max-width: 1170px;
  position: relative;
}
.hero-tagline .tagline-line {
  display: block;
  position: relative;
}
.hero-tagline .tagline-line:has(mark) {
  border-radius: 5px;
}
.hero-tagline .tagline-line:has(mark)::after {
  content: "";
  position: absolute;
  left: var(--hl-left, 0);
  right: var(--hl-right, 0);
  bottom: 1px;
  height: 1em;
  border-radius: 5px;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: scaleX(var(--hero-highlight-progress, 0));
  transform-origin: left center;
}
.hero-tagline em {
  font-style: normal;
  color: var(--green);
}
.hero-word-rotator {
  display: inline-flex;
  justify-content: center;
  white-space: nowrap;
}
.hero-word-rotator .rot-char {
  display: inline-block;
  min-width: 0.55ch;
  text-align: center;
  transform-origin: 50% 60%;
  will-change: transform, opacity, filter;
}
.hero-word-rotator .rot-char.space {
  min-width: 0.35ch;
}
.hero-tagline mark {
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
  margin-top: 0.04em;
  padding: 0 4px 0.1em;
  border-radius: 5px;
  background: transparent;
  color: var(--black);
}
.hero-tagline mark .chili-icon {
  position: relative;
  z-index: 1;
  transform: translateX(var(--chili-shift, 0px));
}
.chili-icon {
  height: 0.73em;
  width: auto;
  display: inline-block;
  margin-top: 12px;
}
.footer-chili .chili-icon {
  height: 22px;
}
.marquee .chili-icon {
  display: inline-block;
  height: 11px;
  filter: brightness(0);
  margin-top: 0;
}

@keyframes hero-char-roll-out {
  0% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(-0.42em) rotateX(80deg);
    opacity: 0;
    filter: blur(1px);
  }
}

@keyframes hero-char-roll-in {
  0% {
    transform: translateY(0.42em) rotateX(-80deg);
    opacity: 0;
    filter: blur(1px);
  }
  100% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
    filter: blur(0);
  }
}

/* ============================================================
   CUSTOMERS
   ============================================================ */
.customers {
  position: relative;
  padding: 545px 0 275px;
  margin-right: -1px;
  background: var(--offwhite);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border-bottom: 1px dashed var(--black);
  z-index: 1;
}
.customers .container {
  padding: 0;
}

.customers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, minmax(131px, auto));
  margin-right: -1px;
}
.customers-grid > * {
  border-right: 1px dashed var(--black);
  border-bottom: 1px dashed var(--black);
}
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.3s ease;
  position: relative;
  min-height: 205px;
  overflow: hidden;
}
.logo-cell__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.logo-cell img {
  max-width: 64%;
  max-height: 62%;
  object-fit: contain;
  transition:
    transform 0.3s ease,
    opacity 0.35s ease;
  position: relative;
  z-index: 1;
}
.logo-cell__description {
  position: absolute;
  inset: 0;
  display: f0lex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1vw, 1.05rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--black);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
  z-index: 2;
}
.logo-cell__description span {
  display: inline-block;
}
.logo-cell:hover img,
.logo-cell:focus-within img {
  transform: scale(1.08);
  opacity: 0.12;
}
.logo-cell:hover .logo-cell__description,
.logo-cell:focus-within .logo-cell__description {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.customers-hero {
  grid-column: 2 / 5;
  grid-row: 2 / 4;
  background:
    linear-gradient(#fcfffa4d, #fcfffa4d),
    url("images/customers-100.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8vw;
}
.customers-hero-inner {
  text-align: center;
  color: var(--black);
  padding-left: 4.5vw;
}
.big-number {
  font-family: "Right Grotesk", var(--font-display);
  font-weight: 900;
  font-size: clamp(180px, 29.5vw, 360px);
  line-height: 0.1;
  letter-spacing: 0;
}
.big-number .rot-char:last-child {
  color: var(--green-bright);
  vertical-align: super;
  font-size: 0.5em;
}
.big-caption {
  font-family: "Right Grotesk", var(--font-display);
  font-size: clamp(38px, 5.5vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}

/* ============================================================
   STORIES
   ============================================================ */
.stories {
  background: var(--black);
  color: #fff;
  padding: 30px 0 28px;
  margin-top: -20px;
  z-index: 0;
}

.stories .container {
  max-width: 1440px;
  padding: 0;
}

.stories .section-title-grid {
  max-width: fit-content;
  margin: auto;
}

.section-title.light {
  color: #fff;
  text-align: center;
}

.stories-sub {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1170px;
  margin: 18px auto 70px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: #d8d8d8;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-bottom: 40px;
}

.story-card {
  position: relative;
  cursor: pointer;
  min-height: 33vw;
  min-width: 0;
}
.story-card-inner {
  height: 100%;
  width: 100%;
  background: var(--offwhite);
  color: var(--black);
  border-radius: 10px;
  padding: 14px 10px 10px;
  min-height: 449px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.story-blank::before,
.story-card::before,
.story-blank::after,
.story-card::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  display: block;
  top: 0;
  left: -1px;
}
.story-blank::before,
.story-card::before {
  border-left: 1px dashed #fff;
}
.story-blank:not(.end)::after,
.story-card::after {
  border-bottom: 1px dashed #fff;
}

.story-card h3 {
  font-family: "Right Grotesk", var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 10vw);
  line-height: 1;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  isolation: isolate;
}
.story-card h3::before {
  content: "";
  position: absolute;
  left: 0.45em;
  right: -2px;
  bottom: 0.08em;
  height: 0.5em;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease;
  z-index: -1;
}
.story-card h3::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: 0.15em;
  width: 0.34em;
  height: 0.34em;
  background: url("images/chili.png") center/contain no-repeat;
  filter: brightness(0);
  opacity: 0;
  transform: translateX(-16px);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
  pointer-events: none;
  z-index: 0;
}
.story-card:hover h3::before,
.story-card:focus-visible h3::before {
  transform: scaleX(1);
  opacity: 1;
}
.story-card:hover h3::after,
.story-card:focus-visible h3::after {
  opacity: 1;
  transform: translateX(0);
}
.tags {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin-top: 28px;
  align-items: flex-end;
}
.tags li {
  display: flex;
  align-items: baseline;
  border: 1px solid var(--black);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
  font-family: "LL Riforma", var(--font-display);
  padding: 5px;
  margin-top: 10px;
  background: #fff;
  text-transform: uppercase;
  vertical-align: middle;
}
.story-num {
  font-family: "Right Grotesk", var(--font-display);
  font-weight: 900;
  font-size: 450px;
  line-height: 0.385;
  margin-top: auto;
  letter-spacing: 0;
  text-align: right;
  transition: transform 0.35s ease;
  will-change: transform;
}
.story-card:not(:first-child) .story-num {
  margin-right: -35px;
}
.story-card:last-child .story-num {
  margin-right: -15px;
}
.story-card:hover .story-num,
.story-card:focus-visible .story-num {
  transform: translateY(-8px);
}
.story-card:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: -2px;
}

body.story-modal-open {
  overflow: hidden;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}
.story-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.story-modal__panel {
  position: relative;
  width: min(633px, 92vw);
  height: min(83vh, 790px);
  background-image: url("images/hero-pin-b.jpg");
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.8);
  background-blend-mode: lighten;
  border-radius: 10px;
  padding: 28px 36px;
  overflow: hidden;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--black);
}
.story-modal__close:hover,
.story-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.12);
}
.story-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--black);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.story-modal__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.story-modal__top {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 28px;
}
.story-modal__logo {
  max-width: 146px;
  max-height: 112px;
  object-fit: contain;
}
.story-modal__panel h3 {
  position: relative;
  z-index: 2;
  font-family: "Right Grotesk", var(--font-display);
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1;
  text-transform: uppercase;
}
.story-modal__divider {
  border-style: dashed;
}
.story-modal__body {
  overflow-y: auto;
}
.story-modal__panel p {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  font-family: "LL Riforma", var(--font-display);
  font-size: 25px;
  line-height: 120%;
  text-transform: uppercase;
}
.story-modal__foot {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.55);
  max-width: none;
}
.story-modal__watermark {
  position: absolute;
  right: 18px;
  bottom: 30px;
  z-index: 0;
  font-family: "Right Grotesk", var(--font-display);
  font-weight: 900;
  font-size: 400px;
  line-height: 0.82;
  color: rgba(0, 0, 0, 0.15);
  letter-spacing: 0;
  pointer-events: none;
}

.story-blank:not(.long):not(.short) {
  background: var(--black);
  border-radius: 10px;
  min-height: 449px;
  position: relative;
  min-width: 0;
}
.story-blank.long,
.story-blank.short {
  position: relative;
  align-self: flex-end;
}
/* Top edge: fade the vertical dashes into the background (mask, like .customers-grid). */
.story-blank.long::before,
.story-blank.short::before {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 100%);
}

.story-blank.long.end,
.story-blank.short.end {
  position: relative;
  align-self: flex-start;
}
/* Bottom edge: fade out toward the background. */
.story-blank.long.end::before,
.story-blank.short.end::before {
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 100%);
  mask-image: linear-gradient(0deg, transparent 0, #000 100%);
}

/* The taller .long cell keeps a longer dash than the .short ones. */
.story-blank.long {
  height: 220px;
}
.story-blank.short {
  height: 130px;
}
.story-blank span {
  position: absolute;
  left: 19px;
  bottom: 16px;
  color: #4c4c4c;
  font-family: "Right Grotesk", var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* ============================================================
   KEEPERS OF THE SECRET RECIPE
   ============================================================ */
.keepers {
  position: relative;
  margin-top: -20px;
  background: var(--offwhite);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px dashed var(--black);
  z-index: 1;
}
.keepers .section-title {
  padding: 3vw;
  font-size: clamp(40px, 11.6vw, 14rem);
}

.keepers-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 52px;
}
.keeper {
  position: relative;
  aspect-ratio: 3 / 4.5;
  overflow: hidden;
  outline: none;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.keeper:nth-of-type(1) .keeper-photo,
.keeper:nth-of-type(1) .keeper-front,
.keeper:nth-of-type(1) .keeper-back {
  border-top-left-radius: 20px;
}
.keeper:nth-last-of-type(1) .keeper-photo,
.keeper:nth-last-of-type(1) .keeper-front,
.keeper:nth-last-of-type(1) .keeper-back {
  border-top-right-radius: 20px;
}
.keeper-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform: none;
}
.keeper-front,
.keeper-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.keeper-front {
  z-index: 1;
}
.keeper-photo {
  flex: 1;
  min-height: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}
.keeper:hover .keeper-photo,
.keeper:focus-visible .keeper-photo,
.keeper:focus-within .keeper-photo {
  transform: scale(1.04);
  filter: grayscale(0.9) brightness(0.75);
}
.keeper-back {
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  height: 100%;
  transform: translateY(calc(100% - 4.5rem));
  padding: 7px 15px 18px;
  gap: 12px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  overflow: auto;
}
.keeper:hover .keeper-back,
.keeper:focus-visible .keeper-back,
.keeper:focus-within .keeper-back {
  transform: translateY(0);
}
.keeper:hover .keeper-name,
.keeper:focus-visible .keeper-name,
.keeper:focus-within .keeper-name {
  transform: translateY(-4px);
}
.keeper-name-top {
  font-family: "Right Grotesk", var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.5vw, 4rem);
  text-align: center;
}
.keeper:hover .keeper-name-top,
.keeper:focus-visible .keeper-name-top,
.keeper:focus-within .keeper-name-top {
  transform: translateY(20px);
}
.keeper-bio {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.82vw, 1.25rem);
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    max-height 0.35s ease,
    transform 0.35s ease;
  overflow: auto;
}
.keeper:hover .keeper-bio,
.keeper:focus-visible .keeper-bio,
.keeper:focus-within .keeper-bio {
  opacity: 1;
  transform: translateY(30px);
}
/* colour variants — matches the Figma name-bar colour per member */
.keeper.is-green .keeper-name,
.keeper.is-green .keeper-back {
  background: var(--green-bright);
  color: var(--black);
}
.keeper.is-black .keeper-name,
.keeper.is-black .keeper-back {
  background: var(--black);
  color: var(--offwhite);
}

@media (max-width: 900px) {
  .keepers-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .keeper:nth-of-type(1) .keeper-photo,
  .keeper:nth-of-type(1) .keeper-back {
    border-top-left-radius: 0;
  }
  .keeper:nth-last-of-type(1) .keeper-photo,
  .keeper:nth-last-of-type(1) .keeper-back {
    border-top-right-radius: 0;
  }
  .keeper-back {
    transform: translateY(calc(100% - 3.5rem));
  }
}
@media (max-width: 560px) {
  .keepers-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .keeper {
    aspect-ratio: 3 / 4.2;
  }
}

/* ============================================================
   INGREDIENTS + PAINS
   ============================================================ */
.ingredients {
  padding: 210px 0 40px;
}
.ingredients .section-title {
  text-align: center;
}

.cards-stack {
  position: relative;
  height: 560px;
  margin: -35px auto 370px;
  --fan-distance: 390px;
}
.cards-stack:hover {
  transform: translateY(100px);
}
.flip-card {
  position: absolute;
  left: 50%;
  top: 30px;
  width: min(370px, 68vw);
  height: 520px;
  --spread-shift: var(--shift);
  --spread-rot: var(--rot);
  --spread-y: 0px;
  --spread-scale: 1;
  transform: translate3d(calc(-50% + var(--spread-shift)), var(--spread-y), 0)
    rotate(var(--spread-rot)) scale(var(--spread-scale));
  perspective: 1200px;
  cursor: pointer;
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s ease,
    z-index 0s;
}
.flip-card:nth-child(1) {
  --shift: -120px;
  --rot: -15deg;
  z-index: 1;
}
.flip-card:nth-child(2) {
  --shift: 0px;
  --rot: 0deg;
  z-index: 2;
  top: 0;
}
.flip-card:nth-child(3) {
  --shift: 96px;
  --rot: 15deg;
  z-index: 3;
  top: 0;
}
.flip-card:focus-visible {
  z-index: 10;
  --spread-scale: 1.04;
}
.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.flip-card:hover .flip-inner,
.flip-card:focus-visible .flip-inner,
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) and (pointer: fine) {
  .cards-stack:hover .flip-card {
    filter: saturate(0.94);
    --spread-rot: 0deg;
  }

  .cards-stack:hover .flip-card:nth-child(1) {
    --spread-shift: calc(var(--fan-distance) * -1);
    --spread-y: -30px;
    z-index: 2;
  }

  .cards-stack:hover .flip-card:nth-child(2) {
    --spread-shift: 0px;
    --spread-y: 0px;
    z-index: 4;
  }

  .cards-stack:hover .flip-card:nth-child(3) {
    --spread-shift: var(--fan-distance);
    --spread-y: 0px;
    z-index: 2;
  }

  .cards-stack:hover .flip-card:hover {
    filter: saturate(1);
    z-index: 6;
  }
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.25);
}
.flip-face hr {
  border: none;
  border-top: 1px dashed var(--offwhite);
  background: none;
  margin: 8px 0 12px 0;
}
.flip-face > div {
  height: 100%;
  overflow: auto;
}
.flip-front {
  display: flex;
  align-items: flex-end;
  padding-bottom: 13px;
}
.flip-word {
  font-family: var(--font-display);
  font-size: 4rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  line-height: 1;
}
.flip-back {
  color: #e9e9e9;
  transform: rotateY(180deg);
  padding: 25px 25px 13px 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 18px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  justify-content: space-between;
}
.flip-back::after,
.flip-back::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--green-bright);
  opacity: 0.1;
}
.flip-back::after {
  background: var(--black);
  opacity: 0.5;
}
.flip-back * {
  position: relative;
  z-index: 1;
}

/* pains */
.pains {
  margin: 90px 0 60px;
}
.pain {
  border-top: 1px dashed rgba(0, 0, 0, 0.35);
}
.pain:last-child {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.35);
}
.pain-head {
  width: 100%;
  background: none;
  border: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
  padding: 26px 50px;
  font-family: var(--font-display);
  color: var(--black);
  -webkit-appearance: none;
  appearance: none;
}
.pain-num {
  font-size: clamp(30px, 7vw, 120px);
  line-height: 1;
  color: var(--black);
}
.pain-q {
  font-size: clamp(30px, 4vw, 70px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--black);
}
.pain-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.pain-body p {
  padding: 30px 6px 80px 40%;
  font-size: clamp(13px, 1.5vw, 25px);
  line-height: 1.55;
  color: #222;
}

/* Keep pain rows visible; only the body should reveal via overflow growth. */
.pains .pain.reveal,
.pains .pain.reveal.visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.pains.js-overflow-reveal .pain-body {
  transition: none;
  will-change: max-height;
}

@supports (animation-timeline: view()) {
  .pain {
    view-timeline-name: --pain;
    view-timeline-axis: block;
  }

  .pain-body {
    max-height: none;
    animation-name: pain-reveal;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --pain;
    will-change: max-height;
  }

  .pain:nth-child(1) .pain-body {
    animation-range: entry 22% exit 100%;
  }

  .pain:nth-child(2) .pain-body {
    animation-range: entry 34% exit 100%;
  }

  .pain:nth-child(3) .pain-body {
    animation-range: entry 46% exit 100%;
  }

  .pain:nth-child(4) .pain-body {
    animation-range: entry 58% exit 100%;
  }

  @keyframes pain-reveal {
    0% {
      max-height: 0;
    }

    25% {
      max-height: 0;
    }

    100% {
      max-height: 420px;
    }
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--green-bright);
  padding: 90px 0 0;
  position: relative;
  /* Clip paint overflow without creating an overflow context that breaks sticky. */
  clip-path: inset(0);
}
.services-head {
  padding-bottom: 70px;
}
.services-head .section-title {
  max-width: 1000px;
}

.service {
  display: block;
  position: relative;
  view-timeline-name: --service;
  view-timeline-axis: block;
  position: sticky;
  top: 0;
  --stack-progress: 0;
  transform-origin: 50% 6%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transform: translate3d(0px, 0px, 0px)
    rotate(calc(1.7371deg * var(--stack-progress)))
    rotateX(calc(17.0436deg * var(--stack-progress)))
    scale(calc(1 - (0.1278 * var(--stack-progress))));
  opacity: clamp(0, calc(1 - ((var(--stack-progress) - 0.7) / 0.2)), 1);
  filter: saturate(calc(1 - (0.1 * var(--stack-progress))));
}

.service.alt-a {
  background: var(--green-bright);
}
.service.alt-b {
  background: var(--green-light);
}

.service-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 70px;
  padding-bottom: 70px;
  align-items: stretch;
}
.service-text {
  display: flex;
  flex-direction: column;
}
.service-text h3 {
  font-family: var(--font-display);
  font-size: max(40px, 3vw);
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 420px;
}
.service-text p {
  margin-top: 26px;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 430px;
}
.service-text .btn-cta {
  margin-top: auto;
  padding-top: 40px;
  align-self: flex-start;
}
.service-media {
  min-height: 340px;
  border-radius: 4px;

  .cards-stack {
    --fan-distance: 210px;
  }
}

.services {
  perspective: 1400px;
  perspective-origin: 50% 0;
}

.services .service-inner.reveal,
.services .service-inner.reveal.visible {
  transition: none;
}

/* ============================================================
   CULTURE
   ============================================================ */
.culture {
  position: relative;
}
.culture-pin {
  position: sticky;
  top: -7em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 210px;
  text-align: center;
  overflow: hidden;
}
.culture .section-title {
  margin-bottom: 60px;
}

.culture-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}
.slider-track {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 auto;
  transition: transform 0.5s cubic-bezier(0.4, 0.1, 0.2, 1);
  will-change: transform;
  user-select: none;
}
.slide {
  flex: 0 0 108px;
  height: 65vh;
  border-radius: 6px;
  transition: flex-basis 0.5s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.slide.active {
  flex-basis: 666px;
}

/* ============================================================
   JOBS
   ============================================================ */
.jobs {
  padding: 40px 0 140px;
}
.jobs .section-title {
  text-align: center;
  margin-bottom: 90px;
}

.job {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  margin-bottom: 110px;
  align-items: start;
}

.job-poster {
  background: var(--green-bright);
  border-radius: 8px;
  padding: 10px;
  position: relative;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.job-poster h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 27px;
  line-height: 1;
  padding: 6px 4px 10px;
}
.job-photo {
  height: 330px;
  border-radius: 4px;
}
.job-num {
  position: absolute;
  left: 14px;
  bottom: 44px;
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 0.8;
  color: var(--black);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}
.job-poster .btn-cta {
  position: absolute;
  right: 16px;
  bottom: 20px;
  font-size: 17px;
}

.job-details h4 {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.job-details .req-title {
  margin-top: 34px;
}
.job-details p {
  font-size: 13.5px;
  line-height: 1.6;
  text-align: justify;
}
.job-details ul {
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
}
.job-details li {
  margin-bottom: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--offwhite);
  text-align: center;
  position: relative;
}
.footer-brand {
  padding-bottom: 34vw;
}
.footer-brand-wrap {
  position: relative;
  text-align: center;
  user-select: none;
}
.footer-brand > div {
  position: relative;
  display: inline-block;
  white-space: pre;
  font-family: var(--font-brand-alt);
  font-size: clamp(122px, 36vw, 530px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--black);
  white-space: nowrap;
  display: inline-block;
}
.footer-brand .value-bar {
  position: absolute;
  bottom: -6.5em;
  left: 0.13em;
  font-size: 0.12em;
  line-height: 1;
  padding-bottom: 5.7em;
  padding-top: 0.45vw;
  z-index: 1;
  border-top-left-radius: 0.35vw;
  border-top-right-radius: 0.35vw;
}
.footer-brand > div:nth-child(2) .value-bar {
  left: 0.35em;
}
.footer-brand > div:nth-child(3) .value-bar {
  left: 0.35em;
}
.footer-brand > div:nth-child(4) .value-bar {
  left: 0.25em;
}
.footer-brand > div:nth-child(5) .value-bar {
  left: 0.35em;
}
.footer-brand > div:nth-child(7) .value-bar {
  left: 0.35em;
}
.footer-brand > div:nth-child(8) .value-bar {
  left: 1.15em;
}

/* bars are positioned by script.js so each one continues a letter stem */
.value-bar {
  position: absolute;
  background: var(--black);
  color: #fff;
  font-family: var(--font-druk-cond);
  letter-spacing: 5%;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.6em 0 0;
  overflow: hidden;
  line-height: 1;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  padding: 14px 40px;
}
.footer-nav .menu-toggle {
  color: #fff;
}
.footer-nav .burger i {
  background: #fff;
}
.footer-nav .linkedin {
  background: #fff;
  color: var(--black);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.3s ease;
}
.burger i {
  width: 33px;
  height: 2px;
  background: #fff;
  display: block;
  border-radius: 99px;
}
.nav-menu.is-open .burger {
  transform: rotate(90deg);
}
.footer-chili {
  display: inline-flex;
  align-items: center;
}
.linkedin {
  background: var(--black);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.marquee {
  background: var(--green);
  overflow: hidden;
  padding: 8px 0;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  font-family: var(--font-bond4f-ultralight);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  height: 16px;
}
.marquee-track span {
  height: 100%;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.footer-dock {
  display: flex;
  height: 80px;
  align-items: flex-end;
  margin-bottom: -1px;
}
.footer-dock > div:nth-child(1) {
  flex: 1;
  background: var(--black);
  border-top-right-radius: 5px;
  height: 25px;
}
.footer-dock > div:nth-child(2) {
  flex: 0 0 calc(clamp(300px, 65vw, 500px) + 4px);
  background: var(--black);
  height: 10px;
  position: relative;
}
.footer-dock > div:nth-child(2)::before {
  display: block;
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15px;
  background: var(--offwhite);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.footer-dock-contact > div:nth-child(2)::before {
  background: var(--green-light);
}
.footer-dock > div:nth-child(3) {
  flex: 1;
  border-top-left-radius: 5px;
  background: var(--black);
  height: 25px;
}

.footer-legal {
  background: var(--black);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 90px 25px 30px;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-align: left;
}
.footer-legal span:nth-child(2) {
  text-align: center;
  line-height: 1.5;
}
.footer-legal span:last-child {
  text-align: right;
}

.footer-legal span span {
  /* display: inline-block; */
  border: 1px solid var(--green);
  border-radius: 3px;
  padding: 4px 2px 0px 2px;
}

/* ============================================================
   MENU DRAWER + FLOATING NAV
   ============================================================ */
.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-drawer {
  position: absolute;
  bottom: calc(100% + 7px);
  left: -10px;
  width: 127px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--black);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 10px 10px 0 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease;
  z-index: 120;
}
.nav-menu.is-open .nav-drawer {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drawer a {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease;
  border-bottom: 1px dashed #fff;
}
.nav-drawer a span {
  display: inline-block;
  width: 100%;
  padding: 5px 0;
  margin: 4px 0;
}
.nav-drawer a:hover span {
  width: calc(100% + 5px);
  background: #fff;
  color: var(--black);
  border-radius: 5px;
  padding-left: 5px;
  margin-left: -5px;
}
.nav-drawer a:last-child {
  border-bottom: 0;
}

/* center brand / scroll-to-top */
.nav-brand {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
}
.nav-brand .chili-icon {
  height: 22px;
  margin: 0;
  flex: 0 0 auto;
}
.nav-chevrons {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 20px;
  overflow: hidden;
  transition:
    width 0.25s ease,
    opacity 0.25s ease;
}
.nav-chevrons.show {
  display: inline-flex;
}
.nav-chevron {
  width: 13px;
  height: 22px;
  background-image: url("images/cta-chevron-green.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(-90deg);
}
.nav-chevron + .nav-chevron {
  margin-top: -12px;
}
.nav-brand-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    max-width 0.3s ease,
    opacity 0.25s ease;
}
.nav-brand:hover .nav-chevrons,
.nav-brand:focus-visible .nav-chevrons {
  width: 20px;
  opacity: 1;
}
.nav-brand:hover .nav-brand-text,
.nav-brand:focus-visible .nav-brand-text {
  max-width: 150px;
  opacity: 1;
}
.nav-brand:hover .nav-chevron:first-child {
  animation: chevron-pulse-a 0.8s ease-in-out infinite;
}
.nav-brand:hover .nav-chevron:last-child {
  animation: chevron-pulse-b 0.8s ease-in-out infinite;
}

/* footer docking channel (meder) */
.nav-dock {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* floating pill + attached marquee that travel together */
.floating-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 65vw, 500px);
  z-index: 90;
  transition:
    bottom 0.4s ease,
    transform 0.4s ease,
    opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}
.floating-nav.show {
  opacity: 1;
  pointer-events: auto;
}
.floating-nav.docked {
  bottom: 146px;
}
.floating-pill {
  position: relative;
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--black);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 5px;
}
.floating-marquee {
  height: 16px;
  border-top: 0;
  border-bottom: 0;
  border-radius: 3px;
  padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1025px) {
  /* Draw the grid lines on a pseudo-element so they can be masked/faded,
     mirroring the stories block (.long/.short/.end) approach. */
  .customers-grid > * {
    position: relative;
    border-right: 0;
    border-bottom: 0;
  }
  .customers-grid > *::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-right: 1px dashed var(--black);
    border-bottom: 1px dashed var(--black);
  }
  .customers-grid > *:nth-last-child(-n + 5)::after {
    border-bottom: 0;
  }
  /* Top edge: dashes fade in from the background (like .long/.short). */
  .customers-grid > *:nth-child(-n + 5)::after {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 62%);
    mask-image: linear-gradient(180deg, transparent 0, #000 62%);
  }
  /* Bottom edge: dashes fade out into the background (like .end). */
  .customers-grid > *:nth-last-child(-n + 5)::after {
    -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 62%);
    mask-image: linear-gradient(0deg, transparent 0, #000 62%);
  }
}
@media (max-width: 1024px) {
  .story-blank.short,
  .story-blank.long {
    display: none;
  }
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 106px 0;
  }
  .customers-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(min-content, auto);
  }
  .customers-hero {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
  }
  .service-inner {
    grid-template-columns: 1fr;
  }
  .service-media {
    min-height: 280px;
  }
  .job {
    grid-template-columns: 280px 1fr;
    gap: 36px;
  }
  .container:not(.service-inner) {
    padding: 0 22px;
  }
  .section-title {
    font-size: clamp(70px, 13.8vw, 152px);
  }
  .section-subtitle-left {
    padding-left: 50px;
  }
  .section-subtitle-right {
    padding-right: 50px;
  }
  .hero-title {
    font-size: clamp(84px, 17.2vw, 176px);
  }
  .hero-tagline {
    font-size: clamp(30px, 4.8vw, 50px);
  }

  .cards-stack {
    display: flex;
    align-items: stretch;
    gap: 18px;
    height: auto;
    margin: -10px auto 120px;
    padding: 18px 18px 30px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .cards-stack::-webkit-scrollbar {
    display: none;
  }
  .cards-stack:hover {
    transform: none;
  }
  .flip-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    flex: 0 0 min(310px, 72vw);
    width: min(310px, 72vw);
    height: auto;
    min-width: min(310px, 72vw);
    aspect-ratio: 3 / 4.2;
    min-height: 430px;
    transform: translateY(0) rotate(0deg) scale(1) !important;
    scroll-snap-align: start;
  }
  .flip-card:nth-child(1) {
    transform: translateY(0) rotate(0deg) !important;
    margin-right: 0;
    z-index: 1;
  }
  .flip-card:nth-child(2) {
    transform: translateY(0) rotate(0deg) !important;
    z-index: 2;
  }
  .flip-card:nth-child(3) {
    transform: translateY(0) rotate(0deg) !important;
    margin-left: 0;
    z-index: 1;
  }
  .cards-stack:hover .flip-card,
  .cards-stack:hover .flip-card:nth-child(1),
  .cards-stack:hover .flip-card:nth-child(2),
  .cards-stack:hover .flip-card:nth-child(3) {
    filter: none;
    --spread-rot: 0deg;
    --spread-shift: 0px;
    --spread-y: 0px;
    z-index: auto;
  }

  .floating-nav.docked {
    bottom: 200px;
  }

  .footer-legal {
    flex-direction: column;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0;
  }
  .footer-legal span,
  .footer-legal span:last-child {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container:not(.service-inner) {
    padding: 0 16px;
  }
  .section-title {
    font-size: clamp(46px, 14vw, 106px);
  }
  .hero-title {
    font-size: clamp(58px, 16vw, 126px);
  }
  .hero-pin {
    left: 5%;
    top: 5.5%;
  }
  .hero-tagline {
    font-size: clamp(24px, 7.6vw, 38px);
    letter-spacing: 0.01em;
  }
  .hero-tagline {
    margin-top: 140px;
  }
  .hero-cta {
    float: none;
    margin-top: 26px;
  }

  .customers-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(96px, auto);
  }
  .customers-hero {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    min-height: 270px;
    padding-top: clamp(18px, 7vw, 48px);
  }
  .customers-hero-inner {
    padding-left: 0;
  }

  .story-modal {
    padding: 14px;
  }
  .story-modal__panel {
    min-height: 360px;
    padding: 22px 18px 22px;
  }
  .story-modal__top {
    margin-bottom: 18px;
  }
  .story-modal__logo {
    max-width: 118px;
  }
  .story-modal__panel p {
    font-size: 14px;
  }

  .stories-sub {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 10px auto 30px;
    font-size: clamp(10px, 2.1vw, 12px);
    letter-spacing: 0.03em;
    text-align: left;
  }
  .stories-sub p {
    width: calc(50% - 5px);
    flex: 0 1 auto;
    line-height: 1.08;
  }
  .stories-sub p:last-child {
    text-align: right;
  }
  .stories .section-title {
    font-size: clamp(70px, 15vw, 104px);
    line-height: 0.94;
  }
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-num {
    font-size: 329px;
  }
  .story-blank {
    min-height: 120px;
  }

  .cards-stack {
    height: 520px;
  }
  .flip-card {
    --shift: 0px !important;
  }
  .flip-card:nth-child(1) {
    top: 0;
  }
  .flip-card:nth-child(3) {
    top: 60px;
  }

  .pain-body p {
    padding-left: 6px;
  }

  .job {
    grid-template-columns: 1fr;
  }
  .job-poster {
    max-width: 340px;
    margin: 0 auto;
  }

  .culture {
    overflow: visible;
  }

  .culture-pin {
    position: relative !important;
    top: 0 !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 100px 0 70px;
  }

  .culture-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: auto;
    overscroll-behavior-x: contain;
    padding: 0 30px;
  }

  .culture-slider::-webkit-scrollbar {
    display: none;
  }

  .slider-track {
    gap: 10px;
    width: max-content;
    min-width: 100%;
    transform: none !important;
  }

  .slide {
    flex: 0 0 calc(100vw - 60px);
    max-width: calc(100vw - 60px);
    width: calc(100vw - 60px);
    height: min(62vw, 420px);
    min-height: 260px;
    scroll-snap-align: start;
  }

  .slide.active {
    flex-basis: calc(100vw - 60px);
  }

  .contact-title {
    font-size: clamp(46px, 13vw, 96px);
    margin-top: 30px;
  }
  .contact-form {
    padding: 0 16px;
    margin: 44px auto 90px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .form-actions {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .stories .container {
    padding: 0 8px;
  }
  .stories .section-title {
    font-size: clamp(66px, 14.8vw, 78px);
    line-height: 0.95;
    white-space: nowrap;
  }

  .stories-sub {
    margin: 8px auto 24px;
    gap: 8px;
    font-size: clamp(8px, 2vw, 10px);
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .stories-sub p {
    width: calc(50% - 4px);
    flex: 0 1 auto;
    white-space: normal;
    line-height: 1.05;
  }

  .section-subtitle-left {
    padding-left: 20px;
  }
  .section-subtitle-right {
    padding-right: 20px;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  background: var(--green-light);
}
/* keep the big SPICE IT wordmark on the same light-green as the form */
.contact-page .footer {
  background: var(--green-light);
}

.contact-hero {
  position: relative;
  padding: 30px 0 10px;
}
.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  height: 140px;
  width: 50px;
  top: 30px;
  left: 30px;
  border-top: 1px dashed var(--black);
  border-left: 1px dashed var(--black);
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 100%);
  mask-image: linear-gradient(0deg, transparent 0, #000 100%);
}
.contact-hero::after {
  left: auto;
  right: 30px;
  border-left: 0;
  border-right: 1px dashed var(--black);
}
.contact-hero .container {
  position: relative;
}
.contact-close {
  position: absolute;
  top: 9vh;
  left: max(3vw, 69px);
  border-radius: 5px;
  color: var(--black);
  cursor: pointer;
  z-index: 3;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-close-chevrons {
  display: inline-flex;
  align-items: center;
  height: 1.4em;
}
.contact-close-chevrons .chevron {
  width: 30px;
  height: 6em;
  display: block;
  background-image: url("images/cta-chevron-black.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(180deg);
}
.contact-close-chevrons .chevron + .chevron {
  margin-left: -8px;
}
.contact-close-chevrons .chevron:first-child {
  opacity: 0.5;
}
.contact-close-chevrons .chevron:last-child {
  opacity: 1;
}
.contact-close:hover .contact-close-chevrons .chevron:first-child,
.contact-close:focus-visible .contact-close-chevrons .chevron:first-child {
  animation: chevron-pulse-a 0.8s ease-in-out infinite;
}
.contact-close:hover .contact-close-chevrons .chevron:last-child,
.contact-close:focus-visible .contact-close-chevrons .chevron:last-child {
  animation: chevron-pulse-b 0.8s ease-in-out infinite;
}
.contact-title {
  font-family: "Druk Cond Trial", var(--font-display);
  font-weight: 1000;
  font-size: clamp(84px, 14.6vw, 210px);
  line-height: 0.9;
  text-transform: uppercase;
  text-align: center;
  max-width: 1440px;
  margin: 182px auto 0;
}
.contact-intro {
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(12px, 2vw, 20px);
  line-height: 1.6;
  text-transform: uppercase;
  margin: 70px auto 0;
  max-width: 800px;
}

/* ---------- form ---------- */
.contact-form {
  max-width: 1136px;
  margin: 70px auto 130px;
  padding: 0 50px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 184px;
  align-items: stretch;
}
.form-col {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.field-grow {
  flex: 1;
}
.field label {
  font-family: "Druk Cond Trial", var(--font-display);
  font-weight: 1000;
  font-size: clamp(18px, 3.5vw, 40px);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: #fff;
  border: 1px dashed #000;
  border-radius: 4px;
  padding: 12px 14px;
  outline: 0;
  box-shadow: inset 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
  flex: 1;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(137, 204, 12, 0.28);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23040303' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
.form-actions {
  margin-top: auto;
  padding-top: 4px;
}
.contact-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 341px;
  height: 76px;
  padding: 0;
  background: var(--black);
  border-radius: 12px;
  overflow: hidden;
  background: var(--black);
  border: 1px solid rgba(4, 3, 3, 0.08);
  border-radius: 5px;
  box-shadow: 0 12px 30px rgba(4, 3, 3, 0.08);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.contact-submit .btn-label {
  position: absolute;
  right: 0;
  z-index: 1;
  width: min-content;
  background: transparent;
  text-align: center;
  font-size: clamp(32px, 4.5vw, 86px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.contact-submit .btn-label .accent {
  color: var(--green);
}
.contact-submit .contact-slider-handle {
  position: absolute;
  top: 5px;
  left: 5px;
  width: min-content;
  padding: 4px 8px;
  height: calc(100% - 10px);
  border-radius: 2px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow:
    0 10px 20px rgba(137, 204, 12, 0.35),
    inset 0 0 0 1px rgba(4, 3, 3, 0.08);
  transition: left 0.14s ease;
  cursor: grab;
}
.contact-submit .contact-slider-handle:active {
  cursor: grabbing;
}
.contact-submit .contact-slider-handle .chevrons {
  --cta-chevron-image: url("images/cta-chevron-black.svg");
  display: inline-flex;
  align-items: center;
  height: 1.7em;
}
.contact-submit .contact-slider-handle .chevron {
  width: 24px;
  height: 3em;
  background-image: var(--cta-chevron-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.contact-submit .contact-slider-handle .chevron + .chevron {
  margin-left: -8px;
}
.contact-submit.is-success {
  background: rgba(4, 3, 3, 0.94);
}
.contact-submit.is-success .contact-slider-handle {
  background: #9be31d;
}
.contact-submit.is-submitted {
  pointer-events: none;
}
.contact-submit.is-submitted .btn-label {
  opacity: 0.8;
}

.site-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translate(-50%, -18px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: min(92vw, 520px);
  max-width: min(92vw, 560px);
  padding: 14px 18px 12px;
  border: 1px solid rgba(4, 3, 3, 0.12);
  border-radius: 8px;
  background: rgba(4, 3, 3, 0.96);
  color: #fff;
  box-shadow: 0 18px 38px rgba(4, 3, 3, 0.18);
  font-family: "Druk Cond Trial", var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
  z-index: 1000;
}
.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.site-toast__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  font-weight: 900;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 980px) {
  .hero::before,
  .hero::after,
  .contact-hero::before,
  .contact-hero::after {
    height: 65px;
    width: 30px;
  }
  .contact-close-chevrons .chevron {
    width: 20px;
    height: 4em;
  }
  .contact-hero {
    padding-top: 18px;
  }
  .contact-title {
    margin-top: 110px;
  }
  .contact-form {
    padding: 0 24px;
    margin: 56px auto 96px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .form-col {
    gap: 28px;
  }
  .field textarea {
    min-height: 120px;
  }
}

@media (max-width: 760px) {
  .contact-title {
    margin-top: 120px;
    font-size: clamp(54px, 15vw, 96px);
  }
  .contact-intro {
    margin-top: 26px;
    font-size: clamp(11px, 3.4vw, 18px);
  }
  .contact-form {
    margin: 36px auto 72px;
    padding: 0 14px;
  }
  .field label {
    font-size: clamp(26px, 7vw, 36px);
  }
  .contact-submit {
    width: min(100%, 341px);
    max-width: 100%;
    height: 60px;
  }
  .contact-submit .contact-slider-handle {
    width: 78px;
    top: 8px;
    left: 8px;
    height: calc(100% - 16px);
  }
  .contact-submit .contact-slider-handle .chevron {
    width: 20px;
    height: 1.4em;
  }
}
