/*
Theme Name: Vitamin — Design & Execution
Theme URI: https://vitaminstands.com
Author: Zoran Maric
Description: One-page marketing theme for Vitamin Stands LLC. Custom post types for Services, Work and Products, Customizer-driven copy, Figma-matched design tokens.
Version: 2.9.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitamin
*/

/* ---- Fonts (matched to Figma) ---- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@800&family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@400;600;700&family=Barlow+Semi+Condensed:wght@400;600;700&family=Cardo:ital@0;1&family=DM+Mono:wght@400;500&family=Inter:wght@400;500;700&family=Manrope:wght@400;600&display=swap');
/* Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap');

/* ---- Design tokens (exact values from Figma) ---- */
:root {
  --coral: #f27f55;
  --olive: #63775b;
  --olive-dark: #566b4f;
  --teal: #74aab6;
  --teal-dark: #5f8c96;
  --teal-soft: #94b4bb;
  --yellow: #e5d259;
  --gold: #e5be5c;
  --paper: #f4f2f3;
  --ink: #4d4d4d;
  --ink-strong: #333333;
  --ink-soft: #5c5c58;
  --footer: #4d4d4d;
  --card: #e6e6e6;

  --line: #cfcdc7;
  --rail-line: #b7b5af;
  --rail-ink: #6f6e6a;

  --peach: #fff2e9;
  --font-serif: 'Cardo', Georgia, serif;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-nav: 'Barlow', sans-serif;
  --font-cond: 'Barlow Semi Condensed', sans-serif;
  --font-footer: 'Manrope', sans-serif;

  --sheet: 1440px;
  --page-pad: clamp(14px, 1.5vw, 22px);
  --rail-w: clamp(116px, 14vw, 203px);
  --tile-gap: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(to right, rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.0;
  text-transform: uppercase;
}
.mono { font-family: var(--font-mono); }

/* ---- Sheet ---- */
.sheet {
  max-width: var(--sheet);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.band { position: relative; }

/* ---- Colored tiles ---- */
/* Flush with the logo/sheet edge on the start side (matches Figma);
   the gap stays only toward the rail line. */
.tile {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: var(--tile-gap);
}
.tile--dots   { background-color: var(--coral); }
.tile--green  { background-color: var(--olive); }
.tile--teal   { background-color: var(--teal); }
.tile--yellow { background-color: var(--yellow); }

.pat-dots   { background-image: radial-gradient(rgba(255,255,255,.30) 2px, transparent 2.5px); background-size: 26px 26px; background-position: center; background-repeat: space; }
.pat-cross  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cg stroke='rgba(255,255,255,0.32)' stroke-width='2'%3E%3Cline x1='8' y1='8' x2='18' y2='18'/%3E%3Cline x1='18' y1='8' x2='8' y2='18'/%3E%3C/g%3E%3C/svg%3E"); background-size: 30px 30px; background-position: center; background-repeat: space; }
.pat-rings  { background-image: radial-gradient(circle, transparent 5px, rgba(255,255,255,.55) 5.5px, rgba(255,255,255,.55) 7px, transparent 7.5px); background-size: 28px 28px; background-position: center; background-repeat: space; }

.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---- Rail overlay (railfx) ---- */
.railfx { position: absolute; top: 0; bottom: 0; left: var(--page-pad); right: var(--page-pad); pointer-events: none; z-index: 3; }
.railfx > * { position: absolute; }

.fx-vline { inset-inline-start: var(--rail-w); width: 1px; transform: translateX(-1px); background: var(--rail-line); }
.fx-hline { height: 1px; background: var(--rail-line); }

.fx-node {
  inset-inline-start: var(--rail-w);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rail-ink);
  transform: translate(-50%, -50%);
}

.fx-adown { inset-inline-start: var(--rail-w); width: 0; height: 0; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 9px solid var(--rail-ink); }
.fx-aup   { inset-inline-start: var(--rail-w); width: 0; height: 0; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--rail-ink); }
.fx-aright { width: 0; height: 0; transform: translateY(-50%);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-inline-start: 9px solid var(--rail-ink); }
.fx-aleft  { width: 0; height: 0; transform: translateY(-50%);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-inline-end: 9px solid var(--rail-ink); }

.fx-x {
  inset-inline-start: var(--rail-w);
  transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 18px; line-height: 1;
  color: var(--rail-ink); background: var(--paper); padding: 2px 3px;
}

.fx-label {
  /* vertical writing-mode flips the inline axis, so logical insets
     would set top/bottom here — keep physical left/right. */
  left: auto;
  right: calc(100% - var(--rail-w) + 14px);
  writing-mode: vertical-rl; rotate: 180deg;
  font-family: var(--font-mono); font-size: 20px; font-weight: 500; letter-spacing: 0;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}

.fx-conn { left: 0; right: 0; top: var(--y); height: 0; }
.fx-conn .seg-l  { position: absolute; top: 0; inset-inline-start: 0;  width: calc(var(--rail-w) - 17px); height: 1px; background: var(--rail-line); }
.fx-conn .seg-r  { position: absolute; top: 0; inset-inline-start: calc(var(--rail-w) + 17px); inset-inline-end: 0; height: 1px; background: var(--rail-line); }
.fx-conn .head-r { position: absolute; top: 0; inset-inline-start: calc(var(--rail-w) - 15px);
  width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-inline-start: 9px solid var(--rail-ink); transform: translateY(-50%); }
.fx-conn .head-l { position: absolute; top: 0; inset-inline-start: calc(var(--rail-w) + 6px);
  width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-inline-end: 9px solid var(--rail-ink); transform: translateY(-50%); }
.fx-conn .nd     { position: absolute; top: 0; inset-inline-start: var(--rail-w);
  width: 7px; height: 7px; border-radius: 50%; background: var(--rail-ink); transform: translate(-50%, -50%); }

/* =========================================================
   Scroll-linked rail ornaments — JS feeds --sp (0..1, element's
   progress through the viewport). While a connector enters the
   viewport both arms (line + arrowhead move as one, via logical
   insets so RTL keeps working) extend toward the node and dock at
   mid-viewport; the offset is clamped at 0 so they never overshoot
   the node or detach. Vertical-rail arrows slide along their line
   and dock at its end the same way.
   At --sp:.5 (mid-viewport / no JS) everything sits at rest.
   ========================================================= */
/* Arms keep moving through the whole scroll: fully extended (rest)
   at mid-viewport, retracted by up to 90px at the edges — the offset
   is -|sp - .5| * 180px, expressed via max() since abs() is newer. */
.fx-conn { --fx-off: calc(0px - max((var(--sp, .5) - .5) * 180px, (.5 - var(--sp, .5)) * 180px)); }
.fx-conn .seg-l  { width: calc(var(--rail-w) - 17px + var(--fx-off)); }
.fx-conn .head-r { inset-inline-start: calc(var(--rail-w) - 15px + var(--fx-off)); }
.fx-conn .head-l { inset-inline-start: calc(var(--rail-w) + 6px - var(--fx-off)); }
.fx-conn .seg-r  { inset-inline-start: calc(var(--rail-w) + 17px - var(--fx-off)); }

/* ---- Shared "FIND OUT MORE" button ---- */
.find-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  padding: 18px 30px;
  border: 1px solid currentColor;
  transition: background .2s, color .2s;
}
.find-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.find-btn--solid { border: none; color: #fff; background: var(--olive); }
.find-btn--solid:hover { background: var(--olive-dark); }
.find-btn--gold { border: none; color: #fff; background: var(--gold); }
.find-btn--gold:hover { background: var(--yellow); color: var(--ink); }

@media (max-width: 760px) {
  body { background-size: 36px 36px; }
}

@media (max-width: 860px) {
  .band > .sheet { grid-template-columns: 1fr; }
  .band__body { padding-inline-start: 0; }
  .rail { display: none; }
  .connector { display: none; }
}

/* =========================================================
   HEADER
   ========================================================= */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
}
.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
}
/* The logo centers over the brand-tile rail below it: the wrapper takes
   the tile's width (rail minus gap) and centers the wordmark inside. */
.logo { line-height: 1; width: calc(var(--rail-w) - var(--tile-gap)); }
.logo__img { display: block; height: 30px; width: auto; margin-inline: auto; }
@media (max-width: 860px) {
  /* Phone rail is a fixed 108px column, tile 94px; a slightly smaller
     wordmark (24px → ~111px wide) stays on-screen while centered. */
  .logo { width: 94px; }
  .logo__img { height: 24px; }
}
/* Figma logo lockup (188×72): fat rounded lowercase wordmark over an
   equally wide uppercase Inter line, no letter-spacing. */
.logo__name {
  display: block;
  font-family: 'Baloo 2', var(--font-display);
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  color: var(--coral);
  text-transform: lowercase;
}
.logo__sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 17.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 34px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: clamp(16px, 1.7vw, 24px);
}
.nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.nav li { display: contents; }
.nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--coral);
  transition: width .2s;
}
.nav a:hover::after { width: 100%; }

.lang ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.lang a {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  transition: color .2s;
}
.lang a:hover { color: var(--ink); }
.lang__item.is-current a { color: var(--coral); }
.lang__item + .lang__item { border-inline-start: 1px solid var(--ink-soft); padding-inline-start: 10px; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 760px) {
  .nav { display: none; }
  .nav.nav--open {
    display: flex;
    position: absolute;
    top: 86px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--page-pad) 18px;
  }
  .nav.nav--open a { padding: 12px 0; }
  .burger { display: block; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  --media-h: clamp(240px, 31vw, 446px);
  --tile-top: 26px;
  --conn-y: calc(var(--tile-top) + var(--media-h) + 16px);
  padding-top: 18px;
  padding-bottom: clamp(34px, 5vw, 64px);
}
.hero__sheet { position: relative; }

.hero__aup   { top: var(--tile-top); }
.hero__vline { top: calc(var(--tile-top) + 9px); bottom: calc(26px - clamp(34px, 5vw, 64px)); }
.hero__conn  { --y: var(--conn-y); }
.hero__label { top: auto; bottom: 16px; }
.hero__adown { bottom: calc(17px - clamp(34px, 5vw, 64px)); }

.hero__grid { display: grid; grid-template-columns: var(--rail-w) 1fr; }
.hero__railcol { position: relative; }
.hero__tile { position: absolute; top: var(--tile-top); height: var(--media-h); }

.hero__body { padding-inline-start: clamp(20px, 3vw, 52px); padding-top: var(--tile-top); }
.hero__media {
  position: relative; margin: 0;
  height: var(--media-h);
  overflow: hidden; background: #ddd;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media--video .hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media--video .hero__embed { position: absolute; inset: 0; }
.hero__media--video .hero__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Slider fitted inside the image frame (5th hero mode). */
.hero__media--slider .hslider--frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media--slider .hslider__cap { font-size: clamp(20px, 2.2vw, 34px); }
.hero__media--slider .hslider__slide .sheet { padding: 0 clamp(16px, 2.4vw, 32px) clamp(18px, 2.6vw, 34px); }
.hero__media--slider .hslider__nav { width: 40px; height: 40px; font-size: 22px; }
.hero__media--slider .hslider__dots { bottom: 12px; }

.hero__play {
  position: absolute; inset: 0; margin: auto;
  width: 78px; height: 78px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0,0,0,.18); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero__play:hover { background: rgba(0,0,0,.4); transform: scale(1.06); }

.hero__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.19; letter-spacing: 0;
  max-width: 96%;
  margin: clamp(48px, 6vw, 84px) 0 0;
  color: var(--ink);
}

.hero__cta {
  display: flex; flex-direction: column; align-items: stretch;
  width: fit-content; margin-inline-start: auto;
  gap: 22px; margin-top: clamp(28px, 4vw, 52px);
}
.hero__arrow { display: flex; align-items: center; }
.hero__arrow-line { flex: 1; height: 1px; background: var(--ink-soft); }
.hero__arrow-head {
  width: 0; height: 0; margin-inline-start: -1px;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-inline-start: 9px solid var(--ink-soft);
}

@media (max-width: 860px) {
  /* Phone: full-bleed media on top, brand tile beside the headline
     (below the media). The media breaks out over the narrow rail; the
     CTA stays a compact right-aligned button with its arrow, like desktop. */
  .hero__grid { grid-template-columns: 108px 1fr; }
  .hero__railcol { display: block; }
  /* Square brand tiles on the phone: width (108px rail − 14px gap = 94px)
     drives the height via aspect-ratio. */
  .hero__tile { top: calc(var(--tile-top) + var(--media-h) + 34px); height: auto; aspect-ratio: 1 / 1; }
  .hero__body { padding-inline-start: 16px; }
  .hero__media { margin-inline-start: -124px; }
  .hero__headline { max-width: 100%; margin-top: 34px; }
  .hero__cta { margin-top: 24px; }
}

@media (max-width: 860px) {
  /* Phones: hide the vertical rail + labels, but keep the converging
     connector at the foot of each railed section (hero/services/work),
     centred — so arrows sit below each section like on desktop. */
  .railfx > *:not(.fx-conn) { display: none; }
  .railfx .fx-conn { top: auto; bottom: -22px; }
  .railfx .fx-conn .seg-l  { width: calc(50% - 17px); }
  .railfx .fx-conn .seg-r  { inset-inline-start: calc(50% + 17px); }
  .railfx .fx-conn .head-r { inset-inline-start: calc(50% - 15px); }
  .railfx .fx-conn .head-l { inset-inline-start: calc(50% + 6px); }
  .railfx .fx-conn .nd     { inset-inline-start: 50%; }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  --tile-top: 18px;
  --tile-h: 175px;
  --conn-y: calc(var(--tile-top) + var(--tile-h) + 16px);
  padding-top: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(36px, 6vw, 76px);
}
.svc__sheet { position: relative; }

.svc__x      { top: -1px; }
.svc__vline  { top: 16px; bottom: 22px; }
.svc__conn   { --y: var(--conn-y); }
.svc__label  { top: calc(var(--conn-y) + 26px); }
.svc__adown  { bottom: 16px; }

.svc__grid-outer { display: grid; grid-template-columns: var(--rail-w) 1fr; }
.svc__railcol { position: relative; }
.svc__tile { position: absolute; top: var(--tile-top); height: var(--tile-h); }

.svc__body { padding-inline-start: clamp(20px, 3vw, 52px); padding-top: var(--tile-top); }

.svc-head { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; min-height: var(--tile-h); }
.svc-title { font-size: clamp(42px, 5vw, 60px); color: var(--ink); margin: 0; }
.svc-lead { max-width: 880px; font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--ink); margin: 6px 0 0; }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin-top: 40px; align-items: start; }
.svc-col { list-style: none; margin: 0; padding: 0; }

.svc { border-bottom: 1px solid var(--line); }
.svc__head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: start;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px;
  font-family: var(--font-body); font-size: clamp(18px, 1.8vw, 24px); font-weight: 400;
  color: var(--ink-strong);
  transition: padding-inline-start .2s, color .2s;
}
.svc__head:hover { padding-inline-start: 14px; color: var(--coral); }
.svc.open .svc__head { color: var(--coral); }
.svc__plus {
  flex: none; font-size: 32px; font-weight: 300; line-height: 1; color: var(--ink-strong);
  transition: transform .3s ease, color .2s;
}
.svc.open .svc__plus { transform: rotate(45deg); color: var(--coral); }

.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.svc.open .svc__panel { grid-template-rows: 1fr; }
.svc__panel-in { overflow: hidden; }
.svc__panel p { margin: 0; padding: 0 4px 22px; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 94%; }
.svc__panel .svc__more { padding-top: 14px; padding-bottom: 22px; }
.svc__more a { font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; color: var(--coral); }
.svc__more a:hover { text-decoration: underline; }

.svc-cta {
  display: flex; flex-direction: column; align-items: stretch;
  width: fit-content; margin-inline-start: auto; gap: 22px; margin-top: 36px;
}
.svc-arrow { display: flex; align-items: center; }
.svc-arrow__line { flex: 1; height: 1px; background: var(--ink); }
.svc-arrow__head {
  width: 0; height: 0; margin-inline-start: -1px;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-inline-start: 9px solid var(--ink);
}

@media (max-width: 860px) {
  /* Keep the brand tile beside the heading (Figma phone), then let the
     accordion break out to the full sheet width below it. */
  /* 22px on the sheet + the 12px the hero connector already leaves =
     the same 34px of air every brand tile gets on the phone. */
  .svc__sheet { margin-top: 22px; }
  .svc__grid-outer { grid-template-columns: 108px 1fr; }
  .svc__railcol { display: block; }
  .svc__tile { top: 0; height: auto; aspect-ratio: 1 / 1; }
  .svc__body { padding-inline-start: 16px; padding-top: 0; }
  .svc-head { grid-template-columns: 1fr; gap: 10px; min-height: 94px; align-content: start; }
  .svc-grid { grid-template-columns: 1fr; gap: 0; margin-inline-start: -124px; margin-top: 24px; }
  .svc-cta { margin-top: 24px; }
}

/* =========================================================
   SERVICES PAGE — intro, case carousel, bare accordion,
   image banner (Figma: SERVICES frame)
   ========================================================= */
.svcintro { padding-top: clamp(36px, 5vw, 70px); }
.svcintro__head {
  display: grid;
  grid-template-columns: minmax(220px, var(--rail-w)) 1fr;
  gap: clamp(24px, 5vw, 140px);
  align-items: start;
}
.svcintro__title { font-size: clamp(42px, 5vw, 60px); color: var(--ink); margin: 0; }
.svcintro__title:empty { display: none; }
.svcintro__lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.21; font-weight: 500; color: var(--ink); margin: 6px 0 0; max-width: 980px; }
/* Stacked variant (We Are): title on its own line, lead below. */
.svcintro--stack .svcintro__head { grid-template-columns: 1fr; gap: 14px; }
.svcintro--stack .svcintro__lead { max-width: 1320px; }

@media (max-width: 860px) {
  .svcintro__head { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- Case carousel ---- */
.cscroll { position: relative; padding-block: clamp(20px, 3vw, 40px); }
.cscroll__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cscroll__viewport::-webkit-scrollbar { display: none; }
.cscroll__track {
  display: flex; gap: 22px;
  list-style: none; margin: 0;
  padding-inline: var(--page-pad);
  width: max-content;
}
.cscroll__item {
  position: relative;
  flex: none;
  width: clamp(280px, 33vw, 470px);
  height: clamp(260px, 25vw, 360px);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.cscroll__link {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
}
/* Image on a ::before layer so only it zooms on hover (same as .card--img). */
.cscroll__item::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: var(--card-img); background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.cscroll__item:hover::before { transform: scale(1.07); }
.cscroll__arrow {
  position: absolute; top: 14px; inset-inline-end: 16px; z-index: 1;
  font-size: 30px; line-height: 1; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.cscroll__item:hover .cscroll__arrow { transform: translate(4px, -4px); }
.cscroll__cap {
  position: relative; z-index: 1;
  margin: 0; padding: 10px 20px;
  background: rgba(114, 114, 114, .82);
  font-family: var(--font-nav); font-weight: 600;
  font-size: clamp(20px, 2.2vw, 32px); line-height: 1.6;
  letter-spacing: -0.02em; color: #fff;
}
.cscroll__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.32); color: #fff;
  border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .2s, opacity .2s;
}
.cscroll__nav:hover { background: rgba(0,0,0,.6); }
.cscroll__nav[disabled] { opacity: .35; cursor: default; }
.cscroll__prev { inset-inline-start: calc(var(--page-pad) + 8px); }
.cscroll__next { inset-inline-end: calc(var(--page-pad) + 8px); }

/* ---- Bare accordion (no rail/heading) ---- */
.services--bare { padding-block: clamp(28px, 4vw, 56px); }
.services--bare .svc-grid { margin-top: 0; }

/* ---- Services page: open service cards ---- */
.services--cards { padding-block: clamp(32px, 5vw, 64px); }
/* Figma SERVICES frame (631:63): two columns, service name ABOVE the
   card, photo on top, beige body with bullet list + LEARN MORE. */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(32px, 8vw, 120px);
  row-gap: clamp(36px, 5vw, 72px);
}
.svc-card { display: flex; flex-direction: column; }
.svc-card__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15;
  color: var(--ink-strong); margin: 0 0 clamp(14px, 1.6vw, 22px);
}
.svc-card__media {
  position: relative;
  aspect-ratio: 656 / 355;
  overflow: hidden; background: #ddd;
}
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card__media .tile { position: absolute; inset: 0; }
.svc-card__body {
  background: #eaeae4;
  padding: clamp(22px, 2.6vw, 38px) clamp(20px, 2.6vw, 38px) clamp(24px, 2.8vw, 40px);
  display: flex; flex-direction: column; gap: 16px; flex: 1;
}
.svc-card__lead { font-size: clamp(14px, 1.15vw, 16px); line-height: 1.55; color: var(--ink); margin: 0; }
.svc-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.svc-card__list li {
  position: relative; padding-inline-start: 18px;
  font-size: clamp(13px, 1.1vw, 15px); line-height: 1.5; color: var(--ink-soft);
}
.svc-card__list li::before {
  content: "\2022"; position: absolute; inset-inline-start: 4px; color: var(--ink-soft);
}
.svc-card__more { margin: 4px 0 0; margin-top: auto; }
.svc-card__more a {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--coral);
}
.svc-card__more a:hover { text-decoration: underline; }

@media (max-width: 620px)  { .svc-cards { grid-template-columns: 1fr; } }

/* ---- Image banner ---- */
.imgband {
  position: relative;
  background-image: var(--imgband-img);
  background-size: cover; background-position: center;
  padding-block: clamp(90px, 11vw, 150px);
}
.imgband::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.imgband .sheet { position: relative; }
.imgband__text {
  margin: 0; text-align: center;
  font-family: var(--font-nav); font-weight: 500;
  font-size: clamp(26px, 2.8vw, 40px); line-height: 1.28;
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

/* =========================================================
   WORK PAGE — title band, filterable project grid
   (Figma: PORTFOLIO frame)
   ========================================================= */
.titleband { padding-block: clamp(40px, 5.5vw, 78px); }
.titleband--teal { background: var(--teal); }
.titleband--plain { padding-block: clamp(28px, 3.5vw, 52px); }
.titleband__text {
  margin: 0; text-align: center;
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1.2; color: var(--ink);
}
.titleband--plain .titleband__text { font-size: clamp(26px, 2.6vw, 38px); max-width: 1080px; margin-inline: auto; text-transform: none; }

.pgrid { padding-block: clamp(28px, 4vw, 56px) clamp(36px, 6vw, 76px); }

.pgrid__filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.pgrid__chip {
  font-family: var(--font-nav); font-weight: 600; font-size: 16px; line-height: 1.25;
  color: #111; background: #fff;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 10px 18px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pgrid__chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.pgrid__chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

.pgrid__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 70px) clamp(24px, 3.2vw, 46px);
}
.proj--wide { grid-column: 1 / -1; }
.proj.is-hidden { display: none; }

.proj__media {
  position: relative; margin: 0;
  aspect-ratio: 650 / 571;
  overflow: hidden; background: var(--card);
}
.proj--wide .proj__media { aspect-ratio: 1350 / 571; }
.proj__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.proj:hover .proj__media img { transform: scale(1.05); }

.proj__demo {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 118px; height: 118px; border-radius: 50%;
  background: #fff; color: #0f0f0f;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.3;
  padding: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.proj__demo:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 10px 30px rgba(0,0,0,.25); }

.proj__title {
  margin: 18px 0 0;
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(24px, 2.5vw, 36px); line-height: 1.28;
  color: #0f0f0f;
}
.proj__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 0;
  list-style: none; margin: 8px 0 0; padding: 0;
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.45; color: #545454;
}
.proj__meta li { display: flex; align-items: center; }
.proj__meta li + li::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #545454; margin-inline: 14px;
}

.pgrid__cta {
  display: flex; flex-direction: column; align-items: stretch;
  width: fit-content; margin-inline-start: auto;
  gap: 22px; margin-top: clamp(36px, 5vw, 64px);
}

@media (max-width: 760px) {
  .pgrid__grid { grid-template-columns: 1fr; }
  .pgrid__cta { align-items: stretch; width: auto; }
  .pgrid__cta .svc-arrow { display: none; }
}

/* =========================================================
   WE ARE PAGE — photo banner, story, mission, team,
   quotes & stats band, more projects (Figma: ABOUT US frame)
   ========================================================= */
.photoband {
  background-image: var(--photoband-img);
  background-size: cover; background-position: center 30%;
  height: clamp(180px, 20vw, 285px);
}
.photoband-wrap { padding-block: clamp(18px, 2.5vw, 36px) 0; }
.photoband--title { position: relative; display: grid; align-items: center; height: clamp(220px, 26vw, 360px); }
.photoband--title::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.photoband--title .sheet { position: relative; width: 100%; }
.photoband__title {
  margin: 0; text-align: center;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2;
  color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

/* ---- Our Purpose (story) — full-bleed: photo flush left, card flush right ---- */
.story { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 56px); }
.story__grid {
  display: grid; grid-template-columns: 760fr 632fr;
  gap: clamp(28px, 3.3vw, 48px); align-items: stretch;
}
.story__media { margin: 0; }
.story__media img {
  width: 100%; height: 100%; min-height: 100%;
  aspect-ratio: 760 / 494; object-fit: cover;
}
.story__body { display: flex; flex-direction: column; }
.story__title, .mission__title {
  margin: 0 0 18px;
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(30px, 3.3vw, 48px); line-height: 1.15;
  color: var(--ink-strong);
}
.story__text, .mission__text {
  margin: 0; font-family: var(--font-nav);
  font-size: 18px; line-height: 1.6; color: var(--ink);
  max-width: 640px;
}
/* Card hugs the bottom edge so it lines up with the photo. */
.story__card {
  margin: auto 0 0;
  background: var(--yellow);
  padding: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 48px);
}
.story__card-title {
  margin: 0 0 14px; font-family: var(--font-cond); font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px); color: var(--ink-strong);
}
.story__card p {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-strong);
}

/* ---- Mission & Vision — full-width sage band ---- */
.mission { background: #eaeae4; padding-block: clamp(36px, 4vw, 60px); }
.mission__grid {
  display: grid; grid-template-columns: 1fr minmax(280px, 620px);
  gap: clamp(28px, 8vw, 160px); align-items: center;
}
.mission__body { align-self: center; max-width: 520px; }
.mission__media { margin: 0; }
.mission__media img { width: 100%; aspect-ratio: 620 / 770; object-fit: cover; }

/* ---- Our Team ---- */
.team { padding-block: clamp(36px, 5vw, 72px); }
.team__head { text-align: center; max-width: 640px; margin-inline: auto; }
.team__title {
  margin: 0 0 16px;
  font-family: var(--font-nav); font-weight: 600;
  font-size: clamp(32px, 3.3vw, 48px); line-height: 1.1; color: var(--ink-strong);
}
.team__lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); }

.team__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(36px, 4.5vw, 64px);
}
.member { text-align: center; }
.member__photo {
  display: inline-block; width: 80px; height: 80px; border-radius: 50%;
  background: #d7d7d7 center / cover no-repeat;
}
.member__name { margin: 18px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 24px; color: var(--ink-strong); }
.member__role { margin: 4px 0 0; font-family: var(--font-serif); font-size: 16px; color: var(--coral); }
.member__bio { margin-top: 14px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.member__bio p { margin: 0; }
.member__social { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
.member__social a { color: var(--ink-strong); transition: color .2s, transform .2s; }
.member__social a:hover { color: var(--coral); transform: translateY(-2px); }

/* ---- Quotes & stats band ---- */
.hlights { background: var(--peach); padding-block: clamp(40px, 5vw, 80px); }
.hlights__row { display: grid; gap: clamp(20px, 2.5vw, 34px); }
.hlights__row--top { grid-template-columns: 2fr 1fr; }
.hlights__row--bottom { grid-template-columns: 1fr 2fr; margin-top: clamp(20px, 2.5vw, 34px); }

.hcard { margin: 0; padding: clamp(28px, 3.5vw, 56px); }
.hcard--quote { background: #e9e9e4; }
.hcard--quote p {
  margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.35; color: var(--ink);
}
.hcard--quote cite, .hcard--coral cite { display: block; margin-top: 22px; font-family: var(--font-serif); font-style: normal; font-size: 16px; }

.hcard--stat { background: var(--teal-dark); color: var(--peach); }
.hcard__value { font-family: var(--font-serif); font-size: clamp(44px, 4vw, 60px); line-height: 1; }
.hcard--stat .hcard__title { margin: clamp(28px, 5vw, 90px) 0 8px; font-family: var(--font-serif); font-weight: 400; font-size: 24px; }
.hcard--stat p { margin: 0; font-size: 17px; line-height: 1.5; }

.hcard--coral { background: var(--coral); color: #fff; }
.hcard--coral p { margin: 0; font-family: var(--font-nav); font-weight: 500; font-size: 20px; line-height: 1.5; }

.hcard--subscribe { background: var(--olive); color: #fff; }
.hcard__subtitle { margin: 0 0 14px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.15; }
.hcard--subscribe > p { margin: 0 0 28px; font-size: 17px; line-height: 1.55; }
.hcard__form { display: flex; flex-wrap: wrap; gap: 12px; }
.hcard__form input {
  flex: 1 1 240px; padding: 14px 16px;
  border: 0; font-family: var(--font-body); font-size: 16px; color: var(--ink-strong);
}
.hcard__form input:focus { outline: 2px solid var(--yellow); }
.hcard__form button {
  padding: 14px 30px; border: 0; cursor: pointer;
  background: #111; color: #fff;
  font-family: var(--font-body); font-weight: 500; font-size: 17px;
  transition: background .2s;
}
.hcard__form button:hover { background: #333; }
.hcard--subscribe small { display: block; margin-top: 14px; font-size: 12px; color: var(--peach); }

/* ---- Explore More Projects ---- */
.moreproj { padding-block: clamp(32px, 4vw, 56px); }
.moreproj__title {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(30px, 3.3vw, 48px); line-height: 1.15; color: var(--coral);
}
.moreproj__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.mproj__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); }
.mproj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.mproj:hover .mproj__media img { transform: scale(1.06); }
.mproj__name { margin: 14px 0 0; font-family: var(--font-cond); font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--ink-strong); }
.mproj__meta { margin: 6px 0 0; font-family: var(--font-footer); font-size: 15px; line-height: 1.4; color: #9397ad; }

@media (max-width: 900px) {
  .story__grid, .mission__grid { grid-template-columns: 1fr; }
  .mission__media { order: -1; }
  .mission__media img { aspect-ratio: 16 / 10; }
  .hlights__row--top, .hlights__row--bottom { grid-template-columns: 1fr; }
  .moreproj__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .moreproj__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PROJECT DETAIL — lead, description + meta, gallery,
   full-width image (Figma: PROJECT frame)
   ========================================================= */
.pdetail__leadwrap { padding-block: clamp(24px, 3vw, 44px) clamp(20px, 2.5vw, 36px); }
.pdetail__lead {
  margin: 0; font-family: var(--font-nav);
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink);
  max-width: 1140px;
}

.pdetail { padding-block: clamp(28px, 4vw, 56px); }
.pdetail__grid {
  display: grid; grid-template-columns: 1fr minmax(280px, 660px);
  gap: clamp(28px, 5vw, 90px); align-items: start;
}
.pdetail__title {
  margin: 0 0 20px;
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.15; color: var(--ink-strong);
}
.pdetail__text { font-family: var(--font-nav); font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 480px; }
.pdetail__text p { margin: 0 0 1em; }

.pdetail__meta { margin: clamp(28px, 3.5vw, 56px) 0 0; }
.pdetail__meta div {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  padding-block: 10px; border-top: 1px solid var(--line);
  max-width: 480px;
}
.pdetail__meta div:last-child { border-bottom: 1px solid var(--line); }
.pdetail__meta dt { font-family: var(--font-nav); font-weight: 600; font-size: 15px; color: var(--ink-strong); }
.pdetail__meta dd { margin: 0; font-size: 15px; color: var(--ink-soft); }

.pdetail__media { margin: 0; }
.pdetail__media img { width: 100%; aspect-ratio: 660 / 640; object-fit: cover; }

.pdetail__gallery {
  columns: 2; column-gap: clamp(20px, 2.5vw, 36px);
  margin-top: clamp(28px, 4vw, 56px);
}
.pdetail__gitem { margin: 0 0 clamp(20px, 2.5vw, 36px); break-inside: avoid; }
.pdetail__gitem img { width: 100%; height: auto; }

.pdetail__wide {
  background-image: var(--imgband-img);
  background-size: cover; background-position: center;
  height: clamp(280px, 42vw, 612px);
}

@media (max-width: 860px) {
  .pdetail__grid { grid-template-columns: 1fr; }
  .pdetail__gallery { columns: 1; }
}

/* =========================================================
   SERVICE DETAIL — "More Services" link list (accordion-styled
   rows, two columns)
   ========================================================= */
.sdmore { padding-block: clamp(32px, 4.5vw, 64px); }
.sdmore__title {
  margin: 0 0 clamp(20px, 2.5vw, 36px);
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(30px, 3.3vw, 48px); line-height: 1.15; color: var(--ink-strong);
}
.sdmore__list {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 64px;
}
.sdmore__item { break-inside: avoid; border-bottom: 1px solid var(--line); }
.sdmore__item a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px;
  font-family: var(--font-body); font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-strong);
  transition: padding-inline-start .2s, color .2s;
}
.sdmore__item a:hover { padding-inline-start: 14px; color: var(--coral); }
.sdmore__arrow { font-size: 22px; line-height: 1; transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.sdmore__item a:hover .sdmore__arrow { transform: translate(3px, -3px); }

@media (max-width: 760px) {
  .sdmore__list { columns: 1; }
}

/* =========================================================
   CONTACT & CAREERS — info + form grid, job rows
   ========================================================= */
.contact { padding-block: clamp(32px, 4.5vw, 64px); }
.contact__grid {
  display: grid; grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(32px, 6vw, 110px); align-items: start;
}
.contact__title {
  margin: 0 0 clamp(18px, 2.5vw, 32px);
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(28px, 3vw, 42px); line-height: 1.15; color: var(--ink-strong);
}
.contact__rows { margin: 0; }
.contact__rows div {
  display: grid; grid-template-columns: 90px 1fr; gap: 18px;
  padding-block: 14px; border-top: 1px solid var(--line);
}
.contact__rows div:last-child { border-bottom: 1px solid var(--line); }
.contact__rows dt { font-family: var(--font-nav); font-weight: 600; font-size: 15px; color: var(--ink-strong); }
.contact__rows dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.contact__rows dd a { color: var(--ink); }
.contact__rows dd a:hover { color: var(--coral); }

.contact__form p { margin: 0 0 18px; }
.contact__form label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-nav); font-weight: 600; font-size: 14px; color: var(--ink-strong);
}
.contact__form input, .contact__form textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: 16px; color: var(--ink-strong);
  transition: border-color .2s;
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--teal); }
.contact__form button { cursor: pointer; }
.contact__notice {
  margin: 0 0 18px; padding: 22px 26px;
  background: var(--olive); color: #fff;
  font-size: 16px; line-height: 1.5;
}
.contact__notice--error { background: #b32d2e; }
.contact__consent { display: flex; }
.contact__consent label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.45; cursor: pointer;
}
.contact__consent input { width: auto; margin-top: 3px; flex: 0 0 auto; }

.map { padding-block: 0 clamp(32px, 4.5vw, 64px); }
.map__frame {
  display: block; width: 100%; height: clamp(320px, 40vw, 480px);
  border: 1px solid var(--line);
}

/* ---- Careers ---- */
.jobs { padding-block: clamp(32px, 4.5vw, 64px); }
.jobs__title {
  margin: 0 0 clamp(20px, 2.5vw, 36px);
  font-family: var(--font-cond); font-weight: 600;
  font-size: clamp(30px, 3.3vw, 48px); line-height: 1.15; color: var(--ink-strong);
}
.jobs__list { list-style: none; margin: 0; padding: 0; }
.job { border-bottom: 1px solid var(--line); }
.job:first-child { border-top: 1px solid var(--line); }
.job__link {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(16px, 3vw, 44px);
  padding: 22px 4px;
  transition: padding-inline-start .2s;
}
.job__link:hover { padding-inline-start: 14px; }
.job__name { font-family: var(--font-nav); font-weight: 600; font-size: clamp(19px, 1.9vw, 26px); color: var(--ink-strong); transition: color .2s; }
.job__link:hover .job__name { color: var(--coral); }
.job__meta { display: flex; gap: 10px; }
.job__meta span, .job__tags span {
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line);
  padding: 5px 12px; white-space: nowrap;
}
.job__arrow { font-size: 22px; color: var(--ink-strong); transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.job__link:hover .job__arrow { transform: translate(3px, -3px); }
.jobs__empty { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 640px; }
.jobs__empty a { color: var(--coral); }
.jobs__empty a:hover { text-decoration: underline; }

.job__tags { display: flex; gap: 10px; margin: 14px 0 0; }
.article__back { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .job__link { grid-template-columns: 1fr auto; }
  .job__meta { display: none; }
}

/* =========================================================
   NEWS PAGE — alternating article bands, pagination, single
   article (Figma: NEWS frame)
   ========================================================= */
.nrow { padding-block: clamp(40px, 5.5vw, 90px); }
.nrow--teal { background: var(--teal-soft); }
.nrow--yellow { background: var(--yellow); }

.nrow__grid {
  display: grid; grid-template-columns: 1fr minmax(280px, 620px);
  gap: clamp(28px, 6vw, 110px); align-items: center;
}
.nrow--flip .nrow__grid { grid-template-columns: minmax(280px, 620px) 1fr; }
.nrow--flip .nrow__body { order: 2; }
.nrow--flip .nrow__media { order: 1; }

.nrow__title { margin: 0 0 18px; }
.nrow__title a {
  font-family: var(--font-nav); font-weight: 600;
  font-size: clamp(28px, 2.8vw, 40px); line-height: 1.25;
  color: var(--ink-strong);
  transition: color .2s;
}
.nrow__title a:hover { color: var(--coral); }
.nrow__excerpt { font-family: var(--font-nav); font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 520px; }
.nrow__excerpt p { margin: 0; }
.nrow__btn { margin-top: clamp(24px, 3vw, 44px); border: 0; background: var(--yellow); color: var(--ink); }
.nrow__btn:hover { background: var(--gold); color: #fff; }
.nrow--yellow .nrow__btn { background: var(--teal); color: #fff; }
.nrow--yellow .nrow__btn:hover { background: var(--teal-dark); }

.nrow__media { margin: 0; }
.nrow__media img { width: 100%; aspect-ratio: 620 / 560; object-fit: cover; }

/* ---- Pagination ---- */
.news__pages { display: flex; justify-content: center; padding-block: clamp(28px, 4vw, 56px); }
.news__pages ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.news__pages a, .news__pages span {
  display: grid; place-items: center;
  min-width: 38px; height: 38px; padding-inline: 8px;
  font-family: var(--font-mono); font-size: 15px;
  color: var(--ink); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.news__pages a:hover { border-color: var(--teal); color: var(--teal-dark); }
.news__pages .current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---- Single article ---- */
.article__sheet { padding-block: clamp(36px, 5vw, 72px); }
.article__title {
  margin: 0 0 10px;
  font-family: var(--font-nav); font-weight: 600;
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.2; color: var(--ink-strong);
}
.article__date { font-family: var(--font-mono); font-size: 14px; color: var(--ink-soft); }
.article__media { margin: clamp(24px, 3vw, 40px) 0 0; }
.article__media img { width: 100%; height: auto; }
.article__content { margin-top: clamp(24px, 3vw, 40px); font-size: 17px; line-height: 1.7; color: var(--ink); }
.article__content h2, .article__content h3 { font-family: var(--font-nav); color: var(--ink-strong); line-height: 1.3; }
.article__content img { height: auto; }
.article__back { margin-top: clamp(32px, 4vw, 56px); }

@media (max-width: 860px) {
  .nrow__grid, .nrow--flip .nrow__grid { grid-template-columns: 1fr; }
  .nrow--flip .nrow__body { order: 1; }
  .nrow--flip .nrow__media { order: 2; }
  .nrow__media img { aspect-ratio: 16 / 10; }
}

/* =========================================================
   HERO — FULL-WIDTH (video / slider)
   ========================================================= */
.hero--full { padding: 0 0 clamp(34px, 5vw, 64px); }
.hero-full__media { position: relative; width: 100%; background: #000; overflow: hidden; }
.hero-full__video { display: block; width: 100%; height: clamp(380px, 56vw, 700px); object-fit: cover; }
.hero-full__embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.hero-full__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hero-full__body { padding-top: clamp(28px, 4vw, 56px); text-align: center; }
.hero-full__body .hero__headline { margin-top: 0; max-width: 100%; }
.hero-full__body .hero__cta { margin-inline: auto; }

/* ---- Hero slider ---- */
.hslider { position: relative; width: 100%; height: clamp(400px, 58vw, 720px); overflow: hidden; background: #000; }
.hslider__track { position: absolute; inset: 0; }
.hslider__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  opacity: 0; transition: opacity .8s ease;
}
.hslider__slide.is-active { opacity: 1; }
.hslider__slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
}
.hslider__slide .sheet { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(34px, 5vw, 72px); }
.hslider__cap {
  color: #fff; margin: 0;
  font-size: clamp(32px, 4.4vw, 64px); line-height: 1.05;
  max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hslider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.32); color: #fff;
  border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.hslider__nav:hover { background: rgba(0,0,0,.6); }
.hslider__prev { inset-inline-start: 16px; }
.hslider__next { inset-inline-end: 16px; }
.hslider__dots { position: absolute; inset-inline: 0; bottom: 16px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.hslider__dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.5); border: 0; transition: background .2s, transform .2s; }
.hslider__dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 760px) {
  .hslider__nav { width: 40px; height: 40px; font-size: 22px; }
}

/* ---- Video lightbox ---- */
.vlb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vlb[hidden] { display: none; }
.vlb__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.vlb__dialog { position: relative; width: min(92vw, 980px); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.vlb__media { position: absolute; inset: 0; }
.vlb__media iframe, .vlb__media video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
.vlb__close {
  position: absolute; top: -44px; inset-inline-end: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer;
}
.vlb__close:hover { color: var(--coral); }

/* ---- Image lightbox (project / service photos) ---- */
.ilb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 48px); }
.ilb[hidden] { display: none; }
.ilb__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); cursor: zoom-out; }
.ilb__dialog { position: relative; margin: 0; max-width: 100%; max-height: 100%; display: flex; }
.ilb__img {
  max-width: min(94vw, 1400px); max-height: 90vh; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.98); transition: opacity .25s ease, transform .25s ease;
}
.ilb.is-open .ilb__img { opacity: 1; transform: none; }
.ilb__close {
  position: absolute; top: clamp(10px, 2vw, 22px); inset-inline-end: clamp(10px, 2vw, 22px);
  width: 44px; height: 44px; display: grid; place-items: center; z-index: 1;
  background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer;
}
.ilb__close:hover { color: var(--coral); }
/* Zoomable content photos */
.pdetail__media img, .pdetail__gitem img, .svcfeat__media img { cursor: zoom-in; }

/* =========================================================
   VISION BAND
   ========================================================= */
.vision { padding-block: clamp(44px, 6vw, 86px); }
.vision--green { background: var(--olive); }
.vision--yellow { background: var(--yellow); }
.vision--gold   { background: var(--gold); }
.vision__text {
  text-align: center;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
  font-size: clamp(28px, 3.8vw, 54px);
  line-height: 1.185;
  max-width: 1140px;
  margin: 0 auto;
}
.vision--teal { background: var(--teal); }
.vision--coral { background: var(--coral); }
.vision--green .vision__text { color: var(--paper); }
.vision--yellow .vision__text { color: var(--paper); }
.vision--gold .vision__text   { color: #fff; }
.vision--teal .vision__text { color: var(--paper); }
.vision--coral .vision__text { color: #f5f5f5; }

/* =========================================================
   LATEST WORK
   ========================================================= */
.work {
  --tile-top: 40px;
  --tile-h: 175px;
  --conn-y: calc(var(--tile-top) + var(--tile-h) + 16px);
  padding-bottom: clamp(36px, 6vw, 76px);
}
.work__sheet { position: relative; margin-top: 78px; }

.work__x     { top: -1px; }
.work__vline { top: 16px; bottom: 22px; }
.work__conn  { --y: var(--conn-y); }
.work__adown { bottom: 16px; }

.work__grid-outer { display: grid; grid-template-columns: var(--rail-w) 1fr; }
.work__railcol { position: relative; }
.work__tile { position: absolute; top: var(--tile-top); height: var(--tile-h); }

.work__body { padding-inline-start: clamp(20px, 3vw, 52px); padding-top: var(--tile-top); }

.work-head { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; min-height: var(--tile-h); }
.work-title { font-size: clamp(42px, 5vw, 60px); color: var(--ink); margin: 0; }
.work-lead { max-width: 880px; font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--ink); margin: 6px 0 0; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { position: relative; min-height: 260px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.card.tall { min-height: 360px; }
.card--img { color: #fff; }
/* Image lives on a ::before layer so only it zooms on hover, not the caption. */
.card--img::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: var(--card-img); background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.card--img::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%); transition: opacity .4s ease; opacity: .9; }
.card--img:hover::before { transform: scale(1.07); }
.card--img:hover::after { opacity: 1; }
.card__cap { position: relative; z-index: 1; }
.card__cap h3 { font-family: var(--font-mono); font-size: 16px; line-height: 1.25; margin: 0; font-weight: 400; }
.card__overlay { position: relative; z-index: 1; font-size: clamp(34px, 4.2vw, 60px); color: #fff; align-self: flex-start; margin-top: auto; }
.card--teal { background: var(--teal); color: #fff; justify-content: space-between; }
.card--teal .card__h { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; margin: 0; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; overflow-wrap: break-word; }
.card--teal .find-btn { color: #fff; align-self: flex-start; }
.card--teal .find-btn:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }
.card--text { background: var(--teal-dark); color: #eef5f6; justify-content: flex-start; }
.card--text p { margin: 0; font-size: 14px; line-height: 1.6; }

@media (max-width: 860px) {
  .work__sheet { margin-top: 28px; }
  .work__grid-outer { grid-template-columns: 108px 1fr; }
  .work__railcol { display: block; }
  .work__tile { top: 0; height: auto; aspect-ratio: 1 / 1; }
  .work__body { padding-inline-start: 16px; padding-top: 0; }
  .work-head { grid-template-columns: 1fr; gap: 10px; min-height: 94px; align-content: start; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-inline-start: -124px; margin-top: 24px; }
}
@media (max-width: 600px) {
  /* Two-up work cards on the phone: tighter padding and type so long
     labels (e.g. "Digital & Experiential Engagement") fit the column. */
  .work-grid .card { padding: 16px; min-height: 200px; }
  .work-grid .card.tall { min-height: 220px; }
  .work-grid .card--teal .card__h { font-size: 18px; }
  .work-grid .card__overlay { font-size: clamp(24px, 7vw, 40px); }
}

/* =========================================================
   PRODUCTS & SOLUTIONS
   ========================================================= */
.prod {
  --tile-top: 40px;
  --tile-h: 200px;
  padding-top: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(26px, 4vw, 52px);
}
.prod__sheet { position: relative; }

.prod__x     { top: -1px; }
.prod__vline { top: 16px; bottom: 22px; }
.prod__adown { bottom: 16px; }

.prod__grid-outer { display: grid; grid-template-columns: var(--rail-w) 1fr; }
.prod__railcol { position: relative; }
.prod__tile { position: absolute; top: var(--tile-top); bottom: var(--tile-top); }

.prod__body { padding-inline-start: clamp(20px, 3vw, 52px); padding-top: var(--tile-top); display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(30px, 5vw, 70px); }
.prod-title { font-size: clamp(42px, 5vw, 60px); color: var(--ink); }
.prod-feature { margin-top: 40px; }
.prod-feature h3 { font-family: var(--font-cond); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; text-transform: uppercase; letter-spacing: 0; margin: 0 0 14px; }
.prod-feature p { font-family: var(--font-cond); font-size: 18px; line-height: 1.17; color: var(--ink); margin: 0; max-width: 360px; }

.prod-list { display: flex; flex-direction: column; gap: 18px; }
.prod-row { background: var(--card); padding: 28px 32px; border: 1px solid var(--line); }
.prod-row h4 { font-family: var(--font-cond); font-weight: 700; margin: 0 0 12px; font-size: clamp(18px, 2vw, 24px); line-height: 1.17; text-transform: uppercase; letter-spacing: 0; }
.prod-row p { font-family: var(--font-cond); margin: 0; font-size: 18px; line-height: 1.17; color: var(--ink); }

.prod-cta { display: flex; justify-content: flex-end; margin-top: 40px; }

@media (max-width: 860px) {
  .prod__grid-outer { grid-template-columns: 1fr; }
  .prod__railcol { display: none; }
  .prod__body { padding-inline-start: 0; padding-top: 24px; grid-template-columns: 1fr; }
}

/* =========================================================
   CONNECTOR
   ========================================================= */
.conn-band { padding-block: 40px 30px; }
.conn-sheet { position: relative; }
.conn-line { --y: 0px; position: relative; height: 1px; }
.conn-cta { display: flex; justify-content: flex-end; margin-top: 30px; }
@media (max-width: 860px) {
  /* No side rail on the phone — show the connector, centred, so the
     converging arrows still sit between sections (like desktop). */
  .conn-band { padding-block: 22px; }
  .conn-line { display: block; }
  .conn-line .seg-l  { width: calc(50% - 17px); }
  .conn-line .seg-r  { inset-inline-start: calc(50% + 17px); }
  .conn-line .head-r { inset-inline-start: calc(50% - 15px); }
  .conn-line .head-l { inset-inline-start: calc(50% + 6px); }
  .conn-line .nd     { inset-inline-start: 50%; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--footer); color: #d8d7d2; padding-block: 70px 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 56px);
}
.footer__logo { display: block; font-family: 'Baloo 2', var(--font-display); font-weight: 800; font-size: 54px; color: #fff; line-height: 1; text-transform: lowercase; }
.footer__logo-img { display: block; height: 40px; width: auto; }
.footer__sub { display: block; font-family: 'Inter', sans-serif; font-size: 17.5px; font-weight: 400; letter-spacing: 0; text-transform: uppercase; margin-top: 2px; color: #bdbcb6; }
.footer__about { font-size: 13px; line-height: 1.7; max-width: 420px; color: #b6b5af; margin: 22px 0 0; }

.footer__col { display: flex; flex-direction: column; gap: 13px; font-family: var(--font-footer); font-weight: 500; font-size: 15px; }
.footer__col ul { display: contents; list-style: none; margin: 0; padding: 0; }
.footer__col li { display: contents; }
.footer__col a { color: #d8d7d2; transition: color .2s; width: fit-content; }
.footer__col a:hover { color: var(--gold); }
.footer__heading {
  font-family: var(--font-footer); font-weight: 600; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: #fff;
  margin-bottom: 6px;
}
.footer__mail { color: var(--gold) !important; }
.footer__phone { color: #d8d7d2 !important; font-weight: 400; }
.footer__address { font-style: normal; font-weight: 400; font-size: 14px; line-height: 1.7; color: #b6b5af; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 40px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer__copy { font-family: var(--font-footer); font-size: 12px; color: #cfceca; }
.footer__legalnav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.footer__legalnav a { font-family: var(--font-footer); font-size: 12px; color: #cfceca; transition: color .2s; }
.footer__legalnav a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- WP basics ---- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-inline: auto; }

/* =========================================================
   RTL — translateX centering can't follow logical insets,
   so flip the offsets when the rail anchors from the right.
   ========================================================= */
[dir="rtl"] .fx-vline { transform: translateX(1px); }
[dir="rtl"] .fx-node,
[dir="rtl"] .fx-x,
[dir="rtl"] .fx-conn .nd { transform: translate(50%, -50%); }
[dir="rtl"] .fx-adown,
[dir="rtl"] .fx-aup { transform: translateX(50%); }
[dir="rtl"] .fx-label { right: auto; left: calc(100% - var(--rail-w) + 14px); }

/* =========================================================
   ARABIC — Latin display fonts have no Arabic glyphs; swap
   the token stack and drop letter-spacing (breaks cursive
   joining), loosen tight display line-heights for diacritics.
   ========================================================= */
:lang(ar) {
  --font-display: 'Cairo', 'Barlow Condensed', sans-serif;
  --font-body: 'Tajawal', 'Inter', system-ui, sans-serif;
  --font-mono: 'Tajawal', 'DM Mono', monospace;
  --font-nav: 'Tajawal', 'Barlow', sans-serif;
  --font-cond: 'Cairo', 'Barlow Semi Condensed', sans-serif;
  --font-footer: 'Tajawal', 'Manrope', sans-serif;
}
*:lang(ar) { letter-spacing: 0; }
:lang(ar) .display { line-height: 1.25; }
:lang(ar) .hero__headline { line-height: 1.4; }

/* =========================================================
   Scroll reveal — fade-up + stagger (IntersectionObserver).
   Mirrors frog.co's on-scroll heading reveal, dependency-free.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.22, .61, .36, 1),
              transform 1s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
/* Until JS marks readiness, never hide content (no-JS / failure safe). */
html:not(.js-reveal) .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Hover & micro-interactions — buttons, cards, rows, media.
   Tasteful lifts and easing; all GPU-friendly transforms.
   ========================================================= */

/* Buttons: lift + arrow nudge on the hero/find CTAs. */
.find-btn {
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.find-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}
.find-btn:active { transform: translateY(0); box-shadow: none; }

/* Work cards: gentle lift + shadow (image zoom handled above). */
.card { transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.16); }

/* Solid colour cards get a soft brightness shift too. */
.card--teal:hover { filter: brightness(1.04); }
.card--text:hover { filter: brightness(1.08); }

/* Product rows: animated left accent bar + lift. */
.prod-row {
  position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.prod-row::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 4px; background: var(--coral, #e8604c);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.prod-row:hover {
  transform: translateY(-3px);
  border-color: var(--coral, #e8604c);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.prod-row:hover::before { transform: scaleY(1); }

/* Logo: subtle scale on hover. */
.logo { transition: transform .25s ease; display: inline-block; }
.logo:hover { transform: scale(1.03); }

/* Hero CTA arrow: slide the arrow head on hover. */
.hero__cta .hero__arrow-head,
.hero__find .hero__arrow-head { transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.hero__cta:hover .hero__arrow-head,
.hero__find:hover .hero__arrow-head { transform: translateX(6px); }

/* Accessible keyboard focus across interactive elements. */
a:focus-visible,
button:focus-visible,
.find-btn:focus-visible {
  outline: 2px solid var(--coral, #e8604c);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .find-btn, .card, .card--img::before, .prod-row, .prod-row::before,
  .logo, .hero__arrow-head {
    transition: none !important;
  }
  .find-btn:hover, .card:hover, .prod-row:hover, .logo:hover { transform: none; }
  .card--img:hover::before { transform: none; }
}

/* ---- We Are: Our Process ---- */
.wprocess { padding-block: clamp(48px, 6vw, 90px); }
.wprocess__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.wprocess__title { font-size: clamp(30px, 4vw, 54px); line-height: 1.02; color: var(--ink-strong); }
.wprocess__lead { margin-top: 12px; font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-soft); }
/* Full-bleed mosaic: block widths/colors match the Figma "ABOUT US NO2" frame. */
.wprocess__mosaic {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 644fr 265fr 521fr;
  grid-template-areas:
    "a1 a1 a2"
    "a3 a4 a4"
    "a5 a5 a5";
  gap: 20px 12px;
}
.wprocess__step {
  padding: clamp(28px, 3.2vw, 46px);
  background: #eaeae4;
  min-height: clamp(240px, 26vw, 384px);
}
.wprocess__step--1 { grid-area: a1; }
.wprocess__step--2 { grid-area: a2; background: var(--teal-dark); }
.wprocess__step--3 { grid-area: a3; background: #dd7955; }
.wprocess__step--4 { grid-area: a4; background: #7d9372; }
.wprocess__step--5 { grid-area: a5; min-height: clamp(180px, 20vw, 293px); }
.wprocess__name {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(22px, 2vw, 28px); margin: 0 0 10px; color: #1c1c1c;
}
.wprocess__tags {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(16px, 1.5vw, 21px); color: #dd7955; margin: 0 0 18px;
}
.wprocess__step--2 .wprocess__tags,
.wprocess__step--3 .wprocess__tags,
.wprocess__step--4 .wprocess__tags { color: var(--yellow); }
.wprocess__desc {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5;
  color: #2b2b2b; margin: 0; max-width: 72ch;
}
@media (max-width: 900px) {
  .wprocess__mosaic { grid-template-columns: 1fr; grid-template-areas: "a1" "a2" "a3" "a4" "a5"; }
  .wprocess__step, .wprocess__step--5 { min-height: 0; }
}

/* ---- Single service: alternating feature rows (Figma SERVICES frame) ---- */
/* Figma 722:86 — rows are discrete blocks with ~71px of page background
   between them (475px pitch − 404px row height at 1440). */
.svcfeat { margin-top: clamp(28px, 4vw, 56px); display: grid; row-gap: clamp(32px, 4.9vw, 71px); }
/* The split line sits at the same x in every row (680/1440 in Figma):
   a right-side image starts where the left-side image below it ends. */
.svcfeat__row { display: grid; grid-template-columns: 680fr 760fr; min-height: clamp(260px, 28vw, 404px); }
.svcfeat__row--rev .svcfeat__body { order: 2; }
.svcfeat__row--rev .svcfeat__media { order: 1; }
.svcfeat__body {
  background: #eaeae4;
  padding: clamp(28px, 3.5vw, 56px) clamp(24px, 3.2vw, 46px);
  display: flex; flex-direction: column; justify-content: center;
}
.svcfeat__title {
  margin: 0 0 14px; font-family: var(--font-cond); font-weight: 700;
  font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; color: #1c1c1c;
}
.svcfeat__text {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: #2b2b2b; max-width: 56ch;
}
/* The image fills the row height set by the text cell — portrait
   photos crop instead of stretching the row. */
.svcfeat__media { margin: 0; position: relative; }
.svcfeat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .svcfeat__row, .svcfeat__row--rev { grid-template-columns: 1fr; min-height: 0; }
  .svcfeat__row--rev .svcfeat__body { order: 0; }
  .svcfeat__row--rev .svcfeat__media { order: 0; }
  .svcfeat__media img { position: static; aspect-ratio: 16 / 9; }
}

/* ---- We Are: What We Deliver ---- */
.wdeliver { padding-block: clamp(48px, 6vw, 90px); }
.wdeliver__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.wdeliver__title { font-size: clamp(30px, 4vw, 54px); line-height: 1.02; color: var(--ink-strong); }
.wdeliver__lead { margin-top: 12px; font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-soft); }
.wdeliver__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(4, 1fr); }
.wdeliver__card { background: #eaeae4; padding: 32px 28px; }
.wdeliver__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; font-size: 20px; margin: 0 0 8px; color: var(--ink-strong); }
.wdeliver__desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .wdeliver__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .wdeliver__grid { grid-template-columns: 1fr; } }

/* =========================================================
   PHONE TYPOGRAPHY (placed last so it overrides every base
   display size). The desktop clamp mins are far too large on a
   narrow screen — scale down to the Figma phone proportions so
   the hero headline wraps in ~4 lines and leads read as body.
   Applies across the whole mobile-rail range (<=860) so the type
   scales with the layout — no big-font gap between 560 and 860. */
@media (max-width: 860px) {
  /* margin must match the tile's 34px offset so the headline's first
     line starts level with the orange tile (same as SERVICES). */
  .hero__headline { font-size: clamp(18px, 3.4vw, 26px); line-height: 1.32; margin-top: 34px; }
  .svc-title, .work-title, .svcintro__title { font-size: clamp(23px, 4.2vw, 34px); }
  .svc-lead, .work-lead, .svcintro__lead { font-size: clamp(11px, 2.9vw, 13px); font-weight: 600; line-height: 1.4; }
  .svc__head { font-size: clamp(15px, 2.1vw, 18px); padding-block: 14px; }
  .svc__plus { font-size: 24px; }
  .vision__text { font-size: clamp(20px, 3.4vw, 30px); line-height: 1.3; }
  .svc__more a { font-size: 12px; }
}

/* Phone layout tidy-ups (placed last to win over earlier mobile blocks). */
@media (max-width: 860px) {
  /* The connector already divides sections on the phone — drop the extra
     section-top rule so there aren't two stacked lines above the heading. */
  .services > .rule, .work > .rule { display: none; }
  /* Match the whitespace above the Services tile (hero's 34px bottom pad)
     so both section tiles start with the same breathing room. */
  .work__sheet { margin-top: 34px; }
  .vision { padding-block: clamp(30px, 5vw, 86px); }
  /* Smaller CTA buttons on the phone — they were dominating the view. */
  .find-btn { padding: 11px 18px; font-size: 13px; }
  .card--teal .find-btn { padding: 9px 15px; font-size: 12px; }
  .svc-cta, .hero__cta { gap: 12px; }
}

/* ---- Cookie consent banner ---- */
.cookie {
  position: fixed; z-index: 1000;
  left: 50%; bottom: clamp(12px, 3vw, 28px);
  transform: translateX(-50%);
  width: min(680px, calc(100% - 24px));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--ink-strong); color: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; flex: 1 1 260px; font-size: 14px; line-height: 1.5; }
.cookie__link { color: var(--teal-soft); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; margin-left: auto; }
.cookie__btn {
  cursor: pointer; border: 0; border-radius: 6px;
  padding: 10px 20px; font-size: 13px; font-weight: 600;
}
.cookie__btn--accept { background: var(--teal); color: #fff; }
.cookie__btn--accept:hover { background: var(--teal-dark); }
.cookie__btn--decline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.cookie__btn--decline:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75); }

@media (max-width: 560px) {
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie__actions { margin: 0; justify-content: center; }
}

/* =========================================================
   BLOCK-COMPOSED SINGLES (.e-blocks)
   Single items built with the block editor render their content
   here. Top-level CORE blocks (text, images, galleries) flow at a
   readable content width; Vitamin section blocks (all rendered as
   <section>) keep their own full-bleed .band/.sheet layout. Any
   core block can break out with the "Wide" / "Full width" controls.
   ========================================================= */
.e-blocks { --content-w: 820px; --wide-w: 1200px; }
.e-blocks > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, figure,
  .wp-block-image, .wp-block-gallery, .wp-block-columns, .wp-block-quote,
  .wp-block-buttons, .wp-block-embed, .wp-block-table, .wp-block-group) {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  margin-block: clamp(16px, 1.8vw, 28px);
}
.e-blocks > .alignwide { max-width: var(--wide-w); }
.e-blocks > .alignfull { max-width: none; padding-inline: 0; }
.e-blocks > :where(h1, h2, h3) {
  font-family: var(--font-cond); font-weight: 600; color: var(--ink-strong);
  margin-block: clamp(28px, 3vw, 44px) clamp(8px, 1vw, 16px);
}
.e-blocks > :where(p, ul, ol) {
  font-family: var(--font-nav); font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6; color: var(--ink);
}
.e-blocks .wp-block-image img { display: block; width: 100%; height: auto; }
.e-blocks > :first-child { margin-top: clamp(28px, 4vw, 56px); }
.e-blocks > :last-child { margin-bottom: clamp(28px, 4vw, 56px); }
