:root {
  --bg: #f3f0e9;
  --surface: #e9e3d8;
  --surface-light: #faf8f3;
  --fg: #24251f;
  --muted: #66675f;
  --border: #c9c4ba;
  --accent: #42604a;
  --primary: #a65c3a;
  --sand: #c7aa82;

  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --primary-soft: color-mix(in oklch, var(--primary) 14%, transparent);
  --fg-soft: color-mix(in oklch, var(--fg) 7%, transparent);

  --font-display: 'Iowan Old Style', 'Baskerville', 'Charter', Georgia, serif;
  --font-body: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --fs-h1: clamp(48px, 7vw, 104px);
  --fs-h2: clamp(34px, 4.6vw, 62px);
  --fs-h3: 22px;
  --fs-lead: 19px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;
  --container: 1240px;
  --gutter: 32px;
  --radius: 6px;
  --radius-lg: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, var(--gap-2xl)); }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }

.h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 0.98; letter-spacing: 0; margin: 0; }
.h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.02; letter-spacing: 0; margin: 0; }
.h3, h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: 0; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-md);
}
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); padding-block: 14px; }
.topnav .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wordmark {
  line-height: 1;
  transform: translateY(1px);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: color-mix(in oklch, var(--surface) 72%, white);
  border: 1px solid var(--border);
  padding: 3px;
}
.hero-brand-card {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 245px;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(10px);
}
.hero-brand-card img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: 0 0 auto;
}
.hero-wordmark {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-transform: uppercase;
}
.topnav nav { display: flex; gap: var(--gap-lg); }
.topnav nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.topnav nav a.is-active { color: var(--fg); }
.topnav nav a:hover { color: var(--fg); }
.pagefoot { padding-block: var(--gap-xl); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.pagefoot .row-between { flex-wrap: wrap; gap: var(--gap-md); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 84%, black); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent); }
.btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
.btn-arrow:hover::after { transform: translateX(2px); }

.card {
  background: color-mix(in oklch, var(--surface) 86%, white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-flat { background: transparent; border: 0; padding: 0; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--fg); padding: 24px 0 0; border-radius: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
}

.ph-img {
  background:
radial-gradient(circle at 30% 20%, var(--primary-soft), transparent 34%),
linear-gradient(135deg, var(--surface), var(--accent-soft)),
var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: var(--gap-md);
}
.ph-img.square { aspect-ratio: 1 / 1; }
.ph-img.portrait { aspect-ratio: 3 / 4; }
.ph-img.wide { aspect-ratio: 16 / 9; }
.ph-img.photo {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}
.ph-img.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero { padding-block: clamp(78px, 10vw, 132px); }
.hero-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--gap-2xl); align-items: center; }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 520px; }
.vessel-stage {
  height: 520px;
  border-radius: 22px;
  background:
linear-gradient(180deg, transparent 0 72%, color-mix(in oklch, var(--sand) 22%, transparent) 72% 100%),
color-mix(in oklch, var(--surface) 88%, white);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(0.98);
}
.vessel-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in oklch, var(--fg) 4%, transparent), color-mix(in oklch, var(--fg) 28%, transparent));
  pointer-events: none;
}
.vessel {
  position: absolute;
  left: 50%;
  bottom: 70px;
  width: 230px;
  height: 310px;
  transform: translateX(-50%);
  border-radius: 45% 45% 34% 34% / 22% 22% 46% 46%;
  background:
linear-gradient(90deg, color-mix(in oklch, var(--primary) 70%, white), var(--primary) 48%, color-mix(in oklch, var(--primary) 72%, black)),
var(--primary);
  box-shadow: inset 24px 0 42px color-mix(in oklch, white 24%, transparent), inset -26px 0 36px color-mix(in oklch, black 13%, transparent);
}
.vessel::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -22px;
  width: 132px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: color-mix(in oklch, var(--primary) 78%, black);
  border: 12px solid color-mix(in oklch, var(--primary) 72%, white);
}
.vessel::after {
  content: '';
  position: absolute;
  inset: 64px 34px auto;
  height: 2px;
  background: color-mix(in oklch, var(--sand) 54%, transparent);
  box-shadow: 0 34px 0 color-mix(in oklch, var(--sand) 45%, transparent), 0 68px 0 color-mix(in oklch, var(--sand) 34%, transparent);
}
.hero-note {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  width: 210px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.product-card { display: flex; flex-direction: column; gap: 14px; }
.catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1.35fr auto;
  gap: var(--gap-md);
  align-items: end;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 18px;
}
.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.search-field input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--surface) 70%, white);
  color: var(--fg);
  font: inherit;
  padding: 10px 12px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 72%, white);
  color: var(--fg);
  padding: 7px 12px;
  font-size: 13px;
}
.filter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.catalog-empty {
  margin: 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--muted);
  text-align: center;
}
.product-link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 14px;
}
.product-link .ph-img,
.product-link h3 {
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.product-link:hover .ph-img { border-color: var(--accent); transform: translateY(-2px); }
.product-link:hover h3 { color: var(--accent); }
.product-card .ph-img { border-radius: 14px; }
.product-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.product-meta-line {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.product-action {
  align-self: flex-start;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
}
.product-action.external::after {
  content: '↗';
  font-size: 12px;
}
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.swatch.clay { background: var(--primary); }
.swatch.sand { background: var(--sand); }
.swatch.sage { background: var(--accent); }

.detail-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gap-xl); align-items: start; }
.product-detail-list { display: grid; gap: var(--gap-lg); }
.product-detail-card {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: var(--gap-lg);
  align-items: start;
}
.product-detail-media {
  display: grid;
  gap: var(--gap-sm);
}
.detail-side-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.detail-side-facts span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.product-detail-card:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.spec-list { border-top: 1px solid var(--border); }
.spec-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; text-align: right; }

.course-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: var(--gap-lg);
  padding: 24px 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.course-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.course-meta-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
}
.contact-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-lg);
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--fg);
}
.about-band {
  background: color-mix(in oklch, var(--surface) 48%, transparent);
}
.about-metrics div {
  border-top: 1px solid var(--fg);
  padding-top: 14px;
}
.about-metrics strong {
  display: block;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.about-metrics span {
  color: var(--muted);
}
.mobile-product-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in oklch, var(--bg) 94%, white);
  box-shadow: 0 14px 40px color-mix(in oklch, black 12%, transparent);
  padding: 10px;
}
.mobile-product-cta div {
  min-width: 0;
}
.mobile-product-cta strong,
.mobile-product-cta span {
  display: block;
}
.mobile-product-cta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-product-cta span {
  color: var(--muted);
  font-size: 12px;
}
.mobile-product-cta .btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding-inline: 12px;
  font-size: 13px;
}

.auth-section { padding-block: clamp(58px, 8vw, 110px); }
.auth-shell {
  min-height: calc(100vh - 260px);
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in oklch, var(--surface) 86%, white);
}
.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 34px;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--accent) 10%, transparent), transparent 58%),
    color-mix(in oklch, var(--surface) 80%, white);
}
.auth-intro h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: 0;
}
.auth-intro .lead {
  margin-top: 18px;
  font-size: 17px;
}
.auth-form {
  display: grid;
  align-content: center;
  gap: var(--gap-md);
  padding: 34px;
}
.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--surface) 70%, white);
  color: var(--fg);
  font: inherit;
  padding: 12px 13px;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.form-error {
  margin: 0;
  color: var(--primary);
  font-size: 14px;
}
.dashboard-section {
  padding-top: 42px;
}
.dashboard-shell {
  gap: var(--gap-lg);
}
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.2fr minmax(280px, 0.8fr);
  gap: var(--gap-lg);
  align-items: end;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gap-sm);
}
.dashboard-stats div {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--surface) 72%, white);
  padding: 16px;
}
.dashboard-stats strong {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) 1.1fr;
  gap: var(--gap-lg);
  align-items: start;
}
.admin-panel {
  border-radius: 14px;
}
.admin-form,
.admin-product-list {
  display: grid;
  gap: var(--gap-md);
}
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}
.admin-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}
.import-button {
  position: relative;
  cursor: pointer;
}
.import-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.admin-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}
.admin-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--fg);
  background: color-mix(in oklch, var(--surface) 72%, white);
  font-size: 13px;
}
.admin-image-field {
  display: grid;
  grid-template-columns: 1fr 156px;
  gap: var(--gap-md);
  align-items: start;
}
.image-drop {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--surface) 72%, white);
  color: var(--fg);
  cursor: pointer;
  padding: 16px;
  text-align: center;
}
.image-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.image-drop span {
  font-weight: 600;
}
.admin-preview {
  width: 156px;
}
.admin-preview span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.save-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}
.catalog-preview {
  border-top: 1px solid var(--border);
  padding-top: var(--gap-md);
}
.admin-preview-card {
  max-width: 320px;
}
.admin-product-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--gap-sm);
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--gap-sm);
}
.admin-product-row img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}
.admin-product-row.is-hidden-product {
  opacity: 0.62;
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-row-actions .btn:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2, .hero-split, .detail-grid, .catalog-tools, .product-detail-card, .contact-strip, .auth-card, .dashboard-hero, .dashboard-layout, .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; }
  .topnav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px 10px;
  }
  .topnav nav {
    width: calc(100vw - (var(--gutter) * 2));
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .topnav nav::-webkit-scrollbar { display: none; }
  .topnav nav a {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in oklch, var(--surface) 72%, white);
    font-size: 13px;
  }
  .topnav nav a.is-active {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .hero { padding-block: 38px 54px; }
  .hero-split { gap: 34px; }
  .hero-visual, .vessel-stage { min-height: 420px; height: 420px; }
  .vessel { width: 188px; height: 250px; }
  .course-row { grid-template-columns: 1fr; gap: 8px; }
  .admin-product-row { grid-template-columns: 64px 1fr; }
  .admin-row-actions {
    grid-column: 1 / -1;
  }
  .admin-product-row .btn { width: 100%; }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --fs-h1: 38px;
    --fs-h2: 28px;
    --fs-h3: 20px;
    --fs-lead: 17px;
    --gap-lg: 24px;
    --gap-xl: 36px;
    --gap-2xl: 64px;
  }

  .section { padding-block: 48px; }
  .topnav .logo { font-size: 13px; letter-spacing: 0.11em; }
  .brand-mark { width: 36px; height: 36px; }
  .row-between {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-cta,
  .hero-cta .btn,
  .section .row-between > .btn {
    width: 100%;
  }
  .btn { width: auto; min-height: 46px; }
  .hero-visual,
  .vessel-stage {
    min-height: 360px;
    height: 360px;
    border-radius: 16px;
  }
  .hero-brand-card {
    left: 14px;
    top: 14px;
    width: 190px;
    gap: 10px;
    padding: 10px;
  }
  .hero-brand-card img { width: 46px; height: 46px; }
  .hero-wordmark { font-size: 12px; letter-spacing: 0.12em; }
  .hero-note {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 12px;
  }
  .hero-note h3 { font-size: 18px; }
  .hero-note p { display: none; }
  .product-card {
    border-bottom: 1px solid var(--border);
    padding-bottom: 22px;
  }
  .product-top {
    align-items: flex-start;
  }
  .product-action {
    width: 100%;
    align-self: stretch;
  }
  .product-detail-card {
    padding: 18px;
    gap: 20px;
  }
  .product-detail-card .ph-img.portrait { aspect-ratio: 4 / 3; }
  .detail-side-facts { grid-template-columns: 1fr; }
  .spec-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .spec-list dd { text-align: left; }
  .course-row .btn { width: 100%; }
  .contact-strip { gap: 22px; }
  .card { padding: 20px; border-radius: 12px; }
  .pagefoot { padding-block: 32px; }
  .catalog-tools {
    gap: 14px;
    align-items: stretch;
  }
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .mobile-product-cta { display: flex; }
  body:has(.mobile-product-cta:not([hidden])) {
    padding-bottom: 82px;
  }
  .auth-shell {
    min-height: auto;
    place-items: stretch;
  }
  .auth-section { padding-block: 36px; }
  .auth-intro {
    min-height: auto;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .auth-intro h1 { font-size: 32px; }
  .auth-form { padding: 24px; }
  .auth-form .btn { width: 100%; }
  .dashboard-section { padding-top: 28px; }
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .dashboard-stats div {
    min-height: 78px;
    padding: 14px;
  }
  .admin-image-field {
    grid-template-columns: 1fr;
  }
  .admin-preview {
    width: 100%;
    max-width: 220px;
  }
  .admin-actions,
  .admin-actions .btn,
  .admin-row-actions,
  .admin-row-actions .btn,
  .admin-tools,
  .admin-tools .btn {
    width: 100%;
  }
  .admin-product-row {
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: start;
  }
  .admin-product-row img {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 390px) {
  :root {
    --fs-h1: 34px;
    --fs-h2: 25px;
  }
  .topnav nav { width: calc(100vw - 36px); }
  .hero-visual,
  .vessel-stage {
    min-height: 320px;
    height: 320px;
  }
  .hero-brand-card { width: 172px; }
}

/* Public storefront redesign */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--fg);
  color: var(--bg);
  padding: 9px 12px;
  border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--primary) 72%, white);
  outline-offset: 3px;
}

.topnav {
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  border-bottom-color: color-mix(in oklch, var(--border) 78%, transparent);
}
.topnav-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 72px;
  padding-block: 10px;
}
.topnav nav { gap: 26px; }
.topnav nav a {
  position: relative;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}
.topnav nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.topnav nav a:hover::after,
.topnav nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }

.btn {
  min-height: 48px;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-light { background: var(--surface-light); color: var(--fg); border-color: var(--surface-light); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-secondary { background: transparent; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
}
.text-link::after { content: '↗'; font-size: 13px; transition: transform 180ms ease; }
.text-link:hover::after { transform: translate(2px, -2px); }
.text-link-light { color: #fff; }

.home-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 108px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #34372f;
  color: #fff;
}
.home-hero-media,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-hero-media { object-fit: cover; object-position: 58% 46%; }
.home-hero-shade {
  background: linear-gradient(90deg, rgba(20, 21, 18, .78) 0%, rgba(20, 21, 18, .42) 46%, rgba(20, 21, 18, .1) 78%), linear-gradient(0deg, rgba(20, 21, 18, .58) 0%, transparent 54%);
}
.home-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 52px;
}
.hero-kicker {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-hero h1 { max-width: 780px; color: #fff; text-shadow: 0 2px 28px rgba(0, 0, 0, .18); }
.hero-lead { max-width: 560px; margin: 24px 0 0; color: rgba(255, 255, 255, .86); font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 54px;
  color: rgba(255, 255, 255, .74);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-facts span + span::before { content: '·'; margin-right: 28px; }
.hero-scroll {
  position: absolute;
  right: 28px;
  bottom: 50px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .76);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after { content: ''; width: 1px; height: 42px; background: currentColor; }

.featured-section { padding-top: 92px; padding-bottom: 116px; }
.section-heading { margin-bottom: 44px; }
.section-heading-split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 72px;
  align-items: end;
}
.section-heading-split h2 { max-width: 760px; }
.section-intro { max-width: 52ch; margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.featured-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  gap: 18px;
  align-items: start;
}
.product-card { gap: 0; min-width: 0; }
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.6,.2,1); }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--surface-light) 92%, transparent);
  color: var(--fg);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-card-body { display: grid; gap: 14px; padding-top: 18px; }
.product-card-copy { display: grid; gap: 7px; }
.product-card-kicker { margin: 0; color: var(--primary); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.product-card h3 { font-size: clamp(23px, 2.5vw, 32px); }
.product-card-summary { margin: 0; color: var(--muted); font-size: 14px; }
.product-card-footer { display: flex; justify-content: space-between; align-items: end; gap: 14px; border-top: 1px solid var(--border); padding-top: 13px; }
.product-card-price span,
.product-card-price strong { display: block; }
.product-card-price span { color: var(--muted); font-size: 11px; }
.product-card-price strong { margin-top: 2px; font-family: var(--font-mono); font-size: 13px; }
.product-card-action { color: var(--accent); font-size: 13px; font-weight: 600; }
.product-card-action::after { content: ' →'; }
.featured-grid .product-card:first-child .product-media { aspect-ratio: 1 / 1; }

.process-band { padding: 104px 0 0; background: var(--surface); }
.process-heading { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 40px; align-items: end; padding-bottom: 50px; }
.process-heading .eyebrow { align-self: start; }
.process-heading p:last-child { margin: 0; color: var(--muted); }
.process-gallery { display: grid; grid-template-columns: 1fr 1.28fr .78fr; gap: 2px; }
.process-gallery figure { position: relative; min-height: 560px; margin: 0; overflow: hidden; }
.process-gallery img { width: 100%; height: 100%; object-fit: cover; }
.process-gallery figure:nth-child(1) img { object-position: 54% center; }
.process-gallery figure:nth-child(3) img { object-position: 48% center; }
.process-gallery figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--fg) 82%, transparent);
  color: #fff;
  font-size: 12px;
}
.process-gallery figcaption span { font-family: var(--font-mono); color: #d8b290; }

.studio-callout { padding-top: 112px; padding-bottom: 128px; }
.studio-callout-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: end; }
.studio-callout h2 { max-width: 700px; }
.studio-callout-copy > p { margin: 0; color: var(--muted); font-size: 18px; }
.studio-callout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }

.pagefoot { padding: 64px 0 24px; background: var(--fg); color: #e9e7df; border: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .5fr 1fr; gap: 72px; padding-bottom: 48px; }
.footer-brand .wordmark { display: block; color: #fff; font-size: 18px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.footer-brand p { max-width: 36ch; margin: 16px 0 0; color: #b8bab0; }
.pagefoot nav,
.footer-contact { display: grid; align-content: start; gap: 12px; }
.pagefoot a { color: #e9e7df; }
.pagefoot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { justify-items: end; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid #4a4b44; color: #96998f; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }

.page-hero { padding: 88px 0 62px; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.page-hero h1 { max-width: 820px; font-size: clamp(48px, 6.5vw, 86px); }
.page-hero-copy { max-width: 52ch; margin: 0; color: var(--muted); font-size: 18px; }
.page-hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.catalog-section { padding-top: 12px; padding-bottom: 110px; }
.catalog-tools { grid-template-columns: minmax(220px, .7fr) 1fr auto; background: transparent; }
.search-field input { background: var(--surface-light); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 18px; }
.catalog-grid .product-media { aspect-ratio: 4 / 5; }

.detail-section { padding-top: 20px; padding-bottom: 112px; }
.product-detail-list { gap: 24px; }
.product-detail-card {
  grid-template-columns: minmax(280px, .9fr) 1.1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface-light);
}
.product-detail-media { gap: 0; background: var(--surface); }
.product-detail-media .ph-img { height: 100%; min-height: 620px; border: 0; border-radius: 0; }
.product-detail-content { display: flex; flex-direction: column; justify-content: space-between; gap: 34px; padding: clamp(28px, 5vw, 62px); }
.product-detail-content .lead { margin-top: 16px; }
.detail-side-facts { display: flex; flex-wrap: wrap; }
.detail-side-facts span { border-radius: 4px; }
.detail-price-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.detail-price { font-family: var(--font-display); font-size: 30px; }
.detail-status { color: var(--primary); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.courses-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; padding-bottom: 112px; }
.courses-media { position: sticky; top: 100px; }
.courses-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.courses-media p { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.course-list { border-bottom: 1px solid var(--border); }
.course-row { grid-template-columns: 124px 1fr; padding: 30px 0; }
.course-row .btn { grid-column: 2; width: fit-content; }
.course-description { margin: 7px 0 0; color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: start; padding-bottom: 112px; }
.contact-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.contact-panel { display: grid; gap: 28px; }
.contact-block { display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.contact-block .meta { color: var(--primary); }
.contact-block p { margin: 0; }
.contact-block a { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .featured-grid { grid-template-columns: 1.1fr .9fr; }
  .featured-grid .product-card:last-child { grid-column: 2; }
  .process-heading { grid-template-columns: .6fr 1.4fr; }
  .process-heading p:last-child { grid-column: 2; }
  .process-gallery { grid-template-columns: 1fr 1fr; }
  .process-gallery figure:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { justify-items: start; text-align: left; }
}

@media (max-width: 760px) {
  .topnav-inner { grid-template-columns: 1fr auto; align-items: center; min-height: auto; }
  .topnav-inner .logo { grid-column: 1; }
  .topnav-inner .nav-cta { grid-column: 2; grid-row: 1; }
  .topnav nav {
    grid-column: 1 / -1;
    width: calc(100vw - (var(--gutter) * 2));
    padding-top: 6px;
    padding-bottom: 2px;
  }
  .topnav nav a { border: 0; border-radius: 0; background: transparent; padding: 6px 0; }
  .topnav nav a::after { bottom: 0; }
  .home-hero { min-height: calc(100svh - 142px); }
  .home-hero-media { object-position: 62% center; }
  .home-hero-shade { background: linear-gradient(90deg, rgba(20, 21, 18, .75), rgba(20, 21, 18, .2)), linear-gradient(0deg, rgba(20, 21, 18, .7), transparent 65%); }
  .home-hero-content { padding-top: 70px; padding-bottom: 34px; }
  .home-hero h1 { max-width: 8ch; font-size: clamp(48px, 14vw, 68px); }
  .hero-lead { max-width: 34ch; font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-facts { margin-top: 38px; gap: 8px 16px; }
  .hero-facts span + span::before { margin-right: 16px; }
  .hero-scroll { display: none; }
  .section-heading-split,
  .studio-callout-inner,
  .page-hero-grid,
  .courses-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .featured-section { padding-top: 68px; padding-bottom: 80px; }
  .featured-grid { grid-template-columns: 1fr; gap: 42px; }
  .featured-grid .product-card:last-child { grid-column: auto; }
  .featured-grid .product-card:first-child .product-media,
  .product-media { aspect-ratio: 4 / 5; }
  .process-band { padding-top: 74px; }
  .process-heading { grid-template-columns: 1fr; gap: 18px; }
  .process-heading p:last-child { grid-column: auto; }
  .process-gallery { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .process-gallery figure,
  .process-gallery figure:last-child { display: block; flex: 0 0 82vw; min-height: 480px; scroll-snap-align: start; }
  .studio-callout { padding-top: 76px; padding-bottom: 88px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .page-hero { padding: 60px 0 44px; }
  .page-hero h1 { font-size: 48px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 46px; }
  .catalog-tools { grid-template-columns: 1fr; }
  .product-detail-card { grid-template-columns: 1fr; }
  .product-detail-media .ph-img { min-height: 0; aspect-ratio: 4 / 5; }
  .courses-media { position: static; }
  .course-row { grid-template-columns: 1fr; }
  .course-row .btn { grid-column: auto; width: 100%; }
  .contact-block { grid-template-columns: 1fr; gap: 6px; }
}
