@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --bg: #fff;
  --paper: #fff;
  --fg: #000;
  --muted: #555;
  --line: #000;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --display: "Syne", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-transform: uppercase;
}

h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
h1 { font-size: clamp(2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 2rem); }
h3 { font-size: 1rem; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  margin: 0 0 12px;
  color: var(--muted);
}
.mute { color: var(--muted); }
.gold { color: var(--fg); }

.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(680px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #000;
  padding: 14px 22px 10px;
}
.mast-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  container-type: inline-size;
  container-name: rail;
}
.brand, .brand-compact {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand-sub, .mast-word { display: none; }
.houses {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.houses a, .nav-desktop a {
  padding: 8px 12px;
  position: relative;
}
.houses a::after, .nav-desktop a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.houses a:hover::after, .houses a.is-active::after,
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { transform: scaleX(1); }
.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  max-width: 1120px;
  margin: 0 auto;
}
.header-tools {
  display: flex; align-items: center; gap: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  flex: none;
}
.header-tools button, .header-tools a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 8px;
}
.header-tools .tool-icon {
  width: 22px;
  height: 22px;
  display: none;
  flex: none;
}
.header-tools [data-open="wish"] .tool-icon,
.header-tools [data-open="cart"] .tool-icon { display: block; }
.header-tools [data-open="wish"] .label,
.header-tools [data-open="cart"] .label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.header-tools .count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  border: 1px solid #000;
  background: #fff;
  font-size: 10px; display: grid; place-items: center;
  letter-spacing: 0;
}
.header-tools .count[hidden] { display: none; }
.menu-toggle { display: none; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }

.mobile-menu {
  display: none;
  position: fixed; inset: 72px 0 0; z-index: 55;
  background: #fff;
  padding: 28px 24px;
  overflow: auto;
  border-top: 1px solid #000;
}
.mobile-menu.is-open { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu a { font-family: var(--display); font-size: 26px; font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: scaleX(1); }
.btn-solid { background: #000; color: #fff; }
.btn-solid::before { background: #fff; }
.btn-solid:hover { color: #000; }
.btn-ghost { border-color: transparent; }
.btn-ghost::before { display: none; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.hero, .hero-statement, .profile-hero { padding: 48px 0 8px; }
.hero-copy { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero-copy h1, .hero h1 {
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  margin: 0 0 16px;
  max-width: none;
  clip-path: inset(0 0 0 0);
  animation: clipIn 0.9s var(--ease) both;
}
.hero-copy p.lede, .lede {
  max-width: 40em;
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  animation: fadeUp 0.8s 0.15s var(--ease) both;
}
.hero-bg, .filigree, .chips, .chip, .dock, .mh-cursor, .mh-cursor-ring { display: none !important; }

.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 52vh;
  margin-top: 40px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}
.panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 32px;
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #fff;
}
.panel:last-child { border-right: 0; }
.panel-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 0.7s var(--ease);
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.22) 42%, rgba(0,0,0,0.86) 100%);
  transform: none;
  transition: background 0.45s var(--ease);
}
.panel:hover { color: #fff; }
.panel:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.18) 38%, rgba(0,0,0,0.92) 100%);
}
.panel:hover .panel-shot { transform: scale(1.12); }
.panel small,
.panel strong,
.panel p { position: relative; z-index: 2; }
.panel small { font-size: 11px; letter-spacing: 0.2em; opacity: 0.65; }
.panel strong {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  display: block;
  margin: 10px 0 8px;
  line-height: 1.12;
}
.panel p { margin: 0; max-width: 22em; font-size: 13px; letter-spacing: 0.08em; }

.scene { display: grid; grid-template-columns: repeat(3, 1fr); }
.portal { display: none; }

.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #000; }
.world-card { padding: 32px; }
.world-card h3 { font-size: 28px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0 0; }
.spec-table th, .spec-table td {
  border-bottom: 1px solid #ddd;
  padding: 14px 0;
  text-align: left;
}
.spec-table th { width: 34%; font-size: 11px; letter-spacing: 0.16em; }

section { padding: 56px 0; }
.section-head { margin-bottom: 22px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #000; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #000; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list li { padding: 12px 0; border-bottom: 1px solid #ddd; }

.card, .product-card, .course-card, .post-card, .media-card {
  background: #fff;
  overflow: hidden;
}
a.card { display: block; padding: 22px; }
.product-card .media { aspect-ratio: 4/5; background: #eee; overflow: hidden; }
.product-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .media img { transform: scale(1.06); }
.product-card .body, .course-card .body, .card .body, .media-card .body { padding: 14px 16px 16px; }
.price { font-weight: 700; }

.marquee { display: none; }

.band {
  padding: 64px 0;
  background: #000;
  color: #fff;
  width: 100%;
  margin: 0;
}
.band a { border-bottom: 1px solid rgba(255,255,255,0.45); }

.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(255,255,255,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(400px, 100%);
  background: #fff;
  border-left: 1px solid #000;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: none; }
.drawer header, .modal header {
  padding: 16px 18px; border-bottom: 1px solid #000;
  display: flex; justify-content: space-between; align-items: center;
}
.drawer .scroll { flex: 1; overflow: auto; padding: 14px 16px; }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #eee;
}
.modal-layer {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.75);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-layer.is-open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(420px, calc(100% - 24px));
  background: #fff;
  border: 1px solid #000;
}
.form-grid { display: grid; gap: 12px; padding: 18px; }
label.field {
  display: grid; gap: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #666;
}
input, textarea, select {
  background: #fff;
  border: 1px solid #000;
  padding: 12px;
  outline: none;
  font-family: var(--font);
  text-transform: none;
}
input:focus, textarea:focus, select:focus { background: #f7f7f7; }

.terms-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  grid-column: 1 / -1;
  text-transform: none !important;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #111;
}
.terms-line span, .terms-line a { text-transform: none !important; letter-spacing: 0; }
.terms-line a { text-decoration: underline; }
.terms-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: #000;
  padding: 0;
}

.cmdk {
  position: fixed; inset: 0; z-index: 120;
  display: none; place-items: start center; padding-top: 12vh;
  background: rgba(255,255,255,0.8);
}
.cmdk.is-open { display: grid; }
.cmdk-box { width: min(560px, calc(100% - 24px)); background: #fff; border: 1px solid #000; }
.cmdk-box header {
  padding: 16px 18px; border-bottom: 1px solid #000;
  display: flex; justify-content: space-between; align-items: center;
}
.cmdk-box header h3 { margin: 0; font-size: 1rem; }
.cmdk-box header [data-close] {
  font-size: 28px;
  line-height: 1;
  padding: 0 6px;
}
.cmdk input { width: 100%; border: 0; border-bottom: 1px solid #000; padding: 16px; }
.cmdk-list { max-height: 320px; overflow: auto; }
.cmdk-list button {
  width: 100%; text-align: left; padding: 12px 16px;
  display: flex; justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.wa-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  background: #000; color: #fff;
  padding: 12px 16px;
}

.pre-foot {
  padding: 64px 0 72px;
  border-top: 1px solid #000;
  background: #fff;
}
#support-me .field { color: inherit; }
.band .btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.band .btn::before { background: #000; }
.band .btn:hover { color: #fff; }

.site-footer {
  padding: 56px 0 36px;
  border-top: 1px solid #000;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-size: 14px; letter-spacing: 0.16em; }
.site-footer a { display: block; margin: 8px 0; }

.progress { height: 2px; background: #ddd; margin-top: 8px; }
.progress > span { display: block; height: 100%; background: #000; }
.lesson { padding: 18px 0; border-bottom: 1px solid #ddd; }
.badge { font-size: 11px; letter-spacing: 0.14em; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat b { display: block; font-size: 22px; }

.quote-board { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.estimate {
  position: sticky; top: 90px;
  background: #000; color: #fff;
  padding: 28px;
}
.estimate .sum { font-family: var(--display); font-size: 40px; font-weight: 800; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 14px 0; text-align: left; border-bottom: 1px solid #ddd; }
.table tr:hover td { background: #f5f5f5; }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: #000; color: #fff;
  padding: 12px 18px; opacity: 0; pointer-events: none;
  font-size: 12px; letter-spacing: 0.12em;
  transition: opacity 0.3s;
}
.toast.is-on { opacity: 1; }

.media-frame img, .media-frame video, .media-card img, .media-card video {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #eee;
}
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb-row button { width: 64px; height: 64px; padding: 0; border: 1px solid #000; overflow: hidden; }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lightbox {
  position: fixed; inset: 0; z-index: 130; display: none; place-items: center;
  background: rgba(255,255,255,0.94); padding: 20px;
}
.lightbox.is-open { display: grid; }
.lightbox img, .lightbox video { max-width: min(1000px, 100%); max-height: 86vh; }

.fx-wipe {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  background: #000;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
body.is-leave .fx-wipe { transform: none; pointer-events: auto; }
body.is-enter .fx-wipe {
  transform: none;
  animation: wipeOut 0.45s var(--ease) forwards;
}

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { animation: fadeUp 0.7s var(--ease) forwards; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #000; }
.work-tile {
  background: #fff;
  padding: 28px 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}
.work-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: #000;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.work-tile:hover { color: #fff; }
.work-tile:hover::before { transform: none; }
.work-tile > * { position: relative; z-index: 1; }
.work-tile small { font-size: 11px; letter-spacing: 0.18em; opacity: 0.55; }
.work-tile strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.06em; line-height: 1.15; }
.work-tile p { margin: 0; font-size: 12px; letter-spacing: 0.06em; }

.tip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.tip-row .btn.is-on {
  background: #000;
  color: #fff;
}
.tip-row .btn.is-on::before { transform: scaleX(1); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #000; }
.why-card {
  background: #fff;
  padding: 28px 22px;
  min-height: 200px;
}
.why-card b {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  display: block;
  margin: 0 0 10px;
}
.why-card p { margin: 0; font-size: 13px; letter-spacing: 0.04em; }
.compare { width: 100%; }
.compare th { font-size: 11px; letter-spacing: 0.16em; width: 50%; }
.faq details { border-bottom: 1px solid #ddd; padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; letter-spacing: 0.08em; }
.faq details p { margin: 10px 0 0; max-width: 48em; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes clipIn {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes wipeOut {
  from { transform: none; }
  to { transform: translateY(-100%); }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline; }
  .grid-3, .grid-4, .grid-2, .worlds, .quote-board, .foot-grid, .stat-row, .split, .section-head, .steps, .scene, .work-grid, .panels, .why-grid {
    grid-template-columns: 1fr;
  }
  .panel { border-right: 0; border-bottom: 1px solid #fff; min-height: 280px; }
  h1, .hero-copy h1, .hero h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .header-tools .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .header-tools .tool-icon { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-tools button, .header-tools a { min-width: 36px; min-height: 36px; padding: 6px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .header-tools .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .header-tools .tool-icon { display: block; }
  .site-header { padding: 8px 14px 6px; }
}
@container rail (max-width: 820px) {
  .header-tools .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .header-tools .tool-icon { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-copy h1, .lede { opacity: 1; transform: none; animation: none; clip-path: none; }
  .fx-wipe, .btn::before, .panel::before, .work-tile::before { transition: none; }
  .panel-shot, .panel:hover .panel-shot { transform: none; }
}
