/* =====================
   Tokens
   =====================
   Type: 8 named steps. Spacing: 8px scale for layout-level gaps
   (micro spacings under 16px stay literal). */

:root {
  /* Direction C reskin (2026-07-29): Schibsted Grotesk + Inter, white ground,
     cobalt accent — picked from the four-way board. Previous warm palette:
     Fraunces/DM Sans · paper #F5F4ED · ink #232720 · body #5C5A4F ·
     muted #6B6955 · accent #41684E · hairline #E0DECF · sheet #FFFFFF */
  --font-display: 'Schibsted Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --paper: #FFFFFF;
  --ink: #0E1116;
  --body-text: #383E47;
  --muted: #69707C;
  --accent: #2547D0;
  --hairline: #E8E9EE;
  --input-border: #8A93A0;   /* form-field boundary — 3.1:1 on white (hairline fails non-text contrast) */
  --sheet: #F7F8F9;

  --text-xs: 0.72rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.4rem;
  --text-xl: 1.75rem;
  --text-2xl: clamp(2.2rem, 4.5vw, 3.4rem);
  --text-hero: clamp(2.6rem, 5.5vw, 4.25rem);

  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-14: 112px;
}

/* =====================
   Base
   ===================== */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
}

a {
  transition: color 0.15s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background-color: var(--accent);
  color: var(--paper);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (max-width: 600px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* =====================
   Components: labels & links
   ===================== */

/* Caps label — the one small-caps style used everywhere */
.kicker,
.section-kicker,
.ear p,
.colophon-inner p,
.artifact figcaption {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Skip link — hidden until keyboard focus lands on it */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--paper);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 3px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Screen-reader-only text — visually removed, still read aloud and indexed */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Accent link — the one link style */
.quiet-link,
.story-link,
.back-link,
.ear a,
.services-aside a,
.colophon a {
  color: var(--accent);
  text-decoration: none;
}

.quiet-link:hover,
.story-link:hover,
.back-link:hover,
.ear a:hover,
.services-aside a:hover,
.colophon a:hover {
  text-decoration: underline;
}

.quiet-link,
.story-link,
.back-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

/* =====================
   Ear (announcement)
   ===================== */

.ear {
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  padding: 8px 20px;
}

.ear p {
  margin: 0;
  color: var(--muted);
}

/* =====================
   Masthead
   ===================== */

/* Top chrome (ear + masthead) — sticky on every page, so it is present from
   the first pixel and pins as you scroll. */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--paper);
  view-transition-name: site-bar;   /* holds in place across page transitions */
}

.masthead {
  background-color: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: relative;   /* anchors the mobile nav dropdown */
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--ink);
  text-decoration: none;
}

/* Wordmark lockup — the mark (the favicon's three slices, fuzzy → sharp) set
   against the name. Sized in em, not a --space token, on purpose: the same
   lockup runs at masthead size and at the colophon's small caps, and a fixed
   px gap can only look right at one of them. */
.wordmark,
.colophon-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.wordmark-mark {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  color: var(--accent);
}
/* the colophon's letterspacing would otherwise open a gap after the mark */
.colophon-brand .wordmark-mark { margin-right: -0.1em; }

.masthead-nav {
  display: flex;
  gap: var(--space-3);
}

.masthead-nav a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.masthead-nav a:hover,
.masthead-nav a.is-current {
  color: var(--accent);
}

/* Mobile nav — a pure-CSS hamburger (checkbox toggle, so it works on the
   script-free case pages too). Hidden on desktop, where the nav is inline. */
.nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; margin: -1px; }
.nav-check:focus-visible ~ .nav-burger {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.nav-burger { display: none; }
@media (min-width: 601px) {
  .nav-check { display: none; }   /* no phantom tab stop where the burger doesn't exist */
}

@media (max-width: 600px) {
  /* more breathing room up top, and the client drops to its own line,
     set slightly lower than the label so the two lines don't feel cramped */
  .ear { padding-top: 15px; padding-bottom: 13px; }
  .ear a { display: block; margin-top: 5px; }

  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -10px -8px -10px 0;   /* 44px tap target, without bloating the bar */
    cursor: pointer;
  }
  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
  }
  .nav-burger span { position: relative; }
  .nav-burger span::before { position: absolute; left: 0; top: -7px; }
  .nav-burger span::after  { position: absolute; left: 0; top: 7px; }
  /* open → the bars cross into an X */
  .nav-check:checked ~ .nav-burger span { background-color: transparent; }
  .nav-check:checked ~ .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-check:checked ~ .nav-burger span::after  { transform: translateY(-7px) rotate(-45deg); }

  /* the menu drops as a full-width panel below the bar */
  .masthead-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: var(--space-2) 20px var(--space-3);
    box-shadow: 0 8px 16px -12px rgba(14, 17, 22, 0.22);
  }
  .nav-check:checked ~ .masthead-nav { display: flex; }
  .masthead-nav a {
    padding: 14px 2px;
    font-size: var(--text-md);
    border-top: 1px solid var(--hairline);
  }
  .masthead-nav a:first-child { border-top: none; }
}

/* =====================
   Type system
   ===================== */

.kicker {
  color: var(--accent);
  margin: 0 0 var(--space-2);
}

.dek {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--body-text);
  max-width: 580px;
  margin: 0 0 var(--space-4);
}

.body-copy {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--body-text);
  max-width: 620px;
  margin: 0 0 var(--space-2);
}

.body-copy:last-child {
  margin-bottom: 0;
}

/* =====================
   Sections
   ===================== */

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  scroll-margin-top: var(--space-10);
}

.section--sheet {
  background-color: var(--sheet);
}

.section-kicker {
  color: var(--accent);
  letter-spacing: 0.18em;
  margin: 0 0 var(--space-6);
}

.section-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--accent);
  margin-bottom: 12px;
}

.section-kicker--minor {
  color: var(--muted);
}

.section-kicker--minor::before {
  display: none;
}

/* Scroll reveals — initial "pre" state is applied by JS, so the page
   is fully visible without JS and under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .section-kicker::before {
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .section-kicker.pre::before {
    transform: scaleX(0);
  }

  .rise {
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .rise.pre {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 600px) {
  .section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-7);
    scroll-margin-top: var(--space-8);
  }

  .section-kicker {
    margin-bottom: var(--space-4);
  }
}

/* =====================
   Document icons
   ===================== */

.doc-icon {
  width: 48px;
  height: 48px;
  color: var(--ink);   /* line marks inherit ink, like the hero word-marks */
  display: block;
  flex-shrink: 0;
}

/* =====================
   Hero — the page opens here: mark, statement, dek, two ways forward.
   It performs once on arrival (JS adds .hero-anim), then holds still.
   ===================== */

#hero .well-hed--lead {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  line-height: 1.02;
}

/* "story" carries the fuzz filter while it resolves; the JS removes it */
.story-word { display: inline-block; }

.saas .saas-inner { padding-top: var(--space-12); }

/* the intro sequence under a section masthead */
.saas-detail { margin-bottom: var(--space-6); }
.saas-detail a { color: var(--accent); text-decoration: none; }
.saas-detail a:hover,
.saas-detail a:focus-visible { color: var(--ink); text-decoration: underline; }

/* About — a quiet interlude band between the work and the testimonials */
#about {
  background-color: var(--sheet);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* Contact gets the same shaded treatment as About. Only a top rule here: the
   section runs to the bottom of <main>, so the colophon's own border-top
   closes the band — a bottom rule as well would stack two hairlines. */
#contact {
  background-color: var(--sheet);
  border-top: 1px solid var(--hairline);
}
/* ...which means the footer must sit flush against it on the homepage.
   Case pages keep the breathing room. */
body:not(.case-page) .colophon { margin-top: 0; }
#about .artifact { background-color: var(--paper); }
/* #about qualifier so the auto margins beat the later .artifact { margin: 0 } */
#about .about-portrait {
  width: clamp(170px, 42vw, 250px);   /* scales down on small screens */
  margin: 0 auto var(--space-5);
}
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* the arrival cascade — one pass, then the page is still */
@media (prefers-reduced-motion: no-preference) {
  /* the three-slice mark used to open this cascade; it now lives in the
     masthead lockup, so the hed leads and the delays move up to match */
  .hero-anim #hero .well-hed--lead { animation: rise-in 0.8s ease both 0.05s; }
  .hero-anim #hero .saas-sub       { animation: rise-in 0.8s ease both 0.3s; }
  .hero-anim #hero .saas-cta       { animation: rise-in 0.8s ease both 0.5s; }
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(14px); }
  }
}

/* =====================
   Case-study artifact frames (the feature spreads)
   ===================== */

.artifact.story-artifact {
  max-width: 440px;
  margin: 0 0 var(--space-5);   /* separate the image from its kicker, in scale with the panel's rhythm; .artifact.story- beats the later .artifact{margin:0} reset */
}

.artifact-placeholder {
  aspect-ratio: 16 / 10;
  background-color: var(--paper);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =====================
   Selected work — feature well
   Each row leads with the service (name, what goes into it, a line or two);
   a related case-study picture sits alongside as the proof. Sides alternate.
   ===================== */
.feature-stack { display: flex; flex-direction: column; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.feature + .feature {
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--hairline);
}

/* alternate: the picture flips to the other side on even rows */
.feature:nth-child(even) .feature-pic { order: -1; }

.feature-mark { margin: 0 0 var(--space-3); line-height: 0; }
.feature-mark .doc-icon { width: 30px; height: 30px; opacity: 1; margin: 0; }

.feature-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.feature-deliverables {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 44ch;
}

.feature-desc {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--body-text);
  margin: var(--space-3) 0 0;
  max-width: 46ch;
}

.feature-pic { display: flex; flex-direction: column; }

/* the case images differ wildly in shape (a tall magazine cover, a landscape
   book photo) — letterbox them to one card shape so the spreads stay level */
.feature-art img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background-color: var(--paper);
}
.feature .feature-art { margin: 0; max-width: 460px; width: 100%; }

.feature-case { margin: var(--space-3) 0 0; max-width: 42ch; }
.feature-case-lead {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.feature-case-lead span { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

.feature-case-full { display: none; }
.feature-case.is-open .feature-case-full { display: block; }
.feature-case-full p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--body-text);
  margin: var(--space-2) 0 0;
}

.feature-case-toggle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  margin-top: var(--space-2);
  cursor: pointer;
}
.feature-case-toggle:hover { text-decoration: underline; }

.feature-case-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  margin-top: var(--space-2);
}
.feature-case-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .feature:nth-child(even) .feature-pic { order: 0; }
  .feature + .feature { margin-top: var(--space-8); padding-top: var(--space-8); }
  .feature .feature-art { max-width: none; }
}

/* On mobile this section centers like every other one (on desktop it stays a
   left-aligned two-column layout, which reads better beside the image). */
@media (max-width: 600px) {
  .feature-body,
  .feature-case { text-align: center; }
  .feature-mark .doc-icon { margin-left: auto; margin-right: auto; }  /* block icon → center */
  .feature-deliverables { margin-left: auto; margin-right: auto; }
  .feature-desc { margin: var(--space-3) auto 0; }
  .feature-case { margin: var(--space-3) auto 0; }
}

/* =====================
   Testimonials
   ===================== */

/* The scrolling client field, primary; a testimonial rotates
   below it and lights the matching logo. */
.cf-field {
  overflow: hidden;
  width: 100%;
  margin: var(--space-2) 0 var(--space-8);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.cf-track {
  display: flex;
  align-items: center;
  width: max-content;
}

.cf-item {
  flex-shrink: 0;
  padding: 0 var(--space-7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Every logo flattened to one ink, uniform regardless of source —
   the one being quoted lights from dim to full. */
.cf-logo {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0);
  opacity: 0.5;   /* ~3.9:1 on white — recessive but above the non-text contrast line */
  transition: opacity 0.45s ease;
}

/* the HS monogram is near-square — sized up like the other brandmark so it
   reads at the wordmarks' optical weight */
.cf-item[data-brand="honest"] .cf-logo { height: 40px; }

/* The National Park Service arrowhead is a full pictorial mark — portrait,
   so taller; and flattening it to one ink turns it into a solid blob, so it
   keeps its detail in muted greyscale as the one exception in the row. */
.cf-item[data-brand="nps"] .cf-logo { height: 48px; filter: grayscale(1); opacity: 0.6; }

.cf-quotes { display: grid; }

.cf-quote {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 700px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.cf-quote.is-active { opacity: 1; visibility: visible; }

.cf-quote blockquote {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;   /* quotes sit a step under the 600 headline weight */
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink);
}

.cf-quote figcaption {
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* expandable full note — collapsed shows the pull-quote, open shows the
   complete quote (left-aligned for comfortable reading) */
.cf-quote .cf-full { display: none; text-align: left; max-width: 58ch; margin: 0 auto var(--space-3); }
.cf-quote.is-open .cf-pull { display: none; }
.cf-quote.is-open .cf-full { display: block; }

.cf-full p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--body-text);
  margin: 0 0 var(--space-3);
}
.cf-full p:last-child { margin-bottom: 0; }

.cf-more {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  margin-top: var(--space-3);
  cursor: pointer;
}
.cf-more:hover { text-decoration: underline; }

.cf-dots {
  display: flex;
  gap: 10px;
  margin-top: var(--space-4);
}

.cf-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cf-dot::before { content: ''; position: absolute; inset: -10px; }

.cf-dot.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .cf-track { animation: cf-scroll 48s linear infinite; }
  .cf-field:hover .cf-track,
  .cf-field:focus-within .cf-track { animation-play-state: paused; }
  @keyframes cf-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-field { mask-image: none; -webkit-mask-image: none; }
  .cf-track { width: 100%; flex-wrap: wrap; justify-content: center; row-gap: var(--space-4); }
  /* the marquee clones (JS-added, aria-hidden) would duplicate the grid */
  .cf-item[aria-hidden="true"] { display: none; }
}

@media (max-width: 600px) {
  .cf-quote blockquote { font-size: var(--text-md); }
}

/* =====================
   Feature well — The Fold (the cover hands off to the article) + float-in.
   The seam becomes a crafted decrescendo: a full-bleed hairline "fold", a big
   masthead that floats in letter by letter, then the calm column with a drop
   cap and the principles re-set as a ruled index. One motion idea (settle into
   place); reduced motion / no-JS shows the finished, settled frame.
   ===================== */

.foldtop { padding-top: 0; }   /* the section carrying the cover→feature fold sits flush against it */

/* masthead block; the inner .container holds the eyebrow + floating title */
.well-masthead { padding: 0 0 var(--space-6); }            /* the section's own padding gives the top space */
.foldtop .well-masthead { padding-top: var(--space-8); }   /* on the seam section, breathe below the fold */
.well-masthead .section-kicker { margin: 0 0 var(--space-2); }

.well-hed {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.05;
  text-wrap: balance;   /* no one-word orphan lines on the big statements */
  margin: 0;
  /* between a subhead and a headline — the "enlarged opening" scale, not a
     full hero shout; floors at the 28px body-hed size on mobile */
  font-size: clamp(var(--text-xl), 4.5vw, 3rem);
}

/* standfirst — the editorial deck that follows the masthead */
.well-dek {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--body-text);
  max-width: 52ch;
  margin: var(--space-3) 0 var(--space-5);   /* set the standfirst apart from the body that follows */
}

/* the first section's statement — a bold second beat after the hero, so the page
   doesn't deflate into a quiet text block the moment you scroll */
.well-hed--lead { font-size: clamp(2.6rem, 6vw, 4.3rem); }

.well-dek--lead {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--ink);
  max-width: 42ch;
  margin: var(--space-3) 0 0;
}

/* centered "what we do" slide — a confident landing: statement, a line of
   copy, and the two ways forward (see the work / get in touch) */
.saas-inner { text-align: center; max-width: 880px; margin-left: auto; margin-right: auto; }

/* the section sits flush on the fold (.foldtop); give the eyebrow real room to
   breathe below it so it doesn't crowd the hero above */
.saas .saas-inner { padding-top: var(--space-10); }
.saas-inner .section-kicker::before { margin-left: auto; margin-right: auto; }
.saas-inner .well-hed--lead { margin-bottom: var(--space-4); }

/* Bookend sections — centered as editorial punctuation: the testimonial
   pull-quotes and the closing contact echo the centered Who-we-are open,
   while the feature body (What we do / case studies) stays left-aligned */
.section--centered > .container { text-align: center; }
.section--centered .section-kicker::before { margin-left: auto; margin-right: auto; }
.section--centered .body-copy { margin-left: auto; margin-right: auto; }
.section--centered .contact-form { margin-left: auto; margin-right: auto; }
.section--centered .cf-quotes { justify-items: center; }
.section--centered .cf-dots { justify-content: center; }

/* every section's intro shares the centered label axis: the logos sit under a
   centered eyebrow, and What-we-do's masthead (eyebrow + title + standfirst)
   centers as a unit — while the services tabs and case-study copy below stay
   left, where they read and function best */
#clients .section-kicker { text-align: center; }
#clients .section-kicker::before { margin-left: auto; margin-right: auto; }

#work .well-masthead .container { text-align: center; }
#work .well-masthead .section-kicker::before { margin-left: auto; margin-right: auto; }
/* masthead vertical rhythm: give the eyebrow room above the headline, and the
   subhead room under it — the .saas-sub swap had left the headline and subhead
   jammed together at 0px */
#work .well-masthead .section-kicker { margin-bottom: var(--space-4); }
#work .well-hed { margin-bottom: var(--space-3); }

.saas-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--body-text);
  max-width: 46ch;
  margin: 0 auto var(--space-6);
}
/* in-text link within a subhead — accent, no underline until hover/focus;
   inherits the subhead size (unlike .quiet-link, which would shrink it) */
.saas-sub a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 2px;
}
.saas-sub a:hover,
.saas-sub a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.saas-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 3px;
  padding: 13px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { color: var(--paper); background-color: var(--accent); border: 1px solid var(--accent); }
.btn--primary:hover { background-color: var(--ink); border-color: var(--ink); }
.btn--ghost { color: var(--accent); background-color: transparent; border: 1px solid var(--accent); }
.btn--ghost:hover { background-color: var(--accent); color: var(--paper); }

.saas-detail { max-width: 56ch; margin: 0 auto; }
.saas-detail p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--body-text);
  margin: 0 0 var(--space-4);
}
.saas-detail .saas-bio { color: var(--muted); }   /* same size as the paragraph above; muted keeps it a quiet coda */

/* float-in: .assemble text is split into letters that float up into place as
   it enters view (the brand coda — words assembling). Default / no-JS: plain. */
.assemble .as-w { white-space: nowrap; }   /* a word's letters never wrap apart mid-word */
.assemble .as-l { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .fold { transform-origin: left; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .fold.pre { transform: scaleX(0); }                 /* the fold draws in left -> right */

  .resolve { transition: filter 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease; }
  .resolve.pre { filter: blur(2.6px); opacity: 0.55; } /* the key phrase drifts into focus once */

  .assemble .as-l { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease; }

  /* the section deck rises just after the title assembles — the "build" coda.
     JS sets the hidden start inline (before paint) and clears it on reveal. */
  .well-dek { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
}

@media (max-width: 600px) {
  .well-masthead { padding-bottom: var(--space-4); }
  .foldtop .well-masthead { padding-top: var(--space-6); }
}

/* =====================
   Contact
   ===================== */

.contact-hed {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);   /* the close reads as a statement, not a sub-head */
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--ink);
  margin: 0 0 var(--space-3);
}

/* contact form — keeps the email off the page so it can't be scraped */
.contact-form { margin: var(--space-5) 0 0; max-width: 560px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.contact-input {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  /* paper, not sheet: the section's ground is now sheet, so a sheet fill would
     make the fields disappear. Same move as #about's artifact frame. */
  background: var(--paper);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 12px 14px;
}

.contact-input::placeholder { color: var(--muted); }
.contact-input:focus { outline: none; border-color: var(--accent); }

.contact-textarea {
  display: block;
  resize: vertical;
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.contact-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-btn:hover { background-color: var(--ink); border-color: var(--ink); }

.contact-note {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--accent);
  margin: var(--space-3) 0 0;
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =====================
   Article pages (case studies)
   ===================== */

.article-header {
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
}

.article-note {
  background-color: var(--sheet);
  padding: var(--space-3) 0;
}

.article-note p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--muted);
  margin: 0;
}

.article-body {
  padding-top: var(--space-6);
  padding-bottom: var(--space-2);
}

.article-hed {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-size: var(--text-2xl);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.back-link {
  display: inline-block;
  margin-top: var(--space-6);
}

/* Seamless page transitions — a case study animates to its own page (the bar
   holds, the image morphs) so it reads as moving to another spot, not a hard
   reload. Browsers without support just navigate normally. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }   /* swap without the morph */
}

/* a portrait hero (a magazine cover) reads at its own scale, not full measure */
.case-hero--portrait { max-width: 460px; }

.article-body .case-hero {
  /* the morph name is set per-page inline (case-hero-colgate / -npep / -mfp)
     so each case study pairs with its own card on the homepage.
     Scoped to .article-body so it beats the later .artifact{margin:0} reset. */
  max-width: 720px;
  /* bottom: open the image→text gap back up. left: pull the frame out by its
     own mat (10px pad + 1px border) so the image and caption align to the same
     left edge as the hed and body copy, instead of sitting 11px inside it. */
  margin: 0 0 var(--space-8) calc(-10px - 1px);
}

.case-quote {
  margin: var(--space-7) 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
  max-width: 56ch;
}
.case-quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 12px;
}
.case-quote figcaption {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.case-skills { margin: var(--space-6) 0 0; }
.case-skills-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}
.case-skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}
.case-skills-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
}
.case-skills-list svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent);
}

/* =====================
   Case study — "At a Glance" standfirst + takeaway spine
   A five-second summary under the hed, then body sections that each open
   with one takeaway line. Open ruled rows (not a filled box) so the
   .artifact hero stays the only framed sheet. No JS, renders in final state.
   ===================== */
/* the standfirst under the case headline — the whole engagement in one breath */
.case-intro {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--body-text);
  max-width: 62ch;
  margin: var(--space-4) 0 0;
}

.case-glance {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
  max-width: 620px;               /* aligns to the body measure */
}
.case-glance-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 4px var(--space-3);
}
.case-glance-row + .case-glance-row {
  margin-top: var(--space-3);   /* compact — no rule between rows */
}
.case-glance dt {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0;
  align-self: start;
  padding-top: 2px;
}
.case-glance dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--ink);
}
/* the takeaway spine — muted label (no tick) + one display-face lead sentence */
.case-beat + .case-beat { margin-top: var(--space-8); }
.case-beat .section-kicker--minor { margin: 0 0 var(--space-2); }
.case-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--ink);
  max-width: 56ch;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.article-body .case-hero + .case-beat { margin-top: 0; }

@media (max-width: 600px) {
  .article-header {
    padding-top: var(--space-5);
    padding-bottom: var(--space-4);
  }
  .case-glance-row { grid-template-columns: 1fr; gap: 3px; }
  /* the hero's desktop mat-alignment pull reads as off-center at phone width */
  /* a portrait hero (a magazine cover) reads at its own scale, not full measure */
.case-hero--portrait { max-width: 460px; }

.article-body .case-hero { margin-left: 0; }
  .case-beat + .case-beat { margin-top: var(--space-6); }
  .case-lead { font-size: var(--text-md); max-width: none; }
}

/* =====================
   Footer / colophon
   ===================== */

.colophon {
  border-top: 1px solid var(--hairline);
  margin-top: var(--space-5);
}

.colophon-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  padding-bottom: var(--space-6);
}

.colophon-inner p {
  color: var(--muted);
  margin: 0;
}

/* footer newsletter */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5) var(--space-8);
  /* no border-bottom: the input's own underline + the footer's top rule are
     enough. A section rule here stacked a second hairline under the field
     (a doubled line, worst on mobile where both run full-width). */
  padding: var(--space-8) 0 var(--space-6);
}

.newsletter-hed {
  font-family: var(--font-display);
  font-size: var(--text-lg);   /* lighter than the contact hed — this is the secondary form */
  color: var(--ink);
  margin: 0 0 6px;
}

.newsletter-sub {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--body-text);
  margin: 0;
  max-width: 42ch;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;   /* the status note drops to its own line */
  gap: var(--space-2);
  flex: 1 1 300px;
  max-width: 420px;
}

.newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: transparent;            /* underline field, not a box — quieter than the contact form */
  border: none;
  border-bottom: 1px solid var(--input-border);
  border-radius: 0;
  padding: 11px 2px;
}

.newsletter-input::placeholder { color: var(--muted); }
.newsletter-input:focus { outline: none; border-bottom-color: var(--accent); }

.newsletter-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);               /* ghost/outline button — secondary to the filled "Send a note" */
  background-color: transparent;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 11px 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.newsletter-btn:hover { background-color: var(--accent); color: var(--paper); }

.newsletter-note {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--accent);
  margin: 0;
  flex: 1 1 100%;
}

/* the build note — a plain, readable line, not the caps colophon style */
.colophon-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
  margin: var(--space-4) 0 0;
}

.colophon .pin {
  width: 13px;
  height: 13px;
  color: var(--accent);
  vertical-align: -2px;
  margin: 0 4px 0 1px;
}

/* =====================
   Artifact frame (imagery)
   ===================== */

.artifact {
  background-color: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 10px;
  margin: 0;
}

.artifact img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.artifact figcaption {
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 10px 2px 2px;
}
