/* Scientific Management Techniques — base
 * Reset, typography, container, buttons. Section rules live in sections/.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: var(--fw-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--fw-regular); }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* -- Type roles ---------------------------------------------------------
 * Named for what they are in the design, so section CSS never restates a
 * font stack or a size.
 * ---------------------------------------------------------------------- */
.t-page-title {                       /* Ext-Bold 70 */
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--step-5);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.t-display {                          /* Ext-Light 54 — "Why You Should Work With Us" */
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.t-section {                          /* Ext-Reg 42 */
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--step-3);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.t-band {                             /* Sans-Bold 38 — feature-split headings */
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-lead {                             /* Bold 28 — card titles, "Read More" */
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--step-1);
  line-height: var(--leading-snug);
}
.t-sub {                              /* Ext-Reg 34 — intro-duo headings */
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--step-sub);
  line-height: var(--leading-snug);
}
.t-col-head {                         /* Ext-Bold 33 — footer column headings */
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--step-sub);
  line-height: var(--leading-snug);
}
.t-small {                            /* Reg 20 — nav, captions, copyright */
  font-size: var(--step--1);
  line-height: var(--leading-body);
}

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

/* -- Section rhythm ------------------------------------------------------
 * Measured off the artboard: bands butt directly against each other with NO
 * gap, and each carries its padding on TOP only. Padding both sides is what
 * made every section run tall against the mockup.
 * ---------------------------------------------------------------------- */
.section { padding-block: var(--section-pad-y) 0; }
.section--tight { padding-block: var(--section-pad-y-tight) 0; }
.section--flush { padding-block: 0; }

/* -- Buttons ------------------------------------------------------------
 * Every button in the design is a 62px pill, 213px wide at the widest.
 * ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding-inline: var(--space-md);
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  /* Rob 2026-08-21: down from --step-1. At --step--1 the bold weight and the
   * pill's own height carry the emphasis, so the label does not need the
   * size as well. */
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
/* Press feedback. 1px, not a scale — these are wide pills and scaling one
 * reads as the whole band flexing. Border is already 2px solid transparent
 * on .btn so no state change shifts layout. */
.btn:active { transform: translateY(1px); transition-duration: var(--dur-fast); }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inv);
}
/* Hollows out rather than darkening — the wine has no darker step in the
 * palette, and inventing one would put a sixth colour in a five-colour design. */
.btn--primary:hover { background: transparent; color: var(--color-primary); }
.btn--primary:focus-visible { outline-color: var(--color-primary); }

/* Outline on a dark or photographic ground — the commonest button here */
.btn--ghost {
  background: transparent;
  border-color: var(--color-text-inv);
  color: var(--color-text-inv);
}
.btn--ghost:hover { background: var(--color-text-inv); color: var(--color-charcoal); }
.btn--ghost:focus-visible { outline-color: var(--color-text-inv); }

/* Outline on white */
.btn--outline {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: var(--color-text-inv); }

/* -- Social icons -------------------------------------------------------
 * Shared by site-header and site-footer, so it lives here rather than in
 * either section's stylesheet. Caught by the isolated section preview: the
 * footer on its own rendered unsized SVGs several hundred pixels tall.
 * ---------------------------------------------------------------------- */
.social {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
}
/* The glyph stays 18px to match the design; the anchor carries a 44px hit
 * area around it. Negative margin keeps the row visually flush. */
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
/* Pulled flush so the 44px hit areas do not visually indent the row from
 * whatever edge it is aligned to. */
.social { margin-inline: -13px; }
.social__icon {
  width: 18px;
  height: 18px;
  flex: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.social a:hover .social__icon { opacity: 0.7; }

/* -- Eyebrow tags -------------------------------------------------------
 * A microscopic pill above a major heading. Precedes h1/h2 on the hero,
 * section-heading, partner-roll, card-grid and prose-block.
 * ---------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.9em;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.eyebrow::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* -- Button-in-button trailing icon ------------------------------------- */
.btn:has(.btn__arrow) { padding-right: 0.5rem; }

.btn__arrow {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-left: 0.9rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  transition: transform var(--dur-slow) var(--ease-out),
              background-color var(--dur-slow) var(--ease-out);
}
.btn__arrow svg { width: 14px; height: 14px; }
/* Internal kinetic tension: the icon moves within the button, not with it. */
.btn:hover .btn__arrow {
  transform: translate(3px, -2px) scale(1.06);
  background: rgb(255 255 255 / 0.28);
}
.btn--outline .btn__arrow,
.btn--primary:hover .btn__arrow { background: rgb(26 26 25 / 0.08); }

/* -- Rules --------------------------------------------------------------
 * A heading followed by a hairline filling the remaining width recurs on
 * section-heading, partner-roll and card-grid.
 * ---------------------------------------------------------------------- */
.rule-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.rule-row__line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

/* When a head carries an eyebrow it stacks instead of running inline —
 * Rob's change 2026-08-21. An eyebrow sitting inline beside a display
 * heading reads as a stray tag; above it, it reads as a label. The rule then
 * runs the full width underneath rather than filling leftover space. */
.rule-row:has(.eyebrow) {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xs);
}
.rule-row:has(.eyebrow) .rule-row__line {
  flex: none;
  width: 100%;
}

/* -- Focus — restyled, never removed ------------------------------------
 * Two-tone ring: the wine outline reads on white and on the teal and
 * charcoal bands, but disappears against the wine band itself. The white
 * offset shadow underneath guarantees a visible edge on every ground in the
 * palette without needing a per-section override.
 * ---------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9);
}
.on-dark :focus-visible,
.hero :focus-visible { outline-color: var(--color-text-inv); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-text-inv);
  color: var(--color-charcoal);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -- Scroll reveal ------------------------------------------------------
 * Base state is VISIBLE. reveal.js adds .reveal-ready to <html> only once it
 * is running, so nothing is hidden by CSS unless JS is there to show it
 * again. A crawler, or a JS failure, gets the whole page.
 * ---------------------------------------------------------------------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  /* transform and opacity only. The blur that used to be here animated a
   * filter on full-bleed 1600px imagery, which is the one thing in this
   * stylesheet that could not hold 60fps. 560ms, not 800 — at 800 the band
   * was still settling after the reader had started on it. */
  transition: opacity 560ms var(--ease-out),
              transform 560ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* -- Reduced motion -----------------------------------------------------
 * The only !important in this stylesheet. It exists to override the
 * animations below it. Recorded in handoff/design-decisions.md.
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
