*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface2: #242424;
  --gold: #F5C518;
  --gold-hover: #ffd84d;
  --gold-dim: rgba(245, 197, 24, 0.15);
  --text: #f0ede6;
  --text-muted: #a8a49c;
  --border: #2a2a2a;
  --radius: 10px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============ Layout ============ */

.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ============ Header ============ */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.site-header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-decoration: none;
}

.site-logo:hover { color: var(--gold-hover); text-decoration: none; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ============ Hero ============ */

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-sun {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.hero h1 .gold { color: var(--gold); }

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1rem;
}

.hero-mission {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============ App Cards ============ */

.apps-section {
  margin-top: 3rem;
}

.apps-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.app-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.app-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.app-card h3 a { color: var(--text); }
.app-card h3 a:hover { color: var(--gold); text-decoration: none; }

.app-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

.app-card-features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.app-card-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
}

.app-card-features li::before {
  content: "\2726";
  color: var(--gold);
  margin-right: 0.5rem;
}

.app-card-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
  align-self: flex-start;
}

.app-card-link:hover {
  background: rgba(245, 197, 24, 0.25);
  text-decoration: none;
}

.app-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-card-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-store-availability {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ============ App Detail Page ============ */

.app-detail {
  padding-top: 2rem;
}

.app-detail-header {
  margin-bottom: 2rem;
  position: relative;
}

.app-detail-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.app-detail-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.app-detail-header .app-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.app-detail section {
  margin-bottom: 2rem;
}

.app-detail h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.app-detail ul {
  list-style: none;
  padding: 0;
}

.app-detail ul li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-detail ul li::before {
  content: "\2726";
  color: var(--gold);
  margin-right: 0.6rem;
}

.app-detail p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============ Product screenshots ============ */

.app-shots {
  display: grid;
  gap: 1.25rem;
  margin: 1.25rem 0 0;
}

.app-shots.cols-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .app-shots.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.app-shots.phone {
  grid-template-columns: repeat(auto-fit, minmax(160px, 200px));
  justify-content: center;
}

.app-shot {
  margin: 0;
}

.app-shot-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
}

.app-shot-open::after {
  content: "View full size";
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 5px;
  background: rgba(13, 13, 13, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}

.app-shot-open:hover::after,
.app-shot-open:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.app-shot-open:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.app-shots.phone .app-shot img {
  max-width: 200px;
  margin: 0 auto;
}

.app-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

body.viewer-open {
  overflow: hidden;
}

.screenshot-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.screenshot-viewer::backdrop {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
}

.screenshot-viewer-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(2.75rem, 1fr) minmax(0, auto) minmax(2.75rem, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 1rem 1rem;
}

.screenshot-viewer-image {
  grid-column: 2;
  grid-row: 1;
  display: block;
  max-width: calc(100vw - 7rem);
  max-height: calc(100vh - 9rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.screenshot-viewer-close,
.screenshot-viewer-nav {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(13, 13, 13, 0.8);
  color: #fff;
  cursor: pointer;
}

.screenshot-viewer-close:hover,
.screenshot-viewer-nav:hover,
.screenshot-viewer-close:focus-visible,
.screenshot-viewer-nav:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.screenshot-viewer-close:focus-visible,
.screenshot-viewer-nav:focus-visible,
.screenshot-viewer-original:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.screenshot-viewer-close {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.screenshot-viewer-nav {
  width: 2.75rem;
  height: 4rem;
  border-radius: 6px;
  font-size: 2.5rem;
  line-height: 1;
}

.screenshot-viewer-prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.screenshot-viewer-next {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.screenshot-viewer-details {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
  padding-top: 0.75rem;
  font-size: 0.85rem;
}

.screenshot-viewer-caption {
  max-width: 44rem;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot-viewer-count {
  flex: none;
  color: var(--text-muted);
}

.screenshot-viewer-original {
  flex: none;
  color: var(--gold);
}

@media (max-width: 639px) {
  .screenshot-viewer-frame {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .screenshot-viewer-image {
    max-width: calc(100vw - 6.5rem);
  }

  .screenshot-viewer-details {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .screenshot-viewer-caption {
    flex-basis: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shot-open::after {
    transition: none;
  }
}

.btn-visit {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--gold);
  color: #0d0d0d;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.btn-visit:hover {
  background: var(--gold-hover);
  color: #0d0d0d;
  text-decoration: none;
}

/* Disclaimer callout on app detail pages — visually distinct so the
   "not advice" cluster reads as legally salient, not as marketing copy. */
.legal-callout {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-dim);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.legal-callout h2 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.legal-callout p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.legal-callout p:last-child { margin-bottom: 0; }

/* ============ Legal Pages ============ */

.legal-page {
  padding-top: 1rem;
}

.legal-page h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.legal-page h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.legal-page p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-page ul {
  color: var(--text-muted);
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-page ul li {
  margin-bottom: 0.4rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ============ Footer ============ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.5rem;
}

.site-footer-links a {
  color: var(--text-muted);
}

.site-footer-links a:hover { color: var(--text); }

.site-footer-notice {
  max-width: 720px;
  margin: 0 auto 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.site-footer-brand {
  margin: 0 auto 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: var(--text);
}

.site-footer-brand strong { font-weight: 600; }

/* ============ Status Badges (Prototype / Proof of Concept) ============ */

.badge-prototype,
.badge-poc {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 140, 0, 0.13);
  color: #ffaa33;
  border: 2px solid rgba(255, 140, 0, 0.55);
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 140, 0, 0.22);
  pointer-events: none;
  position: absolute;
  transform: rotate(-14deg);
  z-index: 2;
}

.app-card .badge-prototype,
.app-card .badge-poc {
  top: 3.25rem;
  right: 0.5rem;
}

.app-detail-header .badge-prototype,
.app-detail-header .badge-poc {
  top: 2.75rem;
  right: 0.25rem;
}

/* ============ Card action buttons ============ */

.app-card-link-info {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  align-self: flex-start;
}

.app-card-link-info:hover {
  background: var(--surface);
  border-color: var(--gold);
  color: var(--gold);
  text-decoration: none;
}

/* ============ Clickable card description links ============ */

.card-desc-link {
  color: inherit;
  text-decoration: none;
}

.card-desc-link:hover {
  color: var(--gold);
  text-decoration: none;
}

/* ============ Perk pills (Free / No Ads / No Log In / Private) ============ */

.app-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1rem;
}

.app-detail ul.app-perks li,
.app-perks li {
  padding: 0.2rem 0.6rem;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-detail ul.app-perks li::before { content: none; }

.app-detail-header .app-perks {
  margin-top: 1rem;
}

/* ============ Private apps gate ============ */

.private-gate {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.private-gate-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.private-gate-label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.private-gate-row {
  display: flex;
  gap: 0.5rem;
}

.private-gate-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.private-gate-input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.private-gate-btn {
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: #0d0d0d;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.private-gate-btn:hover {
  background: var(--gold-hover);
}

.private-gate-error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #ff6b6b;
  min-height: 1.2em;
}

/* ============ Responsive ============ */

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sun { font-size: 2.5rem; }
  .page-wrap { padding: 1.5rem 1rem 3rem; }
  .app-cards { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
}

/* ============ Home page ============ */

.home-page {
  --home-bg: #f4f1e9;
  --home-ink: #15140f;
  --home-muted: #68655c;
  --home-line: rgba(21, 20, 15, 0.16);
  --home-yellow: #f5bd17;
  --home-orange: #b8441e;
  --home-blue: #275f75;
  background:
    radial-gradient(circle at 76% 5%, rgba(245, 189, 23, 0.18), transparent 27rem),
    var(--home-bg);
  color: var(--home-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(21, 20, 15, 0.04) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(21, 20, 15, 0.025) 5px 6px);
}

.home-page a { color: inherit; }

.home-page .site-header {
  padding: 1.15rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--home-line);
  background: rgba(244, 241, 233, 0.86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.home-page .site-header-inner {
  max-width: 1240px;
}

.home-page .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--home-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-page .site-logo small {
  font-size: inherit;
  font-weight: 450;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--home-ink);
  border-radius: 50%;
}

.logo-mark span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--home-yellow);
  box-shadow: 0 0 0 3px rgba(245, 189, 23, 0.18);
}

.home-page .site-nav { align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.home-page .site-nav a { color: var(--home-muted); font-weight: 650; }
.home-page .site-nav a:hover { color: var(--home-ink); }

.home-page .site-nav .nav-cta {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--home-ink);
  border-radius: 999px;
  color: var(--home-ink);
}

.home-page .site-nav .nav-cta:hover {
  background: var(--home-ink);
  color: var(--home-bg);
}

.home-page .page-wrap {
  max-width: 1240px;
  padding: 0 clamp(1rem, 4vw, 4rem) 6rem;
}

.home-page .hero {
  min-height: min(790px, calc(100vh - 73px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: left;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 1.8rem;
  height: 2px;
  background: var(--home-orange);
}

.home-page .hero h1 {
  max-width: 700px;
  margin: 1.5rem 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 7vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-weight: 500;
}

.home-page .hero h1 em,
.collection-intro h2 em {
  color: var(--home-orange);
  font-weight: 400;
}

.home-page .hero-tagline {
  max-width: none;
  margin: 0 0 0.65rem;
  color: var(--home-ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 750;
}

.home-page .hero-mission {
  max-width: 35rem;
  margin: 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.home-page .hero-mission + .hero-mission { margin-top: 0.85rem; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-primary {
  gap: 2rem;
  min-width: 12.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--home-ink);
  color: var(--home-bg) !important;
}

.hero-primary span { color: var(--home-yellow); font-size: 1rem; }
.hero-primary:hover { background: var(--home-orange); text-decoration: none; }

.hero-secondary {
  border-bottom: 1px solid currentColor;
  padding: 0.3rem 0;
}

.hero-secondary:hover { color: var(--home-orange); text-decoration: none; }

.hero-showcase {
  position: relative;
  min-height: 500px;
}

.sun-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(30vw, 400px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--home-yellow);
}

.sun-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: #ffd959;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(21, 20, 15, 0.45);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.orbit-one { inset: -14%; }
.orbit-two { inset: -28%; border-style: dashed; }

.showcase-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 4px solid var(--home-bg);
  border-radius: 8px;
  background: var(--home-ink);
  box-shadow: 0 1.2rem 3rem rgba(25, 22, 12, 0.22);
}

.showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.showcase-card figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  padding: 1.7rem 1rem 0.8rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.75rem;
  font-weight: 750;
}

.showcase-card figcaption span { color: var(--home-yellow); }
.showcase-card-main { inset: 13% 9% 14% 12%; transform: rotate(-2deg); }
.showcase-card-top { width: 47%; height: 33%; top: 0; right: -2%; transform: rotate(4deg); }
.showcase-card-bottom { width: 47%; height: 34%; bottom: 0; left: -2%; transform: rotate(3deg); }

.studio-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.studio-strip span:not(:last-child)::after {
  content: "✦";
  margin-left: clamp(1rem, 4vw, 4rem);
  color: var(--home-yellow);
}

.division-section {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 5rem;
}

.division-intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.division-intro h2 {
  max-width: 850px;
  margin-top: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.division-intro h2 em { color: var(--home-orange); font-weight: 400; }
.division-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.division-card {
  display: flex;
  min-height: 390px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--home-line);
  border-radius: 5px;
  color: var(--home-ink);
  flex-direction: column;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.division-card:hover { color: var(--home-ink); text-decoration: none; transform: translateY(-5px); box-shadow: 0 1rem 2rem rgba(40, 34, 15, 0.1); }
/* Dark card: the colour must out-specify `.home-page a { color: inherit }` (0,1,1),
   so the anchor form is listed explicitly rather than relying on `.division-books` alone. */
.division-books { background: var(--home-ink); }
.division-books,
a.division-books,
a.division-books:hover { color: var(--home-bg); }
.division-apps { background: var(--home-yellow); }
.division-visual { background: #b8d2da; }
.division-number { font-size: 0.68rem; font-weight: 850; letter-spacing: 0.12em; opacity: 0.65; }

.division-symbol {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 2.8rem 0 2rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.division-name { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -0.04em; }
.division-description { max-width: 18rem; margin-top: 1rem; line-height: 1.6; opacity: 0.76; }
.division-link { margin-top: auto; padding-top: 2rem; font-size: 0.75rem; font-weight: 850; letter-spacing: 0.03em; }
.division-link-muted { opacity: 0.58; }
.division-product-links { display: grid; gap: 0.6rem; margin-top: auto; padding-top: 1.5rem; }
.division-product-links a { display: flex; padding-top: 0.65rem; border-top: 1px solid rgba(21, 20, 15, 0.22); justify-content: space-between; gap: 0.75rem; color: var(--home-ink); text-decoration: none; }
.division-product-links a:hover { color: var(--home-orange); text-decoration: none; }
.division-product-links strong { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 600; }
.division-product-links small { text-align: right; font-size: 0.7rem; line-height: 1.4; }
.division-offer { margin-top: 0.9rem; font-size: 0.68rem; font-weight: 750; line-height: 1.45; opacity: 0.72; }

.collection-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem 3rem;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 7vw, 6rem);
}

.collection-intro .eyebrow { grid-column: 1 / -1; }
.collection-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.collection-intro > p:last-child {
  max-width: 29rem;
  align-self: end;
  justify-self: end;
  color: var(--home-muted);
  font-size: 1.05rem;
}

.home-page .apps-section { margin-top: 0; padding: 3rem 0 5rem; border-top: 1px solid var(--home-line); }

.section-heading {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading p { color: var(--home-orange); font-size: 0.72rem; font-weight: 850; }
.home-page .apps-section .section-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 500;
  text-align: left;
}
.section-heading span { color: var(--home-muted); font-size: 0.78rem; font-style: italic; }

.home-page .app-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.home-page .app-card {
  min-height: 300px;
  padding: 1.6rem;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  background: rgba(255,255,255,0.35);
  color: var(--home-ink);
  box-shadow: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.home-page .app-card:hover {
  border-color: var(--home-ink);
  background: #fffdf6;
  box-shadow: 0 1rem 2rem rgba(40, 34, 15, 0.08);
  transform: translateY(-5px);
}

.home-page .app-card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.8rem;
  border-radius: 50%;
  background: var(--home-yellow);
  color: var(--home-ink);
  font-size: 1.35rem;
}

.home-page .app-card:nth-child(3n + 2) .app-card-icon { background: #b8d2da; }
.home-page .app-card:nth-child(3n + 3) .app-card-icon { background: #f3b095; }

.home-page .app-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.home-page .app-card h3 a { color: var(--home-ink); }
.home-page .app-card h3 a:hover { color: var(--home-orange); }
.home-page .app-card p { color: var(--home-muted); line-height: 1.65; }

.home-page .app-card-link,
.home-page .app-card-link-info {
  padding: 0.5rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-page .app-card-link { border-bottom: 2px solid var(--home-yellow); }
.home-page .app-card-link-info { color: var(--home-muted); border-bottom: 1px solid var(--home-line); }
.home-page .app-card-link:hover,
.home-page .app-card-link-info:hover { background: transparent; color: var(--home-orange); border-color: var(--home-orange); }

.home-page .app-perks { margin-bottom: 1rem; }
.home-page .app-perks li { background: transparent; color: var(--home-muted); border-color: var(--home-line); }
.home-page .app-card-note { color: var(--home-muted); }
.home-page .app-card-note a { border-bottom: 1px solid currentColor; }

.home-page .private-gate {
  max-width: none;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--home-line);
  border-radius: 4px;
  background: var(--home-ink);
  color: var(--home-bg);
}

.home-page .private-gate-hint { color: #bcb8ad; }
.home-page .private-gate-label { color: #fff; }
.home-page .private-gate-row { max-width: 430px; margin: 0 auto; }
.home-page .private-gate-input { background: #292821; border-color: #4c493f; color: #fff; }
.home-page .private-gate-btn { background: var(--home-yellow); color: var(--home-ink); }

.home-page .site-footer {
  padding: 3rem clamp(1rem, 4vw, 4rem);
  border-color: var(--home-line);
  background: #ded9cc;
  color: var(--home-muted);
}

.home-page .site-footer-links a { color: var(--home-muted); }
.home-page .site-footer-links a:hover { color: var(--home-ink); }

@media (max-width: 900px) {
  .home-page .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-showcase { width: min(100%, 620px); min-height: 470px; margin: 0 auto; }
  .sun-orbit { width: min(65vw, 380px); }
  .home-page .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-intro { grid-template-columns: 1fr; }
  .collection-intro > p:last-child { justify-self: start; }
  .division-cards { grid-template-columns: 1fr 1fr; }
  .division-visual { grid-column: 1 / -1; min-height: 300px; }
}

@media (max-width: 640px) {
  .home-page .site-header { position: static; }
  .home-page .site-logo small { display: none; }
  .home-page .site-nav a:not(.nav-cta) { display: none; }
  .home-page .hero { padding: 4rem 0 5rem; gap: 3rem; }
  .home-page .hero h1 { font-size: clamp(3.4rem, 17vw, 5.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-showcase { min-height: 360px; }
  .showcase-card-main { inset: 14% 3% 14% 8%; }
  .showcase-card-top { right: -1%; }
  .showcase-card-bottom { left: 0; }
  .studio-strip { justify-content: center; flex-wrap: wrap; }
  .studio-strip span::after { display: none; }
  .division-cards { grid-template-columns: 1fr; }
  .division-card, .division-visual { grid-column: auto; min-height: 330px; }
  .collection-intro { padding: 5rem 0 4rem; }
  .home-page .app-cards { grid-template-columns: 1fr; }
  .home-page .app-card { min-height: 0; }
  .section-heading { grid-template-columns: 2rem 1fr; }
  .section-heading span { display: none; }
  .private-gate-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ Interior pages — shared studio design ============ */

.site-page {
  --home-bg: #f4f1e9;
  --home-ink: #15140f;
  --home-muted: #68655c;
  --home-line: rgba(21, 20, 15, 0.16);
  --home-yellow: #f5bd17;
  --home-orange: #b8441e;
  --home-blue: #275f75;
  background:
    radial-gradient(circle at 88% 0, rgba(245, 189, 23, 0.17), transparent 28rem),
    var(--home-bg);
  color: var(--home-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(21, 20, 15, 0.04) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(21, 20, 15, 0.025) 5px 6px);
}

.site-page a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--home-ink, #15140f);
  color: var(--home-bg, #f4f1e9) !important;
  font-weight: 800;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-page .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1.15rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--home-line);
  background: rgba(244, 241, 233, 0.88);
  backdrop-filter: blur(12px);
}

.site-page .site-header-inner {
  max-width: 1240px;
}

.site-page .site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--home-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-page .site-logo small {
  font-size: inherit;
  font-weight: 450;
}

.site-page .site-nav { align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-page .site-nav a { color: var(--home-muted); font-weight: 650; }
.site-page .site-nav a:hover { color: var(--home-ink); }

.site-page .site-nav .nav-cta {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--home-ink);
  border-radius: 999px;
  color: var(--home-ink);
}

.site-page .site-nav .nav-cta:hover {
  background: var(--home-ink);
  color: var(--home-bg);
}

.site-page .page-wrap {
  max-width: 1240px;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem) clamp(5rem, 8vw, 8rem);
}

.site-page .legal-back {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-page .legal-back:hover { color: var(--home-orange); text-decoration: none; }

.site-page .app-detail-header {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0 1.75rem;
  max-width: 940px;
  margin: 0 0 clamp(4rem, 8vw, 7rem);
}

.site-page .app-detail-icon {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0;
  border-radius: 50%;
  background: var(--home-yellow);
  color: var(--home-ink);
  font-size: 2.3rem;
  box-shadow: 0 0 0 0.75rem rgba(245, 189, 23, 0.14);
}

.site-page .app-detail-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.site-page .app-detail-header .app-tagline {
  max-width: 48rem;
  margin-top: 1rem;
  color: var(--home-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.site-page .app-detail-header .app-perks { grid-column: 2; }

.site-page .app-detail > section {
  display: grid;
  grid-template-columns: minmax(12rem, 0.33fr) minmax(0, 0.67fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  margin: 0;
  padding: clamp(2.6rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--home-line);
}

.site-page .app-detail > section > h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.site-page .app-detail > section > :not(h2) { grid-column: 2; }
.site-page .app-detail > section > h2 + * { margin-top: 0; }

.site-page .app-detail p,
.site-page .app-detail ul li {
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.site-page .app-detail p + p { margin-top: 1rem; }
.site-page .app-detail strong,
.site-page .app-detail b { color: var(--home-ink); }

.site-page .app-detail ul li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; }
.site-page .app-detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.06rem;
  width: 0.42rem;
  height: 0.42rem;
  margin: 0;
  border-radius: 50%;
  background: var(--home-yellow);
}

.site-page .app-shots {
  gap: 1rem;
  margin: 0;
}

.site-page .app-shot img {
  border: 1px solid var(--home-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1.3rem 3rem rgba(40, 34, 15, 0.13);
}

.site-page .app-shot figcaption { margin-top: 0.85rem; color: var(--home-muted); }
.site-page .app-shot-open { border-radius: 5px; }

.site-page .btn-visit {
  margin-top: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--home-ink);
  color: var(--home-bg);
  font-size: 0.85rem;
  font-weight: 800;
}

.site-page .btn-visit:hover { background: var(--home-orange); color: #fff; }
.site-page .app-store-availability { color: var(--home-muted); }

.site-page .legal-callout {
  border-color: rgba(184, 68, 30, 0.35);
  border-radius: 4px;
  background: rgba(184, 68, 30, 0.07);
}

.site-page .legal-callout h2 { color: var(--home-orange); }
.site-page .legal-callout p { color: var(--home-ink); }

.site-page .app-perks li,
.site-page .app-detail ul.app-perks li {
  padding: 0.25rem 0.65rem;
  border-color: var(--home-line);
  background: rgba(255,255,255,0.35);
  color: var(--home-muted);
}

.site-page .app-detail ul.app-perks li::before { content: none; }

.site-page .private-gate {
  max-width: 680px;
  border-color: var(--home-line);
  border-radius: 4px;
  background: var(--home-ink);
}

.site-page .private-gate-label { color: #fff; }
.site-page .private-gate-hint { color: #bcb8ad; }

.site-page .legal-page {
  max-width: 960px;
}

.site-page .legal-page h1 {
  max-width: 850px;
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.site-page .legal-updated {
  margin-bottom: clamp(3rem, 7vw, 6rem);
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-page .legal-page h2 {
  margin-top: 3.5rem;
  margin-bottom: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--home-line);
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.site-page .legal-page h3 { color: var(--home-ink); }
.site-page .legal-page p,
.site-page .legal-page ul { color: var(--home-muted); }
.site-page .legal-page p { max-width: 780px; line-height: 1.8; }
.site-page .legal-page a { color: var(--home-orange); text-decoration: underline; text-underline-offset: 0.15em; }

.site-page .site-footer {
  padding: 3rem clamp(1rem, 4vw, 4rem);
  border-color: var(--home-line);
  background: #ded9cc;
  color: var(--home-muted);
}

.site-page .site-footer-links a { color: var(--home-muted); }
.site-page .site-footer-links a:hover { color: var(--home-ink); }
.site-page .site-footer-brand { color: var(--home-ink); }

@media (max-width: 760px) {
  .site-page .site-header { position: static; }
  .site-page .site-logo small { display: none; }
  .site-page .site-nav a:not(.nav-cta) { display: none; }
  .site-page .app-detail-header { grid-template-columns: 4rem minmax(0, 1fr); gap: 0 1.25rem; }
  .site-page .app-detail-icon { width: 4rem; height: 4rem; font-size: 1.65rem; }
  .site-page .app-detail > section { grid-template-columns: 1fr; gap: 1.25rem; }
  .site-page .app-detail > section > :not(h2) { grid-column: 1; }
}

@media (max-width: 520px) {
  .site-page .app-detail-header { display: block; }
  .site-page .app-detail-icon { margin-bottom: 1.5rem; }
  .site-page .app-detail-header .app-perks { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-page *, .site-page *::before, .site-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ Books division ============ */

.books-page { background: #efe8da; }
.books-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 4rem) clamp(5rem, 9vw, 9rem); }

.books-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  min-height: min(780px, calc(100vh - 72px));
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.books-hero h1 {
  max-width: 760px;
  margin: 1.5rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6.6vw, 6.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.books-hero h1 em { color: var(--home-orange); font-weight: 400; }
.books-byline { color: var(--home-ink); font-size: 1.2rem; font-weight: 750; }
.books-lede { max-width: 37rem; margin: 0.7rem 0 2rem; color: var(--home-muted); font-size: 1.05rem; line-height: 1.75; }

.book-cover {
  position: relative;
  display: flex;
  width: min(100%, 340px);
  aspect-ratio: 0.66;
  justify-self: end;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  flex-direction: column;
  color: #f4f1e9;
  background: radial-gradient(circle at 72% 23%, rgba(245, 189, 23, 0.92) 0 4%, transparent 4.5%), radial-gradient(circle at 72% 23%, transparent 0 12%, rgba(245, 189, 23, 0.18) 12.5% 13%, transparent 13.5%), linear-gradient(145deg, #242117, #0d0d0b 62%);
  border-radius: 3px 10px 10px 3px;
  box-shadow: -0.75rem 1.5rem 3.5rem rgba(34, 25, 10, 0.28), inset 9px 0 rgba(255,255,255,0.04);
  transform: rotate(2deg);
}

.book-cover::after {
  position: absolute;
  right: -30%;
  bottom: 12%;
  width: 90%;
  height: 1px;
  content: "";
  background: var(--home-yellow);
  box-shadow: 0 14px rgba(245,189,23,.55), 0 28px rgba(245,189,23,.25);
  transform: rotate(-38deg);
}

.book-cover-kicker { color: var(--home-yellow); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.book-cover-title { margin-top: clamp(3rem, 7vw, 5.2rem); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 0.96; letter-spacing: -0.045em; }
.book-cover-rule { width: 2.5rem; height: 2px; margin: 1.5rem 0; background: var(--home-yellow); }
.book-cover-author { margin-top: auto; font-size: 0.72rem; font-weight: 750; letter-spacing: 0.1em; line-height: 1.35; text-transform: uppercase; }
.book-cover-image {
  display: block;
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 0.625;
  justify-self: end;
  object-fit: cover;
  border-radius: 3px 10px 10px 3px;
  box-shadow: -0.75rem 1.5rem 3.5rem rgba(34, 25, 10, 0.28);
  transform: rotate(2deg);
}

.imprint-promise {
  display: flex;
  width: min(100%, 360px);
  min-height: 29rem;
  justify-self: end;
  padding: clamp(2rem, 4vw, 3rem);
  flex-direction: column;
  color: #f4f1e9;
  background: var(--home-ink);
  border-radius: 5px;
  box-shadow: -0.75rem 1.5rem 3.5rem rgba(34, 25, 10, 0.2);
}
.imprint-promise-kicker { margin-bottom: auto; color: var(--home-yellow); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.imprint-promise strong { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.16); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 500; }
.imprint-promise-split { display: flex; align-items: baseline; gap: 0.8rem; margin-top: 1.5rem; color: var(--home-yellow); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 7vw, 5rem); line-height: 1; }
.imprint-promise-split small { color: #bcb8ad; font-family: Arial, sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.imprint-overview,
.featured-book,
.companion-books,
.authors-section {
  display: grid;
  grid-template-columns: minmax(9rem, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--home-line);
}

.books-section-label { display: flex; gap: 1rem; color: var(--home-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.books-section-label span { color: var(--home-orange); }
.featured-book h2,
.imprint-overview h2,
.companion-books h2,
.authors-section h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }
.featured-book h2 cite { font-style: normal; }
.imprint-overview h2 em { color: var(--home-orange); font-weight: 400; }
.imprint-copy > p { max-width: 47rem; color: var(--home-muted); line-height: 1.8; }
.imprint-copy > p + p { margin-top: 1rem; }
.imprint-copy .imprint-lede { margin: 1rem 0; color: var(--home-ink); font-size: 1.3rem; font-weight: 700; }
.imprint-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 2rem 0; background: var(--home-line); border: 1px solid var(--home-line); }
.imprint-terms li { display: flex; min-height: 8.5rem; padding: 1.4rem; flex-direction: column; gap: 0.55rem; background: #efe8da; list-style: none; }
.imprint-terms li::before { content: none; }
.imprint-terms strong { color: var(--home-ink); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.imprint-terms span { color: var(--home-muted); line-height: 1.55; }
.featured-book-subtitle { margin: 1rem 0; color: var(--home-ink) !important; font-size: clamp(1.2rem, 2vw, 1.5rem) !important; font-weight: 700; }
.featured-book-copy > p,
.companion-copy p { max-width: 44rem; color: var(--home-muted); font-size: 1rem; line-height: 1.8; }

.book-formats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.book-formats li { padding: 0.35rem 0.7rem !important; border: 1px solid var(--home-line); border-radius: 999px; color: var(--home-muted); font-size: 0.75rem !important; font-weight: 700; list-style: none; }
.book-formats li::before { content: none !important; }
.book-amazon-link { display: inline-block; margin-top: 1rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--home-yellow); color: var(--home-ink); font-size: 0.83rem; font-weight: 850; }
.book-amazon-link:hover { color: var(--home-orange); text-decoration: none; border-color: var(--home-orange); }

.companion-copy { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: clamp(1.5rem, 4vw, 3.5rem); }
.companion-count { color: var(--home-yellow) !important; font-family: Georgia, "Times New Roman", serif; font-size: clamp(6rem, 14vw, 12rem) !important; line-height: 0.7 !important; text-shadow: 1px 1px 0 var(--home-ink), -1px -1px 0 var(--home-ink); }
.companion-books h2 em { color: var(--home-orange); font-weight: 400; }
.companion-books h2 + p { margin-top: 1.5rem; }

.authors-list h2 em { color: var(--home-orange); font-weight: 400; }
.site-page a.author-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); color: #f4f1e9; background: var(--home-ink); border-radius: 5px; }
.site-page a.author-card:hover { color: #f4f1e9; text-decoration: none; transform: translateY(-2px); }
.author-card-number { color: var(--home-yellow); font-size: 0.7rem; font-weight: 850; }
.author-card-copy { display: flex; flex-direction: column; gap: 0.5rem; }
.author-card-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; }
.author-card-copy span { color: #bcb8ad; line-height: 1.5; }
.author-card-link { max-width: 12rem; color: var(--home-yellow); font-size: 0.76rem; font-weight: 850; line-height: 1.5; }
.author-breadcrumb { display: flex; gap: 0.75rem; padding-top: 2rem; color: var(--home-muted); font-size: 0.75rem; font-weight: 750; }
.author-breadcrumb a { color: var(--home-ink); border-bottom: 1px solid var(--home-line); }
.author-breadcrumb a:hover { color: var(--home-orange); text-decoration: none; }
.author-hero { min-height: min(710px, calc(100vh - 112px)); padding-top: 2rem; }

@media (max-width: 800px) {
  .books-hero { grid-template-columns: 1fr; }
  .book-cover { width: min(72vw, 320px); justify-self: center; }
  .book-cover-image { width: min(72vw, 320px); justify-self: center; }
  .imprint-promise { width: min(82vw, 360px); min-height: 25rem; justify-self: center; }
  .imprint-overview, .featured-book, .companion-books, .authors-section { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .books-hero { padding-top: 3.5rem; }
  .companion-copy { grid-template-columns: 1fr; }
  .companion-count { margin-bottom: 0.5rem; }
  .imprint-terms { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: auto 1fr; }
  .author-card-link { grid-column: 2; max-width: none; }
}

/* ============ Yellow Sun Portfolios marketing page ============ */

.portfolio-marketing-page {
  --portfolio-paper: #f2efe6;
  --portfolio-ink: #181712;
  --portfolio-muted: #68645b;
  --portfolio-line: rgba(24, 23, 18, 0.18);
  --portfolio-sun: #f2bd17;
  --portfolio-rust: #b74320;
  background: var(--portfolio-paper);
}

.portfolio-marketing-page .site-header { background: rgba(242, 239, 230, 0.9); }
.portfolio-page-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 4rem) clamp(5rem, 9vw, 9rem); }
.portfolio-back { display: inline-block; margin: 2rem 0 1rem; color: var(--portfolio-muted) !important; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.portfolio-back:hover { color: var(--portfolio-rust) !important; text-decoration: none; }
.portfolio-kicker { color: var(--portfolio-rust); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }

.portfolio-hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); min-height: min(810px, calc(100vh - 112px)); padding: clamp(3.5rem, 7vw, 7rem) 0; }
.portfolio-hero-copy > h1 { margin: 1rem 0 0.5rem; color: var(--portfolio-muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.portfolio-display { margin: 0; color: var(--portfolio-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.8rem, 7.5vw, 7.7rem); font-weight: 500; line-height: 0.88; letter-spacing: -0.065em; }
.portfolio-display em { color: var(--portfolio-rust); font-weight: 400; }
.portfolio-lede { max-width: 39rem; margin-top: 2rem; color: var(--portfolio-muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; }
.portfolio-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.portfolio-primary { display: inline-flex; align-items: center; gap: 1.5rem; padding: 0.9rem 1.15rem; border-radius: 999px; background: var(--portfolio-ink); color: var(--portfolio-paper) !important; font-size: 0.8rem; font-weight: 850; }
.portfolio-primary:hover { background: var(--portfolio-rust); color: #fff !important; text-decoration: none; }
.portfolio-secondary, .portfolio-text-link { padding-bottom: 0.25rem; border-bottom: 2px solid var(--portfolio-sun); color: var(--portfolio-ink) !important; font-size: 0.8rem; font-weight: 850; }
.portfolio-secondary:hover, .portfolio-text-link:hover { color: var(--portfolio-rust) !important; border-color: var(--portfolio-rust); text-decoration: none; }
.portfolio-perks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding: 0; list-style: none; }
.portfolio-perks li { padding: 0.35rem 0.65rem; border: 1px solid var(--portfolio-line); border-radius: 999px; color: var(--portfolio-muted); font-size: 0.7rem; font-weight: 750; }
.portfolio-access { max-width: 38rem; margin-top: .65rem; color: var(--portfolio-muted); font-size: .76rem; }

.portfolio-hero-art { position: relative; min-height: clamp(430px, 49vw, 680px); isolation: isolate; }
.portfolio-hero-art::before { position: absolute; z-index: -2; inset: 4% 6% 4% 5%; border-radius: 50%; background: var(--portfolio-sun); content: ""; }
.portfolio-hero-art::after { position: absolute; z-index: -1; inset: 11% 12%; border: 1px solid rgba(24,23,18,.25); border-radius: 50%; content: ""; }
.portfolio-frame { position: absolute; display: block; border: 8px solid #faf8f2; box-shadow: 0 1.2rem 3rem rgba(35,29,12,.2); }
.portfolio-frame::after { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 15%, rgba(255,255,255,.11) 15.3% 15.6%), linear-gradient(155deg, transparent 0 55%, rgba(0,0,0,.24)); content: ""; }
.portfolio-frame-one { inset: 10% 7% 31% 18%; background: linear-gradient(145deg, #16282c 0 39%, #366877 40% 57%, #d8a52b 58%); transform: rotate(-3deg); }
.portfolio-frame-two { inset: 36% 25% 6% 4%; background: radial-gradient(circle at 62% 36%, #e7d9b2 0 8%, transparent 8.5%), linear-gradient(125deg, #a14327 0 43%, #25231e 44%); transform: rotate(4deg); }
.portfolio-frame-three { inset: 5% 1% 57% 61%; background: linear-gradient(170deg, #b9d1cc 0 48%, #e9ece6 49% 57%, #455e48 58%); transform: rotate(7deg); }
.portfolio-hero-art > p { position: absolute; right: 3%; bottom: 2%; max-width: 12rem; color: var(--portfolio-ink); font-size: 0.73rem; font-weight: 800; line-height: 1.5; text-transform: uppercase; }
.portfolio-hero-art > p strong { display: block; margin-bottom: 0.35rem; color: var(--portfolio-rust); }

.portfolio-discover { display: grid; grid-template-columns: minmax(4rem, .22fr) minmax(0, .78fr); gap: clamp(2rem, 7vw, 7rem); padding: clamp(5rem, 9vw, 9rem) 0; border-top: 1px solid var(--portfolio-line); }
.portfolio-section-number { color: var(--portfolio-sun); font-family: Georgia, "Times New Roman", serif; font-size: clamp(5rem, 12vw, 10rem); line-height: .72; text-shadow: 1px 1px 0 var(--portfolio-ink), -1px -1px 0 var(--portfolio-ink); }
.portfolio-discover-copy h2, .portfolio-photographer h2 { max-width: 54rem; margin: 1rem 0 1.5rem; color: var(--portfolio-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5.3vw, 5.2rem); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.portfolio-discover-copy > p:not(.portfolio-kicker) { max-width: 45rem; color: var(--portfolio-muted); font-size: 1.05rem; line-height: 1.75; }
.portfolio-search { max-width: 54rem; margin: 2.5rem 0 2rem; }
.portfolio-search label { display: block; margin-bottom: 0.6rem; color: var(--portfolio-muted); font-size: 0.7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-search > div { display: flex; border-bottom: 2px solid var(--portfolio-ink); }
.portfolio-search input { min-width: 0; flex: 1; padding: 1rem 0; border: 0; background: transparent; color: var(--portfolio-ink); font: inherit; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.portfolio-search input:focus { outline: 0; }
.portfolio-search > div:focus-within { border-color: var(--portfolio-rust); }
.portfolio-search button { padding: 0 0 0 1rem; border: 0; background: transparent; color: var(--portfolio-ink); font: inherit; font-size: .77rem; font-weight: 850; cursor: pointer; }
.portfolio-search button:hover { color: var(--portfolio-rust); }

.portfolio-featured { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); min-height: 600px; color: #f3efe6; background: var(--portfolio-ink); }
.portfolio-featured-visual { display: flex; min-height: 560px; align-items: flex-end; padding: 2rem; background: radial-gradient(circle at 60% 35%, rgba(242,189,23,.95) 0 6%, transparent 6.3%), radial-gradient(circle at 60% 35%, transparent 0 20%, rgba(242,189,23,.21) 20.3% 20.8%, transparent 21%), linear-gradient(145deg, #25363a, #10100e 72%); background-position: center; background-size: cover; }
.portfolio-featured-visual span { font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.portfolio-featured-visual.has-photo span { padding: .45rem .6rem; background: rgba(15,15,13,.72); }
.portfolio-featured-copy { display: flex; padding: clamp(2.5rem, 5vw, 5rem); justify-content: center; flex-direction: column; }
.portfolio-featured-copy .portfolio-kicker { color: var(--portfolio-sun); }
.portfolio-featured-copy h2 { margin: 1rem 0 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.6vw, 4.8rem); font-weight: 500; line-height: .96; letter-spacing: -.05em; }
.portfolio-featured-copy > p:not(.portfolio-kicker) { max-width: 34rem; margin-bottom: 2rem; color: #bdb8ac; line-height: 1.75; }
.portfolio-on-dark { align-self: flex-start; background: var(--portfolio-sun); color: var(--portfolio-ink) !important; }

.portfolio-photographer { padding: clamp(5rem, 10vw, 10rem) 0 0; }
.portfolio-photographer > div:first-child { display: grid; grid-template-columns: .3fr .7fr; align-items: start; gap: 2rem; }
.portfolio-photographer h2 { margin-top: 0; }
.portfolio-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0 3rem; border: 1px solid var(--portfolio-line); }
.portfolio-benefits article { min-height: 250px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.portfolio-benefits article + article { border-left: 1px solid var(--portfolio-line); }
.portfolio-benefits span { color: var(--portfolio-rust); font-size: .68rem; font-weight: 850; }
.portfolio-benefits h3 { margin: 3.5rem 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 500; }
.portfolio-benefits p { color: var(--portfolio-muted); font-size: .92rem; line-height: 1.65; }

@media (max-width: 900px) {
  .portfolio-hero { grid-template-columns: 1fr; }
  .portfolio-hero-art { width: min(100%, 680px); justify-self: center; }
  .portfolio-featured { grid-template-columns: 1fr; }
  .portfolio-featured-visual { min-height: 480px; }
  .portfolio-photographer > div:first-child { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portfolio-page-wrap { padding-inline: 1rem; }
  .portfolio-hero { min-height: auto; padding-top: 3rem; }
  .portfolio-display { font-size: clamp(3.3rem, 17vw, 5.2rem); }
  .portfolio-hero-art { min-height: 390px; }
  .portfolio-discover { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio-section-number { font-size: 5rem; }
  .portfolio-search > div { align-items: stretch; flex-direction: column; }
  .portfolio-search button { padding: .9rem 0; text-align: left; }
  .portfolio-featured { margin-inline: -1rem; }
  .portfolio-featured-visual { min-height: 370px; }
  .portfolio-benefits { grid-template-columns: 1fr; }
  .portfolio-benefits article { min-height: 0; }
  .portfolio-benefits article + article { border-top: 1px solid var(--portfolio-line); border-left: 0; }
  .portfolio-benefits h3 { margin-top: 2rem; }
}
