/* Harbour Light Pottery — shared styles
   Concept: "the wheel week". Protected colour tokens are used exactly. */

:root {
  /* Protected colour tokens (client choice — do not alter) */
  --slip: #f6efe4;
  --slip-deep: #efe4d3;
  --kiln: #2a2723;
  --muted: #5b544c;
  --clay: #9e4421;
  --clay-dark: #84371a;
  --clay-soft: #d9a285;
  --harbour: #1f4e5f;
  --harbour-deep: #173c4a;
  --lamp: #f2b84b;
  --glaze: #dce7e3;
  --on-harbour: #f6efe4;
  --on-harbour-muted: #c9d6d3;
  --shadow: 0 1px 2px rgba(42, 39, 35, 0.06), 0 8px 24px rgba(42, 39, 35, 0.08);

  --paper: #fff8ee;
  --hairline: rgba(42, 39, 35, 0.08);
  --line: rgba(42, 39, 35, 0.22);
  --glow: rgba(242, 184, 75, 0.18);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-tag: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(3.5rem, 9vw, 7.5rem);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --header-h: 4rem;
  --reveal-distance: 8px;
  --ease-wheel: cubic-bezier(0.16, 0.84, 0.3, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--slip);
  color: var(--kiln);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

a {
  color: var(--clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-decoration-thickness 0.15s;
}

a:hover { color: var(--clay-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--harbour);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible { outline-color: var(--lamp); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--kiln);
  color: var(--slip);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { top: 1rem; color: var(--slip); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.measure { max-width: 38rem; }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36rem;
}

/* ---------- Kiln tag (label system) ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  font-family: var(--font-tag);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kiln);
}

.tag::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--kiln);
  background: var(--slip);
}

.on-dark .tag {
  background: rgba(246, 239, 228, 0.12);
  border-color: rgba(246, 239, 228, 0.22);
  color: var(--on-harbour);
}

.on-dark .tag::before { border-color: var(--lamp); background: transparent; }

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn .arrow { transition: transform 0.2s; }

.btn--primary { background: var(--clay); color: var(--slip); }
.btn--ghost { border-color: var(--kiln); color: var(--kiln); background: transparent; }
.btn--lamp { background: var(--lamp); color: var(--kiln); }
.on-dark .btn--ghost { border-color: var(--on-harbour); color: var(--on-harbour); }

.btn:active { transform: translateY(1px); }

/* Hover styles only where a real pointer can hover, so colours don't stick after a tap on touch screens */
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); text-decoration: none; }
  .btn:hover .arrow { transform: translateX(3px); }
  .btn--primary:hover { background: var(--clay-dark); color: var(--slip); }
  .btn--ghost:hover { background: var(--kiln); color: var(--slip); }
  .btn--lamp:hover { background: var(--paper); color: var(--kiln); }
  .on-dark .btn--ghost:hover { background: var(--on-harbour); color: var(--harbour-deep); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: var(--slip);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}

.site-header.is-scrolled {
  background: var(--slip-deep);
  border-bottom-color: var(--hairline);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.brand:hover { color: inherit; }

.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: 0.2rem;
  font-family: var(--font-tag);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
}

.on-dark .brand-sub { color: var(--clay-soft); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  color: var(--kiln);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a[aria-current="page"]:not(.nav-cta) {
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.site-nav a:not(.nav-cta):hover { color: var(--clay-dark); }

.site-nav .nav-cta {
  background: var(--clay);
  color: var(--slip);
  padding-inline: 1.15rem;
}

.site-nav .nav-cta:hover { background: var(--clay-dark); color: var(--slip); }
.site-nav .nav-cta[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--clay-dark), 0 0 0 3px var(--clay-soft); }

.nav-note { display: none; }

.nav-toggle { display: none; }

@media (max-width: 719.98px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.95rem;
    border: 1.5px solid var(--kiln);
    border-radius: 999px;
    background: transparent;
    color: var(--kiln);
    font: 600 1rem/1 var(--font-body);
    cursor: pointer;
  }

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s, background-color 0.2s;
  }

  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-icon::before { top: -6px; }
  .nav-toggle-icon::after { top: 6px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--slip);
    border-top: 1px solid var(--hairline);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .js .site-nav a {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.5rem 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
  }

  .js .site-nav a[aria-current="page"]:not(.nav-cta) {
    text-decoration: none;
    color: var(--clay);
  }

  .js .site-nav .nav-cta {
    justify-content: center;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 0;
    border-radius: 999px;
  }

  .js .nav-note {
    display: block;
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
  }
}

@media (min-width: 720px) and (max-width: 800px) {
  .site-nav a { padding-inline: 0.6rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--flush-top { padding-top: 0; }

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 40rem; }

.on-dark { color: var(--on-harbour); }
.on-dark a:not(.btn) { color: var(--lamp); }
.on-dark a:not(.btn):hover { color: var(--paper); }

.divider {
  width: 100%;
  height: 18px;
  color: var(--clay-soft);
}

/* ---------- Home: hero + wheel week ---------- */

.hero {
  position: relative;
  z-index: 2;
  padding-top: clamp(2rem, 6vw, 4.5rem);
}

.hero-grid { display: grid; gap: 2.5rem; }

.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.hero h1 em { font-style: italic; font-weight: 500; color: var(--clay); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  list-style: none;
}

.hero-facts .tag { margin: 0; letter-spacing: 0.08em; padding-inline: 0.55rem 0.7rem; }

.hero-figure {
  position: relative;
  width: min(100%, 26rem);
  margin: 0 auto -5rem;
}

.wheel-week { width: 100%; height: auto; overflow: visible; }

.wheel-week .day-label {
  font-family: var(--font-tag);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: var(--muted);
}

.wheel-week .day-label.is-lit { fill: var(--kiln); }

.wheel-week .seg-label {
  font-family: var(--font-tag);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.wheel-rings { transform-origin: 220px 220px; }
.wheel-disc { transform-origin: 220px 220px; }

@media (prefers-reduced-motion: no-preference) {
  .wheel-disc { animation: wheel-in 1s var(--ease-wheel) both; }
  .wheel-glow { animation: glow-in 0.4s ease-out 1s both; }
  .wheel-glow--thu { animation-delay: 1.12s; }

  @media (min-width: 720px) {
    .wheel-disc { animation-duration: 1.4s; }
    .wheel-glow { animation-delay: 1.3s; }
    .wheel-glow--thu { animation-delay: 1.42s; }
    .wheel-rings { animation: slow-turn 90s linear 1.4s infinite; }
  }
}

@keyframes wheel-in {
  from { transform: rotate(-40deg); }
  to { transform: rotate(0deg); }
}

@keyframes glow-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slow-turn {
  to { transform: rotate(360deg); }
}

/* Week band */

.week {
  position: relative;
  z-index: 1;
  padding-block: calc(5rem + var(--section) * 0.6) var(--section);
  background: var(--harbour);
}

.week-grid { display: grid; gap: 2rem; }

.week h2 { color: var(--on-harbour); }

.week-list {
  list-style: none;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(246, 239, 228, 0.22);
}

.week-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(246, 239, 228, 0.22);
  font-size: 1.125rem;
}

.week-list .day {
  font-family: var(--font-tag);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-harbour-muted);
}

.week-list .is-lit .day { color: var(--lamp); }

.week-list .is-lit .day::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.18);
  vertical-align: 0.05em;
}

.week-note {
  color: var(--on-harbour-muted);
  max-width: 34rem;
}

.week-aside {
  padding-left: 1.1rem;
  border-left: 3px solid var(--lamp);
}

.week-aside-title {
  margin-bottom: 0.4rem;
  font-family: var(--font-tag);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lamp);
}

/* Two reasons — editorial pair */

.pair { display: grid; gap: 3rem; }

.pair-item { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.pair-num {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--clay);
}

.pair-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pair-icon { width: 5.5rem; height: auto; flex: none; }

.pair-item h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* Six */

.six { display: grid; gap: 1.5rem; align-items: center; }

.six-number {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 600;
  line-height: 0.8;
  color: var(--clay);
  -webkit-text-stroke: 2px var(--clay);
  letter-spacing: -0.04em;
}

.six-ring { width: 7.5rem; height: auto; margin-top: 1.5rem; }

/* Closing band */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--harbour) 0%, var(--harbour) 45%, var(--harbour-deep) 100%);
}

.cta-band h2 { max-width: 20ch; }
.cta-band p { max-width: 36rem; color: var(--on-harbour-muted); }

.cta-band-rings {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 14rem;
  height: 14rem;
  color: var(--lamp);
  opacity: 0.16;
  pointer-events: none;
}

/* ---------- Inner page hero ---------- */

.page-hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem); }

.page-hero-grid { display: grid; gap: 2.25rem; align-items: center; }

.figure-frame {
  position: relative;
  margin: 0;
}

.figure-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(10px, 10px);
  border-radius: var(--radius);
  background: var(--slip-deep);
  border: 1.5px solid var(--clay-soft);
}

.figure-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--slip-deep);
}

/* ---------- Classes ---------- */

.classes-layout { display: grid; gap: 3rem; padding-bottom: var(--section); }

.glance {
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.glance::before,
.details-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: -0.425rem;
  border-radius: 50%;
  background: var(--slip);
  border: 1.5px solid var(--kiln);
}

.glance h2,
.details-card h2 {
  margin-top: 1rem;
  font-size: 1.6rem;
}

.fact-list { margin: 1rem 0 1.5rem; }

.fact-list div {
  padding: 0.75rem 0;
  border-top: 1px dashed var(--line);
}

.fact-list dt {
  font-family: var(--font-tag);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-list dd { margin: 0.15rem 0 0; font-weight: 600; }

.glance .btn { width: 100%; }

.class-main > section + section { margin-top: clamp(3.5rem, 8vw, 6rem); }

/* Evening picker */

.picker {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--glaze);
}

.picker-wheel { width: 9rem; height: auto; margin-inline: auto; }

.picker-label { font-weight: 600; margin-bottom: 0.75rem; }

.picker-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.picker-buttons[hidden] { display: none; }

.picker-btn {
  min-height: 3rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--harbour);
  border-radius: 999px;
  background: var(--paper);
  color: var(--harbour-deep);
  font: 600 1.0625rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

@media (hover: hover) {
  .picker-btn:not([aria-pressed="true"]):hover { background: var(--slip); }
}

.picker-btn[aria-pressed="true"] {
  background: var(--harbour);
  color: var(--on-harbour);
}

.picker-btn[aria-pressed="true"]::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--lamp);
  vertical-align: 0.05em;
}

.picker-result { min-height: 3.3em; transition: opacity 0.2s; }
.picker-result.is-changing { opacity: 0; }

.picker-wheel .seg { transition: fill 0.25s, opacity 0.25s; }
.picker-wheel .seg-glow { opacity: 0; transition: opacity 0.25s; }
.picker-wheel[data-chosen="Tuesday"] .seg-glow--tue,
.picker-wheel[data-chosen="Thursday"] .seg-glow--thu { opacity: 1; }
.picker-wheel[data-chosen="Tuesday"] .seg--thu,
.picker-wheel[data-chosen="Thursday"] .seg--tue { opacity: 0.45; }

/* Three movements */

.moves {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  list-style: none;
  counter-reset: move;
}

.move {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-content: start;
  gap: 0 1.25rem;
  padding-bottom: 2rem;
}

.move::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--clay-soft);
}

.move:last-child::before { display: none; }
.move:last-child { padding-bottom: 0; }

.move-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--clay);
  color: var(--slip);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.move-art { width: 7.5rem; height: auto; margin-bottom: 0.5rem; }

.move h3 { margin-bottom: 0.35rem; }

.aside-note {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--clay-soft);
  color: var(--muted);
}

/* Six-seat table */

.six-table { display: grid; gap: 1.5rem; align-items: center; }
.six-table svg { width: min(14rem, 70%); height: auto; margin-inline: auto; }

/* Questions */

.questions {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--glaze);
}

.question-list {
  margin-top: 1.25rem;
  list-style: none;
  counter-reset: q;
}

.question-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.75rem;
  border-top: 1px solid rgba(31, 78, 95, 0.18);
  counter-increment: q;
}

.question-list li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-family: var(--font-tag);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--harbour);
}

/* ---------- Contact ---------- */

.contact-hero { position: relative; overflow: hidden; }

.lamp-mark { width: clamp(8.5rem, 30vw, 16rem); height: auto; margin-inline: auto; }

.contact-layout { display: grid; gap: 3rem; padding-bottom: var(--section); }

.details-card {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.closed-note {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--slip-deep);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
}

.details-card .small { font-size: 0.95rem; color: var(--muted); }

.demo-box {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.contact-main > section + section { margin-top: clamp(3rem, 7vw, 5rem); }

.check-list { list-style: none; margin: 1.25rem 0 1rem; }

.check-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.25rem;
  border-top: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--clay);
  border-radius: 50%;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.25rem;
  width: 0.45rem;
  height: 0.25rem;
  border-left: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(-45deg);
}

.pottery { display: grid; gap: 1.5rem; align-items: center; }
.pottery-art { width: min(13rem, 60%); height: auto; }

/* ---------- 404 ---------- */

.not-found {
  padding-block: clamp(3rem, 10vw, 7rem);
  text-align: center;
}

.not-found .lede { margin-inline: auto; }

.slumped { width: 10rem; height: auto; margin: 0 auto 2rem; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  list-style: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3.5rem calc(2rem + env(safe-area-inset-bottom));
  background: var(--harbour-deep);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(246, 239, 228, 0.22);
}

.footer-brand p { margin-top: 0.75rem; color: var(--on-harbour-muted); }

.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

.site-footer .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-harbour);
  font-weight: 600;
}

.site-footer .footer-nav a:hover { color: var(--lamp); }

.footer-small {
  padding-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--on-harbour-muted);
}

.footer-small p { margin-bottom: 0.4rem; }

/* ---------- Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Phone tweaks ---------- */

@media (max-width: 719.98px) {
  .btn-row .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
  .pill-row li { width: 100%; }
  .pill-row .btn { width: 100%; }
}

@media (max-width: 389.98px) {
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .wheel-week .day-label { font-size: 17px; }
}

/* ---------- Tablet ---------- */

@media (min-width: 720px) {
  .hero-figure { width: 24rem; margin-bottom: -6rem; }
  .week { padding-top: calc(6rem + var(--section) * 0.6); }

  .pair { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .pair-item:nth-child(2) { margin-top: 3rem; }

  .six { grid-template-columns: auto 1fr; gap: 3rem; }

  .six-table { grid-template-columns: 14rem 1fr; gap: 2rem; }
  .six-table svg { width: 100%; }

  .pottery { grid-template-columns: 1fr 12rem; gap: 2rem; }
  .pottery-art { width: 100%; }

  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }

  .figure-frame { max-width: 40rem; }

  .picker { grid-template-columns: 9rem 1fr; align-items: center; gap: 2rem; }
}

/* Tablet only: facts in two columns, lamp beside the Contact heading */
@media (min-width: 720px) and (max-width: 959.98px) {
  .glance .fact-list,
  .details-card .fact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }

  .glance .btn { width: auto; }

  .contact-hero .page-hero-grid { grid-template-columns: 1fr auto; }
  .contact-hero .lamp-mark { width: 11rem; }
}

/* ---------- Desktop ---------- */

@media (min-width: 960px) {
  body { font-size: 1.125rem; }

  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 1.5rem;
    align-items: start;
  }

  .hero-copy {
    grid-column: 1 / span 7;
    grid-row: 1;
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
  }

  .hero h1 .line { display: block; }

  .hero-figure {
    grid-column: 7 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 34rem;
    justify-self: end;
    align-self: end;
    margin: 0 0 -7.5rem;
  }

  .hero { padding-bottom: 3.5rem; }

  .week { padding-top: var(--section); min-height: 30rem; }

  .week-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  .week-grid > div:first-child { grid-column: 1 / span 6; grid-row: 1; }
  .week-grid > .week-aside { grid-column: 8 / -1; grid-row: 1; align-self: end; margin-bottom: 0.5rem; }

  .page-hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 1.5rem; }
  .page-hero-copy { grid-column: 1 / span 6; }
  .page-hero-figure { grid-column: 7 / -1; }

  .classes-layout,
  .contact-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 1.5rem;
    align-items: start;
  }

  .classes-layout .glance {
    grid-column: 1 / span 4;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .class-main { grid-column: 6 / -1; }

  .moves { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

  .move { grid-template-columns: 1fr; padding-bottom: 0; }
  .move::before {
    left: 3rem;
    right: -1.5rem;
    top: 1.5rem;
    bottom: auto;
    width: auto;
    height: 2px;
    margin: -1px 0 0;
  }
  .move-num { margin-bottom: 1rem; position: relative; }

  .contact-layout .details-card {
    grid-column: 1 / span 5;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .contact-main { grid-column: 7 / -1; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .figure-frame img { max-height: min(40rem, 80vh); }
  .hero-figure { max-width: 18rem; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer nav { display: none; }
  body { background: #fff; }
}
