:root {
  --paper:   #F5F7FA;
  --cream:   #FFFFFF;
  --ink:     #0F1A24;
  --ink-2:   #3B4A5A;
  --ink-3:   #6B7680;
  --rule:    #E2E8EF;
  --rule-2:  #C5CFDA;
  --deep:    #1E3A2E;
  --deep-2:  #2D4F3D;
  --blue:    #1E3A5F;
  --blue-2:  #345A85;
  --blue-tint: rgba(52, 90, 133, 0.06);
  --blue-tint-2: rgba(52, 90, 133, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.display em { font-style: italic; font-weight: 400; color: var(--deep-2); }
.serif { font-family: 'Instrument Serif', Georgia, serif; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.edge-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rule-h { height: 1px; background: var(--rule); width: 100%; }
.tick   { width: 20px; height: 1px; background: var(--ink); display: inline-block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 14px 24px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: none;
  border-radius: 0;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
}
.btn-ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 24px -14px rgba(20,22,20,0.5), 0 2px 6px -2px rgba(20,22,20,0.2);
}
.btn-ink:hover {
  background: var(--deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -14px rgba(28,42,34,0.55), 0 4px 10px -2px rgba(28,42,34,0.28);
}
.btn-ink:active { transform: translateY(0); }
.btn-ink:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(246, 247, 249, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.wordmark-m {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1;
}
.wordmark-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 5px;
}

.mark {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  flex-shrink: 0;
  position: relative;
}
.mark::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 6px;
  height: 6px;
  background: var(--deep);
  border: 1.5px solid var(--paper);
}
.mark-light {
  color: var(--cream);
  border-color: var(--cream);
}
.mark-light::after {
  border-color: var(--ink);
}

.nav-link {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
nav .nav-link + .nav-link::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--rule-2);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--blue); }
.nav-link.is-active::after { transform: scaleX(1); background: var(--blue); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--rule-2);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 240ms ease;
  border-radius: 0;
}
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230F1419' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: #aaa49a; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }

.dot { width: 6px; height: 6px; background: var(--deep-2); border-radius: 50%; display: inline-block; }
.dot-blue { background: var(--blue-2); }

.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 2px rgba(15, 26, 36, 0.04),
    0 10px 28px -12px rgba(30, 58, 95, 0.12),
    0 28px 60px -28px rgba(30, 58, 95, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.glass-dark {
  background: rgba(15, 26, 36, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cream);
  box-shadow:
    0 10px 32px -12px rgba(15, 26, 36, 0.4),
    0 32px 64px -28px rgba(30, 58, 95, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.orb-blue  { background: radial-gradient(circle, rgba(52, 90, 133, 0.38), transparent 65%); }
.orb-green { background: radial-gradient(circle, rgba(45, 79, 61, 0.28), transparent 65%); }
.orb-sky   { background: radial-gradient(circle, rgba(120, 160, 205, 0.32), transparent 65%); }

.tint-blue {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(52,90,133,0.08), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(45,79,61,0.05), transparent 60%),
    linear-gradient(180deg, rgba(52,90,133,0.04), transparent 40%, transparent 100%),
    var(--paper);
}

.bg-wash {
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(52, 90, 133, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 55% at 10% 100%, rgba(45, 79, 61, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(52, 90, 133, 0.05), rgba(52, 90, 133, 0.02)),
    var(--paper);
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
