/* ==========================================================================
   Essage — base
   Tokens, fonts, reset and the few components every section shares.
   Section styles live in their own files (hero, how-we-work, deep-dives, closing).
   ========================================================================== */

@font-face { font-family: 'Archivo'; src: url(../fonts/archivo-wdth.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(../fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(../fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(../fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  /* palette */
  --slate: #2B4B5A;
  --sage: #A3AEA5;
  --bone: #F6F4EF;
  --ink: #202526;
  --slate-deep: #24404D;            /* hover/pressed Slate */

  /* type */
  --display: 'Archivo', 'Hanken Grotesk', system-ui, sans-serif;
  --text: 'Hanken Grotesk', system-ui, sans-serif;
  --title-section: clamp(34px, 3.9vw, 56px);   /* How We Work, Deep Dives */

  /* layout: 80px page margin at 1440, never under 20px */
  --m: max(20px, 5.556vw);
  --header: 88px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 900px) { :root { --header: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--slate); color: var(--bone); font-family: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.on-light :focus-visible { outline-color: var(--slate); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 50; padding: 10px 16px; background: var(--bone); color: var(--ink); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }

/* shared: section label and title */
.eyebrow { margin: 0 0 18px; font-size: 16px; font-weight: 500; }
.section-title { margin: 0; font-family: var(--display); font-stretch: 92%; font-weight: 460; font-size: var(--title-section); line-height: 1.04; letter-spacing: -0.022em; text-wrap: balance; }

/* shared: the Sage button (hero and closing) */
.btn { display: inline-flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 26px 0 28px; background: var(--sage); color: var(--ink); border-radius: 2px; text-decoration: none; font-size: 17px; font-weight: 600; transition: background-color .2s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; color: var(--slate); transition: transform .25s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--bone); }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

/* shared: underlined text link with arrow */
.link { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; text-decoration: underline 1.5px var(--link-line, var(--sage)); text-underline-offset: 8px; transition: text-decoration-color .25s var(--ease); }
.link svg { width: 16px; height: 16px; flex: none; color: var(--link-line, var(--sage)); transition: transform .25s var(--ease); }
.link:hover { text-decoration-color: currentColor; }
.link:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* shared: carousel controls — counter between two quiet square buttons; shown only where a track scrolls */
.carousel-nav { display: none; align-items: center; gap: 4px; margin-top: 20px; }
.carousel-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--nav-line, rgba(246, 244, 239, .3)); border-radius: 2px; background: none; color: inherit; cursor: pointer; transition: background-color .2s var(--ease), opacity .2s var(--ease); }
.carousel-nav button svg { width: 16px; height: 16px; }
.carousel-nav button:hover:not([aria-disabled="true"]) { background: var(--nav-hover, rgba(246, 244, 239, .1)); }
.carousel-nav button[aria-disabled="true"] { opacity: .3; cursor: default; }
.carousel-nav .count { margin: 0; min-width: 76px; text-align: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.carousel-nav .count span { opacity: .6; }
