/* Self-hosted (latin subset, variable weight): no requests to Google. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0d10;
  --ink: #f4f2ee;
  --ink-2: #c9cdd3;
  --muted: #8a93a0;
  --gold: #c9a461;
  --gold-light: #d9bb80;
  --gold-pale: #e6cfa2;
  --line: rgba(244, 242, 238, 0.18);
  --hairline: rgba(244, 242, 238, 0.1);
  --gutter: clamp(20px, 6vw, 96px);
  --display: "Space Grotesk", "Helvetica Neue", sans-serif;
  --body: "Inter", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--gold-pale); }
a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--bg); }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(244, 242, 238, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 242, 238, 0.045) 1px, transparent 1px);
  background-size: 120px 120px;
}

.glow {
  position: absolute;
  left: 68%;
  top: 48%;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 97, 0.14) 0%, rgba(201, 164, 97, 0) 62%);
  filter: blur(50px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: breath 8s ease-in-out infinite;
}

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
}

/* --- header --- */
.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 40px var(--gutter) 0;
}
.wordmark { width: 132px; height: auto; color: var(--ink); display: block; }
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* --- main --- */
.hero {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 7vh, 96px) var(--gutter);
}

.copy {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 46px;
  height: 1px;
  background: var(--gold);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(56px, 8.4vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h1 span { color: var(--gold); }

.lede {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}

.contact {
  margin-top: 12px;
  border: 1px solid var(--gold);
  background: rgba(244, 242, 238, 0.02);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}
.contact-who { display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.contact-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.contact-role { font-size: 15px; color: var(--ink-2); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  flex: 1 1 200px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.link:hover { border-color: var(--gold); background: rgba(201, 164, 97, 0.06); }
.link-label { display: flex; align-items: center; gap: 12px; }
.link svg { flex: none; }
.arrow { color: var(--gold); transition: transform 0.3s ease; }
.link:hover .arrow { transform: translateX(4px); }

/* --- mark --- */
.mark {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  cursor: crosshair;
}
.mark svg { width: 100%; height: auto; overflow: visible; display: block; }
.readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.readout div { display: flex; flex-direction: column; gap: 6px; }
.readout dt { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); }
.readout dd {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.readout dd.warm { color: var(--gold-pale); }

/* --- footer --- */
.site-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--gutter) 36px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* --- motion --- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes breath {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
.in { animation: fade-in 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.35s; }
.d3 { animation-delay: 0.55s; }
.d4 { animation-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
  .in, .glow { animation: none; }
}
