/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, figure { margin: 0; }
img, picture { display: block; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }

/* ---------- tokens (architecture doc §1.2) ---------- */
:root {
  --ink: #0B1211;
  --ink-2: #16211E;
  --jade: #12B886;
  --jade-deep: #0B6E52;
  --paper: #F6F5F1;
  --slate: #5C6B66;
  --line: rgba(11, 18, 17, 0.12);
  --line-dark: rgba(246, 245, 241, 0.14);
}

/* ---------- fonts ----------
   "Archivo Expanded" has no standalone static family on Google Fonts anymore
   (only variable Archivo with a wdth axis). These files are the wdth:125
   static instances of variable Archivo, pulled via the css2 API and
   self-hosted under the "Archivo Expanded" family name so the rest of the
   CSS can reference it as the architecture doc specifies. */
@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/archivo-expanded-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/archivo-expanded-latin-ext-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/archivo-expanded-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/archivo-expanded-latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- type scale (§1.3, fluid) ---------- */
:root {
  --font-display: "Archivo Expanded", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --size-display-xl: clamp(2.75rem, 7vw, 6rem);
  --size-display-l: clamp(2rem, 4.5vw, 3.5rem);
  --size-h2: clamp(1.5rem, 3vw, 2.25rem);
  --size-body-l: 1.125rem;
  --size-body: 1rem;
  --size-mono-eyebrow: 0.75rem;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--size-body);
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--size-display-xl); line-height: 0.95; }
h2 { font-size: var(--size-h2); line-height: 1.1; }

p.body-l { font-size: var(--size-body-l); line-height: 1.6; }

.mono-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--size-mono-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

a { color: inherit; }

/* ---------- layout shell ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

/* Pages with a dark hero: header starts transparent with light text,
   readable even before JS adds .is-scrolled (no-JS / slow-JS fallback). */
body.has-hero .site-header {
  color: var(--paper);
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.site-header nav a { text-decoration: none; }

.site-header.is-scrolled {
  background: var(--ink);
  color: var(--paper);
}

.clock-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--paper);
}

.clock-strip .region {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.clock-strip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-dark);
}

.clock-strip .region.is-awake .dot {
  background: var(--jade);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  background: var(--jade);
  color: var(--ink);
  transition: transform 120ms ease, background 120ms ease;
}

.btn:hover {
  background: var(--jade-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
}

.hero-inner {
  padding: 9rem 1.5rem 4rem;
  max-width: 60rem;
}

.hero-inner p.body-l {
  color: var(--paper);
  opacity: 0.8;
  margin-top: 1.5rem;
  max-width: 36rem;
}

.hero-inner .btn {
  margin-top: 2rem;
}

.hero h1 {
  color: var(--paper);
  font-family: "Archivo Expanded", var(--font-display);
  overflow: hidden;
}

.hero h1 span {
  display: block;
  animation: mask-reveal-up 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes mask-reveal-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.clock-strip {
  animation: fade-in 400ms ease 200ms both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- section scaffolding ---------- */
.section {
  padding: 4.5rem 1.5rem;
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto 2rem;
}

.section-head a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-grid--full {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
  .work-grid--full { grid-template-columns: 1fr; }
}

.work-card .work-card-descriptor {
  margin-top: 0.35rem;
  color: var(--slate);
}

.page-intro {
  max-width: 40rem;
  margin: 0 auto 3rem;
  padding: 6rem 1.5rem 0;
}

.page-intro .body-l {
  color: var(--slate);
  margin-top: 0.75rem;
}

[data-observe-group] > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms ease;
}

[data-observe-group] > *.is-visible {
  opacity: 1;
  transform: none;
}

.work-card a { text-decoration: none; }

.work-card picture {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-2);
  border-radius: 2px;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 120ms ease;
}

.work-card:hover img {
  transform: scale(1.02);
}

.work-card .work-card-name {
  margin-top: 0.75rem;
  font-weight: 500;
}

.work-card .work-card-tag {
  color: var(--slate);
}

.section--dark .work-card .work-card-tag {
  color: var(--paper);
  opacity: 0.6;
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 72rem;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-block {
  background: var(--paper);
  padding: 2.5rem;
}

.service-block h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-block p {
  color: var(--slate);
}

/* ---------- clients ---------- */
.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

.clients-row img {
  height: 2rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
}

/* ---------- about + founders + stats ---------- */
.about-preview {
  max-width: 72rem;
  margin: 0 auto;
}

.about-preview > p.body-l {
  max-width: 40rem;
  color: var(--slate);
  margin-bottom: 3rem;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 700px) {
  .founders-grid { grid-template-columns: 1fr; }
}

.founder-card picture {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
}

.founder-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card .founder-name {
  margin-top: 1rem;
  font-weight: 500;
}

.founder-card .founder-role {
  color: var(--slate);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

@media (max-width: 700px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

.stat-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  color: var(--slate);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--slate);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--jade);
  outline-offset: -1px;
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.contact-info p {
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.form-status {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-band h2 {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
