/* Caterman — Our Story premium sections. Scoped under .cm-os. Editorial,
   photography-led, monochrome to match the homepage hero (Roboto Condensed
   display + Manrope body). No pills, no kicker labels, no em-dashes.
   Titles are ALL CAPS with the brand "*" motif, matching the hero. */
.cm-os { font-family: 'Manrope', system-ui, sans-serif; --cm-ease: cubic-bezier(.16, 1, .3, 1); }
.cm-os *, .cm-os *::before, .cm-os *::after { box-sizing: border-box; }

.cm-os-section {
  background: #000; color: #fff;
  padding: clamp(80px, 12vw, 156px) 6vw;
  -webkit-font-smoothing: antialiased;
}
.cm-os-clients { border-top: 1px solid rgba(255, 255, 255, .08); padding-bottom: clamp(72px, 10vw, 120px); }
.cm-os-inner { max-width: 1180px; margin: 0 auto; }

/* Our Story flow: Journey -> Meet the Chef -> How We Work read as one continuous
   story, so tighten the inter-section padding (default .cm-os-section is clamp ~156px
   top+bottom, which stacked to ~312px voids between them). */
.cm-os-journey { padding-bottom: clamp(20px, 3vw, 40px); }
.cm-os-chef    { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(36px, 5vw, 64px); }
.cm-os-work    { padding-top: clamp(44px, 6vw, 78px); }

/* Our Story Kallyas video hero — make it match the rebuilt heroes:
   (a) horizontal: the Kallyas column sits ~15px right of the 130px content edge — nudge left.
   (b) vertical: Kallyas centres the content via a 250px margin-bottom on the title wrapper,
       which pushes the title up; drop it to a small value so the content bottom-anchors like
       sustainability/event heroes. Scoped to the page + the custom-height hero section only. */
.page-id-45 .zn-section-height--custom_height .znColumnElement-innerContent { margin-left: -15px !important; }
.page-id-45 .zn-section-height--custom_height [class*="innerWrapper"] { margin-bottom: clamp(20px, 3vh, 40px) !important; }
/* close the big title->subtitle gap (Kallyas title block carries 50px bottom padding + the
   h3 a 10px margin) so the content reads as one tight bottom-anchored block */
.page-id-45 .zn-section-height--custom_height .kl-title-block { padding-bottom: 0 !important; }
.page-id-45 .zn-section-height--custom_height .kl-title-block .tbk__title { margin-bottom: 0 !important; }

/* the brand asterisk motif on titles */
.cm-os-ast { font-style: normal; color: #fff; }

/* section heads — big condensed display (matches the hero); intro in Manrope */
.cm-os-head-block { max-width: 760px; }
.cm-os-head {
  margin: 0; font-family: 'Roboto Condensed', 'Manrope', sans-serif;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 6.2vw, 88px); line-height: .94; letter-spacing: -.035em;
}
.cm-os-intro {
  margin: 22px 0 0; max-width: 600px;
  font-size: clamp(15px, 1.5vw, 19px); line-height: 1.62; color: #c7c7c7;
}
/* How We Work — let the heading block + intro span the full content width (1180,
   aligned with the photo rows below) instead of the default narrow column. */
.cm-os-work .cm-os-head-block,
.cm-os-work .cm-os-intro { max-width: none; }

/* Journey — editorial split: statement (page H1) + prose | framed photograph */
.cm-os-journey__grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.cm-os-statement {
  margin: 0; font-family: 'Roboto Condensed', 'Manrope', sans-serif; font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 62px); line-height: .98; letter-spacing: -.03em; color: #fff;
}
.cm-os-journey__p {
  margin: 26px 0 0; max-width: 52ch;
  font-size: clamp(15px, 1.45vw, 18px); line-height: 1.66; color: #c2c2c2;
}
.cm-os-journey__media {
  margin: 0; padding: 6px; align-self: stretch;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: clamp(18px, 2vw, 26px); box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .85);
  overflow: hidden;
}
.cm-os-journey__media img,
.cm-os-journey__media video {
  display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover;
  border-radius: clamp(13px, 1.6vw, 21px);
}
.cm-os-head--mid { font-size: clamp(30px, 4.4vw, 58px); }

/* chef portrait under the Meet the Chef bio */
.cm-os-chef__portrait { margin: 32px 0 0; max-width: 360px; }
.cm-os-chef__portrait img {
  display: block; width: 100%; height: auto; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.cm-os-chef__portrait figcaption { margin-top: 16px; }
.cm-os-chef__sig {
  display: block; font-family: 'Allura', 'Great Vibes', cursive; font-weight: 400;
  font-size: clamp(40px, 4.6vw, 60px); line-height: 1.04; color: #fff;
}
.cm-os-chef__role {
  display: block; margin-top: 4px; font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a;
}

/* How We Work — alternating editorial photo rows */
.cm-os-rows {
  margin-top: clamp(56px, 8vw, 104px);
  display: flex; flex-direction: column; gap: clamp(56px, 9vw, 132px);
}
.cm-os-row {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(28px, 5vw, 78px);
}
.cm-os-row__media { order: 0; margin: 0; }
.cm-os-row__text  { order: 1; }
.cm-os-row:nth-child(even) .cm-os-row__media { order: 1; }
.cm-os-row:nth-child(even) .cm-os-row__text  { order: 0; }

.cm-os-row__media {
  padding: 6px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: clamp(18px, 2vw, 26px);
  box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .85);
  overflow: hidden;
}
.cm-os-row__media img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: clamp(13px, 1.6vw, 21px);
  transition: transform 1.1s var(--cm-ease);
  filter: saturate(1.02);
}
.cm-os-row__media:hover img { transform: scale(1.045); }

.cm-os-row__title {
  margin: 0; font-family: 'Roboto Condensed', 'Manrope', sans-serif;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 3.5vw, 50px); line-height: 1.04;
  letter-spacing: -.025em; color: #fff;
}
.cm-os-row__desc {
  margin: 18px 0 0; max-width: 42ch;
  font-size: clamp(15px, 1.35vw, 18px); line-height: 1.62; color: #b6b6b6;
}

/* Who We Work With — moving logo marquee (the carousel, restored) */
.cm-os-clients .cm-os-inner { margin-bottom: clamp(40px, 6vw, 72px); }
.cm-os-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.cm-os-marquee__track {
  display: flex; align-items: center; width: max-content;
  gap: clamp(56px, 7vw, 120px); animation: cm-os-marq 36s linear infinite;
}
.cm-os-marquee:hover .cm-os-marquee__track { animation-play-state: paused; }
@keyframes cm-os-marq { to { transform: translateX(-50%); } }
.cm-os-logo {
  height: clamp(48px, 4.4vw, 74px); width: auto; object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .62; transition: opacity .45s var(--cm-ease);
}
.cm-os-logo:hover { opacity: 1; }

/* closing CTA (Our Story) + cross-links */
.cm-os-cta { border-top: 1px solid rgba(255, 255, 255, .08); }
.cm-os-cta__btn {
  display: inline-block; margin-top: 30px; padding: 12px 34px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px;
  background: #fff; color: #000; text-decoration: none;
  font-family: 'Roboto Condensed', 'Manrope', sans-serif; font-weight: 700;
  font-size: clamp(17px, 1.6vw, 23px); text-transform: uppercase; line-height: 1.15;
  transition: background .25s var(--cm-ease);
}
.cm-os-cta__btn:hover { background: rgba(255, 255, 255, .85); }
.cm-os-cta__links { margin: 22px 0 0; font-size: clamp(14px, 1.3vw, 16px); color: #9a9a9a; }
.cm-os-cta__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.cm-os-cta__links a:hover { text-decoration-color: #fff; }

/* scroll-reveal — transform/opacity/blur only */
.cm-os-reveal {
  opacity: 0; transform: translateY(42px); filter: blur(8px);
  transition: opacity .95s var(--cm-ease), transform .95s var(--cm-ease), filter .95s var(--cm-ease);
}
.cm-os-reveal--late { transition-delay: .12s; }
.cm-os-reveal.cm-in { opacity: 1; transform: none; filter: none; }

/* responsive */
@media (max-width: 820px) {
  .cm-os-journey__grid { grid-template-columns: 1fr; gap: 26px; }
  .cm-os-journey__media img { min-height: 0; aspect-ratio: 16 / 10; }
  .cm-os-row { grid-template-columns: 1fr; gap: 20px; }
  .cm-os-row__media, .cm-os-row:nth-child(even) .cm-os-row__media { order: 0; }
  .cm-os-row__text,  .cm-os-row:nth-child(even) .cm-os-row__text  { order: 1; }
  .cm-os-row__media img { aspect-ratio: 16 / 10; }
  .cm-os-row__desc, .cm-os-journey__p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-os-marquee__track { animation: none; }
  .cm-os-reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
