/* Whisper Inc. */

:root {
  --bg: #0a0a0a;
  --panel: #131313;
  --rule: #262626;
  --rule-strong: #3a3a3a;
  --text: #ebe7e0;
  --muted: #9b968e;
  --faint: #6b6760;
  --red: #b3262b;

  --display: "Forum", "Times New Roman", serif;
  --body: "EB Garamond", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-family: var(--body);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-outline:hover { border-color: var(--text); }

.text-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  background:
    linear-gradient(var(--text), var(--text)) 0 100% / 0 1px no-repeat,
    linear-gradient(var(--rule-strong), var(--rule-strong)) 0 100% / 100% 1px no-repeat;
  transition: color 0.2s, background-size 0.4s var(--ease);
}
.text-link:hover { color: var(--text); background-size: 100% 1px, 100% 1px; }

/* Header ------------------------------------------------------------------ */
.announce {
  display: block;
  padding: 0.5rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}
.announce:hover { color: var(--text); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo img { height: 28px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a,
.main-nav button {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.main-nav a:hover,
.main-nav button:hover,
.main-nav a[aria-current="page"] { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-family: var(--display);
  font-size: 1.15rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 0 var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
}
.mobile-menu:not(.is-open) { display: none; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); margin-bottom: 1.5rem; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a,
.mobile-menu nav button {
  font-family: var(--display);
  font-size: 2rem;
  text-align: left;
  text-decoration: none;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  cursor: pointer;
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .logo img { height: 22px; }
}

/* Search ------------------------------------------------------------------ */
.search-dialog {
  width: min(600px, calc(100% - 2rem));
  max-height: min(70vh, 600px);
  margin: 10vh auto auto;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.search-field { display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem; border-bottom: 1px solid var(--rule); }
.search-field input {
  flex: 1;
  height: 60px;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.3rem;
}
.search-field input::placeholder { color: var(--faint); }
.search-field button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.search-results { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.search-results a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.search-results a:hover,
.search-results a.is-active { background: var(--panel); }
.search-results img { width: 48px; height: 48px; object-fit: cover; background: var(--panel); }
.search-results .r-name { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.search-results .r-tag { font-size: 0.95rem; color: var(--muted); }
.search-results .r-price { color: var(--muted); }
.search-empty { padding: 2rem 1.25rem; color: var(--muted); }

/* Home -------------------------------------------------------------------- */
.intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -38%);
  background: radial-gradient(closest-side, rgba(235, 231, 224, 0.075), transparent);
  pointer-events: none;
}
.intro-mark { display: block; width: min(280px, 60vw); margin: 0 auto 2.5rem; cursor: default; }
.intro > .wrap > * { animation: rise 0.9s var(--ease) both; }
.intro > .wrap > :nth-child(2) { animation-delay: 0.12s; }
.intro > .wrap > :nth-child(3) { animation-delay: 0.2s; }
.intro > .wrap > :nth-child(4) { animation-delay: 0.26s; }
.intro > .wrap > :nth-child(5) { animation-delay: 0.34s; }
.intro-mark { animation-name: surface !important; animation-duration: 1.6s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes surface { from { opacity: 0; transform: scale(0.97); filter: blur(6px); } }
.intro h1 { margin-bottom: 1rem; }
.intro p { max-width: 34em; margin: 0 auto 0.6rem; color: var(--muted); font-size: 1.25rem; }
.intro .actions { margin-top: 2.25rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0; }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.page-head h1 { margin-bottom: 0.5rem; }
.page-head p { color: var(--muted); font-size: 1.25rem; max-width: 36em; margin: 0; }
.page-head p + p { margin-top: 0.75rem; }

/* Product grid ------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.5rem;
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

.item { display: block; text-decoration: none; }
.item-media {
  position: relative;
  aspect-ratio: 1000 / 1414;
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.item-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.3s;
}
.item-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
a.item:hover .item-media img { transform: scale(1.04); }
.sticker {
  position: absolute;
  z-index: 1;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.3rem 0.6rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transform: rotate(3deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.sticker-soldout { background: var(--red); color: #fff; }
.item-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; margin: 0 0 0.2rem; }
.item-name span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
a.item:hover .item-name span { background-size: 100% 1px; }
.item-price { color: var(--muted); }
.item.is-soldout .item-media img { opacity: 0.3; filter: grayscale(1); }

/* Feature (bundle) -------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature-media { background: var(--panel); padding: 10%; }
.feature-media img { margin: 0 auto; max-height: 520px; width: auto; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.feature p { color: var(--muted); }
.feature .actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.75rem; }
.feature .price { font-size: 1.4rem; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }

.list-rules { list-style: none; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.list-rules li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; }
.list-rules li span:last-child { color: var(--muted); text-align: right; }
.list-rules a { text-decoration: none; }
.list-rules a:hover { text-decoration: underline; text-underline-offset: 4px; }

.patreon { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.patreon h2 { margin-bottom: 0.3rem; }
.patreon p { color: var(--muted); margin: 0; }

.closing { text-align: center; color: var(--faint); font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.05em; }

/* Shop -------------------------------------------------------------------- */
.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  margin-bottom: 2.25rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tabs { display: flex; gap: 1.75rem; flex-wrap: wrap; }
@media (max-width: 700px) {
  .shop-bar { flex-wrap: nowrap; flex-direction: column; align-items: stretch; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 1.4rem; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}
.tab {
  background: none;
  border: 0;
  padding: 0.2rem 0;
  font-family: var(--body);
  font-size: 1.1rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }
.sort { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 1rem; }
.sort select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--rule-strong);
  padding: 0.35rem 0.6rem;
  font-family: var(--body);
  font-size: 1rem;
}
.empty-state { padding: 3rem 0; color: var(--muted); }

/* Product ----------------------------------------------------------------- */
.breadcrumb { padding: 1.25rem 0 0; font-size: 0.95rem; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 0.4rem; }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 1.75rem 0 4rem;
  align-items: start;
}
.product-media { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--panel); padding: 8%; }
.product-media img { margin: 0 auto; max-height: 72vh; width: auto; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }

.product-info h1 { margin-bottom: 0.4rem; }
.product-info .price { font-size: 1.5rem; margin: 0 0 1.5rem; }

.details { margin: 0 0 1.75rem; border-top: 1px solid var(--rule); }
.details div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.details dt { color: var(--faint); }
.details dd { margin: 0; }

.buy {
  scroll-margin-top: calc(var(--header-h) + 2rem);
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  text-align: center;
}
.buy .note { font-size: 1rem; color: var(--muted); margin: 0 auto 1.25rem; max-width: 32em; }
.buy stripe-buy-button { display: flex; justify-content: center; min-height: 50px; }
.buy .fine { font-size: 0.9rem; color: var(--faint); margin: 0.75rem 0 0; }
.buy-inline { margin: 1.25rem 0 0; }

.prose p { color: var(--muted); }
.prose .lead { font-size: 1.35rem; line-height: 1.45; color: var(--text); }
.prose h2 { font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.prose ul li { padding: 0.15rem 0; }
.prose ul li::marker { color: var(--faint); }

.contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: c; }
.contents li { counter-increment: c; display: grid; grid-template-columns: 2.25rem 1fr; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.contents li::before { content: counter(c); color: var(--faint); }
.contents strong { font-weight: 400; display: block; }
.contents span { color: var(--muted); font-size: 1.02rem; }

.bundle-items { border-top: 1px solid var(--rule); }
.bundle-items > * {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.bundle-items img, .bundle-items .ph { width: 56px; height: 56px; object-fit: cover; background: var(--panel); }
.bundle-items strong { font-weight: 400; display: block; }
.bundle-items span { color: var(--muted); font-size: 1rem; }
.bundle-items a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.video { overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.9s var(--ease), opacity 0.3s; }
.video:hover img { transform: scale(1.03); opacity: 0.95; }
.video button {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.55rem 1.1rem;
  background: var(--text);
  color: var(--bg);
  border: 0;
  font-family: var(--body);
  font-size: 1rem;
  cursor: pointer;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding-top: 1rem; }
  .product-media { position: static; }
  .product-media img { max-height: 55vh; }
}

.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.buy-bar.is-visible { display: flex; }
.buy-bar .b-name { font-family: var(--display); font-size: 1.15rem; line-height: 1.1; }
.buy-bar .b-price { color: var(--muted); font-size: 1rem; }
.buy-bar .btn { padding: 0.6rem 1.2rem; }
@media (min-width: 861px) { .buy-bar.is-visible { display: none; } }

/* Content pages ----------------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: 2rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.story p { color: var(--muted); font-size: 1.25rem; }
.story p:first-of-type { color: var(--text); font-size: 1.45rem; line-height: 1.4; }
.story .warning { color: var(--red); font-family: var(--display); font-size: 1.3rem; }

.faq h2 { margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { padding: 0.9rem 0; cursor: pointer; font-size: 1.2rem; list-style-position: inside; }
.faq summary::marker { color: var(--faint); }
.faq details p { color: var(--muted); padding: 0 0 1rem 1.1rem; margin: 0; }

.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.field label { display: block; margin-bottom: 0.35rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1rem;
  border-radius: 0;
  outline: none;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--text); }
.form-status { margin: 0; min-height: 1.5em; color: var(--muted); }
.form-status.err { color: #d7676b; }

.aside h2 { font-size: 1.5rem; }
.aside p { color: var(--muted); }

.legal { max-width: 44rem; padding-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
.legal p,
.legal ul { color: var(--muted); }
.legal h3 { font-size: 1.15rem; margin: 1.25rem 0 0.35rem; }
.legal ul { padding-left: 1.1rem; }
.table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.25rem; color: var(--muted); }
.table th, .table td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
.table th { color: var(--text); font-weight: 400; }

/* Consultancy ------------------------------------------------------------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); counter-reset: s; }
.services li { counter-increment: s; padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--rule); }
.services li:nth-child(odd) { border-right: 1px solid var(--rule); }
.services li:nth-child(even) { padding-left: 2rem; }
.services li::before { content: "0" counter(s); display: block; color: var(--faint); margin-bottom: 0.75rem; }
.services h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.services p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(odd), .services li:nth-child(even) { padding: 1.5rem 0; border-right: 0; }
}
.steps { margin: 0 0 1.25rem; padding-left: 1.25rem; color: var(--muted); }
.steps li { padding: 0.3rem 0; }

/* YouTube row ------------------------------------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .video-grid { grid-template-columns: 1fr; } }
.yt-card { text-decoration: none; }
.yt-thumb { aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; margin-bottom: 0.75rem; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.yt-card:hover .yt-thumb img { transform: scale(1.04); }
.yt-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.yt-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Tutorials & unlisted pages ---------------------------------------------- */
.wrap.narrow { max-width: 820px; }
.tutorial { padding-bottom: 2rem; }
.tut-image { background: var(--panel); padding: 2rem; margin-bottom: 2rem; }
.tut-image img { max-height: 380px; width: auto; margin: 0 auto; }
.tut-section { padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.tut-section:first-child { border-top: 0; padding-top: 0.5rem; }
.tut-section h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.tut-section p,
.tut-section ul { color: var(--muted); }
.tut-section ul { padding-left: 1.1rem; }
.tut-section li { padding: 0.2rem 0; }
.tut-section strong { color: var(--text); font-weight: 500; }
.tut-section p a:not(.btn) { color: var(--text); text-underline-offset: 3px; }
.tut-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.tut-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tut-videos.single { grid-template-columns: 1fr; }
@media (max-width: 640px) { .tut-videos { grid-template-columns: 1fr; } }
.tut-video { margin: 0; }
.tut-video figcaption { margin-top: 0.5rem; }

.lock-form { max-width: 30rem; }
.centred { text-align: center; }
.centred .page-head p,
.page-head.centred p { margin-left: auto; margin-right: auto; }
.centred .lock-form { margin: 0 auto; }
.centred .tut-links { justify-content: center; }
.centred .tut-section ul { display: inline-block; text-align: left; }
.page-head.centred + .tutorial .tut-section:first-child { padding-top: 0; }
.riddle { color: var(--muted); font-style: italic; font-size: 1.3rem; line-height: 1.6; margin: 0 0 1.75rem; }
.lock-row { display: flex; gap: 0.5rem; }
.lock-row input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1rem;
  outline: none;
}
.lock-row input:focus { border-color: var(--text); }
.lock-error { min-height: 1.5em; margin-top: 0.75rem; color: var(--muted); }

/* Portrait -------------------------------------------------------------- */
.person { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.person-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: transform 1.4s var(--ease); }
.person:hover .person-photo img { transform: scale(1.05); }
.person-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, 0.5), transparent 45%); }
.person p { color: var(--muted); }
.person .sig { font-family: var(--display); color: var(--text); font-size: 1.3rem; }
@media (max-width: 800px) { .person { grid-template-columns: 1fr; } .person-photo { max-width: 420px; } }
.story-photo { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 2rem; max-width: 380px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: grayscale(1); }

/* Motion ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.lock-content:not([hidden]) { animation: rise 0.7s var(--ease) both; }
.mobile-menu.is-open { animation: fade 0.25s ease both; }
.mobile-menu.is-open nav > * { animation: rise 0.5s var(--ease) both; }
.mobile-menu.is-open nav > :nth-child(2) { animation-delay: 0.04s; }
.mobile-menu.is-open nav > :nth-child(3) { animation-delay: 0.08s; }
.mobile-menu.is-open nav > :nth-child(4) { animation-delay: 0.12s; }
.mobile-menu.is-open nav > :nth-child(5) { animation-delay: 0.16s; }
.mobile-menu.is-open nav > :nth-child(n + 6) { animation-delay: 0.2s; }
.search-dialog[open] { animation: rise 0.3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Conversion blocks ------------------------------------------------------ */
.credits { color: var(--text) !important; margin-top: 1rem !important; font-family: var(--display); font-size: 1.3rem !important; }
.head-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem !important; }
.service-price { color: var(--text) !important; margin-top: 0.9rem !important; font-family: var(--display); font-size: 1.1rem; }
.coach-line { color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0.9rem 0; margin: -1rem 0 2rem; font-size: 1.05rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.newsletter { border-top: 1px solid var(--rule); margin-top: 3rem; padding: clamp(2.5rem, 6vw, 4rem) 0; background: linear-gradient(180deg, var(--panel), var(--bg)); }
.newsletter-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem 4rem; align-items: center; }
.nl-copy h2 { margin-bottom: 0.4rem; }
.nl-copy p { color: var(--muted); margin: 0; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 0.5rem; }
.nl-row input { min-width: 0; padding: 0.75rem 0.9rem; border: 1px solid var(--rule-strong); background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.05rem; outline: none; border-radius: 0; }
.nl-row input:focus { border-color: var(--text); }
.nl-fine { font-size: 0.9rem; color: var(--faint); margin: 0.6rem 0 0; }
.nl-fine a { color: var(--muted); }
.nl-status { margin: 0.5rem 0 0; color: var(--muted); min-height: 1.5em; }
.nl-status.done { color: var(--text); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; animation: rise 0.6s var(--ease) both; }
.nl-status.err { color: #d7676b; }
@media (max-width: 860px) { .newsletter-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .nl-row { grid-template-columns: 1fr; } }
.site-footer { margin-top: 0; }

.tiers { align-items: stretch; padding-bottom: 1rem; }
.tier { border: 1px solid var(--rule); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; }
.tier p { color: var(--muted); }
.tier-main { border-color: var(--rule-strong); background: var(--panel); }
.tier-price { font-family: var(--display); font-size: 1.6rem; color: var(--text) !important; margin-bottom: 0.25rem; }

.start { max-width: 560px; text-align: center; padding-top: clamp(2.5rem, 7vw, 4rem); padding-bottom: 1rem; }
.start-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem; filter: grayscale(1); }
.start h1 { font-size: 2.4rem; margin-bottom: 0.25rem; }
.start-links { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.75rem; }
.start-links a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--rule-strong); text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.start-links a:hover { background: var(--panel); border-color: var(--text); }
.start-links strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.start-links span { color: var(--muted); font-size: 1rem; }

.upsell { border-top: 1px solid var(--rule); padding: clamp(3rem, 7vw, 4.5rem) 0 1rem; }
.upsell-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.upsell-card { display: block; padding: 1.5rem; border: 1px solid var(--rule-strong); text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.upsell-card:hover { background: var(--panel); border-color: var(--text); }
.upsell-card strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin-bottom: 0.4rem; }
.upsell-card span { color: var(--muted); }
@media (max-width: 800px) { .upsell-cards { grid-template-columns: 1fr; } }

/* Footer ------------------------------------------------------------------ */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--rule); padding: 2.5rem 0 2rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-top img { width: 84px; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-base { margin-top: 2.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.95rem; color: var(--faint); }
body.has-buy-bar .site-footer { padding-bottom: 5rem; }
@media (min-width: 861px) { body.has-buy-bar .site-footer { padding-bottom: 2rem; } }

/* Mobile: centre the footer and mailing-list blocks ------------------------ */
@media (max-width: 700px) {
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; gap: 1.5rem 2.5rem; text-align: center; }
  .footer-base { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
  .newsletter-inner, .nl-copy { text-align: center; }
  .section-head { justify-content: center; text-align: center; flex-wrap: wrap; }
}
