/* nateterrence.net V5
   A one-to-one replica of the reference portfolio's grammar:
   Playfair Display for statements, Satoshi for text, white page,
   one black block, dashed colour cards, an auto-scrolling strip,
   and scroll reveals that scale up from 95% and rise 80px.
   Only the content is Nathan's. */

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/v4/playfair.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/v4/playfair-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/v4/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/v4/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/v4/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ink: #080808;
  --grey-hero: #666666;
  --grey-mid: #888888;
  --grey-meta: #999999;
  --line: #e6e6e6;
  --line-dark: #2b2b2b;
  --paper: #ffffff;
  --paper-warm: #fafafa;
  --black: #080808;
  --lime: #c9f24b;
  --violet: #8b46ff;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 12px 16px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- type ---------- */

.display {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1.2;
  letter-spacing: -3px;
  font-weight: 400;
  color: var(--ink);
}
.display--italic { font-style: italic; }
.display--sm { font-size: 48px; line-height: 1.1; letter-spacing: -2px; }

.kicker {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--grey-meta);
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
}
.kicker::before { content: "\2022"; margin-right: 8px; font-style: normal; }

.overline {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--grey-mid);
}

/* ---------- shell ---------- */

.avail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--grey-mid);
}
.avail .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2fbf61;
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) { .avail .dot { animation: none; } }

/* ---------- masthead (offer page) ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.35rem 100px 1.1rem;
  border-bottom: 1px solid var(--line);
}
.masthead-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 15px;
  color: var(--grey-mid);
}
.masthead nav a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .masthead { padding: 1.1rem 24px 0.9rem; }
}
@media (max-width: 560px) {
  .masthead { flex-direction: column; gap: 0.5rem; }
}

/* ---------- hero ---------- */

.hero { padding: 60px 100px 0; }

/* The offer page's headline leads in ink. On the personal site the hero
   statement sits back in grey; a buyer's page cannot afford that. */
.hero-statement.hero-statement--lead {
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -1.8px;
}

.hero-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--grey-meta);
  margin-bottom: 14px;
}
.hero-clock i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--grey-meta);
  display: block;
  flex: none;
}
.hero-clock time { font-variant-numeric: tabular-nums; }

.hero-greet {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-statement {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--grey-hero);
  max-width: 660px;
}
/* The words only exist once the script has split them, so a visitor without
   JavaScript sees the plain sentence rather than 15 hidden spans. */
.hero-statement .w {
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  transform: translateY(10px);
}
.hero-statement.in .w {
  animation: wordIn 0.75s var(--ease) forwards;
}
@keyframes wordIn {
  to { opacity: 1; filter: blur(0); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-statement .w { animation: none !important; opacity: 1; filter: none; transform: none; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { transform: translateY(-3px); background: #1d1d1d; }
.btn--ghost { background: #fff; color: var(--ink); border-color: #e2e2e2; }
.btn--ghost:hover { transform: translateY(-3px); border-color: #bdbdbd; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-3px); background: #f1f1f1; }

/* ---------- the strip ---------- */

.strip {
  overflow: hidden;
  padding-block: 40px 20px;
  position: relative;
}
.strip-track {
  display: flex;
  gap: 6px;
  width: max-content;
  will-change: transform;
}
.tile {
  position: relative;
  width: 700px;
  height: 500px;
  flex: none;
  overflow: hidden;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.tile--dark { background: #101413; color: #f4f2ec; }
.tile--warm { background: #ece9e2; color: #14110c; }
.tile--cool { background: #e6edf1; color: #0f1518; }
.tile--lime { background: var(--lime); color: #14110c; }
.tile--violet { background: var(--violet); color: #fff; }
.tile-name {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 46%;
}
.tile-note {
  font-size: 14px;
  line-height: 1.35;
  max-width: 46%;
  text-align: right;
  opacity: 0.8;
}
.tile-device {
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  height: 88%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.45);
}
.tile-device img { height: 100%; width: auto; }
.tile-big {
  position: absolute;
  left: 28px;
  top: 22px;
  font-family: var(--serif);
  font-size: 128px;
  line-height: 1;
  letter-spacing: -6px;
  margin: 0;
}
.tile-big span { font-size: 64px; letter-spacing: -2px; }
.tile-type {
  position: absolute;
  inset: 26px 28px auto 28px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.tile-type b { font-weight: 700; }

/* ---------- sections ---------- */

.section { padding: 120px 70px 80px; }
.section--warm { background: var(--paper-warm); padding: 80px 70px 120px; }
.section--black { background: var(--black); color: #fff; padding: 100px 80px; }
.section--black .kicker { color: #9d9d9d; border-color: #4a4a4a; }
.section--black .display { color: #fff; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head--stack { display: block; }

.lede {
  font-size: 18px;
  line-height: 1.45;
  color: var(--grey-mid);
  max-width: 520px;
  margin-top: 20px;
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 16px;
  color: var(--grey-mid);
  padding-bottom: 6px;
}
.filters button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0 0 6px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* ---------- work cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}
.card {
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.35);
  border-color: #dedede;
}
.card.hide { display: none; }

.card-art {
  height: 224px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.card-art img {
  height: 92%;
  width: auto;
  transition: transform 0.6s var(--ease);
}
.card:hover .card-art img { transform: scale(1.04); }
.card-art--type {
  padding: 22px;
  display: block;
  font-size: 14px;
  line-height: 1.55;
}
.card-art--type b { display: block; font-size: 15px; margin-bottom: 8px; }

.card-art--poster {
  display: block;
  position: relative;
  padding: 24px;
  height: 224px;
}
.poster-big {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -2.5px;
  margin: 0;
}
.poster-big span { font-size: 30px; letter-spacing: -0.5px; }
.poster-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.72;
}

.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.card-text { font-size: 16px; line-height: 1.45; color: var(--grey-mid); flex: 1; }
.card-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; color: var(--ink); }
.card-links a { display: inline-flex; align-items: center; gap: 7px; }
.card-links a svg { width: 14px; height: 14px; }
.card-links a:hover { color: var(--violet); }

/* ---------- process ---------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step {
  border: 1px dashed #111;
  border-radius: 22px;
  padding: 30px 30px 34px;
  background: #fff;
  min-height: 220px;
  box-shadow: 0 18px 28px -24px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease);
}
.step:hover { transform: translateY(-5px); }
.step h3 {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
  font-style: italic;
}
.step p { font-size: 16px; line-height: 1.45; }
.step--lime { background: var(--lime); }
.step--violet { background: var(--violet); color: #fff; }
.step--violet h3 { font-style: normal; }
.process-note {
  margin-top: 34px;
  font-size: 16px;
  color: var(--grey-mid);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}
.process-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- about (black) ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}
.about h2 { max-width: 480px; }
.about-copy {
  font-size: 16px;
  line-height: 1.4;
  color: var(--grey-meta);
  max-width: 596px;
}
.about-copy b { color: #fff; font-weight: 700; }
.about-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; max-width: 596px; }

.panel {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
}
.listen { display: flex; gap: 16px; align-items: center; }
.listen-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 120px;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
}
.listen-art img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.listen-meta { font-size: 14px; line-height: 1.5; color: #cfcfcf; }
.listen-meta b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.listen-meta span { display: flex; align-items: center; gap: 6px; }
.listen-meta i {
  width: 14px; height: 14px; border-radius: 50%;
  background: #1db954;
  display: inline-block;
  flex: none;
}

.offs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.offs div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #cfcfcf; }
.offs b { color: #fff; font-weight: 500; }
.offs span { text-align: right; }

/* ---------- history ---------- */

.history { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
.roles { display: grid; gap: 44px; }
.role h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.role h3 em { font-style: italic; font-weight: 400; }
.role-meta {
  font-size: 16px;
  color: var(--grey-meta);
  margin: 6px 0 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.role-meta i { width: 4px; height: 4px; border-radius: 50%; background: #6b6b6b; display: block; }
.role ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--line-dark);
  display: grid;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: #d6d6d6;
}
.role li { max-width: 62ch; padding-bottom: 12px; border-bottom: 1px solid #1d1d1d; }
.role li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- contact ---------- */

.contact-box {
  max-width: 1216px;
  margin-inline: auto;
  padding: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
}
.contact-copy h2 { font-size: 52px; line-height: 1.05; letter-spacing: -2px; margin-top: 14px; }
.contact-copy .avail-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: #bdbdbd;
}
.contact-copy p.body { margin-top: 18px; font-size: 16px; line-height: 1.45; color: #d6d6d6; max-width: 46ch; }

form.contact-form { display: grid; gap: 8px; align-content: start; }
.field { border-bottom: 1px solid #3a3a3a; padding: 14px 0 16px; }
.field input, .field textarea {
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 18px;
  padding: 0;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #7d7d7d; }
.field input:focus, .field textarea:focus { outline: none; }
.field:focus-within { border-bottom-color: #fff; }
.contact-form .btn { margin-top: 26px; width: 100%; justify-content: center; }
.form-note { font-size: 14px; color: #7d7d7d; margin-top: 10px; }

/* ---------- footer ---------- */

.foot {
  background: var(--black);
  color: #fff;
  padding: 60px 80px 72px;
}
.foot-name {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1.2;
  letter-spacing: -3px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.foot-name em { font-style: italic; }
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.foot-links { display: grid; grid-template-columns: auto auto; gap: 6px 44px; font-size: 16px; color: #b4b4b4; }
.foot-links a:hover { color: #fff; }
.foot-base {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid #1f1f1f;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 14px;
  color: #7d7d7d;
}

/* ---------- reveals ---------- */

.js .reveal {
  opacity: 0;
  transform: scale(0.95) translateY(80px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 0.7s ease; }
}

/* ---------- helpers used by the markup ---------- */

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.kicker + .display { margin-top: 26px; }
.delay-1 { --d: 90ms; }
.delay-2 { --d: 180ms; }
.dim { color: #9d9d9d; }
.card-art--lime { background: #e9f2c6; }
.card-art--plum { background: #141019; color: #f3ecff; }
.card-art--dark { background: #101413; color: #f4f2ec; }
.card-art--cool { background: #e6edf1; color: #0f1518; }
.section--tight { padding-bottom: 40px; }

/* ---------- automation: what changes for people ---------- */

.changes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.changes > div {
  border: 1px solid #e2e2e2;
  border-radius: 22px;
  padding: 26px 28px 28px;
  background: #fff;
}
.changes-k {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-meta);
  margin-bottom: 14px;
}
.changes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.changes li {
  font-size: 16px;
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.changes li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #c9c9c9;
}

.why { max-width: 820px; margin-top: 44px; }
.why-k {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-meta);
  margin-bottom: 12px;
}
.why-body { font-size: 18px; line-height: 1.5; color: var(--grey-mid); }
.why-body b { color: var(--ink); font-weight: 700; }

/* ---------- taste ---------- */

.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 44px;
}
.taste-block {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.taste-block--wide { grid-column: 1 / -1; }
.taste-block h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.taste-block p { font-size: 16px; line-height: 1.45; color: var(--grey-mid); }
.taste-block a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.taste-block ul, .film-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}
.taste-fine {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-meta);
}
.film-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 24px;
  margin-top: 16px;
}
.film-list li { display: flex; gap: 10px; align-items: baseline; }
.film-list li::before {
  content: attr(data-n);
  font-family: var(--serif);
  font-style: italic;
  color: var(--grey-meta);
  font-size: 14px;
}
.cars { margin-top: 6px; }
.car-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 18px;
}
.taste-block .car-name {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 26px;
  line-height: 1.06;
  letter-spacing: -1.1px;
  color: var(--ink);
  margin-bottom: 12px;
}
.car-fact { font-size: 16px; line-height: 1.45; color: var(--grey-mid); }

.lede--on-dark { color: #9c988f; }

/* ---------- the automation offer page ---------- */

.verticals-k {
  margin-top: 44px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-meta);
}
.verticals {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.6px;
  color: #fff;
  max-width: 60ch;
}

/* ---------- the flow map (offer page) ---------- */

.flow-wrap { display: block; }
.flow { width: 100%; height: auto; display: block; overflow: visible; }
.flow--wide { max-width: none; }

.flow-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.flow-line--branch {
  stroke: var(--grey-meta);
  stroke-dasharray: 3 4;
  stroke-dashoffset: 0;
}
.flow-wrap.drawn .flow-line { stroke-dashoffset: 0; }
.flow-wrap.drawn .flow-line:nth-of-type(2) { transition-delay: 0.1s; }
.flow-wrap.drawn .flow-line:nth-of-type(3) { transition-delay: 0.2s; }
.flow-wrap.drawn .flow-line:nth-of-type(4) { transition-delay: 0.3s; }
.flow-wrap.drawn .flow-line:nth-of-type(5) { transition-delay: 0.4s; }
.flow-wrap.drawn .flow-line:nth-of-type(6) { transition-delay: 0.5s; }

.flow-node rect { fill: #fff; stroke: #dcdcdc; stroke-width: 1; }
.flow--wide .flow-node text { font-size: 15px; }
.flow-node text {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  text-anchor: middle;
  dominant-baseline: middle;
}
.flow-node { opacity: 0; transition: opacity 0.6s var(--ease); }
.flow-wrap.drawn .flow-node { opacity: 1; }
.flow-wrap.drawn .flow-node:nth-of-type(1) { transition-delay: 0.12s; }
.flow-wrap.drawn .flow-node:nth-of-type(2) { transition-delay: 0.3s; }
.flow-wrap.drawn .flow-node:nth-of-type(3) { transition-delay: 0.46s; }
.flow-wrap.drawn .flow-node:nth-of-type(4) { transition-delay: 0.62s; }

.flow-gate rect { fill: #f7f2ff; stroke: var(--violet); stroke-width: 1.4; }
.flow-gate-halo { fill: none; stroke: var(--violet); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.55; }
.flow-gate-k {
  fill: var(--violet);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-anchor: middle;
}
.flow-gate-s {
  fill: var(--grey-meta);
  font-family: var(--sans);
  font-size: 11px;
  text-anchor: middle;
}
.flow-gate-t {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
}
.flow-gate { opacity: 0; transform-origin: 150px 342px; transition: opacity 0.6s var(--ease) 0.78s; }
.flow-wrap.drawn .flow-gate { opacity: 1; }

.flow-out rect { fill: none; stroke: #e2e2e2; stroke-dasharray: 4 4; }
.flow-out text {
  fill: var(--grey-mid);
  font-family: var(--sans);
  font-size: 12px;
  text-anchor: middle;
  dominant-baseline: middle;
}
.flow-out { opacity: 0; transition: opacity 0.6s var(--ease) 0.95s; }
.flow-wrap.drawn .flow-out { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .flow-line { stroke-dashoffset: 0; transition: none; }
  .flow-node, .flow-gate, .flow-out { opacity: 1; transition: none; }
}

.flow-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 32px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.flow-legend p { font-size: 16px; line-height: 1.45; color: var(--ink-soft); display: flex; gap: 10px; align-items: baseline; }
.flow-legend .flow-fine { grid-column: 1 / -1; }
.lg { width: 11px; height: 11px; flex: none; border-radius: 50%; margin-top: 5px; }
.lg--auto { background: var(--ink); }
.lg--gate { background: var(--violet); }
.flow-fine { font-size: 14px; line-height: 1.5; color: var(--grey-meta); margin-top: 4px; }

/* A list, not a scaled drawing, on narrow screens: an SVG at this width turns
   thirteen pixel labels into eight pixel labels. */
.flow-list { display: none; }
@media (max-width: 900px) {
  .flow-list {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
  }
  .flow-list li {
    position: relative;
    padding: 14px 16px 14px 44px;
    margin-bottom: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    line-height: 1.3;
  }
  .flow-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
  }
  .flow-list li::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: -15px;
    height: 15px;
    border-left: 1px solid var(--ink);
  }
  .flow-list li:last-child::after { content: none; }
  .flow-list--gate {
    border-color: var(--violet);
    background: #f7f2ff;
    font-weight: 700;
  }
  .flow-list--gate::before { background: var(--violet); content: "?"; }
  .flow-list--gate::after { border-color: var(--violet); }
  .flow-list--gate span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 4px;
  }
}

/* ---------- the numbers (offer page) ---------- */

.numbers {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.chart { display: grid; gap: 22px; padding-top: 6px; }
.chart-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 4.5rem;
  gap: 1rem;
  align-items: center;
}
.chart-k { font-size: 14px; color: var(--grey-mid); }
.bar { height: 30px; background: #f4f4f4; border-radius: 3px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 3px; transition: width 0.5s var(--ease); }
.bar-fill--today { background: #a9a9a9; }
.bar-fill--system { background: var(--ink); }
.chart-v { font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.chart-v b { font-weight: 700; }
.chart-axis { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-meta); }

.controls { display: grid; gap: 10px; }
.ctl-k { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-meta); }
.ctl-v { font-size: 16px; color: var(--ink); }
.ctl-v b { font-weight: 700; }
#enquiries {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line);
  outline-offset: 6px;
  margin: 10px 0 12px;
}
#enquiries::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--ink);
  border-radius: 50%;
  cursor: grab;
}
#enquiries::-moz-range-thumb {
  width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--ink); cursor: grab;
}
.stats--tight { margin-top: 6px; gap: 16px; }
.stats--tight dd { font-size: clamp(28px, 3vw, 40px); }
.ctl-note { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
.ctl-big {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--ink);
  margin-top: 8px;
}
.ctl-big b { font-weight: 400; }

@media (max-width: 900px) {
  .flow-wrap, .numbers { grid-template-columns: 1fr; }
  .flow-legend { grid-template-columns: 1fr; gap: 12px; }
  .flow--wide { display: none; }
  .chart-row { grid-template-columns: 8.5rem minmax(0, 1fr) 3.5rem; }
  .flow { max-width: 100%; }
}

/* ---------- the week comparison (offer page) ---------- */

.compare { border: 1px solid var(--line); background: #fff; }
.compare-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.compare-tabs { display: flex; gap: 0.4rem; }
.compare-tabs button {
  font: inherit;
  font-size: 15px;
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--grey-mid);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.compare-tabs button:hover { color: var(--ink); }
.compare-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.compare-list { list-style: none; margin: 0; padding: 0 1.4rem; }
.compare-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.compare-list li:last-child { border-bottom: 0; }
.compare-cost {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--grey-meta);
  white-space: nowrap;
  transition: color 0.25s;
}
.compare[data-state="system"] .compare-cost { color: var(--ink); }
.compare-note {
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--grey-mid);
  font-size: 15px;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

/* ---------- price rows and figures (offer page) ---------- */

.offer { margin: 0; border-top: 1px solid var(--line); }
.offer > div {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.4rem 2rem;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.offer dt { font-size: 16px; font-weight: 600; color: var(--ink); }
.offer dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--grey-mid); }

.stats { margin: 0; display: grid; gap: 22px; }
.stats > div { display: grid; gap: 4px; }
.stats dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-meta);
}
.stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -1.8px;
  color: var(--ink);
}

/* ---------- posters and artwork tiles ---------- */

.art-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}
.tile-art {
  display: block;
  width: 168px;
  color: inherit;
}
.tile-art img {
  width: 168px;
  display: block;
  border: 1px solid #e9e9e9;
  border-radius: 6px;
  background: #f4f4f4;
  object-fit: cover;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.tile-art--square img { height: 168px; }
.tile-art--poster img { height: 252px; }
a.tile-art:hover img { border-color: #c9c9c9; transform: translateY(-3px); }
a.tile-art:hover .art-name { text-decoration: underline; text-underline-offset: 3px; }
.art-name {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}
.art-sub {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--grey-meta);
  margin-top: 2px;
}
@media (prefers-reduced-motion: reduce) {
  a.tile-art:hover img { transform: none; }
}

.sport-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 18px;
}
.sport-row b { display: block; font-size: 16px; font-weight: 700; }
.sport-row span { font-size: 15px; line-height: 1.4; color: var(--grey-mid); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .display { font-size: 54px; letter-spacing: -2.4px; }
  .hero-statement { font-size: 42px; }
  .grid { gap: 30px; }
  .about, .history { gap: 50px; }
}

@media (max-width: 900px) {
  .avail { font-size: 17px; padding: 15px 18px; }
  .hero { padding: 34px 24px 0; }
  .hero-statement { font-size: 34px; letter-spacing: -1.2px; max-width: 100%; }
  .hero-greet { font-size: 21px; letter-spacing: -0.8px; }
  .btn { height: 56px; padding: 0 22px; font-size: 16px; }
  .section { padding: 70px 24px 56px; }
  .section--warm { padding: 56px 24px 70px; }
  .section--black { padding: 64px 24px; }
  .display { font-size: 38px; letter-spacing: -1.4px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .filters { gap: 20px; overflow-x: auto; width: 100%; padding-bottom: 10px; }
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .about, .history { grid-template-columns: 1fr; gap: 36px; }
  .changes, .taste-grid { grid-template-columns: 1fr; gap: 20px; }
  .film-list { grid-template-columns: 1fr 1fr; }
  .compare-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .offer > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .split { grid-template-columns: 1fr; }
  .art-row { gap: 12px; }
  .tile-art, .tile-art img { width: 104px; }
  .tile-art--square img { height: 104px; }
  .tile-art--poster img { height: 156px; }
  .tile-name { font-size: 12px; }
  .art-name { font-size: 12px; }
  .art-sub { font-size: 11px; }
  .sport-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .car-row { grid-template-columns: 1fr; gap: 26px; }
  .car-name { font-size: 26px; }

  .about h2 { max-width: 100%; }
  .about-cards { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; gap: 34px; padding: 28px 22px; }
  .contact-copy h2 { font-size: 36px; letter-spacing: -1.3px; }
  .foot { padding: 44px 24px 56px; }
  .foot-name { font-size: 40px; letter-spacing: -1.6px; }
  .foot-row { flex-direction: column; gap: 24px; }
  .tile { width: 78vw; height: 340px; padding: 18px; }
  .tile-name { font-size: 20px; }
  .tile-note { font-size: 12px; }
  .tile-big { font-size: 64px; letter-spacing: -2.5px; left: 18px; top: 16px; }
  .tile-big span { font-size: 30px; }
  .strip { padding-block: 26px 10px; }
}

@media (max-width: 560px) {
  .display { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 6px 24px; }
}

@media print {
  .strip, .avail, .hero-actions, .filters, form.contact-form { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  body { font-size: 11pt; }
}
