/* OETS — Blueprint Precision */
:root {
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --ink: #0F1020;
  --ink-2: #4A4D63;
  --rule: #D5D8E5;
  --accent: #403CE6;
  --accent-dark: #2B27B8;
  --accent-soft: #DCDBFF;
  --grid-line: rgba(64, 60, 230, .07);
  --placeholder: #E9EAF2;
  --footer-bg: #0F1020;
  --footer-ink: #C9CADB;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 var(--s2); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 var(--s2); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s2); }
@media (min-width: 768px) { .container { padding: 0 var(--s3); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s2); top: -100px; background: var(--ink); color: #fff; padding: var(--s1) var(--s2); z-index: 10; }
.skip-link:focus { top: var(--s2); color: #fff; }

/* Blueprint grid */
.bp-grid {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font: 600 1rem var(--font-body); text-decoration: none; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--ink); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: var(--s2); }
.brand img { height: 46px; width: auto; }
@media (min-width: 768px) { .brand img { height: 52px; } }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--ink); cursor: pointer; color: var(--ink); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--ink); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: var(--s1) var(--s2) var(--s2); }
.site-nav a { display: block; padding: 12px 0; font-weight: 500; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta { margin-top: var(--s1); padding: 12px 20px; background: var(--accent); color: #fff; font-weight: 600; text-align: center; }
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: var(--s4); padding: 0; }
  .site-nav a { padding: var(--s1) 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .site-nav .nav-cta { margin: 0; padding: 12px 20px; border: 0; }
}

/* Sections */
.section { padding: var(--s6) 0; }
@media (min-width: 1024px) { .section { padding: var(--s7) 0; } }
.section--ruled { border-top: 1px solid var(--ink); }
.eyebrow { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s2); }
.eyebrow::before { content: "[ "; }
.eyebrow::after { content: " ]"; }
.eyebrow--section::before { content: "§ "; }
.eyebrow--section::after { content: none; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 56ch; }
.hero { padding: var(--s6) 0 var(--s5); border-bottom: 1px solid var(--ink); }
@media (min-width: 1024px) { .hero { padding: var(--s7) 0 var(--s6); } }
.hero .btn-row { margin-top: var(--s4); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s5); }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: var(--s1); }
.link-arrow { font-family: var(--font-head); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding: 12px 0 4px; }
.link-arrow:hover { color: var(--accent); }

/* Home hero: text + figure */
.hero__grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s6); } }
.hero__figure { margin: 0; }
.hero__frame {
  padding: 16px;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 28px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 28px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 28px no-repeat;
}
.hero__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--ink); }
.hero__figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s2); margin-top: 4px; padding: 0 16px; font: .75rem/1.5 var(--font-mono); color: var(--ink-2); }

/* Stats */
.stats-band { background: var(--surface); border-bottom: 1px solid var(--ink); }
.stats { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: var(--s4) var(--s3); border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .stat { border-bottom: 0; border-right: 1px solid var(--rule); } .stat:last-child { border-right: 0; } }
.stat:last-child { border-bottom: 0; }
.stat__label { display: block; font: 500 .75rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 700; line-height: 1; }
.stat span:last-child { display: block; margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }

/* Clients */
.clients { border-bottom: 1px solid var(--rule); }
.clients .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-top: 28px; padding-bottom: 28px; }
.clients__label { font: 500 .75rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.clients ul { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 0; padding: 0; }
.clients li { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; color: #2A2C40; }

/* Cards */
.grid-cards { display: grid; gap: var(--s3); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } .grid-cards--5 { grid-template-columns: repeat(5, 1fr); } .grid-cards--2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--ink); display: flex; flex-direction: column; height: 100%; transition: box-shadow .2s; }
.card:hover { box-shadow: 6px 6px 0 var(--accent); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--placeholder); border-bottom: 1px solid var(--ink); overflow: hidden; }
.card__caption { position: absolute; left: 0; bottom: 0; padding: 3px 8px; font: 500 .75rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--ink); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { width: 100%; height: 100%; background-color: var(--placeholder); background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 24px 24px; }
.card__body { padding: var(--s3); }
.card__body h3 { margin-bottom: var(--s1); }
.card__body p { color: var(--ink-2); font-size: .9375rem; margin: var(--s1) 0 0; }
.meta { font-size: .875rem; color: var(--ink-2); }
.tag { display: inline-block; font: 500 .75rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); padding: 2px 8px; margin-bottom: 12px; }

/* Services */
.services { display: grid; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--ink); }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(5, 1fr); } }
.service { padding: var(--s4) var(--s3); border-bottom: 1px solid var(--rule); }
@media (min-width: 1024px) { .service { border-bottom: 0; border-right: 1px solid var(--rule); } .service:last-child { border-right: 0; } }
.service__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.service__icon { width: 28px; height: 28px; color: var(--accent); }
.service__num { font: .75rem var(--font-mono); color: var(--ink-2); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--ink-2); margin: 0; font-size: .9375rem; }

/* Call to action */
.cta-band { background: var(--accent); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s6); padding-bottom: var(--s6); }
.cta-band h2 { margin: 0; max-width: 18ch; }
.cta-band .eyebrow { color: var(--accent-soft); margin-bottom: var(--s1); }

/* Filters + record list */
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s2); }
.chip { min-height: 44px; padding: 0 var(--s2); font: 500 .9375rem var(--font-head); background: var(--surface); color: var(--ink); border: 1px solid var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
#project-count { color: var(--ink-2); font-size: .9375rem; margin-bottom: var(--s3); }
.year-group { display: grid; gap: var(--s1); padding: var(--s3) 0; border-top: 1px solid var(--rule); }
@media (min-width: 768px) { .year-group { grid-template-columns: 120px 1fr; gap: var(--s3); } }
.year-group__year { font-size: 1.5rem; font-weight: 700; margin: 0; }
.record { list-style: none; margin: 0; padding: 0; }
.record__item { display: grid; gap: 2px; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.record__item:last-child { border-bottom: 0; }
.record__title { font-weight: 500; }
.record__client { color: var(--ink-2); font-size: .9375rem; }
.record__item .tag { justify-self: start; margin: var(--s1) 0 0; }
@media (min-width: 1024px) {
  .record__item { grid-template-columns: 1fr 260px 190px; gap: var(--s3); align-items: baseline; }
  .record__item .tag { justify-self: end; margin: 0; }
}
.notice { border-left: 3px solid var(--accent); padding: var(--s2); background: var(--surface); }

/* About */
.two-col { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
blockquote { margin: 0; font-family: var(--font-head); font-size: 1.375rem; line-height: 1.35; border-left: 3px solid var(--accent); padding-left: var(--s3); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: var(--s5) 0 var(--s4); margin-top: var(--s6); font-size: .9375rem; }
main:has(> .cta-band:last-child) + .site-footer { margin-top: 0; }
.footer-grid { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer p { margin: 0 0 var(--s1); color: var(--footer-ink); }
.site-footer strong { color: #fff; font-family: var(--font-head); }
.site-footer a { color: #fff; display: inline-block; padding: 10px 0; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer :focus-visible { outline-color: var(--accent-soft); }
.footer-base { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid #2A2C40; font-size: .875rem; }

/* Reveal — hidden only when JS runs */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .3s ease-out, transform .3s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
