@font-face {
  font-family: Anybody;
  src: url('/cafeaua-140/assets/fonts/Anybody.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/cafeaua-140/assets/fonts/AtkinsonHyperlegibleNext.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/cafeaua-140/assets/fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #14212b;
  --ink-soft: #3c5360;
  --paper: #f5f6ef;
  --paper-deep: #e1ebe6;
  --line: #a9b8b2;
  --water: #008ca8;
  --water-dark: #006377;
  --water-light: #b8e4e5;
  --coffee: #653527;
  --coffee-dark: #3b211b;
  --sun: #efb43b;
  --foam: #d8e9eb;
  --white: #fffefa;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 33, 43, 0.04) 1px, transparent 1px) 0 0 / 5rem 5rem,
    var(--paper);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: 1.08rem;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: 0.24;
  background: radial-gradient(circle at 15% 10%, rgba(0, 140, 168, 0.18), transparent 26rem);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--sun);
  color: var(--ink);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header a {
  text-decoration: none;
}

.site-header a:hover {
  color: var(--water-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 400;
}

.brand-mark {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--coffee);
  box-shadow: 0.3rem -0.3rem 0 var(--sun);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.language-link {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--ink);
}

.language-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero,
.section {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.92fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: min(48rem, calc(100vh - 4.5rem));
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 10vw, 9rem);
}

.kicker,
.section-kicker {
  margin: 0 0 1.2rem;
  color: var(--water-dark);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Anybody, sans-serif;
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 {
  max-width: 8.5ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 8.7vw, 8rem);
}

h2 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
  font-size: clamp(2.5rem, 5vw, 5.25rem);
}

h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}

.hero-deck,
.section-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.42;
}

.hero-deck {
  margin-bottom: 2rem;
}

.hero-data-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: baseline;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero-data-line strong {
  color: var(--coffee);
  font-family: Anybody, sans-serif;
  font-size: 1.7rem;
  letter-spacing: -0.06em;
}

.hero-visual {
  position: relative;
  min-height: 30rem;
}

.hero-visual::before {
  position: absolute;
  top: 4%;
  left: 50%;
  width: min(24rem, 70vw);
  height: min(24rem, 70vw);
  border: 1px solid rgba(0, 99, 119, 0.25);
  border-radius: 50%;
  content: '';
  transform: translateX(-50%);
}

.hero-visual::after {
  position: absolute;
  bottom: 7%;
  left: 10%;
  width: 80%;
  height: 1px;
  background: var(--line);
  content: '';
}

.water-column {
  position: absolute;
  right: 12%;
  bottom: 9%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  width: min(10rem, 25vw);
  height: 68%;
  padding: 0.55rem;
  border: 1px solid var(--water-dark);
  border-radius: 0.45rem 0.45rem 1.3rem 1.3rem;
  background: rgba(216, 233, 235, 0.6);
  box-shadow: 0.8rem 0.8rem 0 rgba(20, 33, 43, 0.07);
  transform: rotate(2deg);
}

.water-column::before {
  position: absolute;
  top: -0.9rem;
  left: 12%;
  width: 76%;
  height: 1rem;
  border: 1px solid var(--water-dark);
  border-bottom: 0;
  border-radius: 0.4rem 0.4rem 0 0;
  background: var(--water-light);
  content: '';
}

.water-fill {
  width: 100%;
  height: 88%;
  border-radius: 0.2rem 0.2rem 0.95rem 0.95rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 22%),
    var(--water);
}

.water-label {
  position: absolute;
  top: 28%;
  right: 38%;
  max-width: 9rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.73rem;
  line-height: 1.3;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.filter-assembly {
  position: absolute;
  bottom: 18%;
  left: 10%;
  width: min(17rem, 42vw);
  height: 12rem;
}

.filter-cone {
  position: absolute;
  top: 2%;
  left: 18%;
  width: 64%;
  height: 73%;
  clip-path: polygon(8% 0, 92% 0, 61% 100%, 39% 100%);
  background:
    radial-gradient(circle at 44% 30%, rgba(101, 53, 39, 0.8) 0 0.25rem, transparent 0.3rem),
    radial-gradient(circle at 62% 44%, rgba(101, 53, 39, 0.78) 0 0.22rem, transparent 0.28rem),
    radial-gradient(circle at 37% 57%, rgba(101, 53, 39, 0.7) 0 0.2rem, transparent 0.27rem),
    #d4c4a2;
  filter: drop-shadow(0.4rem 0.6rem 0 rgba(20, 33, 43, 0.12));
}

.filter-rim {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1.1rem;
  border: 2px solid var(--coffee-dark);
  border-radius: 50%;
  background: var(--coffee);
}

.filter-drip {
  position: absolute;
  right: 41%;
  bottom: 20%;
  width: 1.1rem;
  height: 2.7rem;
  border-radius: 0 0 50% 50%;
  background: var(--water);
}

.hero-cup,
.cup {
  position: absolute;
  bottom: 0;
  left: 4%;
  width: 45%;
  height: 4.8rem;
  border: 2px solid var(--coffee-dark);
  border-radius: 0.3rem 0.3rem 1.3rem 1.3rem;
  background: var(--white);
  box-shadow: 0.5rem 0.7rem 0 rgba(20, 33, 43, 0.1);
}

.hero-cup::before,
.cup::before {
  position: absolute;
  top: -0.65rem;
  left: -0.08rem;
  width: calc(100% + 0.16rem);
  height: 1.25rem;
  border: 2px solid var(--coffee-dark);
  border-radius: 50%;
  background: var(--coffee);
  content: '';
}

.hero-cup::after,
.cup::after {
  position: absolute;
  top: 0.12rem;
  right: -2.2rem;
  width: 2.5rem;
  height: 2.2rem;
  border: 2px solid var(--coffee-dark);
  border-left: 0;
  border-radius: 0 1.5rem 1.5rem 0;
  content: '';
}

.cup-label {
  position: absolute;
  bottom: -2.4rem;
  left: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.section {
  padding: clamp(4.5rem, 11vw, 10rem) 0;
  border-top: 1px solid var(--line);
}

.scale-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.scale-number {
  color: var(--water-dark);
  font-family: Anybody, sans-serif;
  font-size: clamp(7rem, 19vw, 17rem);
  font-weight: 700;
  letter-spacing: -0.11em;
  line-height: 0.72;
}

.scale-unit {
  display: block;
  margin-top: 1.25rem;
  color: var(--coffee);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-note,
.microcopy {
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.73rem;
  line-height: 1.5;
}

.brew-section {
  max-width: none;
  width: 100%;
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper);
}

.brew-section .section-kicker {
  color: var(--water-light);
}

.brew-section .section-intro {
  color: #b8c7c7;
}

.brew-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.controls {
  position: sticky;
  top: 2rem;
}

.control-group {
  margin: 0 0 2rem;
}

.control-label {
  display: block;
  margin-bottom: 0.8rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recipe-buttons {
  display: grid;
  gap: 0.45rem;
}

.recipe-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #54717a;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.recipe-button small {
  grid-column: 1 / -1;
  color: #9eb5b8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
}

.recipe-button:hover,
.recipe-button:focus-visible,
.recipe-button.is-active {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.recipe-button:hover small,
.recipe-button:focus-visible small,
.recipe-button.is-active small {
  color: var(--ink-soft);
}

.cups-control {
  display: grid;
  grid-template-columns: 1fr 4rem;
  gap: 1rem;
  align-items: center;
}

.cups-control input[type='range'] {
  width: 100%;
  accent-color: var(--sun);
}

.cups-value {
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid var(--sun);
  color: var(--sun);
  font-family: Anybody, sans-serif;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.control-hint {
  margin: 0.55rem 0 0;
  color: #9eb5b8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
}

.readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 2.5rem 0 1rem;
}

.readout-item {
  padding-top: 0.6rem;
  border-top: 1px solid #54717a;
}

.readout-item strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sun);
  font-family: Anybody, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.readout-item span {
  color: #a9c1c1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.summary {
  margin: 1.2rem 0 0;
  color: var(--paper);
  font-size: 1.08rem;
  line-height: 1.4;
}

.lab-object {
  position: relative;
  min-height: 38rem;
  padding: 2rem;
  border: 1px solid #54717a;
  background:
    linear-gradient(130deg, rgba(0, 140, 168, 0.12), transparent 48%),
    #1c3039;
  overflow: hidden;
}

.lab-object::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(239, 180, 59, 0.55);
  border-radius: 50%;
  content: '';
}

.lab-object-label {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  color: #9eb5b8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-tank {
  position: absolute;
  right: 11%;
  bottom: 17%;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  width: min(19rem, 40%);
  height: 67%;
  padding: 0.8rem;
  border: 2px solid var(--water-light);
  border-radius: 0.65rem 0.65rem 1.4rem 1.4rem;
  background: rgba(0, 140, 168, 0.08);
  box-shadow: 0.75rem 0.75rem 0 rgba(0, 0, 0, 0.18);
  transform: rotate(1.5deg);
}

.lab-tank::before {
  position: absolute;
  top: -1.1rem;
  left: 12%;
  width: 76%;
  height: 1.15rem;
  border: 2px solid var(--water-light);
  border-bottom: 0;
  border-radius: 0.6rem 0.6rem 0 0;
  background: var(--water-dark);
  content: '';
}

.water-stack {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  gap: 0.18rem;
  height: 100%;
  overflow: hidden;
  border-radius: 0.25rem 0.25rem 1rem 1rem;
  background: rgba(184, 228, 229, 0.12);
}

.water-block {
  display: block;
  flex: 0 0 var(--block-height);
  min-height: 0.45rem;
  border-radius: 0.15rem;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 42%),
    var(--water);
}

.water-overflow {
  position: absolute;
  top: 3.1rem;
  right: 1.4rem;
  color: var(--water-light);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
}

.lab-drip {
  position: absolute;
  right: 44%;
  bottom: 16%;
  width: 1.1rem;
  height: 3rem;
  border-radius: 0 0 50% 50%;
  background: var(--water);
}

.lab-filter {
  position: absolute;
  bottom: 25%;
  left: 14%;
  width: min(17rem, 43%);
  height: 12rem;
}

.lab-filter::before {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1.15rem;
  border: 2px solid #211511;
  border-radius: 50%;
  background: var(--coffee);
  content: '';
}

.lab-filter::after {
  position: absolute;
  top: 0.5rem;
  left: 18%;
  width: 64%;
  height: 75%;
  clip-path: polygon(8% 0, 92% 0, 61% 100%, 39% 100%);
  background:
    radial-gradient(circle at 44% 30%, rgba(239, 180, 59, 0.65) 0 0.25rem, transparent 0.3rem),
    radial-gradient(circle at 62% 44%, rgba(239, 180, 59, 0.65) 0 0.22rem, transparent 0.28rem),
    #b9a77e;
  content: '';
}

.lab-cup {
  right: auto;
  bottom: 8%;
  left: 8%;
  width: 37%;
  background: var(--paper);
}

.lab-cup::before {
  background: var(--coffee);
}

.lab-cup-label {
  position: absolute;
  bottom: 3%;
  left: 8%;
  color: #9eb5b8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  text-transform: uppercase;
}

.meter-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.2rem;
  color: #9eb5b8;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
}

.comparator-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: 3rem;
}

.comparator-head p {
  max-width: 37rem;
  color: var(--ink-soft);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.comparison-table th,
.comparison-table td {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.comparison-table th {
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  text-align: right;
}

.bar-cell {
  width: 45%;
  padding-right: 1rem !important;
}

.bar {
  display: block;
  width: min(100%, 30rem);
  height: 0.85rem;
  background: var(--water);
}

.bar[data-value='200'] {
  background: var(--coffee);
}

.bar[data-value='140'] {
  background: var(--sun);
}

.bar[data-value='135'] {
  background: #b87544;
}

.bar[data-value='120'] {
  background: #7d9da2;
}

.bar[data-value='75'] {
  background: #79b5a6;
}

.bar[data-value='40'] {
  background: #b0c9b8;
}

.bar[data-value='35'] {
  background: #8ed0d0;
}

.value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  white-space: nowrap;
}

.mechanism-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: center;
}

.mechanism-copy {
  max-width: 40rem;
}

.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 3rem 0 1rem;
}

.chain::before {
  position: absolute;
  top: 5rem;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: '';
}

.chain-step {
  position: relative;
  z-index: 1;
}

.chain-dot {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.chain-step:nth-child(1) .chain-dot {
  background: var(--water-light);
}

.chain-step:nth-child(2) .chain-dot {
  background: var(--coffee);
}

.chain-step:nth-child(3) .chain-dot {
  background: var(--sun);
}

.chain-label {
  margin-bottom: 0.25rem;
  font-family: Anybody, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.chain-note {
  max-width: 9rem;
  margin: 0;
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  line-height: 1.4;
}

.reading-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.reading-copy {
  max-width: 42rem;
}

.source-block {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.source-block h3 {
  font-size: 1.35rem;
}

.source-block p {
  max-width: 37rem;
  color: var(--ink-soft);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 1.2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
}

.source-links a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.source-links a:hover {
  color: var(--water-dark);
}

.closing {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.closing p {
  max-width: 13ch;
  margin: 0;
  color: var(--coffee);
  font-family: Anybody, sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--water-dark);
}

.backtop {
  position: fixed;
  z-index: 5;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.backtop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

@media (max-width: 820px) {
  .hero,
  .scale-section,
  .brew-grid,
  .comparator-head,
  .mechanism-section,
  .reading-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 4rem;
  }

  .hero-visual {
    min-height: 26rem;
  }

  .controls {
    position: static;
  }

  .lab-object {
    min-height: 32rem;
  }

  .comparator-head {
    gap: 1.5rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }

  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .brand {
    max-width: 10rem;
    line-height: 1.25;
  }

  .header-links {
    gap: 0.6rem;
  }

  .site-header .portfolio-link {
    display: none;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.2rem, 16vw, 5.8rem);
  }

  h2 {
    font-size: clamp(2.4rem, 13vw, 4.5rem);
  }

  .hero-visual {
    min-height: 23rem;
  }

  .water-column {
    right: 4%;
    width: 6.4rem;
  }

  .water-label {
    top: 29%;
    right: 26%;
    max-width: 7.5rem;
    font-size: 0.64rem;
  }

  .filter-assembly {
    left: 0;
    width: 14rem;
  }

  .scale-number {
    font-size: clamp(6rem, 30vw, 11rem);
  }

  .brew-section {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  .readout {
    gap: 0.35rem;
  }

  .readout-item strong {
    font-size: 1.45rem;
  }

  .lab-object {
    min-height: 28rem;
    padding: 1rem;
  }

  .lab-tank {
    right: 5%;
    width: 7.4rem;
    height: 66%;
  }

  .lab-filter {
    left: 4%;
    width: 12rem;
  }

  .lab-cup {
    left: 3%;
    width: 8.5rem;
  }

  .lab-cup::after {
    display: none;
  }

  .lab-cup-label {
    left: 3%;
  }

  .comparison-table th:nth-child(2),
  .comparison-table td:nth-child(2) {
    display: none;
  }

  .bar-cell {
    width: 42%;
  }

  .chain {
    gap: 0.5rem;
  }

  .chain-dot {
    width: 3rem;
    height: 3rem;
  }

  .site-footer {
    display: block;
  }

  .site-footer p {
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .backtop,
  .controls {
    display: none;
  }

  .hero,
  .section,
  .closing {
    width: 100%;
    min-height: 0;
  }
}
