/* Morrow Type. Paper, ink and one cobalt. Square corners; only slider thumbs are round. */

@font-face { font-family: "Squall"; src: url(../fonts/squall-var.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Fogbank"; src: url(../fonts/fogbank-var.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Gale"; src: url(../fonts/gale-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Drizzle"; src: url(../fonts/drizzle-var.woff2) format("woff2"); font-weight: 300 1000; font-display: swap; }
@font-face { font-family: "Hailstone"; src: url(../fonts/hailstone-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Thaw"; src: url(../fonts/thaw-var.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #f4f1ea;
  --ink: #111111;
  --accent: #3a5bff;
  --sand: #e9e3d6;
  --muted: #57534b;
  --rule: rgba(17, 17, 17, 0.16);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --pad: clamp(20px, 4vw, 64px);
  /* section rhythm: three steps, nothing in between */
  --s-1: clamp(40px, 5vw, 64px);
  --s-2: clamp(56px, 7vw, 104px);
  --s-3: clamp(72px, 9vw, 136px);
  --ui: "Squall", system-ui, sans-serif;
  --data: "Drizzle", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  /* fine paper grain, behind everything */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 0 0.04 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
picture { display: block; }
figure { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 var(--pad); }
.data { font-family: var(--data); font-variation-settings: "MONO" 1, "CASL" 0; font-weight: 500; }
.nowrap { white-space: nowrap; }
.small { font-size: 15px; color: var(--muted); max-width: 62ch; }
.small a { color: var(--ink); text-underline-offset: 3px; transition: color 160ms var(--ease); display: inline-block; padding: 7px 0; margin: -7px 0; }
.small a:hover, .contact a:hover { color: var(--accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* family faces */
.f-squall { font-family: "Squall", system-ui, sans-serif; }
.f-fogbank { font-family: "Fogbank", Georgia, serif; }
.f-gale { font-family: "Gale", system-ui, sans-serif; }
.f-drizzle { font-family: "Drizzle", ui-monospace, monospace; }
.f-hailstone { font-family: "Hailstone", "Arial Narrow", sans-serif; }
.f-thaw { font-family: "Thaw", system-ui, sans-serif; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[contenteditable]:focus-visible { outline: 2px dashed var(--accent); outline-offset: 8px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 20; }
.skip:focus { top: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color 160ms var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn--full { width: 100%; }
.btn-quiet {
  min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--ink);
  font: 600 15px/1 var(--ui);
  border: 1.5px solid var(--ink); cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(244, 241, 234, 0.94); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-size: 22px; font-weight: 750; letter-spacing: -0.01em; font-variation-settings: "wdth" 80; }
.brand span { font-weight: 350; font-variation-settings: "wdth" 100; transition: font-weight 220ms var(--ease); }
.brand:hover span { font-weight: 750; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 0; transition: color 160ms var(--ease); }
.nav a:hover { color: var(--accent); }
.nav__cta { padding: 9px 16px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: background-color 160ms var(--ease); }
.nav__cta:hover { background: var(--accent); color: #fff; }

/* hero / tester */
.hero { padding: clamp(24px, 3.4vw, 44px) 0 clamp(20px, 2.4vw, 32px); }
.hero__intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 20px 48px; align-items: end; }
.hero__intro h1 { font-size: clamp(22px, 2.1vw, 32px); font-weight: 560; line-height: 1.15; max-width: 22ch; letter-spacing: -0.005em; }
.hero__sub { color: var(--muted); max-width: 46ch; }

.tester { margin-top: clamp(20px, 2.6vw, 36px); }
/* the stage reads like the head of a specimen sheet: a ruled band, a line of live axis values, then the line itself */
.tester__stage {
  position: relative;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 clamp(14px, 2vw, 24px);
  min-height: 160px;
  display: flex; flex-direction: column;
}
.tester__meta {
  display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  font-size: 13px; line-height: 1.4; color: var(--muted);
  margin-bottom: clamp(8px, 1.4vw, 16px);
}
.tester__axes { display: inline-flex; flex-wrap: wrap; gap: 0 1.1em; }
.tester__axes span:first-child { color: var(--ink); }
.tester__force { color: var(--ink); }
.tester__line {
  width: 100%;
  margin-block: auto;
  font-family: "Squall", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500, "wdth" 90;
  font-size: clamp(44px, 17vh, 160px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: pre-wrap;
  text-wrap: balance;
  caret-color: var(--accent);
  padding-bottom: 0.04em;
  outline-offset: 10px;
  cursor: text;
}
.tester__line:hover { text-decoration: underline 1px var(--rule); text-underline-offset: 0.12em; }
.tester__line:focus { text-decoration: none; }
/* typing caret: a word-joiner with a border, so it never wraps onto its own line */
.tester__line.is-typing::after {
  content: "\2060"; border-right: 0.035em solid var(--accent); margin-right: -0.035em; padding-left: 0.03em;
}
.tester__line[data-family="fogbank"] { letter-spacing: -0.01em; }
.tester__line[data-family="hailstone"] { letter-spacing: 0; }
.tester__line[data-family="thaw"] { letter-spacing: -0.02em; }

.tester__bar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  grid-template-areas: "fam wx wx" "wght size act";
  gap: 14px 48px; align-items: end;
  padding: 16px 0 0;
}
#hero-families { grid-area: fam; }
#hero-weather { grid-area: wx; }
.tester__actions { grid-area: act; display: flex; gap: 8px; }
.slider--w { grid-area: wght; }
.slider--s { grid-area: size; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { width: 100%; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; float: left; }
.wx__hint { font-weight: 400; margin-left: 0.4em; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 11px;
  font-size: 17px; line-height: 1; border: 1.5px solid var(--rule); background: transparent;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.chip:hover > span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
/* weather chips: each label is set in the current family at that preset, so the row is a small forecast of the face */
.chip--wx b { font-weight: inherit; letter-spacing: -0.01em; }
.chip--wx small { font-size: 12px; color: var(--muted); transition: color 140ms var(--ease); }
.chip--wx input:checked + span small { color: rgba(244, 241, 234, 0.7); }

.slider { display: grid; grid-template-columns: 4em minmax(0, 1fr) 4.6em; align-items: center; gap: 12px; }
.slider label { font-size: 15px; font-weight: 600; }
.slider output { font-size: 15px; text-align: left; color: var(--muted); }

/* range inputs */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-width: 0; height: 32px; margin: 0; background: transparent; cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; background: linear-gradient(to right, var(--accent) 0 var(--fill), rgba(17,17,17,.2) var(--fill) 100%);
}
input[type="range"]::-moz-range-track { height: 4px; background: rgba(17,17,17,.2); }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 999px;
  background: var(--paper); border: 2.5px solid var(--ink);
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 999px; background: var(--paper); border: 2.5px solid var(--ink); }
input[type="range"]:hover::-webkit-slider-thumb { border-color: var(--accent); }
input[type="range"]:hover::-moz-range-thumb { border-color: var(--accent); }
input[type="range"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type="range"]:active::-webkit-slider-thumb { background: var(--accent); border-color: var(--accent); }


/* families */
.families { padding: var(--s-2) 0; }
/* same 4/8 split as the family rows, so the field sits over the samples */
.families__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(24px, 4vw, 44px); }
.families__head h2, .specimens h2, .inuse h2, .about h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.015em; font-weight: 540; }
.news { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 40ch; }
.news time { color: var(--ink); font-weight: 600; }
/* a rubber stamp, set slightly crooked like one pressed by hand */
.stamp {
  display: inline-block; margin-right: 6px; padding: 1px 7px 2px; transform: rotate(-2.5deg);
  border: 1.5px solid var(--accent); color: var(--accent);
  font: 600 12px/1.4 var(--data); font-variation-settings: "MONO" 1, "CASL" 0.6; text-transform: uppercase; letter-spacing: 0.04em;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 18px/1.2 var(--ui); color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 0;
}
.field input::placeholder { color: #6b675f; }
.field input:hover { border-color: var(--accent); }
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }

.fam-list { list-style: none; margin: 0; padding: 0; }
.fam {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 48px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1.5px solid var(--ink);
}
.fam:last-child { border-bottom: 1.5px solid var(--ink); }
.fam__name { font-size: clamp(32px, 3vw, 42px); font-weight: 520; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 10px; }
.fam__name.f-gale { font-variation-settings: "wdth" 110; }
.fam__name.f-hailstone { letter-spacing: 0.01em; }
.fam__desc { color: var(--muted); max-width: 44ch; margin-bottom: 14px; }
.specs { margin: 0; display: grid; gap: 4px; font-size: 15px; }
.specs div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.fam__try { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.sample {
  font-size: 64px; line-height: 1.08; overflow-wrap: anywhere; min-height: 1.1em;
  caret-color: var(--accent); white-space: pre-wrap; cursor: text;
}
.sample:hover { text-decoration: underline 1px var(--rule); text-underline-offset: 0.14em; }
.sample:focus { text-decoration: none; }
.mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.mini label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.mini input[type="range"] { width: 104px; }
.licence-link { margin-left: auto; font-size: 15px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; padding: 8px 0; transition: color 160ms var(--ease); }
.licence-link:hover { color: var(--accent); }

/* specimens */
.specimens { padding: var(--s-2) 0; background: var(--sand); }
.specimens__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.specimens__poster { position: sticky; top: 88px; }
.specimens__poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.specimens__poster figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.lead { font-size: 19px; max-width: 46ch; margin: 16px 0 24px; }
.chips--tabs { margin-bottom: 20px; }
.chip-btn {
  min-height: 40px; padding: 6px 12px; font-size: 18px; line-height: 1; color: var(--ink);
  background: transparent; border: 1.5px solid rgba(17,17,17,.22); cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--sand); border-color: var(--ink); }

.glyphs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 24px; justify-items: start; }
.glyphs > * { width: 100%; }
.glyphs > .glyph-more { width: auto; }
.glyph-view {
  position: relative; background: var(--paper); aspect-ratio: 16 / 7; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 14px;
}
.glyph-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 0; }
.g-cell { display: grid; justify-items: center; gap: 10px; min-width: 0; }
.g { font-size: clamp(56px, 6.4vw, 104px); line-height: 1.1; padding-bottom: 0.04em; max-width: 100%; }
.g-cell.is-max .g { color: var(--accent); }
.g-w { font-size: 13px; color: var(--muted); }
.glyph-view__cap { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.glyph-sets { display: grid; gap: 18px; }
.gset__label { font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.gset__label .data { font-weight: 500; margin-left: 6px; }
.glyph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 2px; align-content: start; }
.glyph-grid button {
  aspect-ratio: 1 / 1; min-width: 0; padding: 0; border: 0; cursor: pointer;
  background: rgba(244, 241, 234, 0.55); color: var(--ink);
  font: inherit; font-size: clamp(17px, 1.6vw, 22px); line-height: 1;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.glyph-grid button:hover { background: var(--paper); }
.glyph-grid button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.glyph-grid button:focus-visible { outline-offset: -3px; }

/* licences */
.licences { padding: var(--s-2) 0; }
.licences__title { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.015em; font-weight: 540; max-width: 14ch; margin-bottom: clamp(28px, 3.4vw, 44px); }
.licences__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 4vw, 56px); align-items: start; }
.price table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.price caption { text-align: left; caption-side: bottom; font-size: 15px; color: var(--muted); padding-top: 12px; }
.price thead th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1.5px solid var(--ink); }
.price tbody th, .price td { text-align: left; vertical-align: top; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--rule); }
.price tbody th { font-size: 20px; font-weight: 600; width: 34%; }
.price tbody th span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; max-width: 24ch; }
.price td span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.price td b { font-size: 24px; letter-spacing: -0.01em; }

.calc { background: var(--sand); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 22px; }
.calc h3 { font-size: 24px; font-weight: 560; line-height: 1.15; }
.calc legend { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.calc__fams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pick { position: relative; display: flex; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick span {
  flex: 1; display: flex; align-items: center; min-height: 44px; padding: 6px 10px; font-size: 18px; line-height: 1;
  border: 1.5px solid rgba(17,17,17,.24); background: var(--paper);
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.pick:hover span { border-color: var(--ink); }
.pick:hover input:checked + span { border-color: var(--ink); }
.pick input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.calc__row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 8px; }
.tick { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; cursor: pointer; }
/* 32px hit area around a 19px box */
.tick input {
  -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin: -6px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='6.75' y='6.75' width='18.5' height='18.5' rx='2' fill='%23f4f1ea' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") center / 32px 32px no-repeat;
}
.tick input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect x='6' y='6' width='20' height='20' rx='2' fill='%233a5bff'/%3E%3Cpath d='M10.5 16.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E"); }
.tick input:focus-visible { outline-offset: -4px; }
.tick:hover { color: var(--accent); }
.calc select {
  width: 100%; min-height: 44px; padding: 8px 36px 8px 12px; font: 400 16px/1.2 var(--ui); color: var(--ink);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid rgba(17,17,17,.3); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.calc select:hover { border-color: var(--ink); }
.calc select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc__row.is-off select { color: #6b675f; background-color: rgba(244, 241, 234, 0.5); }
.calc__out { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.calc__lines { font-size: 15px; color: var(--muted); min-height: 2.9em; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; }
.calc__total span { font-weight: 600; }
.calc__total output { font-size: clamp(40px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; font-variation-settings: "MONO" 0, "CASL" 0; font-weight: 600; }

/* in use */
.inuse { padding: var(--s-1) 0 var(--s-2); }
.inuse h2 { margin-bottom: clamp(24px, 4vw, 44px); }
.inuse__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.case figcaption { font-size: 15px; color: var(--muted); margin-top: 12px; max-width: 52ch; }
.case figcaption strong { color: var(--ink); font-weight: 600; }
.case--photo { grid-column: 1 / span 7; grid-row: span 2; }
.case--photo picture { overflow: hidden; }
.case--photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case--tide { grid-column: 8 / span 5; }
.case--kiln { grid-column: 8 / span 5; }
/* the photo spans both rows; the two set pieces take up whatever height it leaves */
.case--tide, .case--kiln { display: flex; flex-direction: column; }
.case--tide .tide, .case--kiln .kiln { flex: 1; }
.case--quote { grid-column: 1 / -1; margin: clamp(8px, 2vw, 24px) 0 0; padding-top: 4px; }
.case--quote p { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; max-width: 40ch; font-variation-settings: "opsz" 36; }
.case--quote footer { margin-top: 12px; font-size: 15px; color: var(--muted); }

.tide { background: var(--accent); color: #fff; padding: clamp(18px, 2vw, 26px); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tide__mast { font-size: clamp(40px, 4.4vw, 62px); line-height: 1; font-weight: 640; font-variation-settings: "wdth" 125; letter-spacing: 0; }
.tide__issue { font-size: 17px; line-height: 1.35; max-width: 30ch; font-variation-settings: "opsz" 14; }
.kiln { background: var(--sand); padding: clamp(18px, 2vw, 26px); min-height: 200px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.kiln__name { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
.kiln__menu { font-size: 14px; line-height: 1.6; font-weight: 400; }

/* about */
.about { padding: var(--s-2) 0; background: var(--sand); }
.about__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.about h2 { max-width: 16ch; margin-bottom: 24px; }
.about__text > p { max-width: 58ch; margin-bottom: 14px; font-size: 18px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.people h3 { font-size: 22px; font-weight: 560; line-height: 1.15; margin-bottom: 4px; }
.people p { color: var(--muted); font-size: 15px; }
.contact { font-style: normal; font-size: 17px; line-height: 1.6; }
.contact a { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; display: inline-block; padding: 6px 0; margin: -6px 0; }
.about__photo { overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* footer */
.foot { padding: var(--s-1) 0; }
.foot__in { display: grid; gap: 10px; justify-items: start; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.foot__nav a { text-decoration: none; padding: 6px 0; transition: color 160ms var(--ease); }
.foot__nav a:hover { color: var(--accent); }
.foot__meta { font-size: 14px; color: var(--muted); }

/* the two chip rows need their own lines below this */
@media (max-width: 1240px) {
  .tester__bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "fam fam fam" "wx wx wx" "wght size act"; gap: 14px 28px; }
}

/* tablet */
@media (max-width: 1080px) {
  .hero__intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__intro .btn { grid-column: 1 / -1; justify-self: start; }
  .glyphs { grid-template-columns: minmax(0, 1fr); }
  .glyph-view { aspect-ratio: 16 / 8; }
  .g { font-size: clamp(56px, 12vw, 120px); }
  .licences__grid { grid-template-columns: minmax(0, 1fr); }
}

/* phone: everything single column */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .top { position: relative; }
  .top__in { height: auto; min-height: 56px; flex-wrap: wrap; gap: 0 16px; padding-top: 10px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; font-size: 15px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav__cta { padding: 8px 12px; font-size: 15px; }
  html { scroll-padding-top: 16px; }
  .hero__intro { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tester__stage { min-height: 120px; }
  .tester__meta { font-size: 12px; }
  .tester__bar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fam" "wx" "wght" "size" "act"; gap: 16px; }
  .chip > span { font-size: 16px; min-height: 44px; padding: 6px 10px; }
  .wx__hint { display: block; margin: 2px 0 0; }
  .slider { grid-template-columns: 4em minmax(0, 1fr) 4.4em; }
  .families__head { grid-template-columns: minmax(0, 1fr); }
  /* phone: name, then the live sample, then the facts */
  .fam { display: flex; flex-direction: column; gap: 0; }
  .fam__meta { display: contents; }
  .fam__name { order: 1; }
  .fam__try { order: 2; gap: 14px; margin-bottom: 22px; }
  .fam__desc { order: 3; }
  .specs { order: 4; }
  .specs div { grid-template-columns: 4.2em minmax(0, 1fr); }
  .mini { gap: 4px 18px; }
  .mini label { width: 100%; justify-content: space-between; }
  .mini input[type="range"] { width: auto; flex: 1; max-width: 220px; }
  .licence-link { margin-left: 0; }
  .specimens__in { grid-template-columns: minmax(0, 1fr); }
  .specimens__poster { position: static; order: 2; }
  .specimens__poster img { aspect-ratio: 4 / 5; }
  .case--photo img { aspect-ratio: 4 / 3; }
  .about__photo img { aspect-ratio: 5 / 4; }
  .glyph-grid { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
  .glyph-grid button { font-size: 17px; }
  .glyph-view { aspect-ratio: 4 / 3; }
  .price thead { display: none; }
  .price table, .price tbody, .price tr { display: block; }
  .price tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .price tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 0 0 10px; }
  .price td { border: 0; padding: 0; }
  .price td b { font-size: 20px; }
  .price caption { display: block; }
  .calc__fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc__row { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-bottom: 12px; }
  .inuse__grid { grid-template-columns: minmax(0, 1fr); }
  .case--photo, .case--tide, .case--kiln, .case--quote { grid-column: 1; grid-row: auto; }
  .tide, .kiln { min-height: 0; }
  .tide { gap: 40px; }
  .about__in { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* wide screens: the hero owns the first screen; the stage takes the spare height */
@media (min-width: 768px) and (min-height: 640px) {
  .hero { min-height: calc(100svh - 65px); display: flex; flex-direction: column; }
  .hero > .wrap { flex: 1; display: flex; flex-direction: column; width: 100%; }
  .tester { flex: 1; display: flex; flex-direction: column; }
  .tester__stage { flex: 1; }
}

/* scroll-driven type: section heads gain weight as they come up, like the hero sweep, and the
   specimen rules draw in. Every start point is at the viewport edge (entry 0%) and nothing is
   held before or after its range, so content shows its normal state everywhere else. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .families__head h2, .specimens h2, .licences__title, .inuse h2, .about h2 {
      animation: build-weight linear none;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
    .fam { position: relative; border-top-color: transparent; }
    .fam::before {
      content: ""; position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--ink);
      transform-origin: left center;
      animation: draw-rule linear none;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .case--photo img, .about__photo img {
      animation: settle linear none;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
  }
}
@keyframes build-weight { from { font-weight: 300; } to { font-weight: 540; } }
@keyframes draw-rule { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }

@media print {
  .fam { border-top-color: var(--ink) !important; }
  .fam::before { display: none; }
}

/* Print drops background images, so the licence ticks fall back to native checkboxes there */
@media print {
  .tick input { -webkit-appearance: auto; appearance: auto; background: none; width: 16px; height: 16px; margin: 0; }
}
