/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Tokens ----------
   Locomotive.ca's system: pure black-on-white, one grotesk typeface at
   many weights, sharp corners, hairline rules, generous whitespace, and
   color used only as a rare, single accent — not as the design. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f3ef;
  --fg: #0a0a0a;
  --fg-dim: rgba(10, 10, 10, 0.62);
  --fg-faint: rgba(10, 10, 10, 0.36);
  --line: rgba(10, 10, 10, 0.14);
  --accent: #f5a623;
  --font: 'Archivo', system-ui, sans-serif;
  --wrap: 1320px;
  --ease: cubic-bezier(.16,.84,.44,1);
  --font-size: 16px;
}
@media (min-width: 1600px) { :root { --font-size: 17px; } }
@media (min-width: 2000px) { :root { --font-size: 18px; } }
@media (min-width: 2400px) { :root { --font-size: 19px; } }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.3;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { background: var(--bg); }
body.is-loading { overflow: hidden; height: 100vh; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 999;
  background: var(--fg); color: var(--bg); padding: .6em 1em;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Preloader ----------
   Kept dark regardless of the light site theme, same as locomotive.ca. */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem;
  background: #0a0a0a; color: #fff;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader-mark svg { width: 64px; height: 44px; }
.preloader-mark .ray { stroke: rgba(255,255,255,.4); stroke-width: 3; fill: none; stroke-linecap: round; }
.preloader-mark .sun { fill: var(--accent); }
.preloader-line {
  font-family: var(--font);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.35rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  padding: .9rem 0;
  border-bottom-color: var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: flex; align-items: center; gap: .55rem; }
.logo-mark .ray { stroke: var(--fg); stroke-width: 4; fill: none; stroke-linecap: round; }
.logo-mark .sun { fill: var(--accent); }
.logo-word { font-family: var(--font); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.logo-word sup { font-size: .55em; }

.nav ul { display: flex; align-items: center; gap: 2.2rem; }
.nav a { font-size: .92rem; font-weight: 600; color: var(--fg-dim); transition: color .3s; }
.nav a:hover { color: var(--fg); }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.4em; border: 1px solid var(--fg); border-radius: 0;
  font-size: .85rem; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--bg); color: var(--fg); }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-lg { padding: 1.1em 2em; font-size: 1rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 26px; padding: 4px;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--fg); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6.5rem 1.75rem 3rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.1rem; }
.mobile-menu a { font-family: var(--font); font-size: 2.2rem; font-weight: 700; letter-spacing: -.01em; }
.mobile-menu-footer { display: flex; flex-direction: column; gap: .3rem; color: var(--fg-dim); font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  padding: 8rem 0 4rem;
}
.eyebrow {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--fg-dim); margin-bottom: 1.6rem;
}
.eyebrow::before { content: '●'; color: var(--accent); font-size: .6rem; margin-right: .6em; vertical-align: middle; }
.hero-title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.02em;
  max-width: 18ch;
}
.accent-text { font-style: italic; font-weight: 500; }
.hero-title .dot { color: var(--accent); }
.hero-lede {
  margin-top: 1.85rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--fg-dim);
}
.hero-pillars { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.hero-pillars span { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg); }
.hero-pillars span:not(:last-child)::after { content: '/'; margin-left: .9rem; color: var(--fg-faint); font-weight: 400; }
.hero-scroll-cue {
  position: absolute; left: 1.75rem; bottom: 2.25rem;
  display: flex; align-items: center; gap: .6rem;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-faint);
}
.hero-scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Sections (general) ---------- */
.section { padding: 7rem 0; border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 3.75rem; }
.section-num {
  display: block; font-size: .85rem; font-weight: 700; color: var(--fg-faint);
  letter-spacing: .08em; margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.02em;
}
.section-lede { margin-top: 1.35rem; font-size: 1.05rem; color: var(--fg-dim); max-width: 42ch; }

/* ---------- Reveal ---------- */
.js-reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-inview { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 01 Who we are ---------- */
.who-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.who-card {
  background: var(--bg); padding: 2.4rem 1.75rem; min-height: 240px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem;
  transition: background .4s var(--ease);
}
.who-card:hover { background: var(--bg-alt); }
.who-index { font-size: .8rem; color: var(--fg-faint); font-weight: 700; }
.who-card h3 { font-family: var(--font); font-size: 1.35rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.who-card p { color: var(--fg-dim); font-size: .92rem; margin-top: auto; }

/* ---------- 02 What we do ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.pillar { border-top: 1px solid var(--fg); padding-top: 1.75rem; }
.pillar-num { color: var(--fg-faint); font-weight: 700; font-size: .85rem; }
.pillar-head h3 { font-family: var(--font); font-size: 1.7rem; font-weight: 800; margin: .6rem 0 .5rem; line-height: 1.05; letter-spacing: -.01em; }
.pillar-tag { color: var(--fg-dim); font-size: .92rem; margin-bottom: 1.6rem; }
.pillar-list li {
  padding: .8rem 0; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--fg-dim);
  transition: color .3s, padding-left .3s;
}
.pillar-list li:hover { color: var(--fg); padding-left: .4rem; }
.pillar-list li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- 03 How we work (pinned process) ---------- */
.process { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.process-sticky { position: sticky; top: 7.5rem; padding-right: 1rem; }
.process-progress {
  width: 100%; height: 2px; background: var(--line); margin-bottom: 1.75rem;
}
.process-progress-fill { display: block; height: 100%; width: 0%; background: var(--fg); transition: width .25s linear; }
.process-index { display: block; font-family: var(--font); font-weight: 800; font-size: 3.2rem; color: var(--accent); line-height: 1; }
.process-title { font-family: var(--font); font-size: 2.1rem; font-weight: 800; margin-top: .6rem; letter-spacing: -.01em; }
.process-desc { margin-top: 1rem; color: var(--fg-dim); font-size: 1.02rem; max-width: 32ch; }

.process-step {
  padding: 2.5rem 0; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 1.5rem;
  opacity: .3; transition: opacity .4s var(--ease);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step.is-active { opacity: 1; }
.process-step-num { font-family: var(--font); font-weight: 700; font-size: 1.1rem; color: var(--fg-faint); }
.process-step.is-active .process-step-num { color: var(--accent); }
.process-step h4 { font-family: var(--font); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; }

/* ---------- 04 Why the bright side ---------- */
.why-row {
  display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem;
  padding: 2.1rem 0; border-top: 1px solid var(--line);
}
.why-row:last-child { border-bottom: 1px solid var(--line); }
.why-num { font-family: var(--font); font-weight: 700; font-size: 1.4rem; color: var(--fg-faint); }
.why-row h3 { font-family: var(--font); font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; letter-spacing: -.01em; }
.why-row p { color: var(--fg-dim); max-width: 56ch; }

/* ---------- 05 Who we work with ---------- */
.clients .section-head { margin-bottom: 2.5rem; }
.marquee { overflow: hidden; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); padding: 1.8rem 0; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--fg); white-space: nowrap; letter-spacing: -.01em;
}
.marquee-track span::after { content: '＋'; margin-left: 3rem; color: var(--accent); font-size: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Featured work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work-tile {
  background: var(--bg);
  display: flex; flex-direction: column;
}
.work-visual {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.work-visual-label {
  position: relative; z-index: 1;
  font-family: var(--font); font-size: 3rem; font-weight: 800;
  color: var(--fg-faint); letter-spacing: -.02em;
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.work-tile:hover .work-visual-label { transform: scale(1.06); color: var(--fg); }
.work-copy { padding: 1.75rem 1.9rem 2.2rem; }
.work-copy h3 { font-family: var(--font); font-size: 1.4rem; font-weight: 800; margin-bottom: .6rem; letter-spacing: -.01em; }
.work-copy p { color: var(--fg-dim); font-size: .93rem; margin-bottom: 1.2rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.work-tags span {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--fg-dim); border: 1px solid var(--line); padding: .35em .8em;
}

/* ---------- 07 About / stats ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--fg); border-left: 1px solid var(--line); }
.stat { text-align: center; padding: 2.25rem 1rem; border-right: 1px solid var(--line); }
.stat-num { font-family: var(--font); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--fg); }
.stat-plus { font-family: var(--font); font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat p { margin-top: .5rem; color: var(--fg-dim); font-size: .88rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 1.9rem; }
.contact-title {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.02em;
}
.contact-meta { color: var(--fg-dim); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.75rem 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-copy { color: var(--fg-faint); font-size: .82rem; }
.footer-links { display: flex; gap: 1.25rem; font-size: .85rem; color: var(--fg-dim); }
.footer-links a:hover { color: var(--fg); }

/* ---------- Shuffle text ---------- */
[data-shuffle], [data-shuffle-child] { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 3rem; }
  .process { grid-template-columns: 1fr; }
  .process-sticky { position: static; padding-right: 0; margin-bottom: 2rem; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .who-grid { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: 1fr; gap: .5rem; }
  .section { padding: 4.75rem 0; }
}
