@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #0B2A45;
  --ink-soft: #234260;
  --paper: #ffffff;
  --paper-dim: #eef6fb;
  --blue: #0083c5;
  --blue-light: #2ea2dd;
  --slate: #4c7089;
  --line: #d6e6f0;
  --line-dark: rgba(11, 42, 69, 0.16);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--blue);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand span { color: var(--blue); }
.brand img { height: 34px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 2.2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding-bottom: 4px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue);
}
.nav-cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 9px 18px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

.nav-right { display: flex; align-items: center; gap: 1.6rem; }

/* Language switch */
.lang-toggle {
  display: flex;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-dark);
}
.lang-opt {
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px 12px;
  color: var(--slate);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  transition: background .15s, color .15s;
}
.lang-opt + .lang-opt { border-left: 1px solid var(--line-dark); }
.lang-opt.active { background: var(--ink); color: var(--paper); }
.lang-opt:hover:not(.active) { background: var(--paper-dim); color: var(--ink); }

/* ---------- Blueprint grid backdrop (signature element) ---------- */
.blueprint {
  position: relative;
  overflow: hidden;
}
.blueprint::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

/* Corner marks — recurring signature motif on cards/sections */
.corner-marked {
  position: relative;
}
.corner-marked::before, .corner-marked::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--blue);
}
.corner-marked::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-marked::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero h1 { margin: 18px 0 26px; }
.hero-lede { font-size: 1.15rem; max-width: 46ch; }
.hero-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--slate);
  border-left: 1px solid var(--line);
  padding-left: 24px;
  line-height: 1.9;
}
.hero-meta div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.hero-meta div:last-child { border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  transition: all .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Sections ---------- */
section { padding: 90px 0; border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 52px;
}
.section-head h2 { margin-top: 14px; }
.section-head .lede { max-width: 34ch; text-align: right; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 40px 34px; }
.card .num { font-family: 'IBM Plex Mono', monospace; color: var(--blue); font-size: 0.8rem; margin-bottom: 18px; display: block; }
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* Dark band */
.band-dark { background: var(--ink); color: var(--paper); border-top: none; }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark p { color: #c3cbd8; }
.band-dark .eyebrow { color: var(--blue-light); }
.band-dark .eyebrow::before { background: var(--blue-light); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.stat { border-left: 1px solid rgba(246,243,236,0.25); padding-left: 20px; }
.stat .figure { font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--blue-light); display: block; }
.stat .label { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa7b8; }

/* Quote */
.quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 26ch;
}
.quote-attr { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--slate); margin-top: 20px; }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  padding: 10px 2px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.field textarea { resize: vertical; min-height: 110px; }

.info-list { font-family: 'IBM Plex Mono', monospace; font-size: 0.88rem; line-height: 2.1; }
.info-list .k { color: var(--slate); display: inline-block; width: 110px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #9aa7b8;
  padding: 60px 0 30px;
}
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(246,243,236,0.15); }
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--paper); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-cols { display: flex; gap: 70px; }
.footer-col h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-light); margin: 0 0 14px; }
.footer-col a, .footer-col div { display: block; font-size: 0.9rem; margin-bottom: 8px; color: #c3cbd8; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-grid, .grid-3, .grid-2, .contact-grid, .stat-row { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { gap: 1px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .lede { text-align: left; }
  .hero-meta { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; margin-top: 20px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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