/* Tenth Labs
   Palette comes from the layout bench: ground steel, a granite plate,
   Dykem layout blue, scribed lines, and a little brass. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --steel: #e4e8ec;
  --plate: #f6f8f9;
  --ink: #12161c;
  --ink-soft: #454d58;
  --dykem: #1b3a94;
  --dykem-deep: #122a6e;
  --scribe: #d9e3ff;
  --brass: #b08a3c;
  --rule: #c3cad1;

  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4rem, 9vw, 7.5rem);
  --chamfer: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--plate); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { top: .75rem; }

/* ---- Type ---- */
h1, h2 {
  font-stretch: 118%;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-stretch: 110%; font-weight: 650; font-size: 1.3rem; line-height: 1.2; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dykem);
  margin-bottom: 1.5rem;
}
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: 34em; }
.intro { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }

/* ---- Header ---- */
.top { padding-block: 1.25rem; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.mark {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none;
  font-stretch: 125%; font-weight: 750; font-size: 1.02rem;
  letter-spacing: .09em; text-transform: uppercase;
}
.mark__scale { width: 26px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.mark__tenth { stroke: var(--brass); stroke-width: 3; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__link { text-decoration: none; font-size: .95rem; font-weight: 500; padding-block: .4rem; }
.nav__link:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
@media (max-width: 48rem) { .nav__link { display: none; } }

/* ---- Buttons and links ---- */
.btn {
  display: inline-block;
  padding: .95rem 1.6rem;
  color: #fff;
  font-weight: 600; font-stretch: 108%;
  text-decoration: none;
  /* one broken edge, like a deburred part */
  background: linear-gradient(-45deg, transparent var(--chamfer), var(--dykem) 0);
  background-size: 100% 100%;
  filter: none;
  transition: background-color .15s;
}
.btn:hover { background-image: linear-gradient(-45deg, transparent var(--chamfer), var(--dykem-deep) 0); }
.btn--small { padding: .55rem 1.1rem; font-size: .95rem; --chamfer: 9px; }

.link { font-weight: 600; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.link:hover { color: var(--dykem); }

/* ---- Hero ---- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) var(--band); }
.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
.hero__copy h1 { margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2.5rem; }

/* The blued plate: Dykem with scribed centrelines through the dial centre. */
.plate {
  position: relative;
  background: var(--dykem);
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  clip-path: polygon(0 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 0 100%);
  display: grid; gap: 1.75rem;
  isolation: isolate;
}
.plate::before, .plate::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; opacity: .55;
}
/* chain line: long dash, short dash */
.plate::before {
  left: 0; right: 0; height: 1px;
  top: calc(clamp(1.5rem, 3vw, 2.5rem) + (100cqw - 2 * clamp(1.5rem, 3vw, 2.5rem)) / 2);
  background: repeating-linear-gradient(90deg, var(--scribe) 0 28px, transparent 28px 34px, var(--scribe) 34px 40px, transparent 40px 46px);
}
.plate::after {
  top: 0; bottom: 0; width: 1px; left: 50%;
  background: repeating-linear-gradient(0deg, var(--scribe) 0 28px, transparent 28px 34px, var(--scribe) 34px 40px, transparent 40px 46px);
}
.plate { container-type: inline-size; }

.dial { display: block; width: 100%; max-width: 25rem; margin-inline: auto; height: auto; }
.dial-face { fill: #fbfcfc; }
.dial-tick { stroke: var(--ink); stroke-width: 1.1; }
.dial-tick--major { stroke-width: 2.4; }
.dial-num { font-family: var(--mono); font-size: 21px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.dial-label { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--ink-soft); text-anchor: middle; letter-spacing: .04em; }
.dial-tenth { fill: var(--brass); }
.dial-needle path { fill: var(--ink); }
.dial-hub { fill: var(--brass); stroke: #7d6226; stroke-width: 1; }

.plate__note { font-size: 1rem; line-height: 1.5; color: var(--scribe); background: var(--dykem); padding-top: .25rem; }
.plate__dim {
  display: block; margin-bottom: .5rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .03em; color: #fff;
}

@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .dial { max-width: 20rem; }
}

/* ---- Bands ---- */
.band { padding-block: var(--band); }
.band--plate { background: var(--plate); }
.band--dykem { background: var(--dykem); color: #fff; }

/* ---- Why on-site ---- */
.why { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.why__copy h2 { margin-bottom: 1.75rem; }
.why__copy p { color: var(--ink-soft); font-size: 1.1rem; }
.why__copy p + p { margin-top: 1.1rem; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 2.25rem clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.point { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.point h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.point p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 62rem) { .why { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .points { grid-template-columns: 1fr; } }

/* ---- What we build ---- */
.lines { margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--ink); }
.line {
  display: grid; gap: .75rem 3rem;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
.line h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); grid-row: span 3; max-width: 14em; }
.line p { max-width: 38em; grid-column: 2; }
.line .line__eg { margin-top: .5rem; }
.line__eg { font-family: var(--mono); font-size: .78rem; line-height: 1.7; color: var(--ink-soft); }
.line__eg span { color: var(--dykem); font-weight: 600; margin-right: .6em; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 48rem) {
  .line { grid-template-columns: 1fr; }
  .line h3 { grid-row: auto; }
  .line p { grid-column: auto; }
}

/* ---- How we work: a real sequence, so it is numbered ---- */
.steps {
  counter-reset: step;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.step { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.step::before {
  content: counter(step);
  display: block;
  font-stretch: 125%; font-weight: 300; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1;
  color: var(--dykem);
  margin-bottom: 1.25rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-soft); }
@media (max-width: 68rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .steps { grid-template-columns: 1fr; } }

/* ---- Terms ---- */
.terms {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.term dt { font-stretch: 110%; font-weight: 650; font-size: 1.2rem; line-height: 1.25; margin-bottom: .75rem; padding-left: .9rem; border-left: 4px solid var(--dykem); }
.term dd { color: var(--ink-soft); }
.term abbr { text-decoration: none; font-weight: 500; }
@media (max-width: 56rem) { .terms { grid-template-columns: 1fr; max-width: 38em; } }

/* ---- About ---- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.about__copy h2 { margin-bottom: 1.75rem; }
.about__copy p { max-width: 36em; }
.about__copy p + p { margin-top: 1.1rem; }

.spec { background: var(--plate); border-top: 4px solid var(--dykem); padding: .5rem 1.5rem; }
.spec > div { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .3rem; }
.spec dd { font-weight: 600; line-height: 1.35; }
@media (max-width: 56rem) { .about { grid-template-columns: 1fr; } }

/* ---- Contact ---- */
.contact h2 { max-width: 16em; }
.contact p { margin-top: 1.25rem; font-size: 1.15rem; color: var(--scribe); max-width: 36em; }
.contact__mail {
  display: inline-block; margin-top: 2.25rem;
  font-stretch: 112%; font-weight: 650; font-size: clamp(1.4rem, 4.2vw, 2.75rem);
  text-decoration-color: var(--brass); text-decoration-thickness: 3px; text-underline-offset: .22em;
  overflow-wrap: anywhere;
}
.contact__mail:hover { text-decoration-color: #fff; }

/* ---- Footer ---- */
.foot { background: var(--dykem-deep); color: var(--scribe); padding-block: 1.75rem; font-size: .9rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
