:root {
  --navy: #1F2A44;
  --graphite: #14181F;
  --authority: #2B4C7E;
  --mist: #F4F6F8;
  --line: #DCE0E6;
  --grey: #5B636F;
  --mute: #8A909B;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease-out, border-color 160ms ease-out;
}
a:hover { color: var(--authority); border-bottom-color: var(--authority); }
:focus-visible { outline: 2px solid var(--authority); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 16px;
  background: var(--navy); color: var(--paper);
  padding: 12px 16px; border: none;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px;
}
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 32px; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey); line-height: 1.6; margin: 0;
}
.mono .sep { color: var(--mute); }

/* Header */
.site-header .wrap {
  min-height: 80px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 12px;
}
.brand { border-bottom: none; display: inline-flex; align-items: center; gap: 12px; }
.brand svg { display: block; width: 40px; height: 25px; }
.brand span { font-size: 18px; font-weight: 600; letter-spacing: -0.012em; color: var(--navy); }
.nav a {
  border-bottom: none;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px; letter-spacing: .06em; color: var(--grey);
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--navy); }

main { flex-grow: 1; display: flex; flex-direction: column; }

/* Hero */
.hero { padding: 96px 0 140px; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 56px 24px;
}
.headline { grid-column: 1 / 8; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 32px; }
h1 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif; font-weight: 400;
  font-size: 72px; letter-spacing: -0.015em; line-height: 1.04;
  color: var(--navy); text-wrap: balance;
}
.mark-cell { grid-column: 9 / 13; grid-row: 1; padding-top: 6px; }
.mark { display: block; width: 100%; max-width: 340px; height: auto; margin-left: -8px; }
.aside { grid-column: 9 / 13; grid-row: 2; align-self: end; display: flex; flex-direction: column; gap: 24px; }
.lede {
  margin: 0; font-family: 'Newsreader', Georgia, serif; font-style: italic;
  font-size: 24px; line-height: 1.4; color: var(--graphite);
}
.body { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--grey); }
.cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 17px; font-weight: 500; color: var(--navy);
  border-bottom: 1px solid var(--navy); background: none; padding: 0; cursor: pointer;
  font-family: inherit;
}
.cta:hover { color: var(--authority); border-bottom-color: var(--authority); }

/* Mark animation */
.mark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms cubic-bezier(.22, 1, .36, 1) forwards; }
.mark .d2 { animation-delay: 70ms; }
.mark .d3 { animation-delay: 140ms; }
.mark .d4 { animation-delay: 560ms; }
.mark .ring { opacity: 0; animation: fade 300ms ease-out 420ms forwards; }
.mark .pt { opacity: 0; animation: fade 300ms ease-out 720ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mark .draw { animation: none; stroke-dashoffset: 0; }
  .mark .ring, .mark .pt { animation: none; opacity: 1; }
}

/* Contact */
.contact { padding: 120px 0; }
.contact .col { max-width: 560px; display: flex; flex-direction: column; gap: 32px; }
.contact h1 { font-size: 48px; line-height: 1.08; }
.contact .lede { font-size: 20px; line-height: 1.5; }
form { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
input, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  color: var(--graphite); font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  transition: border-color 160ms ease-out;
}
input:hover, textarea:hover { border-color: var(--mute); }
input:focus, textarea:focus { border-color: var(--authority); outline: 2px solid var(--authority); outline-offset: 2px; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-top: 4px; }
.note { font-size: 13px; color: var(--mute); }
.alt { margin: 0; font-size: 15px; color: var(--grey); border-top: 1px solid var(--line); padding-top: 24px; }
.received { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.received .mono { color: var(--authority); }

/* Footer */
.site-footer .wrap {
  padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 48px;
}
.tag { margin: 0; font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 15px; color: var(--navy); }

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 96px; }
  .grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .headline, .mark-cell, .aside { grid-column: auto; grid-row: auto; }
  h1 { font-size: 46px; }
  .mark { width: 200px; margin-left: 0; }
  .contact { padding: 64px 0 96px; }
  .contact h1 { font-size: 40px; }
}
