/* Specimen – the company as a type-foundry specimen.
   Anybody (variable weight 100–900, width 50–150) + DM Mono; black on white, one ultramarine. */

:root {
  --bg: #ffffff;
  --ink: #0b0b0d;
  --ink-2: #55565c;
  --line: #d9d9de;
  --accent: #2a1fd6;
  --font-body: "Anybody", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Anybody", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --rule: 1px solid var(--ink);
}

body { font-size: 1.0625rem; font-stretch: 100%; font-weight: 400; line-height: 1.55; }
h1, h2, h3 { font-weight: 400; }
::selection { background: var(--accent); color: #fff; }
.sp-mono { font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; line-height: 1.45; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */
.sp-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.1rem var(--gutter);
  border-bottom: var(--rule);
}
.sp-brand { display: flex; align-items: baseline; gap: .9rem; text-decoration: none; }
.sp-brand__name { font-size: 1.55rem; font-stretch: 150%; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.sp-brand__sub { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-2); }
.sp-nav { display: flex; justify-content: center; gap: .3rem 2rem; flex-wrap: wrap; }
.sp-nav a { text-decoration: none; font-size: .9375rem; font-stretch: 110%; padding: .2rem 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.sp-nav a:hover { background-size: 100% 1px; color: var(--accent); }
.sp-lang { display: inline-flex; border: var(--rule); border-radius: 999px; padding: 3px; text-decoration: none; font-family: var(--font-mono); font-size: .75rem; }
.sp-lang span, .sp-lang b { padding: .3rem .6rem; border-radius: 999px; font-weight: 400; }
.sp-lang span { background: var(--ink); color: #fff; }
.sp-lang:hover b { color: var(--accent); }

/* ---------- hero ---------- */
.sp-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-bottom: var(--rule);
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  max-height: 60rem;
}
.sp-glyph {
  position: relative;
  border-right: var(--rule);
  overflow: hidden;
  display: grid;
  place-items: center;
  container-type: size;
  min-height: 26rem;
}
.sp-glyph__g {
  font-size: min(78cqh, 92cqw);
  font-weight: 340;
  font-stretch: 100%;
  line-height: 1;
  position: relative;
  z-index: 1;
  translate: 0 -2%;
}
.sp-metric {
  position: absolute; left: 0; right: 0;
  border-top: 1px solid var(--accent);
  top: var(--y);
}
.sp-metric i {
  position: absolute; left: .75rem; top: .25rem;
  font: normal .6875rem/1 var(--font-mono); color: var(--accent);
}
/* positions are relative to the glyph box (font-size = 78cqh, centred) */
.sp-glyph { --fs: min(78cqh, 92cqw); }
.sp-metric--asc  { --y: calc(50% - var(--fs) * .49); border-top-style: dashed; }
.sp-metric--cap  { --y: calc(50% - var(--fs) * .425); }
.sp-metric--x    { --y: calc(50% - var(--fs) * .255); border-top-style: dashed; }
.sp-metric--base { --y: calc(50% + var(--fs) * .262); border-top-width: 2px; }
.sp-metric--desc { --y: calc(50% + var(--fs) * .44); border-top-style: dashed; }
.sp-bearing { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.sp-bearing--l { left: calc(50% - var(--fs) * .31); }
.sp-bearing--r { left: calc(50% + var(--fs) * .28); }
.sp-glyph__tag { position: absolute; right: .9rem; bottom: .8rem; font: .75rem/1 var(--font-mono); color: var(--ink-2); }

.sp-hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 4vw, 4rem) var(--gutter);
  min-width: 0;
}
.sp-hero__family { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.sp-hero__family > span:first-child { font-stretch: 150%; font-weight: 600; font-size: 1rem; }
.sp-hero__family .sp-mono { color: var(--ink-2); }

.sp-tgl { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.sp-tester { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0 1.25rem; }
.sp-tester__label { color: var(--ink-2); margin-right: .25rem; }
.sp-tester label {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem .35rem .4rem; border: 1px solid var(--ink); border-radius: 999px;
  font-size: .8125rem; cursor: pointer; user-select: none;
  transition: background-color .2s, color .2s;
}
.sp-tester label b {
  font: 400 .6875rem/1 var(--font-mono);
  padding: .3rem .45rem; border-radius: 999px; background: #eeeef2;
}
.sp-tester label:hover { border-color: var(--accent); color: var(--accent); }
#sp-ital:checked ~ .sp-tester label[for="sp-ital"],
#sp-wdth:checked ~ .sp-tester label[for="sp-wdth"],
#sp-wght:checked ~ .sp-tester label[for="sp-wght"] { background: var(--accent); border-color: var(--accent); color: #fff; }
#sp-ital:checked ~ .sp-tester label[for="sp-ital"] b,
#sp-wdth:checked ~ .sp-tester label[for="sp-wdth"] b,
#sp-wght:checked ~ .sp-tester label[for="sp-wght"] b { background: #fff; color: var(--accent); }

.sp-hero__title {
  font-size: clamp(2.75rem, 6.2vw, 6.4rem);
  font-weight: 450;
  font-stretch: 88%;
  letter-spacing: -0.035em;
  line-height: .98;
  transition: font-stretch .5s, font-weight .5s;
}
#sp-ital:checked ~ .sp-hero__title { font-style: italic; }
#sp-wdth:checked ~ .sp-hero__title { font-stretch: 135%; font-size: clamp(2.2rem, 4.6vw, 4.8rem); }
#sp-wght:checked ~ .sp-hero__title { font-weight: 160; }
.sp-hero__lead { margin-top: 1.75rem; max-width: 36rem; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); color: var(--ink-2); }
.sp-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.sp-btn {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .95rem 1.5rem; background: var(--ink); color: #fff; text-decoration: none;
  font-stretch: 115%; font-weight: 500; border-radius: 999px;
  transition: background-color .25s;
}
.sp-btn:hover { background: var(--accent); }
.sp-hero__phone { font-family: var(--font-mono); font-size: .9375rem; text-underline-offset: .3em; }

/* ---------- weight ladder ---------- */
.sp-ladder { padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(2rem, 5vw, 4rem); border-bottom: var(--rule); }
.sp-ladder__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--ink-2); margin-bottom: 1.5rem; }
.sp-ladder__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }
.sp-ladder__list li { display: grid; gap: .1rem; padding: 1rem 0 1.25rem; border-top: 1px solid var(--line); }
.sp-ladder__list .sp-mono { color: var(--ink-2); }
.sp-ladder__list li > span:last-child { font-size: clamp(2rem, 4.3vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.sp-w1 { font-weight: 100; font-stretch: 70%; } .sp-w2 { font-weight: 200; font-stretch: 78%; } .sp-w3 { font-weight: 300; font-stretch: 86%; }
.sp-w4 { font-weight: 400; font-stretch: 94%; } .sp-w5 { font-weight: 500; font-stretch: 100%; color: var(--accent); } .sp-w6 { font-weight: 600; font-stretch: 104%; }
.sp-w7 { font-weight: 700; font-stretch: 108%; } .sp-w8 { font-weight: 800; font-stretch: 110%; } .sp-w9 { font-weight: 900; font-stretch: 112%; }
.sp-ladder__list li > span:last-child { white-space: nowrap; overflow: hidden; }

/* ---------- sections (shared) ---------- */
.sp-sec { padding: clamp(5rem, 10vw, 9rem) var(--gutter) 0; }
.sp-sec__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 4vw, 4rem);
  align-items: end; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: var(--rule);
}
.sp-h2 { font-size: clamp(1.1rem, 1.4vw, 1.25rem); font-weight: 500; font-stretch: 140%; letter-spacing: .01em; align-self: start; display: flex; align-items: center; gap: .7rem; }
.sp-h2::before { content: ""; width: .7rem; height: .7rem; background: var(--accent); }
.sp-sec__intro { font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.25; letter-spacing: -0.015em; font-stretch: 90%; max-width: 40ch; }
.sp-h3 { font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 400; letter-spacing: -0.03em; margin-bottom: 1rem; }

/* services: specimen lines */
.sp-line { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0 2rem; padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.sp-line__size { color: var(--accent); padding-top: .6rem; }
.sp-line__name { font-weight: 300; letter-spacing: -0.045em; line-height: 1; hyphens: manual; overflow-wrap: anywhere; }
.sp-line--1 .sp-line__name { font-size: clamp(2.6rem, 8.3vw, 7.5rem); font-stretch: 80%; }
.sp-line--2 .sp-line__name { font-size: clamp(2.3rem, 5.8vw, 5.25rem); font-stretch: 110%; font-weight: 350; }
.sp-line--3 .sp-line__name { font-size: clamp(2rem, 4.2vw, 3.75rem); font-stretch: 140%; font-weight: 400; }
.sp-line__body { grid-column: 2; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.sp-line__body > p:first-child { max-width: 58ch; font-size: 1.125rem; }
.sp-line__body--cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 4vw, 4rem); }
.sp-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; border: var(--rule); }
.sp-cells li { display: grid; align-content: start; gap: .35rem; padding: 1.25rem 1.25rem 1.5rem; }
.sp-cells li + li { border-left: var(--rule); }
.sp-cells__g { font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 200; line-height: 1; margin-bottom: .75rem; font-stretch: 100%; }
.sp-cells li:hover .sp-cells__g { color: var(--accent); font-weight: 700; }
.sp-cells__g { transition: font-weight .4s, color .3s; }
.sp-cells strong { font-weight: 600; font-size: 1.125rem; hyphens: manual; }
.sp-cells span:last-child { color: var(--ink-2); font-size: .9688rem; hyphens: auto; }
.sp-note { margin-top: 1.25rem; color: var(--ink-2); }
.sp-list { display: grid; }
.sp-list li { padding: .6rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); }
.sp-list li::before { content: "–"; color: var(--accent); }
.sp-list li:last-child { border-bottom: 1px solid var(--line); }

/* approach: waterfall */
.sp-fall { border-bottom: var(--rule); }
.sp-fall__row {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 22rem); gap: .5rem 2rem;
  align-items: baseline; padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-bottom: 1px solid var(--line);
}
.sp-fall__row:last-child { border-bottom: 0; }
.sp-fall__meta { color: var(--accent); }
.sp-fall__name { font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-stretch: 100%; }
.sp-fall__row--1 .sp-fall__name { font-size: clamp(2.6rem, 6.7vw, 6rem); }
.sp-fall__row--2 .sp-fall__name { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.sp-fall__row--3 .sp-fall__name { font-size: clamp(1.9rem, 3.9vw, 3.5rem); }
.sp-fall__row--4 .sp-fall__name { font-size: clamp(1.7rem, 3vw, 2.75rem); }
.sp-fall__row p { color: var(--ink-2); hyphens: auto; }

.sp-small { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); padding-top: clamp(4rem, 8vw, 6rem); align-items: start; }
.sp-small__text > p { max-width: 58ch; }
.sp-small__text > p + p { margin-top: 1rem; }
.sp-charset { border: var(--rule); }
.sp-charset__head { display: flex; justify-content: space-between; padding: .6rem .8rem; border-bottom: var(--rule); }
.sp-charset__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.sp-charset__grid span {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: clamp(1.1rem, 2.1vw, 1.9rem); font-weight: 300;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sp-charset__grid span:nth-child(8n) { border-right: 0; }
.sp-charset__grid span:nth-last-child(-n+8) { border-bottom: 0; }
.sp-charset__grid .is-on { background: var(--accent); color: #fff; font-weight: 600; }
.sp-faq__title { margin-top: 3rem; margin-bottom: .75rem; color: var(--ink-2); text-transform: none; }
.sp-faq { border-top: var(--rule); }
.sp-faq details { border-bottom: 1px solid var(--line); }
.sp-faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline;
  padding: 1.1rem 0; font-size: 1.125rem; font-weight: 500; line-height: 1.35;
}
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.25rem; color: var(--accent); }
.sp-faq details[open] summary::after { content: "–"; }
.sp-faq summary:hover { color: var(--accent); }
.sp-faq details p { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 60ch; }

/* products: families */
.sp-fam { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: .75rem clamp(2rem, 5vw, 5rem); padding: clamp(2rem, 4vw, 3.25rem) 0; border-bottom: 1px solid var(--line); align-items: end; }
.sp-fam__styles { grid-column: 1 / -1; color: var(--accent); }
.sp-fam__name { font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -0.04em; hyphens: manual; overflow-wrap: anywhere; }
.sp-fam--1 .sp-fam__name { font-stretch: 55%; font-weight: 300; font-size: clamp(3rem, 9vw, 8.5rem); }
.sp-fam--2 .sp-fam__name { font-stretch: 145%; font-weight: 400; font-size: clamp(2.4rem, 6vw, 5.5rem); }
.sp-fam--3 .sp-fam__name { font-style: italic; font-weight: 500; font-stretch: 85%; font-size: clamp(2.2rem, 4.8vw, 4.4rem); }
.sp-fam__info p:first-child { hyphens: auto; }
.sp-fam__meta { margin-top: .75rem; color: var(--ink-2); }
.sp-link { display: inline-flex; margin-top: 1.25rem; padding: .6rem 1.1rem; border: var(--rule); border-radius: 999px; text-decoration: none; font-weight: 500; font-stretch: 110%; transition: background-color .2s, color .2s, border-color .2s; }
.sp-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* contact */
.sp-contact { padding-bottom: clamp(5rem, 10vw, 9rem); }
.sp-contact__tag { display: flex; align-items: center; gap: .7rem; padding-bottom: 1.5rem; border-bottom: var(--rule); margin-bottom: clamp(2rem, 4vw, 3rem); font-size: .875rem; }
.sp-contact__tag::before { content: ""; width: .7rem; height: .7rem; background: var(--accent); }
.sp-contact__title { font-size: clamp(2.6rem, 6.5vw, 6rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1; max-width: 16ch; }
.sp-contact__lead { margin-top: 1.5rem; max-width: 50ch; font-size: 1.1875rem; color: var(--ink-2); }
.sp-contact__mail { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1rem, 2vw, 1.5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sp-contact__mail a { font-size: clamp(1.5rem, 5.6vw, 5.5rem); font-stretch: 70%; font-weight: 300; letter-spacing: -0.03em; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; line-height: 1.05; display: inline-block; transition: font-weight .4s; }
.sp-contact__mail a:hover { font-weight: 600; }
.sp-contact__dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2rem; }
.sp-contact__dl dt { color: var(--ink-2); margin-bottom: .4rem; }
.sp-contact__dl a { text-underline-offset: .2em; }

/* ---------- footer ---------- */
.sp-foot { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; overflow: hidden; }
.sp-foot__mark { font-size: clamp(4rem, 15.5vw, 15.5rem); font-weight: 100; font-stretch: 150%; letter-spacing: -0.05em; line-height: .8; white-space: nowrap; margin-left: -0.05em; }
.sp-foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 1.5rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .35); font-size: .9375rem; }
.sp-foot__label { font-family: var(--font-mono); font-size: .75rem; color: #a9abb8; margin-bottom: .4rem; }
.sp-foot__links { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.sp-foot a { text-underline-offset: .25em; }
.sp-foot a:hover { color: #9d97ff; }
.sp-foot a:focus-visible { outline-color: #fff; }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 0; border-bottom: var(--rule); }
.legal::before { content: "§"; display: grid; place-items: center; align-self: start; position: sticky; top: 0; height: min(100vh, 52rem); font-size: clamp(10rem, 24vw, 22rem); font-weight: 200; line-height: 1; color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 50% / 100% 1px no-repeat; }
.legal__inner { border-left: var(--rule); margin: 0; padding: clamp(3rem, 6vw, 5rem) var(--gutter); max-width: 48rem; }
.legal h1 { font-weight: 300; letter-spacing: -0.045em; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.legal h2 { font-weight: 500; font-stretch: 120%; font-size: 1.125rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.legal a { color: var(--accent); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sp-hero__title, .sp-cells__g, .sp-contact__mail a, .sp-nav a, .sp-tester label, .sp-btn, .sp-link { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .sp-top { grid-template-columns: 1fr auto; }
  .sp-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .sp-fall__row { grid-template-columns: 6rem minmax(0, 1fr); }
  .sp-fall__row p { grid-column: 2; }
  .sp-line { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sp-hero { grid-template-columns: minmax(0, 1fr); max-height: none; min-height: 0; }
  .sp-glyph { border-right: 0; border-bottom: var(--rule); height: 22rem; min-height: 0; order: 2; }
  .sp-sec__head, .sp-small, .sp-fam, .legal { grid-template-columns: minmax(0, 1fr); }
  .legal::before { display: none; }
  .legal__inner { border-left: 0; }
  .sp-ladder__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-ladder__list li:nth-child(9) { display: none; }
  .sp-line__body--cols { grid-template-columns: minmax(0, 1fr); }
  .sp-cells { grid-template-columns: minmax(0, 1fr); }
  .sp-cells li + li { border-left: 0; border-top: var(--rule); }
  .sp-cells li { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1rem; }
  .sp-cells__g { grid-row: 1 / span 2; font-size: 3rem; margin: 0; }
  .sp-contact__dl { grid-template-columns: minmax(0, 1fr); }
  .sp-foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sp-brand { flex-direction: column; gap: .3rem; }
  .sp-nav { gap: .2rem 1.1rem; }
  .sp-line, .sp-fall__row { grid-template-columns: minmax(0, 1fr); }
  .sp-line__size, .sp-fall__meta { padding: 0 0 .5rem; }
  .sp-line__body, .sp-fall__row p { grid-column: 1; }
  .sp-fall__meta br { display: none; }
  .sp-ladder__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; }
  .sp-ladder__list li > span:last-child { font-size: 1.75rem; }
  .sp-charset__grid span { font-size: 1.15rem; }
  .sp-foot__grid { grid-template-columns: minmax(0, 1fr); }
}

.legal h1 { hyphens: auto; -webkit-hyphens: auto; }
