@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0a0907;
  --bg-2: #12100c;
  --gold: #d6b25e;
  --gold-hi: #ecd08a;
  --gold-dim: #8a7444;
  --gold-faint: #3a3122;
  --line: #2a241a;
  --text: #ece5d5;
  --muted: #a79d88;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--bg); }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar p { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); white-space: nowrap; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(214, 178, 94, 0.55);
  animation: beacon 2.4s ease-out infinite;
}
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(214, 178, 94, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(214, 178, 94, 0); }
}

/* hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(20px, 3vw, 36px); }
.wordmark {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(3.1rem, 14.6vw, 13.25rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--gold);
  /* optical: pull the N flush with the gutter */
  margin-left: -0.045em;
}
.lede {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 500;
  font-stretch: 100%;
  line-height: 1.25;
  color: var(--text);
  text-wrap: balance;
}

/* drawing */
.drawing {
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.drawing-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.stage { position: relative; overflow: hidden; }
#bore { display: block; width: 100%; height: auto; }

.grid-line { stroke: var(--gold-faint); stroke-width: 0.5; opacity: 0.45; }
.ruler path { stroke: var(--gold-dim); stroke-width: 1; fill: none; }
.ruler text, .note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--gold-dim);
}
.strata path { fill: none; stroke: var(--gold-faint); stroke-width: 1; stroke-dasharray: 2 6; }
.strata #hatch path { stroke: var(--gold-dim); stroke-dasharray: none; opacity: 0.55; }
.ground { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.water path { fill: none; stroke: var(--gold-dim); stroke-width: 1; stroke-dasharray: 10 8; }
.design { fill: none; stroke: var(--gold-dim); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.8; }
.pilot { fill: none; stroke: var(--gold); stroke-width: 1.75; }
.conduit { fill: none; stroke: var(--gold-hi); stroke-width: 4.5; stroke-linecap: round; }
.conduit-tail { fill: none; stroke: var(--gold-hi); stroke-width: 3; stroke-linecap: round; }
.dim path { fill: none; stroke: var(--gold-dim); stroke-width: 1; }

.rig, .rig * { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.rig .solid { fill: var(--bg-2); }
.rig .string { stroke: var(--gold-hi); stroke-width: 2; }

.head .bit { fill: var(--gold-hi); stroke: none; }
.head .bit-teeth { stroke: var(--gold-hi); stroke-width: 2; fill: none; stroke-linecap: round; }
.ping { fill: none; stroke: var(--gold); stroke-width: 1; }
.locator path { stroke: var(--gold-dim); stroke-width: 1; fill: none; stroke-dasharray: 2 4; }
.locator #locMark { fill: var(--gold); stroke: none; }

/* readout */
.readout {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) repeat(3, minmax(90px, 1fr)) minmax(160px, 2fr);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}
.cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.cell:last-child { border-right: 0; }
.k { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); }
.v {
  font-size: 0.9375rem; font-weight: 500; color: var(--text);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.phase .v { color: var(--gold); }
.bar { display: block; height: 6px; margin-top: 8px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); }

/* about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(36px, 6vw, 72px) 0;
}
.statement {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}
.services {
  list-style: none; margin: 0; padding: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.services li {
  display: flex; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.services li:first-child { border-top: 1px solid var(--line); }
.services li::before { content: "\2014"; color: var(--gold); }

/* footer */
.foot {
  margin-top: auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.foot p { margin: 0; }

@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .readout { grid-template-columns: 1fr 1fr 1fr; }
  .readout .phase { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .readout .grow { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .readout .cell:nth-child(4) { border-right: 0; }
  .drawing-head span:last-child { display: none; }
  .about { grid-template-columns: 1fr; }
}

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

/* narrow camera: the drawing is shown at a larger scale, so keep labels legible */
#bore.narrow .note, #bore.narrow .ruler text { font-size: 15px; }
