@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #101820;
  --ink-muted: #4A5560;
  --paper: #F4F5F0;
  --line: #D6DAD3;
  --line-strong: #B8C6CE;
  --ice: #DCE8EE;
  --cyan: #2BC5DA;
  --link: #0B6F7E;
  --gutter: 48px;
  --sans: "Figtree", system-ui, sans-serif;
  --display: "Sora", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/28px var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.brand img { height: 32px; width: auto; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font: 500 14px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color 160ms ease, color 160ms ease;
}
.btn:focus { outline: none; }
/* Focus ring: 2px, 4px inside the cut shape, with its own matching cut */
.btn:focus-visible::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: currentColor;
  clip-path: polygon(evenodd,
    0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 0,
    2px 2px, 2px calc(100% - 2px), calc(100% - 2px) calc(100% - 2px),
    calc(100% - 2px) 8.5px, calc(100% - 8.5px) 2px, 2px 2px);
  pointer-events: none;
}
.btn .arrow { display: inline-block; transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }

.btn-ink { background: var(--ink); color: var(--paper); padding: 13px 20px; font-size: 13px; }
.btn-ink:hover { background: var(--ink-muted); }
button.btn { border: 0; cursor: pointer; }

/* Contact form */
.contact { max-width: 682px; scroll-margin-top: 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* Framed field: 1px ink-muted edge that follows the 45° cut; 2px ink on focus */
.frame {
  display: block;
  padding: 1px;
  background: var(--ink-muted);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color 160ms ease;
}
.frame input, .frame textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/24px var(--sans);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  outline: none;
}
.frame textarea { resize: vertical; min-height: 120px; }
.frame:focus-within { background: var(--ink); padding: 2px; }
.frame:focus-within input, .frame:focus-within textarea { padding: 10px 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 16px 0 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* Result pages */
.result p.body { max-width: 31em; margin: 0 0 40px; font-size: 22px; line-height: 32px; color: var(--ink-muted); }

/* Hero */
.hero {
  border-top: 1px solid var(--line);
  background-color: var(--paper);
  background-image: url("/assets/grid.svg");
  background-size: 48px 48px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--ink);
}

h1 {
  margin: 0 0 32px;
  max-width: 12em;
  font: 600 clamp(40px, 5.6vw, 80px)/1.02 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lead {
  max-width: 31em;
  margin: 0 0 40px;
  font-size: 22px;
  line-height: 32px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Converge motif */
.converge { margin: 0; padding: 32px; }
.converge svg { width: 100%; height: auto; overflow: visible; }
.converge .strands path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linejoin: miter; }
.converge .nodes rect { fill: var(--line-strong); }
.converge .hub, .converge .head { fill: var(--cyan); }
.converge .out { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-dasharray: 186; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .converge .out { animation: draw 700ms ease-out 200ms both; }
  .converge .head { animation: appear 160ms linear 900ms both; }
}
@keyframes draw { from { stroke-dashoffset: 186; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Footer */
.site-footer { background: var(--ice); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px var(--gutter);
}
.tagline {
  margin: 0 0 16px;
  font: 600 22px/1.2 var(--display);
  letter-spacing: -0.02em;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-muted);
}
.legal li + li::before { content: "·"; margin: 0 10px; }
.legal li:first-child { font: 500 13px/24px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .converge { max-width: 480px; padding: 32px 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 24px; }
  .hero-inner { gap: 16px; }
  .fields { grid-template-columns: 1fr; }
  .btn-ink { padding: 12px 16px; font-size: 12px; }
  .legal { flex-direction: column; }
  .legal li + li::before { content: none; }
}
