/* Page sections. */

.shell {
  width: min(1320px, calc(100% - 8vw));
  margin-inline: auto;
}

.shell-wide {
  width: min(1600px, calc(100% - 5vw));
  margin-inline: auto;
}

main {
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); font-weight: 700; }

p { margin: 0 0 1rem; }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.band {
  position: relative;
  padding: calc(4.5rem + 4vw) 0 calc(4.5rem + 3vw);
}

.band + .band {
  margin-top: -3vw;
}

.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

/* Hero — diagonal split, type low-left, photo clipped */
.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.15fr);
  min-height: calc(100svh - 6.75rem);
  position: relative;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4.5rem) 4vw clamp(2.5rem, 6vw, 5rem);
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.02;
  width: max-content;
  max-width: min(94vw, 24ch);
  margin: 0.15em 0 0.2em;
  background: var(--surface-base);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.02em 0.08em 0.06em;
}

.hero h2 {
  max-width: 18em;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 700;
}

.deck { max-width: 38rem; color: var(--text-secondary); }

.byline {
  margin-top: 0.5rem;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.hero-num {
  position: absolute;
  top: -0.18em;
  right: -0.12em;
  font-size: clamp(8rem, 28vw, 22rem);
  opacity: 0.07;
  z-index: 0;
}

.hero-visual {
  position: relative;
  min-height: 68vh;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  object-position: 62% 62%;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 1;
  left: 14%;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--surface-ink);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  line-height: 1.45;
}

/* Protocol — narrow column + overlapping index on a stripe field */
.protocol::before {
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, var(--stripe) 12px 13px),
    var(--surface-raised);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
}

.protocol-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.keybox {
  margin-top: -12vh;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--surface-base);
  border-left: 6px solid var(--brand-primary);
  box-shadow: var(--shadow-panel);
}

.keybox ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}

.keybox li {
  counter-increment: point;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-subtle);
}

.keybox li::before {
  content: counter(point, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--brand-primary);
}

/* Habits — five unequal diagonal slices */
.habits-intro {
  position: relative;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  padding-left: clamp(2.5rem, 6vw, 5rem);
}

.habits-rot {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--brand-primary);
  opacity: 0.2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.habit {
  display: grid;
  min-width: 0;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
  position: relative;
}
.habit > * { min-width: 0; }
.habit-copy { overflow-wrap: break-word; }

.habit-1 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.habit-2 { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
.habit-4 { grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.7fr); }
.habit-5 { grid-template-columns: 0.35fr minmax(0, 1fr) minmax(220px, 0.75fr); }

.habit-1 .frame {
  min-height: 420px;
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
  width: 100%;
}

.habit-2 .habit-copy {
  padding: clamp(1.25rem, 2vw, 2rem);
  background-image: repeating-linear-gradient(-45deg, transparent 0 9px, var(--stripe) 9px 11px);
  background-color: var(--surface-raised);
  clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%);
}

.habit-2 .frame {
  min-height: 340px;
  margin-top: -6vh;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.habit-3 {
  grid-template-columns: 1fr;
  min-height: 70vh;
}

.habit-3 .frame {
  min-height: 62vh;
  width: 100%;
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

.habit-3 .habit-copy {
  position: relative;
  z-index: 2;
  width: min(36rem, 88vw);
  margin-top: -28vh;
  margin-left: 6vw;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--surface-base);
  border-top: 8px solid var(--brand-primary);
}

.habit-4 .habit-copy {
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
}

.habit-4 .habit-copy h3,
.habit-4 .idx { color: var(--brand-accent); }

.habit-4 .frame {
  min-height: 380px;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 14% 100%);
}

.habit-5 .habit-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.8;
  color: var(--brand-primary);
  opacity: 0.18;
}

.habit-5 .frame {
  min-height: 320px;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  color: var(--brand-primary);
}

.habit-4 .step-num { color: var(--brand-accent); }

/* Boundary — full-bleed burgundy, one measured column, empty field */
.limit::before {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(245, 240, 232, 0.06) 14px 15px),
    var(--brand-primary);
  clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 calc(100% - 4vw));
}

.limit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  color: var(--text-inverse);
}

.limit .health-box {
  max-width: 40rem;
  justify-self: end;
}

.health-box strong { color: var(--brand-accent); }

/* Instrument — breakout photo + spec sheet + giant price */
.instrument-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.instrument-visual {
  width: 100%;
  min-height: 520px;
  clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%);
}

.instrument-visual img { object-position: 50% 45%; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0;
}

.price .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--brand-primary);
}

.price .note,
.product-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.product-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
}

/* FAQ — narrow column parked on the right, vast empty left */
.faq-grid {
  display: grid;
  grid-template-columns: 1.1fr minmax(280px, 560px);
  gap: 2rem;
  align-items: start;
}

.faq-void {
  min-height: 40vh;
  background-image: repeating-linear-gradient(-45deg, transparent 0 16px, var(--stripe) 16px 17px);
  clip-path: polygon(0 0, 80% 0, 100% 100%, 0 88%);
  position: relative;
}

.faq-void span {
  position: absolute;
  left: 4vw;
  bottom: 8%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.8;
  color: var(--brand-primary);
  opacity: 0.15;
}

/* Register — primary field, type left, clipped form right */
.register::before {
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(228, 197, 106, 0.09) 18px 19px),
    var(--brand-primary);
  clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
}

.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  color: var(--text-inverse);
}

.register h2 { max-width: 10em; }
.register .nl-note { grid-column: 2; margin-top: -1rem; }

/* Colophon */
.colophon {
  position: relative;
  background: var(--surface-ink);
  color: var(--text-inverse);
  padding: clamp(4rem, 8vw, 7rem) 0 2.5rem;
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -2vw;
}

.colophon-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-inverse);
}

.colophon-mark:hover { color: var(--brand-accent); }

.colophon-statement {
  max-width: 28rem;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  margin: 1.25rem 0 2rem;
}

.foot-links {
  grid-column: 1 / -1;
}

.colophon-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem 3rem;
  align-items: end;
}

.disc {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  border-top: 1px solid rgba(245, 240, 232, 0.2);
  padding-top: 1.5rem;
  font-size: var(--text-sm);
  color: var(--text-inverse-soft);
}

.disc p { margin: 0; }
.disc a { color: var(--brand-accent); }

.legal-id { grid-column: 1 / -1; }

/* Contact dossier */
.contact-dossier {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  min-height: calc(100svh - 8rem);
}

.contact-lead {
  padding: clamp(2.5rem, 6vw, 5rem) 6vw;
}

.contact-registry {
  background: var(--brand-primary);
  color: var(--text-inverse);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
}

.contact-registry h2 { color: var(--brand-accent); }

.spec {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-registry .spec { border-bottom-color: rgba(245, 240, 232, 0.25); }

.spec dt {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.spec dd { margin: 0; }
.spec a { color: inherit; }

/* Legal — narrow column, empty striped field */
.legal-dossier {
  display: grid;
  grid-template-columns: minmax(4rem, 0.55fr) minmax(0, 680px) minmax(2rem, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(2.5rem, 6vw, 5rem) 4vw 4rem;
  align-items: start;
}

.legal-spine {
  position: sticky;
  top: 8rem;
  min-height: 40vh;
  background-image: repeating-linear-gradient(-45deg, transparent 0 8px, var(--stripe) 8px 9px);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}

.legal-spine span {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.legal-copy h1 { margin-bottom: 0.75rem; }
.legal-copy h2 {
  font-size: var(--text-h3);
  margin: 2rem 0 0.6rem;
}
.legal-copy .eff {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}
.legal-copy ul { padding-left: 1.1rem; }
.legal-copy li { margin: 0.35rem 0; }

.thanks {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  min-height: calc(100svh - 8rem);
}

.thanks-copy {
  padding: clamp(3rem, 8vw, 7rem) 6vw;
  align-self: end;
}

.thanks-field {
  background: var(--brand-primary);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  background-image:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(228, 197, 106, 0.16) 14px 16px);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual {
    order: -1;
    min-height: 52vw;
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  }
  .hero-visual figcaption { left: 0.75rem; right: 0.75rem; bottom: 14%; }
  .hero h1 { width: 100%; }
  .hero-num { font-size: 28vw; top: auto; bottom: 0; right: 0; }
  .protocol-grid,
  .instrument-grid,
  .register-grid,
  .limit-grid,
  .faq-grid,
  .contact-dossier,
  .legal-dossier,
  .thanks,
  .colophon-grid,
  .disc,
  .habit-1,
  .habit-2,
  .habit-4,
  .habit-5 {
    grid-template-columns: 1fr;
  }
  .keybox { margin-top: 0; }
  .habit-1 .frame,
  .instrument-visual,
  .habit-3 .frame {
    margin-left: 0;
    width: 100%;
  }
  .habit-3 { min-height: 0; }
  .habit-3 .frame { min-height: 56vw; }
  .habit-3 .habit-copy { margin: -8vh 0 0; width: auto; }
  .habit-2 .frame { margin-top: 0; }
  .faq-void { min-height: 18vh; }
  .legal-spine { display: none; }
  .legal-dossier { grid-template-columns: 1fr; }
  .contact-registry { clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 100%); }
  .thanks-field { min-height: 24vh; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%); }
  .limit .health-box { justify-self: start; }
  .register .nl-note { grid-column: auto; margin-top: 0; }
}

@media (max-width: 760px) {
  .shell,
  .shell-wide { width: calc(100% - 2rem); }
  .hero-copy,
  .contact-lead,
  .thanks-copy { padding-left: 1rem; padding-right: 1rem; }
  .habit-1 .frame,
  .habit-4 .frame,
  .habit-5 .frame,
  .instrument-visual { min-height: 240px; clip-path: none; }
  .colophon { clip-path: none; }
  .band::before { clip-path: none; }
  .register::before,
  .limit::before,
  .protocol::before { clip-path: none; }
}
