/* =========================================================
   Altusign Consultants — site styles
   Bright premium theme: warm white, ink type, brand orange/gold accents.
   ========================================================= */

:root {
  /* Colour — warm neutrals tinted toward the logo's gold/orange */
  --bg:          #fbfaf8;
  --bg-raised:   #f4f1ec;
  --surface:     #ffffff;
  --surface-2:   #f7f5f1;
  --line:        rgba(46, 34, 20, 0.09);
  --line-strong: rgba(46, 34, 20, 0.18);

  --text:        #1b1814;
  --text-2:      #5a534b;
  --text-3:      #6f675e;

  --ink:         #1b1814;   /* primary buttons */
  --ink-hi:      #3a342d;
  --orange:      #ef7418;   /* decorative: icons, glows, gradients */
  --orange-ink:  #b1520c;   /* orange that passes as text on white */
  --gold:        #c99a26;
  --on-ink:      #ffffff;

  --grad: linear-gradient(100deg, #b5860f 0%, #e8700f 55%, #e2551c 100%);

  --shadow-1: 0 1px 2px rgba(46, 34, 20, 0.04), 0 4px 12px rgba(46, 34, 20, 0.05);
  --shadow-2: 0 1px 2px rgba(46, 34, 20, 0.05), 0 8px 24px rgba(46, 34, 20, 0.08), 0 24px 48px rgba(46, 34, 20, 0.06);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-17: 1.0625rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-h3: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --fs-display: clamp(2.875rem, 1.2rem + 7.4vw, 6.5rem);

  /* Space — one scale */
  --s-4: 4px;  --s-8: 8px;  --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px; --s-128: 128px;
  --section: clamp(72px, 4rem + 7vw, 160px);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;

  /* Shape */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* Motion */
  --dur-instant: 80ms;
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
  --dur-slower: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 64px;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-17);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(239, 116, 24, 0.22); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--orange-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--on-ink);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Cross-page fade (Chromium); harmless elsewhere */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: 260ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--raised { background: var(--bg-raised); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-17);
  font-weight: 600;
  color: var(--orange-ink);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-16);
}
.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--text-2);
  letter-spacing: -0.017em;
  max-width: 40ch;
}
.muted { color: var(--text-2); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.center { text-align: center; margin-inline: auto; }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lead { margin-top: var(--s-16); }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: var(--s-12) var(--s-24); align-items: center; }
.center .btns, .btns.center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  min-height: 48px; padding: 0 var(--s-24);
  border-radius: var(--r-pill);
  font-size: var(--fs-17); font-weight: 600; letter-spacing: -0.01em;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: var(--ink-hi); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--text-3); }
.btn svg { width: 18px; height: 18px; flex: none; }

.link {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--orange-ink); font-weight: 600;
  min-height: 44px;
}
.link::after {
  content: "›"; font-size: 1.25em; line-height: 1; margin-left: 4px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover::after { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 250, 248, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 250, 248, 0.88); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-24); }
.nav__logo { display: flex; align-items: center; min-height: 44px; }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: var(--s-4); }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-12);
  font-size: var(--fs-14); color: var(--text-2); border-radius: var(--r-pill);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]:not(.nav__cta) { font-weight: 600; }
.nav__cta { margin-left: var(--s-12); min-height: 38px !important; padding: 0 var(--s-16) !important; background: var(--ink); color: var(--on-ink) !important; font-weight: 600; }
.nav__cta:hover { background: var(--ink-hi); }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.nav__toggle span, .nav__toggle span::before {
  display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; position: relative;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav__toggle span::before { content: ""; position: absolute; top: -6px; }
.nav__toggle span { transform: translateY(3px); }
.nav__toggle[aria-expanded="true"] span { transform: translateY(0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(-90deg); }

@media (max-width: 820px) {
  .nav__logo img { height: 40px; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-24) var(--gutter) var(--s-48);
    background: rgba(251, 250, 248, 0.98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav.is-open { background: rgba(251, 250, 248, 0.98); }
  .nav__links a { font-size: var(--fs-24); font-weight: 600; color: var(--text); min-height: 56px; padding: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: var(--s-24) 0 0 !important; justify-content: center; min-height: 52px !important; border-radius: var(--r-pill) !important; border: 0 !important; font-size: var(--fs-17) !important; }
}

main { display: block; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + var(--s-64)) 0 var(--s-96);
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(18, 14, 10, 0.50), rgba(18, 14, 10, 0.18) 70%),
    linear-gradient(180deg, rgba(18, 14, 10, 0.32) 0%, rgba(18, 14, 10, 0) 30%, rgba(18, 14, 10, 0) 70%, rgba(18, 14, 10, 0.25) 100%);
}
@media (max-width: 700px) { .hero__media img, .hero__media video { object-position: 30% 55%; } }
.hero__content { text-align: center; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.86); font-weight: 500; }
.hero .display { max-width: 14ch; margin-inline: auto; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero .grad { background: linear-gradient(100deg, #f2c14e 0%, #ff9a3d 55%, #ff7a45 100%); -webkit-background-clip: text; background-clip: text; text-shadow: none; }
.hero .lead { margin: var(--s-24) auto 0; max-width: 46ch; color: rgba(255, 255, 255, 0.88); }
.hero .btns { margin-top: var(--s-32); justify-content: center; }
.hero .btn--primary { background: #fff; color: var(--ink); }
.hero .btn--primary:hover { background: #f1ede6; }
.hero .link { color: #fff; }

/* Slow ambient drift + gentle parallax */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-breathe 24s var(--ease-in-out) infinite alternate; }
  @keyframes hero-breathe { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
  @supports (animation-timeline: scroll()) {
    .hero__media {
      animation: hero-parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    @keyframes hero-parallax { to { transform: translateY(12%); } }
  }
}

/* Nav over the hero: transparent with light text until scrolled */
.nav--over:not(.is-scrolled):not(.is-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav--over:not(.is-scrolled):not(.is-open) .nav__links a:not(.nav__cta) { color: rgba(255, 255, 255, 0.85); }
.nav--over:not(.is-scrolled):not(.is-open) .nav__links a:not(.nav__cta):hover,
.nav--over:not(.is-scrolled):not(.is-open) .nav__links a[aria-current="page"]:not(.nav__cta) { color: #fff; }
.nav--over:not(.is-scrolled):not(.is-open) .nav__cta { background: #fff; color: var(--ink) !important; }
.nav--over:not(.is-scrolled):not(.is-open) .nav__toggle span,
.nav--over:not(.is-scrolled):not(.is-open) .nav__toggle span::before { background: #fff; }
.nav__logo .logo-on-dark { display: none; }
.nav--over:not(.is-scrolled):not(.is-open) .nav__logo .logo-on-light { display: none; }
.nav--over:not(.is-scrolled):not(.is-open) .nav__logo .logo-on-dark { display: block; }

/* Inner-page hero */
.page-hero { padding: calc(var(--nav-h) + clamp(64px, 9vw, 140px)) 0 clamp(40px, 6vw, 88px); position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 10% 0%, rgba(201, 154, 38, 0.12), transparent 70%),
    radial-gradient(40% 60% at 60% 0%, rgba(239, 116, 24, 0.10), transparent 70%);
}
.page-hero .display { font-size: clamp(2.625rem, 1.2rem + 6vw, 5.5rem); max-width: 16ch; }
.page-hero .lead { margin-top: var(--s-24); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: var(--s-32) var(--s-16); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: var(--s-8); font-size: var(--fs-15); color: var(--text-2); }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Scroll-lit statement ---------- */
.statement { font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.25rem); line-height: 1.18; font-weight: 650; letter-spacing: -0.03em; max-width: 24ch; }
.statement .w { color: rgba(27, 24, 20, 0.14); transition: color var(--dur-slow) var(--ease-out); }
.statement .w.lit { color: var(--text); }
.statement .w.lit.hl { color: var(--orange-ink); }
.statement-cite { margin-top: var(--s-32); display: flex; align-items: center; gap: var(--s-16); color: var(--text-2); font-size: var(--fs-15); }
.statement-cite img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.statement-cite strong { color: var(--text); font-weight: 600; display: block; }

/* ---------- Bento (services preview) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-16); }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  grid-column: span 2;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
a.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tile--wide { grid-column: span 3; min-height: 360px; }
.tile--plain { min-height: 240px; }
.tile--plain .h3 { margin-top: var(--s-48); }
.tile__num { position: absolute; top: clamp(24px, 3vw, 40px); left: clamp(24px, 3vw, 40px); font-size: var(--fs-14); color: var(--text-3); font-variant-numeric: tabular-nums; }
.tile h3 { margin-bottom: var(--s-8); }
.tile p { color: var(--text-2); font-size: var(--fs-15); line-height: 1.5; max-width: 42ch; }
.tile__bg { position: absolute; inset: 0; z-index: -1; }
.tile__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slower) var(--ease-out); }
a.tile:hover .tile__bg img { transform: scale(1.04); }
.tile__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,0) 30%, rgba(20,16,12,0.82) 88%); }
.tile--photo { color: #fff; }
.tile--photo .tile__num { color: rgba(255,255,255,0.8); }
.tile--photo p { color: rgba(255,255,255,0.86); }
.tile__glyph { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); width: 44px; height: 44px; color: var(--orange); }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide { grid-column: span 1; min-height: 260px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: span 1; }
}

/* ---------- Feature (Joyville) ---------- */
.feature__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-16) var(--s-48); margin-bottom: clamp(32px, 4vw, 56px); }
.feature__head .h2 { max-width: 15ch; }
.feature__media { border-radius: clamp(20px, 3vw, 36px); overflow: hidden; aspect-ratio: 16 / 8; background: var(--bg-raised); box-shadow: var(--shadow-2); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.feature__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-24); margin-top: var(--s-48); }
.feature__facts > div { padding-top: var(--s-24); border-top: 1px solid var(--line-strong); }
.fact__num { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.fact__label { margin-top: var(--s-8); color: var(--text-2); font-size: var(--fs-15); }
@media (max-width: 760px) {
  .feature__facts { grid-template-columns: 1fr 1fr; gap: var(--s-32) var(--s-24); }
  .feature__media { aspect-ratio: 4 / 3; }
}

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px);
  gap: var(--s-16);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  padding: var(--s-8) max(var(--gutter), calc((100vw - var(--maxw)) / 2)) var(--s-32);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__controls { display: flex; justify-content: flex-end; gap: var(--s-12); }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(27, 24, 20, 0.07); color: var(--text);
  transition: background-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-out);
}
.round-btn:hover { background: rgba(27, 24, 20, 0.12); }
.round-btn:active { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn svg { width: 18px; height: 18px; }

/* ---------- Project card ---------- */
.pcard {
  background: var(--surface); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.pcard:hover { box-shadow: var(--shadow-2); }
.pcard__media { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--bg-raised); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slower) var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { padding: var(--s-24) var(--s-24) var(--s-32); display: flex; flex-direction: column; gap: var(--s-8); flex: 1; }
.pcard__tag { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange-ink); }
.pcard__title { font-size: var(--fs-20); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.pcard__text { color: var(--text-2); font-size: var(--fs-15); line-height: 1.5; }
.pcard__specs { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: auto; padding-top: var(--s-16); }
.pcard--tall .pcard__media img { object-position: 50% 30%; }
.chip { font-size: var(--fs-12); color: var(--text-2); padding: 6px 10px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }

/* ---------- Project grid + filter ---------- */
.filter {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  margin-bottom: var(--s-48); box-shadow: var(--shadow-1);
}
.filter button {
  min-height: 40px; padding: 0 var(--s-16); border-radius: var(--r-pill);
  font-size: var(--fs-14); font-weight: 500; color: var(--text-2);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.filter button:hover { color: var(--text); }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-16); }
.pgrid .pcard[hidden] { display: none; }
.pgrid .pcard.is-entering { animation: card-in var(--dur-base) var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 6px; }
.marquee__track { display: flex; gap: var(--s-16); width: max-content; animation: marquee 48s linear infinite; }
.marquee.is-paused .marquee__track, .marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s-8))); } }
.logo-tile {
  flex: none; width: 200px; height: 108px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: var(--s-16) var(--s-24);
}
.logo-tile img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.marquee-bar { display: flex; justify-content: center; margin-top: var(--s-24); }
.pause-btn { display: inline-flex; align-items: center; gap: var(--s-8); min-height: 44px; padding: 0 var(--s-16); border-radius: var(--r-pill); color: var(--text-2); font-size: var(--fs-14); }
.pause-btn:hover { color: var(--text); background: rgba(27, 24, 20, 0.05); }
.pause-btn svg { width: 14px; height: 14px; }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: var(--s-12); }
.logo-grid .logo-tile { width: auto; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__media { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-raised); box-shadow: var(--shadow-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Founder */
.founder__media { position: relative; aspect-ratio: 4 / 4.6; }
.founder__media img { object-position: 50% 18%; }
.founder__badge {
  position: absolute; left: var(--s-16); bottom: var(--s-16); right: var(--s-16);
  padding: var(--s-16) var(--s-24); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.founder__badge strong { display: block; font-size: var(--fs-20); letter-spacing: -0.02em; }
.founder__badge span { color: var(--text-2); font-size: var(--fs-15); }
.quals { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-32); }

blockquote.pull {
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem); line-height: 1.2; font-weight: 650; letter-spacing: -0.03em;
  text-indent: -0.42em;
}

/* ---------- Lists ---------- */
.ticks { display: grid; gap: var(--s-12); margin-top: var(--s-24); }
.ticks li { display: flex; gap: var(--s-12); align-items: flex-start; color: var(--text-2); }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: rgba(239, 116, 24, 0.13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6 5.6-5.8' fill='none' stroke=%27%23b1520c%27 stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s-16); }
.cap { padding: var(--s-24); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); }
.cap h3 { font-size: var(--fs-17); font-weight: 600; letter-spacing: -0.015em; }
.cap p { color: var(--text-2); font-size: var(--fs-15); margin-top: var(--s-4); }

/* ---------- Services detail ---------- */
.svc { display: grid; grid-template-columns: 120px 1fr 1fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.svc:last-child { border-bottom: 1px solid var(--line-strong); }
.svc__num { font-size: var(--fs-15); color: var(--orange-ink); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 10px; }
.svc__title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.svc__title + p { margin-top: var(--s-16); color: var(--text-2); font-size: var(--fs-17); }
.svc .ticks { margin-top: 6px; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: var(--s-16); } .svc__num { padding-top: 0; } }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s-16); counter-reset: step; }
.step { position: relative; padding: var(--s-24); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: var(--fs-14); color: var(--orange-ink); font-weight: 600; margin-bottom: var(--s-24); font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--fs-17); font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: var(--s-8); font-size: var(--fs-15); color: var(--text-2); }

/* ---------- Case study (sticky story) ---------- */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.story__frame { position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); }
.story__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity var(--dur-slower) var(--ease-out), transform var(--dur-slower) var(--ease-out); }
.story__frame img.is-active { opacity: 1; transform: none; }
.story__frame img.contain { object-fit: contain; background: #fff; padding: 12px; }
.story__caption { margin-top: var(--s-12); font-size: var(--fs-14); color: var(--text-3); min-height: 1.5em; }
.story__steps { display: grid; gap: clamp(40px, 10vh, 120px); padding-block: 4vh 20vh; }
.chapter { opacity: 0.32; transition: opacity var(--dur-slow) var(--ease-out); }
.chapter.is-active { opacity: 1; }
.chapter__label { font-size: var(--fs-14); font-weight: 600; color: var(--orange-ink); margin-bottom: var(--s-12); }
.chapter h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.chapter p { margin-top: var(--s-16); color: var(--text-2); }
.chapter__img { display: none; margin-top: var(--s-24); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__sticky { display: none; }
  .story__steps { padding-block: 0; gap: var(--s-64); }
  .chapter { opacity: 1; }
  .chapter__img { display: block; }
  .chapter__img.contain { background: #fff; padding: 8px; }
}

/* ---------- Brand programmes ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); }
.duo figure { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.duo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.duo figcaption { padding: var(--s-16) var(--s-24); font-size: var(--fs-14); color: var(--text-2); }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-16); }
.ccard {
  position: relative; display: flex; flex-direction: column; gap: var(--s-8);
  padding: clamp(28px, 3vw, 40px); min-height: 260px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.ccard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.ccard:active { transform: scale(0.985); }
.ccard__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(239, 116, 24, 0.12); color: var(--orange-ink); margin-bottom: auto; }
.ccard__icon svg { width: 24px; height: 24px; }
.ccard__label { margin-top: var(--s-32); font-size: var(--fs-15); color: var(--text-2); }
.ccard__value { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem); font-weight: 650; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ccard__go { position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px); color: var(--text-3); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.ccard:hover .ccard__go { color: var(--orange-ink); transform: translate(2px, -2px); }
.ccard__go svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .contact-cards { grid-template-columns: 1fr; } .ccard { min-height: 0; } .ccard__icon { margin-bottom: var(--s-8); } .ccard__label { margin-top: var(--s-8); } }

.places { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-24); }
.places .chip { font-size: var(--fs-15); padding: 10px 16px; color: var(--text); background: var(--surface); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--r-lg) + 8px);
  padding: clamp(48px, 7vw, 112px) clamp(24px, 5vw, 80px);
  background: linear-gradient(180deg, #fffaf3 0%, #fdf1e3 100%);
  border: 1px solid rgba(239, 116, 24, 0.16);
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 110%; z-index: -1;
  background: radial-gradient(45% 50% at 50% 30%, rgba(239, 116, 24, 0.16), transparent 70%);
}
.cta .h2 { max-width: 18ch; margin-inline: auto; }
.cta .lead { margin: var(--s-16) auto 0; }
.cta .btns { margin-top: var(--s-32); justify-content: center; }

/* ---------- Promise ---------- */
.promise { text-align: center; }
.promise .display { font-size: clamp(2.25rem, 1rem + 5.4vw, 5rem); max-width: 18ch; margin-inline: auto; }

/* ---------- Sister company ---------- */
.sister { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sister__logo { display: grid; width: fit-content; place-items: center; background: #fff; border-radius: var(--r-md); padding: var(--s-16) var(--s-24); margin-bottom: var(--s-24); box-shadow: var(--shadow-1); }
.sister__logo img { height: 40px; width: auto; }
@media (max-width: 880px) { .sister { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-raised); border-top: 1px solid var(--line); padding: var(--s-64) 0 var(--s-32); font-size: var(--fs-14); color: var(--text-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-48) var(--s-32); }
.footer__brand img { height: 64px; width: auto; }
.footer__brand p { margin-top: var(--s-16); max-width: 32ch; }
.footer h4 { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-12); }
.footer li a { display: inline-flex; align-items: center; min-height: 36px; transition: color var(--dur-fast) var(--ease-out); }
.footer li a:hover { color: var(--text); }
.footer__base { margin-top: var(--s-48); padding-top: var(--s-24); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--s-12) var(--s-32); justify-content: space-between; color: var(--text-3); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Floating WhatsApp ---------- */
.wa-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 20px rgba(37, 211, 102, .35);
  transition: transform var(--dur-fast) var(--ease-out);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:active { transform: scale(0.95); }
.wa-fab svg { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slower) var(--ease-out), transform var(--dur-slower) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero entrance on load */
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: hero-in var(--dur-slower) var(--ease-out) both; }
  .hero__content > :nth-child(2) { animation-delay: 80ms; }
  .hero__content > :nth-child(3) { animation-delay: 180ms; }
  .hero__content > :nth-child(4) { animation-delay: 260ms; }
  .page-hero .wrap > * { animation: hero-in var(--dur-slower) var(--ease-out) both; }
  .page-hero .wrap > :nth-child(2) { animation-delay: 80ms; }
  .page-hero .wrap > :nth-child(3) { animation-delay: 160ms; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--s-96) var(--gutter); }

/* ---------- Utilities ---------- */
.mt-16 { margin-top: var(--s-16); } .mt-24 { margin-top: var(--s-24); } .mt-32 { margin-top: var(--s-32); } .mt-48 { margin-top: var(--s-48); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-bar { display: none; }
  .statement .w { color: var(--text); }
}
.hero + section .stats { margin-top: var(--s-48); }

/* ---------- Founder & CEO note ---------- */
.ceo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ceo .h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); max-width: 16ch; }
.ceo__body { margin-top: var(--s-32); display: grid; gap: var(--s-16); max-width: 62ch; }
.ceo__body p { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.65; color: var(--text-2); }
.ceo__sign { margin-top: var(--s-24); font-weight: 650; font-size: var(--fs-17); letter-spacing: -0.01em; }
.ceo__quote {
  margin-top: var(--s-32); max-width: 62ch;
  padding: var(--s-24) var(--s-32);
  background: var(--surface); border-radius: var(--r-md);
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow-1);
}
.ceo__quote p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.35; }
.ceo__quote footer { margin-top: var(--s-8); font-size: var(--fs-14); color: var(--text-3); }
.ceo__card { position: sticky; top: calc(var(--nav-h) + 32px); }
.ceo__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--bg-raised); box-shadow: var(--shadow-2); }
.ceo__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ceo__id { margin-top: var(--s-24); display: grid; gap: 2px; }
.ceo__id strong { font-size: var(--fs-20); font-weight: 650; letter-spacing: -0.02em; }
.ceo__id span { color: var(--text-2); font-size: var(--fs-15); }
.ceo__id .quals { margin-top: var(--s-16); }
@media (max-width: 880px) {
  .ceo { grid-template-columns: 1fr; }
  .ceo__card { position: static; order: -1; max-width: 420px; }
}

/* Client logos: greyscale at rest, full colour on hover */
.logo-tile { transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.logo-tile img { filter: grayscale(1) contrast(1.05); opacity: 0.62; transition: filter var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out); }
.logo-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.logo-tile:hover img { filter: none; opacity: 1; }
