/*
Theme Name: Larch
Theme URI: https://uselarch.com
Author: Brandsmith
Author URI: https://brandsmith.ca
Description: Custom theme for Larch (FourX Partners). Built from the approved LAR-004 landing page design (Sonya Rogers, Sept 29 2026). Homepage copy and imagery are editable through ACF (free) with the approved design baked in as defaults.
Version: 1.1.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: larch
*/

/* ==========================================================================
   Fonts (bundled — no third-party font requests)
   ========================================================================== */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/jetbrains-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/source-sans-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/source-sans-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/source-sans-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/source-sans-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/source-serif-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Larch — Landing page
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #122e37;
  --gold: #c88b2b;
  --forest: #3a4c3c;
  --cream: #ebe4d3;
  --ink: #0c1f26;

  /* Surfaces */
  --paper: #faf8f4;
  --paper-warm: #f3eee4;
  --text: #1c3640;
  --text-soft: #3d5159;
  --line: rgba(18, 46, 55, 0.14);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --header-h: 88px;

  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; } /* clip (not hidden) keeps the pinned sections working */

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only,
.sr-defs {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sr-defs { width: 0; height: 0; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--gold);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

section[id] { scroll-margin-top: 64px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Type ---------- */
.display,
.h2,
.h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(2.75rem, 1rem + 4.1vw, 4.6875rem); /* 75px on desktop */
  line-height: 1.02;
  font-weight: 500;
}

.h2 {
  font-size: clamp(2.1rem, 1rem + 4.1vw, 4.6875rem); /* 75px on desktop */
  line-height: 1.1;
  font-weight: 500;
}

.h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 1.125rem; /* 18px */
  color: var(--gold);
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}

.body { color: var(--text-soft); max-width: 34em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--gold);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: #b57b20; }
.btn:active { transform: translateY(1px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.5s var(--ease), height 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: var(--navy);
  height: 72px;
  box-shadow: 0 1px 0 rgba(235, 228, 211, 0.06);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img { width: 140px; }

/* compact Book a Demo beside the menu icon, so it's always one tap away on phones and tablets */
.header-demo { display: none; }
@media (max-width: 899px) {
  .header-demo { display: inline-flex; margin-left: auto; margin-right: 8px; min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.2vw, 56px);
}
.site-nav a:not(.btn) {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  background: var(--cream);
  margin: 7px 0;
  transition: transform 0.35s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 0 var(--gutter);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .site-nav a:not(.btn) { font-family: var(--serif); font-weight: 500; font-size: 2rem; } /* same weight as the page titles */
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 12px; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}

@media (max-width: 899px) {
  :root { --header-h: 72px; }
  .site-header.is-scrolled { height: 64px; }
  .site-header__logo img { width: 116px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100vh, 960px);
  min-height: min(100svh, 960px);
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 31, 38, 0.62) 0%, rgba(12, 31, 38, 0.28) 45%, rgba(12, 31, 38, 0.05) 75%),
    linear-gradient(180deg, rgba(12, 31, 38, 0.35) 0%, rgba(12, 31, 38, 0) 22%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 32px;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}

.hero__copy { width: max-content; max-width: 100%; }
.hero__title { color: var(--cream); margin-bottom: 1.25rem; font-size: clamp(2.75rem, 1rem + 4.8vw, 5.3125rem); /* 85px on desktop */ }
.hero__line { display: block; }
.hero__lede { width: 0; min-width: 100%; /* wrap to the headline's width */ font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }

.hero__device { width: 122%; margin-left: -6%; }
.hero__device img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 48px; }
  .hero__device { width: auto; margin: 8px -4% 0; }
}
/* phones: centred hero with roomier margins and more air under the header */
@media (max-width: 599px) {
  .hero__inner {
    padding-inline: 32px;
    padding-top: calc(var(--header-h) + 64px);
    gap: 40px;
    justify-items: center;
    text-align: center;
  }
  .hero__copy { width: 100%; }
  .hero__lede { width: auto; min-width: 0; max-width: 22em; margin-inline: auto; text-wrap: balance; }
  .hero__device { width: calc(100% + 40px); margin: 0 -20px; } /* whole laptop + phone in view, ~12px from the screen edges */
}

/* Hero load-in (quiet, one-time) */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg img { animation: hero-settle 2.8s var(--ease-soft) both; }
  .hero__line { animation: rise 1.1s var(--ease) both; }
  .hero__line:nth-child(1) { animation-delay: 0.15s; }
  .hero__line:nth-child(2) { animation-delay: 0.27s; }
  .hero__line:nth-child(3) { animation-delay: 0.39s; }
  .hero__fade { animation: rise 1s var(--ease) 0.65s both; }
  .hero__fade.btn { animation-delay: 0.8s; }
  .hero__device { animation: device-in 1.6s var(--ease) 0.45s both; }
}
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes device-in { from { opacity: 0; transform: translate3d(40px, 12px, 0); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   A Clearer View — headline, then the pinned Larch mark + numbered steps
   ========================================================================== */
.larch-mask { width: 100%; height: auto; overflow: visible; }

.story { padding: clamp(80px, 11vw, 150px) 0 clamp(80px, 10vw, 140px); }
.story__head { margin-bottom: clamp(48px, 6vw, 88px); }
.story__head .h2 span { display: block; } /* one sentence per line */

.story__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.story__mark { width: min(100%, 600px); }
.story__img:not(:first-of-type) { opacity: 0; } /* static layouts show the first photo */

/* numbered steps with a progress line (from V1 "Clarity, month after month") */
.steps { position: relative; width: 100%; }
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 112px;
  top: 14px;
  width: 1px;
}
.steps::before { bottom: 14px; background: rgba(200, 139, 43, 0.3); }
.steps::after {
  height: calc(var(--progress, 1) * (100% - 28px));
  background: var(--gold);
  transition: height 0.9s var(--ease);
}
.step {
  display: grid;
  grid-template-columns: 112px 1fr;
  column-gap: 40px;
  position: relative;
  padding: 0 0 clamp(40px, 8vh, 88px);
}
.step:last-child { padding-bottom: 0; }
.step::before {
  /* node on the progress line */
  content: "";
  position: absolute;
  left: 108.5px;
  top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 1;
}
.step__num {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: clamp(2.8rem, 1.5rem + 3vw, 4.5rem);
  line-height: 0.85;
  color: var(--gold);
}
.step .h3 { margin-bottom: 0.45rem; font-size: clamp(1.5rem, 1.05rem + 1.2vw, 2.35rem); line-height: 1.15; }
.step p { color: var(--text-soft); font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem); max-width: 24em; }

@media (max-width: 899px) {
  .story__inner { grid-template-columns: 1fr; gap: 40px; }
  .story__mark { max-width: 300px; margin: 0 auto; } /* centred on its own (v1.0.2 mobile pass); steps below stay left-aligned */
  .steps::before, .steps::after { left: 72px; }
  .step { grid-template-columns: 72px 1fr; column-gap: 24px; padding-bottom: 40px; }
  .step::before { left: 68.5px; }
  .step__num { font-size: 2.6rem; }
}

/* Desktop + motion allowed: the mark and steps pin while the photos and steps advance */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .story { padding-bottom: 0; }
  .js .story__head { margin-bottom: 0; } /* the pinned area centres itself, which supplies the gap */
  .js .story__pin { height: 300vh; position: relative; }
  .js .story__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 40px; /* clear the fixed header */
  }
  .js .story__mark { width: min(100%, 640px, calc(74vh * 565 / 515)); }

  .js .story__img {
    opacity: 0;
    transform: scale(1.06);
    transform-origin: 50% 50%;
    transform-box: fill-box;
    transition: opacity 1.1s var(--ease-soft), transform 1.6s var(--ease-soft);
  }
  .js .story__img.is-active { opacity: 1; transform: scale(1); }

  .js .story .step { opacity: 0.2; transition: opacity 0.6s var(--ease); }
  .js .story .step::before { transform: scale(0.7); background: #d8c39b; transition: transform 0.6s var(--ease), background-color 0.6s var(--ease); }
  .js .story .step .step__num,
  .js .story .step .step__body > * { transform: translateY(8px); transition: transform 0.9s var(--ease), color 0.6s var(--ease); }

  .js .story .step.is-past { opacity: 0.34; }
  .js .story .step.is-past::before,
  .js .story .step.is-active::before { background: var(--gold); transform: scale(1); }

  .js .story .step.is-active { opacity: 1; }
  .js .story .step.is-active .step__num,
  .js .story .step.is-active .step__body > * { transform: none; }
  .js .story .step.is-active .step__body > p { transition-delay: 0.1s; }
  .js .story .step.is-active .h3 { color: var(--ink); }
}

/* Mobile: steps rise one after another as they enter */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .js .story .step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 1s var(--ease);
  }
  .js .story .step.is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   The bigger picture — product view, six capabilities, expertise
   ========================================================================== */
.bigger {
  --overlap: clamp(40px, 5vw, 80px); /* how far the iPad hangs below the photo */
  background: var(--navy);
  color: var(--cream);
  padding-bottom: clamp(80px, 10vw, 140px);
}
.bigger .h2 { color: var(--cream); }

.bigger__band {
  position: relative;
  isolation: isolate;
  padding-top: clamp(56px, 8vw, 120px);
}
/* the photo is taller than its window so it has room to drift on scroll */
.bigger__bgwrap {
  position: absolute;
  inset: 0 0 var(--overlap) 0;
  overflow: hidden;
  z-index: -1;
}
.bigger__bg {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}
.bigger__device { max-width: 1000px; margin: 0 auto; perspective: 1800px; }
.bigger__tilt { position: relative; transform-origin: 50% 85%; will-change: transform; }
.bigger__tilt img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }

/* a band of light crosses the glass once, clipped to the iPad's shape */
.bigger__tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-mask: var(--device-mask) center / 100% 100% no-repeat;
  mask: var(--device-mask) center / 100% 100% no-repeat;
  opacity: 0;
}
.bigger__device.is-in .bigger__tilt::after { animation: sheen 2.4s var(--ease-soft) 0.9s both; }
@keyframes sheen {
  0% { opacity: 1; background-position: 150% 0; }
  100% { opacity: 1; background-position: -60% 0; }
}

.bigger__head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-top: clamp(48px, 6vw, 80px);
}
.bigger__intro .body { color: rgba(235, 228, 211, 0.85); max-width: 30em; margin-bottom: 1.75rem; }

.bigger__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(32px, 4vw, 64px);
  margin-top: clamp(80px, 9vw, 140px);
}
.feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
}
.feature__icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s var(--ease);
}
.feature:hover .feature__icon { transform: translateY(-3px); }
.feature .h3 { color: var(--cream); font-size: clamp(1.35rem, 1.05rem + 0.8vw, 1.8rem); margin-bottom: 0.6rem; }
.feature p { color: rgba(235, 228, 211, 0.78); max-width: 22em; }

/* expertise statement: set apart by a rule, still inside the dark section */
.expertise {
  margin-top: clamp(96px, 10vw, 150px);
  padding-top: clamp(72px, 8vw, 120px);
  border-top: 1px solid rgba(235, 228, 211, 0.14);
  text-align: center;
}
.expertise .h2 { margin-bottom: 1.5rem; }
.expertise .body { color: rgba(235, 228, 211, 0.85); max-width: 36em; margin-inline: auto; }

@media (max-width: 1023px) {
  .bigger__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .bigger__head { grid-template-columns: 1fr; gap: 24px; }
  .bigger__device { margin: 0 -4%; }
}
@media (max-width: 639px) {
  .bigger__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Who it's for
   ========================================================================== */
.who { padding: clamp(80px, 10vw, 136px) 0 clamp(100px, 12vw, 170px); overflow: hidden; }

.who__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.who__copy { padding-top: clamp(24px, 4vw, 56px); }
.who__copy .h2 { max-width: 13em; }

.who__cols {
  display: grid;
  gap: clamp(28px, 3vw, 40px);
  max-width: 30em;
  padding-right: clamp(0px, 2.5vw, 32px); /* clearance from the overlapping report cover */
  margin: clamp(40px, 5vw, 64px) 0 clamp(36px, 4vw, 56px);
}
.rule { margin-bottom: 0.9rem; padding-bottom: 0.7rem; position: relative; }
.rule::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 1px;
  background: var(--gold);
}
.who__cols .body { font-size: 0.98rem; }

.who__media { position: relative; margin-right: calc(var(--gutter) * -1); }
.who__photo img { width: 100%; aspect-ratio: 1108 / 1150; object-fit: cover; object-position: 45% 50%; } /* keep the man in the right half, clear of the report cover */

/* Report cover overlapping the bottom-left of the photo (Sonya, Nov 5 2026) */
.who__report {
  position: relative;
  width: 58%;
  margin: -50% 0 0 -5%;
  box-shadow: 0 24px 60px rgba(12, 31, 38, 0.22), 0 2px 8px rgba(12, 31, 38, 0.08);
}
.who__report img { width: 100%; height: auto; display: block; }

@media (max-width: 899px) {
  .who__inner { grid-template-columns: 1fr; }
  .who__media { margin: 0 calc(var(--gutter) * -1) 0 0; }
  .who__report { width: 62%; margin: -50% 0 0 0; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  position: relative;
  isolation: isolate;
  min-height: clamp(460px, 42vw, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* soft shade along the top so the photo separates from the page above */
    linear-gradient(180deg, rgba(18, 46, 55, 0.3) 0%, rgba(18, 46, 55, 0.1) 18%, rgba(18, 46, 55, 0) 40%),
    /* faint light wash behind the copy for contrast over the blue mountains */
    linear-gradient(90deg, rgba(250, 248, 244, 0) 35%, rgba(250, 248, 244, 0.32) 65%, rgba(250, 248, 244, 0.2) 100%);
}

.cta__inner { display: flex; justify-content: flex-end; }
.cta__copy { width: min(780px, 62%); padding: 72px 0; }
.cta .h2 { color: var(--navy); margin-bottom: 1.25rem; }
.cta .body { color: var(--text); margin-bottom: 2rem; }

@media (max-width: 899px) {
  .cta { align-items: flex-start; min-height: 620px; }
  .cta__bg img { object-position: 22% 50%; }
  .cta__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(18, 46, 55, 0.3) 0%, rgba(18, 46, 55, 0) 10%),
      linear-gradient(180deg, rgba(250, 248, 244, 0) 6%, rgba(250, 248, 244, 0.6) 22%, rgba(250, 248, 244, 0.45) 50%, rgba(250, 248, 244, 0) 72%);
  }
  .cta__copy { width: 100%; padding: 64px 0 280px; }
}
/* phones + portrait tablets: copy sits on paper above the photo, so the headline never crosses her */
@media (max-width: 899px) {
  .cta { background: var(--paper); min-height: 0; }
  .cta__bg { top: auto; height: clamp(380px, 60vw, 480px); }
  .cta__bg img { object-position: 20% 50%; }
  .cta__bg::after {
    background: linear-gradient(180deg, var(--paper) 0%, rgba(250, 248, 244, 0) 30%);
  }
  .cta__copy { padding: 28px 0 calc(clamp(380px, 60vw, 480px) + 20px); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(235, 228, 211, 0.8); padding: 40px 0; }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer img { width: 140px; }
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 0.95rem; }
.site-footer__contact a { color: var(--cream); text-decoration: none; transition: color 0.3s var(--ease); }
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 0.85rem; }
.site-footer__meta span + span::before { content: "|"; margin: 0 12px; opacity: 0.5; }
.site-footer__credit { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .brandsmith img { width: 92px; opacity: 0.9; transition: opacity 0.3s var(--ease); }
.brandsmith:hover img { opacity: 1; }

/* ==========================================================================
   Scroll reveals (only when JS is on and motion is allowed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* default: soft rise */
  .js [data-reveal=""] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  }
  .js [data-reveal=""].is-in { opacity: 1; transform: none; }

  /* children rise in sequence */
  .js [data-reveal="stagger"] > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }

  /* photography: reveal upward from a clipped edge, image settling inside */
  .js [data-reveal="image"] {
    clip-path: inset(18% 0 0 0);
    opacity: 0;
    transition: clip-path 1.5s var(--ease), opacity 0.9s var(--ease);
  }
  .js [data-reveal="image"] img { transform: scale(1.08); transition: transform 2s var(--ease-soft); }
  .js [data-reveal="image"].is-in { clip-path: inset(0 0 0 0); opacity: 1; }
  .js [data-reveal="image"].is-in img { transform: scale(1); }

  /* floating card arrives after the photo */
  .js [data-reveal="card"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease) 0.45s, transform 1.3s var(--ease) 0.45s;
  }
  .js [data-reveal="card"].is-in { opacity: 1; transform: none; }

  /* larch mark (A Clearer View) */
  .js [data-reveal="mark"] {
    opacity: 0;
    transform: scale(0.94);
    transform-origin: 20% 80%;
    transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
  }
  .js [data-reveal="mark"].is-in { opacity: 1; transform: none; }

  /* device slides in from the left edge of its panel */
  .js [data-reveal="device"] {
    opacity: 0;
    transform: translate3d(-32px, 16px, 0);
    transition: opacity 1.1s var(--ease) 0.2s, transform 1.4s var(--ease) 0.2s;
  }
  .js [data-reveal="device"].is-in { opacity: 1; transform: none; }

  /* iPad rises into place over the photo */
  .js [data-reveal="device-up"] { opacity: 0; transition: opacity 1.2s var(--ease); }
  .js [data-reveal="device-up"].is-in { opacity: 1; }

  /* capability icons draw their lines after each block arrives */
  .js .bigger__grid .feature__icon > * {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.4s var(--ease-soft);
    transition-delay: calc(var(--i, 0) * 110ms + 300ms);
  }
  .js .bigger__grid.is-in .feature__icon > * { stroke-dashoffset: 0; }

  /* background fade only */
  .js [data-reveal="fade"] { opacity: 0; transition: opacity 1.6s var(--ease-soft); }
  .js [data-reveal="fade"].is-in { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Measure tweaks to match comp line lengths ---------- */
.who__copy .h2 { max-width: 11.5em; }
.cta .body { max-width: 40em; }

/* ==========================================================================
   WordPress additions (not in the design file)
   Inner pages, Book a Demo form, legal pages. Built from the design's own
   tokens so they read as part of the same system.
   ========================================================================== */

/* Inner pages have no dark hero behind the header, so it starts solid */
.is-inner .site-header { background: var(--navy); height: 72px; }
@media (max-width: 899px) { .is-inner .site-header { height: 64px; } }

/* Admin bar offset for logged-in editors */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Footer legal links */
.site-footer__legal { text-decoration: none; transition: color 0.3s var(--ease); }
.site-footer__legal:hover { color: var(--gold); }
/* phones: footer details stack one per line, no divider bars, comfortable tap targets */
@media (max-width: 599px) {
  .site-footer__meta { flex-direction: column; gap: 0; }
  .site-footer__meta span + span::before { content: none; }
  .site-footer__meta span { padding: 6px 0; }
  .site-footer__meta span:has(> a) { padding: 0; }
  .site-footer__legal, .site-footer .brandsmith { display: inline-block; padding: 6px 0; }
}

/* ---------- Book a Demo ---------- */
.demo {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(72px + clamp(56px, 8vw, 110px)) 0 clamp(64px, 8vw, 110px);
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
}
.demo__bg { position: absolute; inset: 0; z-index: -1; }
.demo__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; opacity: 0.38; }
.demo__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 46, 55, 0.94) 0%, rgba(18, 46, 55, 0.72) 55%, rgba(18, 46, 55, 0.5) 100%);
}

.demo__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.demo__copy .h2 { color: var(--cream); margin-bottom: 1.5rem; font-size: clamp(2.1rem, 1rem + 3.4vw, 4rem); }
.demo__copy .body { color: rgba(235, 228, 211, 0.85); max-width: 30em; }
.demo__content p + p { margin-top: 1em; }

.demo__points { margin-top: 2rem; display: grid; gap: 14px; max-width: 30em; }
.demo__points li {
  position: relative;
  padding-left: 30px;
  color: rgba(235, 228, 211, 0.85);
}
.demo__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.8em;
  width: 16px; height: 1px;
  background: var(--gold);
}

.demo__card {
  background: var(--paper);
  color: var(--text);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

@media (max-width: 899px) {
  .demo { align-items: flex-start; min-height: 0; }
  .demo__inner { grid-template-columns: 1fr; }
}

/* ---------- Form ---------- */
.demo-form { display: grid; gap: 20px; }
.demo-form__field { display: grid; gap: 8px; }
.demo-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.demo-form input,
.demo-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(18, 46, 55, 0.22);
  border-radius: 2px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23122e37' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.demo-form input:hover,
.demo-form select:hover { border-color: rgba(18, 46, 55, 0.4); }
.demo-form input:focus,
.demo-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 139, 43, 0.2);
}
.demo-form .btn { width: 100%; margin-top: 6px; border: 0; cursor: pointer; font-size: 1.05rem; }
.demo-form__note { font-size: 0.9rem; color: var(--text-soft); text-align: center; }

.demo-form__error {
  padding: 12px 14px;
  border-left: 3px solid #c4673f;
  background: rgba(196, 103, 63, 0.08);
  color: var(--text);
  font-size: 0.95rem;
}

/* honeypot: out of sight and out of the tab order */
.demo-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.demo-form__done { padding: 12px 0; }
.demo-form__done .h3 { color: var(--navy); margin-bottom: 0.6rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

/* ---------- Standard pages (Privacy, Terms, 404) ---------- */
.prose-page { padding: calc(72px + clamp(56px, 8vw, 110px)) 0 clamp(80px, 10vw, 140px); }
.prose-page__inner { max-width: calc(780px + var(--gutter) * 2); }
.prose-page .h2 { font-size: clamp(2.2rem, 1rem + 3vw, 3.6rem); margin-bottom: 1rem; }
.prose-page__date { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 2.5rem; }

.prose { color: var(--text-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2,
.prose h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.2; margin-top: 2em; }
.prose h2 { font-size: 1.8rem; }
.prose h3 { font-size: 1.35rem; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }

.prose-page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 2.5rem; }
.prose-page__link { font-weight: 600; color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 4px; }
