/* TECHBUREAU — single-page site
   Edit colours and type in :root. Everything else derives from these. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bone: #f2f0eb;
  --ink: #111110;
  --mute: #5a5954;
  --line: rgba(17, 17, 16, 0.16);
  --accent: #c2400f;

  --dark: #111110;
  --dark-text: #f2f0eb;
  --dark-mute: #a8a69e;
  --dark-line: rgba(242, 240, 235, 0.2);
  --accent-on-dark: #ff7a4d;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --header-h: 80px;
  --section: clamp(72px, 11vw, 168px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bone); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* type helpers */
.label {
  font-family: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.h2 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.num {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav a {
  font-size: 0.875rem; font-weight: 500; text-decoration: none; color: var(--ink);
  padding: 8px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav .nav-contact { color: var(--mute); padding-left: clamp(0px, 1vw, 12px); }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; padding: clamp(48px, 9vw, 128px) 0 0; overflow: hidden; }
.hero-inner { position: relative; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: clamp(28px, 4vw, 56px); }
.eyebrow .sep { color: var(--accent); margin: 0 0.35em; }
.hero-title {
  font-family: var(--display);
  font-stretch: 116%;
  font-weight: 640;
  font-size: clamp(2.35rem, 6.1vw, 6.1rem);
  line-height: 1.01;
  letter-spacing: -0.025em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }
.hero-lede { margin-top: clamp(40px, 6vw, 88px); align-items: start; }
.hero-lede .label { grid-column: 1 / span 3; padding-top: 0.5em; }
.lede { grid-column: 7 / span 6; font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.45; font-weight: 400; max-width: 34em; }
.hero-facts {
  margin-top: clamp(48px, 7vw, 104px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(16px, 2vw, 32px);
  border-top: 1px solid var(--ink);
}
.hero-facts div { padding: 18px 0 clamp(22px, 3vw, 36px); }
.hero-facts dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.hero-facts dd { font-family: var(--display); font-stretch: 105%; font-weight: 560; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.3; }

/* section head */
.section-head { align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.section-head > :first-child { grid-column: 1 / span 6; }
.section-head .section-note { grid-column: 8 / span 5; color: var(--mute); font-size: 1rem; }
.section-head .label { align-self: start; }

.partners .section-head > :first-child { grid-column: 1 / span 7; }
/* impact */
.impact { background: var(--dark); color: var(--dark-text); padding: var(--section) 0; }
.impact .label { color: var(--dark-mute); }
.impact .section-note { color: var(--dark-mute); }
.impact .section-head { margin-bottom: clamp(40px, 6vw, 80px); grid-template-columns: 7fr 5fr; column-gap: clamp(24px, 4vw, 72px); }
.impact .section-head > :first-child { grid-column: 1; }
.impact .section-head .section-note { grid-column: 2; }
.impact-grid { display: grid; grid-template-columns: 7fr 5fr; column-gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.stat-num {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-label { color: var(--dark-mute); margin-top: 14px; font-size: 1rem; }
.stat-lead { border-top: 1px solid var(--dark-text); padding-top: clamp(20px, 2.5vw, 32px); }
.stat-lead .stat-num { font-size: clamp(4.5rem, 14.5vw, 14rem); color: var(--dark-text); margin-left: -0.04em; }
.stat-lead .stat-label { font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--dark-text); }
.stat-stack { display: flex; flex-direction: column; }
.stat-stack .stat { border-top: 1px solid var(--dark-line); padding: clamp(18px, 2vw, 26px) 0 clamp(22px, 2.6vw, 34px); }
.stat-stack .stat:first-child { border-top-color: var(--dark-text); }
.stat-stack .stat-num { font-size: clamp(3rem, 6.6vw, 6rem); }
.stat-stack .stat-label { margin-top: 10px; }

/* about / what we do */
.about { padding: var(--section) 0; }
.split { align-items: start; }
.split-head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.split-lead { font-family: var(--display); font-stretch: 105%; font-weight: 520; font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.3; letter-spacing: -0.01em; margin-top: 28px; }
.split-body { color: var(--mute); margin-top: 24px; max-width: 30em; }
.areas { grid-column: 7 / span 6; }
.area { display: grid; grid-template-columns: 56px 1fr; column-gap: 0; padding: 28px 0 36px; border-top: 1px solid var(--line); }
.area:first-child { border-top-color: var(--ink); padding-top: 22px; }
.area .num { padding-top: 0.55em; }
.area h3 { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.15; letter-spacing: -0.015em; }
.area p { grid-column: 2; margin-top: 12px; color: var(--mute); max-width: 32em; }

/* programs */
.programs { padding: 0 0 var(--section); }
.program { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding: clamp(28px, 3.5vw, 48px) 0 clamp(36px, 4.5vw, 64px); border-top: 1px solid var(--line); }
.program:first-child { border-top-color: var(--ink); }
.program-meta { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 6px; }
.program-year { font-size: 0.8125rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.program-main { grid-column: 3 / span 5; }
.program:not(:has(.metrics)) .program-partners { border-top: 0; padding-top: 0; margin-top: 0; }
.program-main h3 { font-family: var(--display); font-stretch: 112%; font-weight: 620; font-size: clamp(1.5rem, 2.7vw, 2.375rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.program-main p { margin-top: 18px; color: var(--mute); max-width: 36em; }
.program-side { grid-column: 8 / span 5; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 24px 20px; }
.metrics b { display: block; font-family: var(--display); font-stretch: 110%; font-weight: 620; font-size: clamp(1.75rem, 2.9vw, 2.625rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metrics span { display: block; font-size: 0.875rem; color: var(--mute); margin-top: 8px; line-height: 1.35; }
.program-partners { margin-top: 28px; font-size: 0.875rem; color: var(--mute); line-height: 1.5; padding-top: 14px; border-top: 1px solid var(--line); }
.program-partners span { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }

/* optional imagery slot for later: <figure class="program-media"><img ...></figure> inside .program */
.program-media { grid-column: 3 / -1; margin: 28px 0 0; }
.program-media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* partners */
.partners { padding: 0 0 var(--section); }
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.partner { border-top: 1px solid var(--line); height: clamp(104px, 10vw, 144px); display: flex; align-items: center; padding: 16px 0; }
.partner img { max-height: 68px; max-width: 84%; width: auto; height: auto; object-fit: contain; object-position: left center; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: 0.8; transition: filter 0.3s ease, opacity 0.3s ease; }
.partner:hover img { filter: none; opacity: 1; }
.partner-name { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: clamp(0.9375rem, 1.25vw, 1.125rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); max-width: 14em; }

/* contact */
.contact { background: var(--dark); color: var(--dark-text); padding: var(--section) 0 clamp(56px, 7vw, 96px); }
.contact-title { font-family: var(--display); font-stretch: 114%; font-weight: 620; font-size: clamp(1.875rem, 4.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 19ch; text-wrap: balance; }
.contact-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 40px; margin-top: clamp(40px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--dark-line); }
.mail { font-family: var(--display); font-stretch: 108%; font-weight: 560; font-size: clamp(1.25rem, 2.6vw, 2rem); text-decoration: none; border-bottom: 1px solid var(--accent-on-dark); padding-bottom: 2px; transition: color 0.2s; }
.mail:hover { color: var(--accent-on-dark); }
.linkedin { font-size: 1rem; text-decoration: none; color: var(--dark-mute); }
.linkedin:hover { color: var(--dark-text); }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-on-dark); }

/* footer */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 0 0 40px; }
.footer-inner { border-top: 1px solid var(--dark-line); padding-top: 32px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px 32px; align-items: start; }
.footer-brand img { height: 36px; width: auto; filter: invert(1); }
.footer-brand p { margin-top: 14px; font-size: 0.875rem; color: var(--dark-mute); max-width: 26em; }
.footer-links { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; }
.footer-links a { text-decoration: none; color: var(--dark-text); }
.footer-links a:hover { text-decoration: underline; }
.copy { font-size: 0.875rem; color: var(--dark-mute); }

/* motion — content is always visible without JS or with reduced motion */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* tablet */
@media (max-width: 1024px) {
  .split-head { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
  .areas { grid-column: 1 / -1; }
  .program-meta { grid-column: 1 / -1; flex-direction: row; gap: 16px; align-items: baseline; margin-bottom: 14px; }
  .program-main { grid-column: 1 / span 7; }
  .program-side { grid-column: 8 / span 5; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .lede { grid-column: 4 / span 9; }
  .section-head > :first-child { grid-column: 1 / span 7; }
  .section-head .section-note { grid-column: 8 / span 5; }
}

/* mobile */
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; }

  .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink); font: 500 0.875rem var(--text); padding: 12px 0 12px 12px; min-height: 44px; cursor: pointer; }
  .menu-icon { width: 18px; height: 8px; position: relative; display: block; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.25s ease, top 0.25s ease; }
  .menu-icon::before { top: 0; }
  .menu-icon::after { top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { top: 3px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { top: 3px; transform: rotate(-45deg); }

  .js .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bone); flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 20px; border-bottom: 1px solid var(--line); display: none; }
  .js .nav.open { display: flex; }
  .js .nav a { font-family: var(--display); font-stretch: 108%; font-size: 1.375rem; font-weight: 560; padding: 14px 0; border-top: 1px solid var(--line); }
  .js .nav a:first-child { border-top: 0; }
  .js .nav a::after { display: none; }
  .js .nav .nav-contact { color: var(--ink); padding-left: 0; }
  html:not(.js) .nav { gap: 14px; flex-wrap: wrap; }
  html:not(.js) .header-inner { height: auto; padding-block: 12px; flex-direction: column; align-items: flex-start; }

  .hero-title { font-size: clamp(2.05rem, 9.4vw, 2.75rem); letter-spacing: -0.02em; }
  .hero-lede .label { grid-column: 1 / -1; margin-bottom: 12px; }
  .lede { grid-column: 1 / -1; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding: 14px 0; border-top: 1px solid var(--line); }
  .hero-facts div:first-child { border-top: 0; }

  .section-head > :first-child, .section-head .section-note, .impact .section-head > :first-child, .impact .section-head .section-note, .partners .section-head > :first-child { grid-column: 1 / -1; }
  .impact .section-head { grid-template-columns: 1fr; }
  .section-head .section-note { margin-top: 14px; }
  .section-head { align-items: start; }

  .impact-grid { grid-template-columns: 1fr; row-gap: 0; }
  .stat-lead { padding-bottom: 28px; }
  .stat-lead .stat-num { font-size: clamp(4.25rem, 22vw, 6.5rem); margin-bottom: 20px; }
  .stat-stack .stat-num { font-size: clamp(2.75rem, 14vw, 4rem); }
  .stat-stack .stat:first-child { border-top-color: var(--dark-line); }

  .program-main, .program-side { grid-column: 1 / -1; }
  .program-side { margin-top: 28px; }

  .partner-grid { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
  .partner { height: 96px; }
  .partner img { max-height: 54px; max-width: 88%; }

  .footer-inner { grid-template-columns: 1fr; }
  .area { grid-template-columns: 36px 1fr; }
}
