/* ---- tokens.css ---- */
/* ==========================================================================
   majaco design tokens
   The only place a colour, size, radius, shadow, breakpoint or motion value
   is defined. Components reference these; they never hardcode values.
   Source: majaco Brand Guidelines v1 (Oct 2023) and the rebuild brief.
   ========================================================================== */

:root {
  /* ---- Brand palette (do not add colours; derive tints with color-mix) ---- */
  --color-dark-green: #001412; /* darkest backgrounds, near-black text */
  --color-pine:       #006458; /* primary brand green */
  --color-lime:       #DAF11B; /* accent only: highlights, key words, focus on dark */
  --color-off-white:  #F7F7F6; /* subtle light backgrounds */
  --color-white:      #FFFFFF; /* main light background */
  --color-grey:       #7A7A7A; /* secondary text at 20px+ only (4.3:1 on white) */
  --color-red:        #ED244E; /* errors only */
  --color-orange:     #F06449; /* rare warm accent, never for text */
  --color-blue:       #05B2DC; /* rare cool accent, never for text */
  --color-maji:       #FF3D8B; /* maji only: anything maji on majaco.co, and the main colour of majiai.co (Sam, 19 Oct 2026) */

  /* ---- Derived neutrals (mixes of palette colours, not new colours) ---- */
  --color-line:        color-mix(in srgb, var(--color-dark-green) 10%, var(--color-white));
  --color-line-strong: color-mix(in srgb, var(--color-dark-green) 24%, var(--color-white));
  --color-ink-soft:    color-mix(in srgb, var(--color-dark-green) 72%, var(--color-white)); /* small secondary text, 7.5:1 */
  --color-pine-deep:   color-mix(in srgb, var(--color-pine) 80%, var(--color-dark-green));  /* button hover */
  --color-pine-tint:   color-mix(in srgb, var(--color-pine) 8%, var(--color-white));        /* subtle fills */
  --color-lime-tint:   color-mix(in srgb, var(--color-lime) 18%, var(--color-white));
  --color-maji-ink:   color-mix(in srgb, var(--color-maji) 75%, var(--color-dark-green)); /* maji text on light, 5.4:1 on white */
  --color-maji-deep:  color-mix(in srgb, var(--color-maji) 82%, var(--color-dark-green)); /* #D13675: pink surfaces with white text, 4.7:1 (Sam: white on pink, 19 Oct 2026) */
  --color-error-text:  color-mix(in srgb, var(--color-red) 78%, var(--color-dark-green));   /* red fails AA on white alone */

  /* ---- Semantic colours, light theme (default) ---- */
  --bg:            var(--color-white);
  --bg-alt:        var(--color-off-white);
  --surface:       var(--color-white);
  --text:          var(--color-dark-green);
  --text-soft:     var(--color-ink-soft);
  --text-muted:    var(--color-grey);
  --heading:       var(--color-dark-green);
  --brand:         var(--color-pine);
  --accent:        var(--color-lime);
  --link:          var(--color-pine);
  --line:          var(--color-line);
  --line-strong:   var(--color-line-strong);
  --focus-ring:    var(--color-pine);
  --btn-primary-bg:    var(--color-pine);
  --btn-primary-text:  var(--color-white);
  --btn-primary-hover: var(--color-pine-deep);
  --highlight-bg:   var(--color-lime);
  --highlight-text: var(--color-dark-green);
  --stat:           var(--color-pine);

  /* ---- Typography ---- */
  --font-sans: "TT Hoves Pro", "Helvetica Neue", Arial, sans-serif;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-bold: 700;
  --weight-heading: var(--weight-regular); /* brand: H1 to H4 are Regular, not Bold */
  --weight-body: var(--weight-light);      /* brand: body is Light; flip to regular if screens read thin */

  /* Fluid type scale. Max values are the brand's desktop sizes (61/49/39/31/25/20/16/13/10). */
  --text-display:  clamp(2.75rem, 1.6rem + 4.2vw, 4.75rem);    /* hero only, 44 to 76px */
  --text-h1:       clamp(2.375rem, 1.55rem + 3vw, 3.8125rem);  /* 38 to 61px */
  --text-h2:       clamp(2rem, 1.4rem + 2.2vw, 3.0625rem);     /* 32 to 49px */
  --text-h3:       clamp(1.625rem, 1.3rem + 1.3vw, 2.4375rem); /* 26 to 39px */
  --text-h4:       clamp(1.375rem, 1.2rem + 0.8vw, 1.9375rem); /* 22 to 31px */
  --text-title:    1.5625rem;                                  /* 25px, bold */
  --text-subtitle: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);  /* 18 to 20px */
  --text-body:     1rem;                                       /* 16px */
  --text-small:    0.8125rem;                                  /* 13px */
  --text-xs:       0.625rem;                                   /* 10px */

  --leading-tight:  1.05;  /* display */
  --leading-heading: 1.2; /* H1 to Title */
  --leading-snug:   1.4;  /* subtitle, small */
  --leading-body:   1.6;  /* body */

  --tracking-heading: -0.02em; /* H1 to H3 */
  --tracking-overline: 0.12em;

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */
  --space-section: clamp(4rem, 9vw, 7.5rem); /* vertical padding of a section */
  --space-stack: clamp(1.5rem, 3vw, 2.5rem); /* gap between heading and body in a section */

  /* ---- Layout ---- */
  --container: 75rem;        /* 1200px */
  --container-narrow: 45rem; /* 720px, reading width */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-height: 4.5rem;   /* 72px */

  /* ---- Radii ---- */
  --radius-sm: 0.25rem;  /* 4, inputs */
  --radius-md: 0.75rem;  /* 12, cards, images */
  --radius-lg: 1.25rem;  /* 20, large panels */
  --radius-pill: 999px;  /* buttons */

  /* ---- Shadows (dark-green tinted, soft) ---- */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--color-dark-green) 6%, transparent);
  --shadow-md: 0 8px 24px color-mix(in srgb, var(--color-dark-green) 8%, transparent),
               0 2px 6px color-mix(in srgb, var(--color-dark-green) 4%, transparent);
  --shadow-lg: 0 20px 48px color-mix(in srgb, var(--color-dark-green) 12%, transparent);

  /* ---- Breakpoints (reference only: custom properties cannot be used in @media) ----
     sm 30rem / 480px   md 48rem / 768px   lg 64rem / 1024px   xl 80rem / 1280px   */

  /* ---- Motion ---- */
  --duration-fast: 150ms;  /* hover, focus, colour */
  --duration-base: 250ms;  /* transforms, menus */
  --duration-slow: 400ms;  /* reveal on scroll */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --reveal-distance: 16px;
}

/* ---- Dark theme: any section or panel with .theme-dark ---- */
.theme-dark {
  --bg:            var(--color-dark-green);
  --bg-alt:        color-mix(in srgb, var(--color-dark-green) 92%, var(--color-white));
  --surface:       color-mix(in srgb, var(--color-dark-green) 88%, var(--color-white));
  --text:          var(--color-white);
  --text-soft:     color-mix(in srgb, var(--color-white) 78%, var(--color-dark-green));
  --text-muted:    color-mix(in srgb, var(--color-white) 64%, var(--color-dark-green));
  --heading:       var(--color-white);
  --link:          var(--color-lime);
  --line:          color-mix(in srgb, var(--color-white) 14%, var(--color-dark-green));
  --line-strong:   color-mix(in srgb, var(--color-white) 30%, var(--color-dark-green));
  --focus-ring:    var(--color-lime);
  --btn-primary-bg:    var(--color-lime);
  --btn-primary-text:  var(--color-dark-green);
  --btn-primary-hover: color-mix(in srgb, var(--color-lime) 88%, var(--color-white));
  --highlight-bg:   transparent;
  --highlight-text: var(--color-lime);
  --stat:           var(--color-lime);
  --accent:         var(--color-lime);
  color-scheme: dark;
}

/* ---- Pine theme: brand-green panels (CTA variant, callouts) ---- */
.theme-pine {
  --bg:            var(--color-pine);
  --bg-alt:        var(--color-pine-deep);
  --surface:       color-mix(in srgb, var(--color-pine) 90%, var(--color-white));
  --text:          var(--color-white);
  --text-soft:     color-mix(in srgb, var(--color-white) 84%, var(--color-pine));
  --text-muted:    color-mix(in srgb, var(--color-white) 72%, var(--color-pine));
  --heading:       var(--color-white);
  --link:          var(--color-lime);
  --line:          color-mix(in srgb, var(--color-white) 18%, var(--color-pine));
  --line-strong:   color-mix(in srgb, var(--color-white) 36%, var(--color-pine));
  --focus-ring:    var(--color-lime);
  --btn-primary-bg:    var(--color-lime);
  --btn-primary-text:  var(--color-dark-green);
  --btn-primary-hover: color-mix(in srgb, var(--color-lime) 88%, var(--color-white));
  --highlight-bg:   transparent;
  --highlight-text: var(--color-lime);
  --stat:           var(--color-lime);
  --accent:         var(--color-lime);
  color-scheme: dark;
}

/* ---- Reduced motion: switch every non-essential duration to zero ---- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --reveal-distance: 0px;
  }
}

/* ---- maji theme: add to a dark section about maji (class="theme-dark theme-maji").
   Swaps every lime accent for maji pink so maji reads as its own thread through the site.
   Bright pink for text and accents on dark green (5.7:1); pink surfaces such as buttons
   use the deeper --color-maji-deep with white text (4.7:1). ---- */
.theme-maji {
  --accent:            var(--color-maji);
  --link:              var(--color-maji);
  --focus-ring:        var(--color-maji);
  --btn-primary-bg:    var(--color-maji-deep);
  --btn-primary-text:  var(--color-white);
  --btn-primary-hover: color-mix(in srgb, var(--color-maji-deep) 85%, var(--color-dark-green));
  --highlight-text:    var(--color-maji);
  --stat:              var(--color-maji);
}
/* maji mention on a light background (a link or word): pink deep enough for AA on white */
.maji-accent { --link: var(--color-maji-ink); color: var(--color-maji-ink); }


/* ---- base.css ---- */
/* ==========================================================================
   majaco base styles: fonts, reset, typography, layout primitives
   Depends on tokens.css. No component styling here.
   ========================================================================== */

/* ---- Fonts: TT Hoves Pro, self-hosted WOFF2, three weights ---- */
@font-face {
  font-family: "TT Hoves Pro";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/TT_Hoves_Pro_Light.woff2") format("woff2");
}
@font-face {
  font-family: "TT Hoves Pro";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/TT_Hoves_Pro_Regular.woff2") format("woff2");
}
@font-face {
  font-family: "TT Hoves Pro";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/TT_Hoves_Pro_Bold.woff2") format("woff2");
}

/* ---- Reset (small, modern) ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}
body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); }
::selection { background: var(--color-lime); color: var(--color-dark-green); }

/* ---- Focus: always visible, never removed ---- */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-lime);
  color: var(--color-dark-green);
  font-weight: var(--weight-regular);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4 {
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  color: var(--heading);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.display { font-size: var(--text-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-heading); }
h1, .h1 { font-size: var(--text-h1); letter-spacing: var(--tracking-heading); }
h2, .h2 { font-size: var(--text-h2); letter-spacing: var(--tracking-heading); }
h3, .h3 { font-size: var(--text-h3); letter-spacing: var(--tracking-heading); }
h4, .h4 { font-size: var(--text-h4); letter-spacing: 0; }
.title { font-size: var(--text-title); font-weight: var(--weight-bold); line-height: var(--leading-heading); color: var(--heading); }
.subtitle, .lead { font-size: var(--text-subtitle); line-height: var(--leading-snug); font-weight: var(--weight-regular); color: var(--text-soft); text-wrap: pretty; }
.body-strong { font-weight: var(--weight-regular); }
.small { font-size: var(--text-small); line-height: var(--leading-snug); }
.xs { font-size: var(--text-xs); line-height: var(--leading-snug); }
.muted { color: var(--text-soft); }
.overline {
  font-size: var(--text-small);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  line-height: var(--leading-snug);
  color: var(--brand);
}
.theme-dark .overline, .theme-pine .overline { color: var(--accent, var(--color-lime)); }
p { text-wrap: pretty; max-width: 70ch; }
p + p { margin-top: var(--space-4); }
strong, b { font-weight: var(--weight-bold); }

/* Key-word highlight: lime behind dark text on light, lime text on dark */
.hl {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 0 0.12em;
  margin: 0 -0.04em;
  border-radius: var(--radius-sm);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-style: normal;
}

/* Rich text (long copy from case studies, careers) */
.prose > * + * { margin-top: var(--space-4); }
.prose > h2, .prose > h3, .prose > h4 { margin-top: var(--space-7); }
.prose > h2 + *, .prose > h3 + *, .prose > h4 + * { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--space-2); }
.prose img { border-radius: var(--radius-md); }
.prose figure { margin-block: var(--space-7); }
.prose figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.prose figcaption { margin-top: var(--space-3); font-size: var(--text-small); color: var(--text-soft); }
.prose .formula { padding: var(--space-5) var(--space-6); border-left: 3px solid var(--brand); background: var(--bg-alt); border-radius: 0; font-weight: var(--weight-regular); }
.prose a { color: var(--link); }

/* ---- Layout primitives ---- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }
.section {
  padding-block: var(--space-section);
  background: var(--bg);
  color: var(--text);
}
.section--alt { background: var(--bg-alt); }
.section--flush-top { padding-top: 0; }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }
.section__head { max-width: 46rem; margin-bottom: var(--space-stack); }
.section__head > * + * { margin-top: var(--space-4); }
.section__head--centre { margin-inline: auto; text-align: center; }
.section__head--centre p { margin-inline: auto; }

.stack > * + * { margin-top: var(--space-4); }
.stack--lg > * + * { margin-top: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--halves { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); } /* never more than two columns */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); } /* four columns at 1200px, two at 768px */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-centre { text-align: center; }


/* ---- components.css ---- */
/* ==========================================================================
   majaco components
   One button family, one card family, a small set of section layouts.
   Every value comes from tokens.css. Add a component here before using it
   on any page; never style a one-off inside a page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-height);
}
.site-header__brand { display: inline-flex; align-items: center; }
.site-header__brand img, .site-header__brand svg { height: 2.25rem; width: auto; aspect-ratio: 125 / 40; }
.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--space-5); align-items: center; }
.site-nav__link {
  display: inline-block;
  padding: var(--space-2) 0;
  color: var(--text);
  text-decoration: none;
  font-weight: var(--weight-regular);
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.site-nav__link:hover { border-bottom-color: var(--link); text-decoration: none; }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }
/* The single CTA stays visible at every width: one clear next step above the fold. */

/* Menu toggle (mobile) */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.site-nav--mobile {
  display: block;
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0 var(--space-6);
  box-shadow: var(--shadow-md);
  transform-origin: top;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.site-nav--mobile[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  /* keep the panel in the tree while it fades out, then hide it */
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), visibility 0s linear var(--duration-base);
}
.site-nav--mobile .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.site-nav--mobile .site-nav__link {
  display: block;
  font-size: var(--text-subtitle);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.site-nav--mobile .site-nav__link[aria-current="page"] { color: var(--link); }
.site-nav--mobile .site-nav__cta { margin-top: var(--space-5); }

@media (max-width: 29.9rem) { .site-header__brand img, .site-header__brand svg { height: 1.875rem; } }
/* Explicit sizes on SVG logos: an SVG without width and height has no intrinsic size, which shifts layout as it loads */
@media (min-width: 64rem) {
  .site-nav { display: block; }
  .site-nav--mobile, .menu-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons: one family, three styles, two sizes
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg {
  /* Arrow in a translucent circle (Sam's pick, 6 Oct 2026). Text buttons use a plain arrow. */
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.4rem;
  border-radius: 50%;
  margin-right: -0.5rem;
  background: color-mix(in srgb, currentColor 14%, transparent);
  transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
}
.btn:hover svg { transform: translateX(3px); background: color-mix(in srgb, currentColor 22%, transparent); }
.btn--small svg { width: 1.5rem; height: 1.5rem; padding: 0.35rem; margin-right: -0.375rem; }
.btn--large svg { width: 2rem; height: 2rem; padding: 0.45rem; margin-right: -0.625rem; }
.btn--text svg { width: 1.125em; height: 1.125em; padding: 0; margin: 0; border-radius: 0; background: none; }
.btn--text:hover svg { background: none; }

.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-bg); }
.btn--primary:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); color: var(--btn-primary-text); }

.btn--secondary { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.btn--secondary:hover { background: color-mix(in srgb, currentColor 8%, transparent); border-color: currentColor; color: var(--text); }


.btn--text {
  min-height: auto;
  padding: var(--space-1) 0;
  border-radius: var(--radius-sm);
  color: var(--link);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--duration-fast) var(--ease-out);
}
.btn--text:hover { text-decoration-color: currentColor; }

.btn--small { min-height: 2.5rem; padding: 0 var(--space-4); font-size: var(--text-small); }
.btn--large { min-height: 3.5rem; padding: 0 var(--space-6); font-size: var(--text-subtitle); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }

/* --------------------------------------------------------------------------
   Cards: one family, variants by content
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
/* On a plain white section the box is off-white so it reads as a card. :where() keeps the
   specificity low so variants (.card--rule, .card--overlay) can override it. */
:where(.section:not(.section--alt):not(.theme-dark):not(.theme-pine)) .card { background: var(--bg-alt); }
.card--interactive:hover, .card:has(.card__link:hover) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card__media {
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-alt);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.card:has(.card__link:hover) .card__media img { transform: scale(1.03); }
.card__icon { width: 2.5rem; height: 2.5rem; color: var(--brand); }
.card__icon img, .card__icon svg { width: 100%; height: 100%; }
.card__title { font-size: var(--text-h4); letter-spacing: 0; hyphens: manual; }
.card__title--sm { font-size: var(--text-subtitle); line-height: 1.3; font-weight: var(--weight-regular); } /* for four-column grids */
.card__body { color: var(--text-soft); flex: 1 1 auto; }
.card__link { margin-top: auto; align-self: flex-start; }
/* Whole card clickable while keeping one real link for screen readers.
   --stretch: a visible text button whose ::after covers the card.
   --cover: no visible link; the anchor itself covers the card and its text is hidden
   without clipping (never pair a stretched link with .visually-hidden: that clips the
   ::after to one pixel and the card stops being clickable). */
.card__link--stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .card__link.card__link--cover {
  position: absolute; inset: 0; z-index: 1; margin: 0;
  align-self: stretch; /* .card__link sets flex-start, which stops an absolute child filling its insets */
  border-radius: inherit;
  overflow: hidden; white-space: nowrap; text-indent: 200%; color: transparent;
}
.card .card__link.card__link--cover:focus-visible { outline-offset: -3px; }
.card__result { font-size: var(--text-h3); color: var(--stat); font-weight: var(--weight-regular); letter-spacing: var(--tracking-heading); line-height: 1.1; }
.card__client { color: var(--text-soft); }

/* --------------------------------------------------------------------------
   Hero: light (default) and image variants
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 10vw, 8rem) var(--space-section);
  background: var(--bg);
  color: var(--text);
}
.hero__inner { max-width: 56rem; }
.hero__inner > * + * { margin-top: var(--space-5); }
.hero__title { font-size: var(--text-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-heading); }
.hero__lead { max-width: 40rem; }
.hero__actions { margin-top: var(--space-6); }
.hero--centre .hero__inner { margin-inline: auto; text-align: center; }
.hero--centre .hero__lead, .hero--centre .hero__actions { margin-inline: auto; justify-content: center; }

.hero--image {
  position: relative;
  isolation: isolate;
  /* The logo shape deliberately sits past the right edge; clip it here so it never
     widens the page (it caused sideways scrolling and a white strip on the right). */
  overflow: hidden;
  min-height: min(80dvh, 46rem);
  display: flex;
  align-items: flex-end;
  padding-block: var(--space-section);
}
.hero--image .hero__media { position: absolute; inset: 0; z-index: -2; }
.hero--image .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--image::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--color-dark-green) 92%, transparent) 0%,
    color-mix(in srgb, var(--color-dark-green) 55%, transparent) 55%,
    color-mix(in srgb, var(--color-dark-green) 25%, transparent) 100%);
}

/* --------------------------------------------------------------------------
   Split: text + image, alternating
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.split__media { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body > * + * { margin-top: var(--space-4); }
.split__body .btn-group { margin-top: var(--space-6); }
@media (min-width: 48rem) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .split--reverse .split__media { order: 2; }
  .split--reverse .split__body { order: 1; }
}

/* --------------------------------------------------------------------------
   Stat callout
   -------------------------------------------------------------------------- */
.stat { display: flex; flex-direction: column; gap: var(--space-2); }
.stat__value {
  font-size: var(--text-h1);
  line-height: 1;
  letter-spacing: var(--tracking-heading);
  color: var(--stat);
  font-weight: var(--weight-regular);
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--text-soft); max-width: 22rem; }
.stat .btn { align-self: flex-start; margin-top: var(--space-1); }
.card--rule .card__body ul { padding-left: 1.1em; margin-top: var(--space-3); display: grid; gap: var(--space-1); }
.stat--large .stat__value { font-size: var(--text-display); }
.stat-grid { display: grid; gap: var(--space-6) var(--space-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.stat-grid--rule .stat { padding-top: var(--space-4); border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Logo strip
   -------------------------------------------------------------------------- */
.logo-strip { display: flex; flex-direction: column; gap: var(--space-5); align-items: center; text-align: center; }
.logo-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-5) clamp(2rem, 4vw, 3.5rem);
}
.logo-strip__list img {
  height: clamp(2rem, 4vw, 3rem);
  width: auto;
  aspect-ratio: 302 / 146;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity var(--duration-fast) var(--ease-out), filter var(--duration-fast) var(--ease-out);
}
.logo-strip__list a:hover img, .logo-strip__list a:focus-visible img { filter: none; opacity: 1; }
.theme-dark .logo-strip__list img { filter: grayscale(1) invert(1) brightness(1.15); opacity: 0.85; }
.theme-dark .logo-strip { border-top: 1px solid var(--line); padding-top: var(--space-7); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--bg);
  color: var(--text);
  padding-block: var(--space-section);
}
.cta-band__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.cta-band__inner > div > * + * { margin-top: var(--space-4); }
@media (min-width: 64rem) {
  .cta-band__inner { grid-template-columns: 1.4fr 1fr; gap: var(--space-9); }
  .cta-band__actions { justify-self: end; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 48rem) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field__label { font-weight: var(--weight-regular); }
.field__label .optional { color: var(--text-soft); font-weight: var(--weight-light); }
.field__hint { font-size: var(--text-small); color: var(--text-soft); }
.field__control {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.field__control::placeholder { color: var(--text-muted); }
.field__control:hover { border-color: color-mix(in srgb, var(--text) 50%, transparent); }
.field__control:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 25%, transparent);
}
textarea.field__control { min-height: 8rem; resize: vertical; }
select.field__control {
  appearance: none;
  padding-right: var(--space-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23001412' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
}
.field--error .field__control { border-color: var(--color-red); }
.field__error { font-size: var(--text-small); color: var(--color-error-text); display: flex; gap: var(--space-2); align-items: flex-start; }
.field__error::before { content: ""; flex: none; width: 1em; height: 1em; margin-top: 0.2em; border-radius: 50%; background: var(--color-red); }
.choice { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--brand); flex: none; }
.choice input:focus-visible { outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Embeds: video (Vimeo, YouTube) and third-party forms, if ever needed
   -------------------------------------------------------------------------- */
.embed { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--color-dark-green); }
.embed--video { aspect-ratio: 16 / 9; }
.embed--video iframe, .embed--video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Film poster with a play button; site.js swaps in the Vimeo player on click */
.embed--film .embed__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.embed--film .embed__play img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.embed--film .embed__play::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-dark-green) 35%, transparent); transition: background-color var(--duration-base) var(--ease-out); }
.embed__play-icon { position: absolute; left: clamp(1rem, 3vw, var(--space-7)); bottom: clamp(1rem, 3vw, var(--space-7)); z-index: 1; width: clamp(3.5rem, 7vw, 5rem); aspect-ratio: 1; border-radius: 50%; background: var(--color-lime); color: var(--color-dark-green); display: grid; place-items: center; transition: transform var(--duration-base) var(--ease-out); }
.embed__play-icon svg { width: 40%; height: 40%; fill: currentColor; margin-left: 6%; }
.embed--film .embed__play:hover img { transform: scale(1.03); }
.embed--film .embed__play:hover .embed__play-icon { transform: scale(1.06); }
.embed--film .embed__play:hover::after { background: color-mix(in srgb, var(--color-dark-green) 20%, transparent); }
.embed--film .embed__play:focus-visible { outline-offset: -4px; }
.embed--form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: var(--space-2);
  min-height: 32rem;
}
.embed--form > * { border-radius: var(--radius-sm); overflow: hidden; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  color: var(--text);
  padding-block: var(--space-7) var(--space-5);
  font-weight: var(--weight-regular);
}
.site-footer__top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) { .site-footer__top { grid-template-columns: 1.2fr 1.3fr 1fr; } }
.site-footer__brand img { width: 2.75rem; height: 2.75rem; }
.site-footer__strap { margin-top: var(--space-4); font-size: var(--text-subtitle); color: var(--text-soft); max-width: 18rem; }
.site-footer__heading { font-size: var(--text-small); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-4); font-weight: var(--weight-regular); }
.site-footer__list { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--space-2) var(--space-7); } /* two short columns, filled down then across */
.site-footer__list { grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: var(--space-2); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  padding-top: var(--space-5);
  font-size: var(--text-small);
  color: var(--text-muted);
}
.site-footer__bottom a { color: var(--text-muted); }
.site-footer__social { display: inline-flex; align-items: center; gap: var(--space-2); }
.site-footer__social svg { width: 1.25rem; height: 1.25rem; }

/* --------------------------------------------------------------------------
   Placeholder marker: visible label for content or images still to come
   -------------------------------------------------------------------------- */
.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-5);
  min-height: 8rem;
  border: 2px dashed var(--color-orange);
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--color-orange) 6%, transparent) 12px 24px);
  color: var(--text);
  font-size: var(--text-small);
}
.placeholder strong { display: block; font-weight: var(--weight-bold); margin-bottom: var(--space-1); }

/* --------------------------------------------------------------------------
   Hero shape: logo-mark-derived organic shape over hero photography
   (brand guidelines 5.4: the mark wraps around the people in hero images)
   -------------------------------------------------------------------------- */
.hero__shape {
  position: absolute;
  z-index: -1;
  right: -12vw;
  top: -8vw;
  width: clamp(22rem, 55vw, 54rem);
  height: auto;
  pointer-events: none;
  color: var(--color-pine);
  /* Flat and slightly translucent, no shadow. --scroll-y (set by site.js, 0 to 600) drifts it
     down-right and turns it a little as the page scrolls: one quiet scroll-linked move, nothing else. */
  --drift: calc(var(--scroll-y, 0) * 1px);
  transform: translate3d(calc(var(--drift) * 0.18), calc(var(--drift) * 0.12), 0)
             rotate(calc(var(--scroll-y, 0) * 0.006deg));
  transform-origin: 60% 55%;
  will-change: transform;
}
/* Both forms in pine at different transparencies (Sam, 6 Oct): the overlap reads as a second tone */
.hero__shape .shape-main { fill: currentColor; fill-opacity: 0.55; }
.hero__shape .shape-accent { fill: currentColor; fill-opacity: 0.72; }
@media (max-width: 47.9rem) { .hero__shape { right: -30vw; top: -10vw; width: 90vw; } }

/* --------------------------------------------------------------------------
   Statement band: one large centred sentence, usually on dark
   -------------------------------------------------------------------------- */
.statement {
  padding-block: var(--space-section);
  background: var(--bg);
  color: var(--text);
  text-align: center;
}
.statement__text {
  font-size: var(--text-h3);
  line-height: 1.3;
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-regular);
  color: var(--heading);
  max-width: 52rem;
  margin-inline: auto;
  text-wrap: balance;
}
.statement__actions { margin-top: var(--space-6); justify-content: center; }

/* Card overline (Slalom-style "Customer story" label) */
.card__overline { font-size: var(--text-small); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--text-soft); font-weight: var(--weight-regular); }

/* --------------------------------------------------------------------------
   Header overlay: transparent over an image hero, solid once scrolled
   Use by setting bodyClass: has-hero-image on the page.
   -------------------------------------------------------------------------- */
.has-hero-image .site-header {
  /* --header-progress runs 0 to 1 over the first 160px of scroll (set by site.js),
     so the bar fades in with the finger or wheel rather than switching on. */
  --header-progress: 0;
  position: fixed;
  inset: 0 0 auto 0;
  background: color-mix(in srgb, var(--color-dark-green) calc(var(--header-progress) * 100%), transparent);
  border-bottom-color: color-mix(in srgb, var(--color-white) calc(var(--header-progress) * 14%), transparent);
  transition: none;
}
.has-hero-image .site-header.is-scrolled { --header-progress: 1; }
/* Without JavaScript the bar is solid and sticky, so content never scrolls under a transparent header */
/* Without JavaScript the bar stays fixed (same layout, so nothing shifts when scripts load) and is simply solid */
html:not(.js) .has-hero-image .site-header { background: var(--bg); border-bottom-color: var(--line); }
.has-hero-image .site-header .site-nav--mobile { background: var(--color-dark-green); }
.has-hero-image .hero--image { padding-top: calc(var(--header-height) + var(--space-section)); }

/* --------------------------------------------------------------------------
   Card variants chosen on 6 October 2026:
   case study teaser = .card--overlay (photo card), service card = boxed .card with .card__index
   -------------------------------------------------------------------------- */

/* Case study teaser: photo card with text over a dark-green gradient. */
.card--overlay {
  min-height: 26rem;
  justify-content: flex-end;
  border: 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-white);
  background: var(--color-dark-green);
}
.card--overlay .card__media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; z-index: -2; }
.card--overlay::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-dark-green) 92%, transparent) 0%, color-mix(in srgb, var(--color-dark-green) 40%, transparent) 55%, transparent 100%);
}
.card--overlay .card__overline { color: var(--color-lime); margin-top: auto; } /* text block sits at the foot of the photo */
.card--overlay .card__arrow { margin-top: var(--space-2); }
.card--overlay .card__title, .card--overlay .card__client, .card--overlay .card__body { color: var(--color-white); }
.card--overlay .card__client { color: color-mix(in srgb, var(--color-white) 80%, transparent); }
.card--overlay .card__link { color: var(--color-white); }
.card--overlay.card--interactive:hover, .card--overlay:has(.card__link:hover) { transform: none; box-shadow: var(--shadow-lg); }
/* A placeholder standing in for the photo: label at the top, out of the way of the card text */
.card--overlay .card__media .placeholder { position: absolute; inset: 0; border-radius: 0; place-items: start center; padding-top: var(--space-6); color: var(--color-dark-green); background-color: var(--color-off-white); }

/* Rule card: no box, no image; a 1px top rule, an index or result, title, text, link. For numeric callouts. */
.card--rule { background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: var(--space-5) 0 0; }
.card--rule.card--interactive:hover, .card--rule:has(.card__link:hover) { transform: none; box-shadow: none; border-top-color: var(--brand); }
.theme-dark .card--rule:has(.card__link:hover) { border-top-color: var(--accent, var(--color-lime)); }
.card__index { font-size: var(--text-small); letter-spacing: var(--tracking-overline); color: var(--brand); font-variant-numeric: tabular-nums; font-weight: var(--weight-regular); }
.theme-dark .card__index { color: var(--accent, var(--color-lime)); }

/* Line icons: inline SVG in pine (lime on dark). Optional on boxed cards. */
.card__icon--line { width: 2rem; height: 2rem; color: var(--brand); }
.card__icon--line svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-dark .card__icon--line, .theme-pine .card__icon--line { color: var(--accent, var(--color-lime)); }

/* Circular arrow affordance on photo cards */
.card__arrow {
  margin-top: auto;
  align-self: flex-start;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, currentColor 30%, transparent);
  color: var(--link);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.card__arrow svg { width: 1.125rem; height: 1.125rem; }
.card:has(.card__link:hover) .card__arrow { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: var(--btn-primary-bg); }

/* --------------------------------------------------------------------------
   Quote (testimonial). Added in Phase 2 for the Home page.
   A blockquote with the words first, then who said it. No slider, no autoplay.
   -------------------------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.quote__text { font-size: var(--text-subtitle); line-height: var(--leading-snug); font-weight: var(--weight-light); color: var(--text); text-wrap: pretty; max-width: none; }
.quote__text::before { content: "\201C"; color: var(--accent); margin-right: 0.05em; }
.quote__text::after { content: "\201D"; color: var(--accent); margin-left: 0.05em; }
.quote__cite { font-style: normal; display: grid; gap: 2px; margin-top: auto; }
.quote__name { font-weight: var(--weight-regular); }
.quote__role { font-size: var(--text-small); color: var(--text-soft); }
.quote__company { font-size: var(--text-small); color: var(--brand); }
.theme-dark .quote__company, .theme-pine .quote__company { color: var(--accent, var(--color-lime)); }
.quote--featured { padding: 0; background: transparent; border: 0; max-width: 56rem; }
.quote--featured .quote__text { font-size: var(--text-h3); line-height: 1.3; letter-spacing: var(--tracking-heading); font-weight: var(--weight-regular); color: var(--heading); }
.quote-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

/* Form status line (Get in touch): announced via aria-live */
.form__status { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-weight: var(--weight-regular); }
.form__status--pending { background: var(--bg-alt); color: var(--text-soft); }
.form__status--ok { background: var(--color-pine-tint); color: var(--color-pine); }
.form__status--error { background: color-mix(in srgb, var(--color-red) 8%, var(--color-white)); color: var(--color-error-text); }

/* Team cards: portrait media, details for the longer copy */
.team-card .card__media { aspect-ratio: 3 / 4; }
.team-card__more summary { cursor: pointer; color: var(--link); font-weight: var(--weight-regular); }
.team-card__more[open] summary { margin-bottom: var(--space-3); }
.team-card__more p + p { margin-top: var(--space-3); }
.team-card__more p { font-size: var(--text-small); line-height: 1.5; color: var(--text-soft); max-width: none; }

/* Definition list for case study meta */
.meta-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-5); }
.meta-list dt { font-size: var(--text-small); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--text-soft); }
.meta-list dd { margin: var(--space-1) 0 0; font-weight: var(--weight-regular); }
.prose blockquote.quote { margin-block: var(--space-6); }

/* --------------------------------------------------------------------------
   Article (What we think): narrow hero, author byline, reading column
   -------------------------------------------------------------------------- */
.article-hero { padding-bottom: var(--space-7); }
.article-hero .overline a { color: inherit; text-decoration: none; }
.article-hero .overline a:hover { text-decoration: underline; }
.article-hero__title { font-size: var(--text-h1); }
.byline { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.byline__photo { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--bg-alt); }
.byline__text { display: grid; gap: var(--space-1); }
.byline__name { color: var(--heading); font-weight: var(--weight-regular); text-decoration: none; }
.byline__name:hover { text-decoration: underline; }
.byline__meta { font-size: var(--text-small); color: var(--text-soft); }
.prose--article > h2 { font-size: var(--text-h4); line-height: 1.25; }


/* ---- motion.css ---- */
/* ==========================================================================
   majaco motion
   Subtle and purposeful: fade or slide-up on scroll, smooth hover and focus.
   Durations and easings come from tokens.css. Everything here switches off
   under prefers-reduced-motion (durations drop to 0ms in tokens.css, and
   the transforms below are removed).
   ========================================================================== */

/* ---- Reveal on scroll ----
   Mark any element with data-reveal. site.js adds .is-visible when it enters
   the viewport. Without JavaScript the element is simply visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* Stagger siblings: data-reveal-delay="1" to "4" adds 60ms steps */
[data-reveal-delay="1"] { --reveal-delay: 60ms; }
[data-reveal-delay="2"] { --reveal-delay: 120ms; }
[data-reveal-delay="3"] { --reveal-delay: 180ms; }
[data-reveal-delay="4"] { --reveal-delay: 240ms; }

/* ---- Hover lift for linked cards and media (defined on the components) ----
   .card, .btn and .logo-strip carry their own transitions in components.css
   using --duration-fast / --duration-base. Nothing bounces, spins or loops. */

/* ---- Reduced motion: remove transforms, keep state changes instant ---- */
@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 [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card--interactive:hover, .card:has(.card__link:hover) { transform: none; }
  .card:has(.card__link:hover) .card__media img { transform: none; }
  .btn:hover svg { transform: none; }
  .btn:active { transform: none; }
  .hero__shape { transform: none; }
}
