:root {
  --ink: #2a1a3f;
  --ink-soft: #4a3d5c;
  --surface: #f3eaf7;
  --surface-deep: #e9ddef;
  --mist: #d8d2df;
  --accent: #1b84d1;
  --accent-soft: #84b8de;
  --card: #322c39;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(37, 20, 59, 0.16);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
  --safe-area-inset-top: env(safe-area-inset-top, 0);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0);
  --safe-area-inset-left: env(safe-area-inset-left, 0);
  --safe-area-inset-right: env(safe-area-inset-right, 0);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 8% 0%, rgba(223, 199, 239, 0.55), transparent 68%),
    radial-gradient(900px 460px at 92% 15%, rgba(118, 187, 230, 0.34), transparent 65%),
    linear-gradient(165deg, #9eafca 0%, #8fa2c4 38%, #9db0d0 100%);
  min-height: 100vh;
  -webkit-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
}

/* Safari specific input styling */
input,
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--radius-sm);
  font-size: 16px; /* Prevents zoom on iOS */
  -webkit-border-radius: var(--radius-sm);
}

button,
[role="button"],
a[href] {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

.site-shell {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: max(1.2rem, var(--safe-area-inset-top)) max(1.2rem, var(--safe-area-inset-right)) max(2.2rem, var(--safe-area-inset-bottom)) max(1.2rem, var(--safe-area-inset-left));
  position: relative;
  z-index: 2;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.54);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.82);
}

.ambient-orb {
  position: fixed;
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.45;
  z-index: 1;
}

.orb-a {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(164, 115, 208, 0.35);
  top: 16%;
  left: -70px;
  animation: drift 8s ease-in-out infinite alternate;
  -webkit-animation: drift 8s ease-in-out infinite alternate;
  will-change: transform;
  -webkit-will-change: transform;
}

.orb-b {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(107, 175, 224, 0.35);
  bottom: 12%;
  right: -60px;
  animation: drift 7s ease-in-out infinite alternate-reverse;
  -webkit-animation: drift 7s ease-in-out infinite alternate-reverse;
  will-change: transform;
  -webkit-will-change: transform;
}

@keyframes drift {
  from {
    transform: translateY(-8px);
    -webkit-transform: translateY(-8px);
  }
  to {
    transform: translateY(14px);
    -webkit-transform: translateY(14px);
  }
}

section {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 1.3rem;
  align-items: center;
  padding: 1.15rem;
  background:
    linear-gradient(145deg, rgba(243, 234, 247, 0.95), rgba(233, 221, 239, 0.95));
}

.hero-art {
  position: relative;
}

.hero-art > a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--mist);
  box-shadow: 0 12px 28px rgba(34, 16, 53, 0.22);
  transition: transform 0.25s ease;
}

.hero-art:hover .featured-art {
  transform: scale(1.015);
}

.brand-seal {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  bottom: 10px;
  right: 10px;
  box-shadow: 0 8px 18px rgba(26, 11, 44, 0.3);
}

.kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.bio {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 64ch;
}

.cta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.58rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-transition: -webkit-transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #2a8dd7, #8db9dc);
  box-shadow: 0 6px 18px rgba(27, 132, 209, 0.42);
}

.btn-primary:hover {
  transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(27, 132, 209, 0.46);
}

.btn-secondary {
  color: var(--ink);
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.56);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.82);
}

.proof-strip {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.72rem;
  background: #efe4f4;
}

.proof-item {
  text-align: center;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.4rem;
  background: rgba(255, 255, 255, 0.48);
}

.proof-item strong {
  display: block;
  font-size: 1.02rem;
}

.proof-item span {
  font-size: 0.74rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.featured-book {
  margin-top: 1.25rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(234, 219, 248, 0.85), rgba(223, 199, 239, 0.8));
}

.book-container {
  display: grid;
  grid-template-columns: minmax(360px, 460px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.book-visuals {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(170px, 1fr);
  gap: 0.85rem;
  align-items: start;
  min-height: 0;
  padding: 0.1rem;
}

img {
  max-width: 100%;
  height: auto;
}

.book-gallery-unified {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.gallery-display {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  box-shadow: 0 12px 32px rgba(27, 132, 209, 0.25);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.gallery-display:hover {
  box-shadow: 0 16px 40px rgba(27, 132, 209, 0.35);
}

.gallery-items {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.gallery-item.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(27, 132, 209, 0.85);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
}

.gallery-nav:hover {
  background: rgba(27, 132, 209, 1);
  border-color: rgba(255, 255, 255, 0.9);
}

.gallery-prev {
  left: 0.5rem;
}

.gallery-next {
  right: 0.5rem;
}

.gallery-indicator {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.clickable-image {
  cursor: pointer;
}

.clickable-image:hover img {
  opacity: 0.9;
}

.book-info h2 {
  margin-top: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.book-kicker {
  margin: 0 0 0.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.book-subtitle {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
}

.book-description {
  margin: 0.8rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 55ch;
}

.book-pricing {
  margin: 1rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}

.price-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.book-order-cta {
  margin-top: 1rem;
  max-width: 360px;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#open-order-modal,
#open-digital-download {
  flex: 1;
  min-width: 140px;
}

#book-order-form {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.order-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1rem;
}

.order-modal.open {
  display: flex;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 30, 0.56);
}

.order-modal-panel {
  position: relative;
  width: min(860px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(145deg, rgba(234, 219, 248, 0.98), rgba(223, 199, 239, 0.98));
  box-shadow: 0 22px 54px rgba(23, 16, 37, 0.4);
}

.order-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0;
}

.order-modal-subtitle {
  margin: 0.3rem 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.order-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.order-option {
  border: 1px solid #b9bfd1;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.order-option.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #2a8dd7, #8db9dc);
}

.order-shipping-fields.is-hidden {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

#card-container {
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.76);
}

.payment-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0.2rem 0 0.9rem;
}

.order-alert {
  display: none;
  margin: 0 0 0.8rem;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.order-alert-error {
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.28);
  color: #a52020;
}

.order-alert-success {
  background: rgba(31, 122, 67, 0.08);
  border: 1px solid rgba(31, 122, 67, 0.28);
  color: #1f7a43;
}

.order-grid {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.order-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.order-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.order-grid-country {
  grid-template-columns: 2fr 1fr;
}

.order-field {
  min-width: 0;
}

.order-field-compact {
  max-width: 420px;
  margin-bottom: 0.75rem;
}

.order-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
  letter-spacing: 0.01em;
}

.order-field input {
  width: 100%;
  border: 1px solid #c6cad6;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.order-field input::placeholder {
  color: #8a8f9f;
  -webkit-text-fill-color: #8a8f9f;
}

.order-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 132, 209, 0.16);
  -webkit-box-shadow: 0 0 0 3px rgba(27, 132, 209, 0.16);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.local-card-form {
  display: none;
  border: 1px dashed #c6cad6;
  border-radius: 10px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.74);
}

.local-card-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.square-indicator {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  color: #999;
  font-weight: 500;
}

.square-indicator svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

#order-btn {
  width: 100%;
  margin-bottom: 0.55rem;
}

.shipping-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
}

.book-previews {
  margin-top: 0;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.34);
}

.book-visuals .book-previews {
  position: static;
  width: 100%;
  box-shadow: 0 10px 26px rgba(42, 26, 63, 0.14);
}

.book-visuals .book-previews .section-head {
  align-items: baseline;
}

.book-visuals .book-previews h3 {
  font-size: 1.25rem;
}

.book-stack {
  position: relative;
  height: 250px;
  margin: 0.5rem auto 0.45rem;
  max-width: 220px;
  perspective: 1000px;
}

.pages-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.page {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 4px 12px rgba(42, 26, 63, 0.15);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
              opacity 0.4s ease,
              box-shadow 0.4s ease;
  opacity: 0;
  transform: translateX(200px) rotateY(45deg) translateZ(-50px);
  pointer-events: none;
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Page stacking effect - fan out peek */
.page.active {
  opacity: 1;
  transform: translateX(0) rotateY(0) translateZ(0);
  pointer-events: auto;
  z-index: 10;
}

.page-1.peek {
  opacity: 1;
  transform: translateX(8px) rotateY(15deg);
  z-index: 9;
  pointer-events: auto;
}

.page-2.peek {
  opacity: 0.8;
  transform: translateX(16px) rotateY(20deg);
  z-index: 8;
  pointer-events: auto;
}

.page-3.peek {
  opacity: 0.6;
  transform: translateX(24px) rotateY(25deg);
  z-index: 7;
  pointer-events: auto;
}

.page-4.peek {
  opacity: 0.4;
  transform: translateX(32px) rotateY(30deg);
  z-index: 6;
  pointer-events: auto;
}

.page:hover {
  box-shadow: 0 8px 24px rgba(42, 26, 63, 0.25);
}

.page-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-nav:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(27, 132, 209, 0.3);
}

.page-nav.prev-page {
  left: -16px;
}

.page-nav.next-page {
  right: -16px;
}

.page-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-indicator {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.current-page,
.total-pages {
  color: var(--accent);
  font-weight: 700;
}

@keyframes pageFlip {
  0% {
    transform: rotateY(0) translateZ(0);
  }
  100% {
    transform: rotateY(-180deg) translateZ(0);
  }
}

.whats-new,
.tiny-dancers,
.why-buy,
.process,
.about,
.faq,
.testimonials,
.newsletter {
  margin-top: 1.25rem;
  padding: 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: end;
  flex-wrap: wrap;
}

.nft-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.collection-filters {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.collection-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill {
  border: 1px solid var(--mist);
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.34rem 0.72rem;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
}

.filter-pill.active {
  color: #fff;
  background: linear-gradient(90deg, #2a8dd7, #8db9dc);
  border-color: transparent;
}

.whats-new-list {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nft-card {
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  padding: 0.58rem;
}

.nft-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--mist);
}

.nft-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nft-link:hover {
  text-decoration: underline;
}

.meta {
  margin: 0.25rem 0 0;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.offer-link {
  display: inline-block;
  margin-top: 0.38rem;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
}

.offer-link:hover {
  text-decoration: underline;
}

.tiny-dancers-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.signal-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.signal-grid article {
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  padding: 0.66rem;
}

.signal-grid h3 {
  font-size: 1.08rem;
}

.signal-grid p {
  margin: 0.42rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.42;
}

.process-steps {
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.process-steps article {
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  padding: 0.66rem;
}

.process-steps span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.process-steps h3 {
  margin-top: 0.15rem;
  font-size: 1.02rem;
}

.process-steps p {
  margin: 0.32rem 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.44;
}

.about {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.about img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.7);
}

.about p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  line-height: 1.48;
}

.about-note {
  font-size: 0.84rem;
}

.faq details {
  margin-top: 0.6rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.44);
  padding: 0.65rem 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.testimonials blockquote {
  margin: 0.72rem 0 0;
  padding: 0.78rem 0.9rem;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.52;
}

.testimonials p {
  margin: 0.48rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.newsletter p {
  margin: 0.46rem 0 0;
  color: var(--ink-soft);
}

form {
  margin-top: 0.72rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

input[type='email'] {
  flex: 1 1 220px;
  padding: 0.58rem 0.7rem;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  border: 1px solid var(--mist);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

input[type='email']:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 132, 209, 0.1);
  -webkit-box-shadow: 0 0 0 3px rgba(27, 132, 209, 0.1);
}

button {
  padding: 0.58rem 0.96rem;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #2a8dd7, #8db9dc);
}

button:hover {
  filter: brightness(1.04);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 14, 30, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  -webkit-user-select: none;
  user-select: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#lightbox-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  -webkit-border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  -webkit-user-select: none;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(27, 132, 209, 0.85);
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
}

.lightbox-close:hover {
  background: rgba(27, 132, 209, 1);
  border-color: rgba(255, 255, 255, 0.9);
}

footer {
  margin-top: 1rem;
  padding: 1.1rem 1rem 1.4rem;
  color: #2c2533;
  font-size: 0.84rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(243, 234, 247, 0.92), rgba(233, 221, 239, 0.92));
  box-shadow: var(--shadow);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: start;
}

.footer-section {
  text-align: left;
}

.footer-section h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.footer-section p {
  margin: 0.2rem 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.footer-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-section a {
  color: var(--ink);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-brand h3 {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.footer-version {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.version {
  margin: 0;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--mist);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ===== Device Layout Pass ===== */
@media (max-width: 1100px) {
  .site-shell {
    width: min(980px, calc(100% - 1.4rem));
  }

  .hero {
    grid-template-columns: minmax(230px, 320px) 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .featured-art {
    max-height: 360px;
  }

  .book-container {
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: 1.1rem;
  }

  .book-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(880px, calc(100% - 1.2rem));
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-copy {
    width: min(100%, 66ch);
  }

  .bio {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .brand-seal {
    display: none;
  }

  .hero-art {
    width: min(100%, 430px);
  }

  .featured-art {
    max-height: 500px;
  }

  .book-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .book-visuals {
    width: min(100%, 460px);
    margin: 0 auto;
  }

  .book-info {
    text-align: center;
  }

  .book-description {
    margin-left: auto;
    margin-right: auto;
  }

  .book-pricing,
  .book-order-cta {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-nav {
    width: 42px;
    height: 42px;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: calc(100% - 1rem);
  }

  section {
    border-radius: 14px;
  }

  .hero {
    padding: 0.85rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 11vw, 2.6rem);
  }

  .featured-art {
    max-height: 360px;
  }

  .featured-book {
    padding: 0.8rem;
  }

  .book-visuals {
    width: 100%;
  }

  .gallery-display {
    aspect-ratio: 3 / 4;
  }

  .book-order-cta .btn,
  .book-order-cta button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-version {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section ul {
    justify-items: center;
  }

  .footer-version {
    justify-content: center;
  }
}

/* ===== iPad & Safari Optimizations ===== */

/* iPad Landscape & Tablet Sizes */
@media (min-width: 600px) and (max-width: 1024px) {
  .site-shell {
    padding-top: max(1.2rem, var(--safe-area-inset-top));
    padding-bottom: max(2.2rem, var(--safe-area-inset-bottom));
  }
  
  button,
  .gallery-nav,
  input[type="submit"],
  .subscribe-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .gallery-nav {
    padding: 0.6rem;
  }
  
  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }
}

/* iPad (all orientations) */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0, env(safe-area-inset-left));
    padding-right: max(0, env(safe-area-inset-right));
  }
}

/* Safari specific backdrop-filter fix */
@supports (backdrop-filter: blur(10px)) {
  .lightbox {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .lightbox {
    background: rgba(42, 26, 63, 0.95);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  button:hover,
  a:hover,
  .site-nav a:hover,
  .gallery-nav:hover {
    transform: none;
    -webkit-transform: none;
  }
  
  /* Increase touch target sizes */
  button,
  a[href],
  input[type="submit"],
  .gallery-nav,
  .lightbox-close {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Better spacing for touch */
  .site-nav a {
    padding: 0.5rem 0.75rem;
  }
  
  /* Remove transition delays on touch */
  * {
    transition-duration: 0.1s !important;
  }
}

/* Safari & iOS specific fixes */
@supports (-webkit-appearance: none) {
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--accent);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 0 0 3px rgba(27, 132, 209, 0.1);
  }
  
  /* Fix for iOS form zoom on input focus */
  @media screen and (max-width: 768px) {
    input,
    textarea,
    select {
      font-size: 16px;
    }
  }
}

/* Notch support (iPhone X and newer) */
@media (orientation: portrait) {
  .site-shell {
    padding-top: max(1.2rem, env(safe-area-inset-top));
  }
  
  .lightbox {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
}

@media (orientation: landscape) {
  .site-shell {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* Fix for fixed positioning on iOS */
@media screen and (max-width: 768px) {
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Performance optimizations for iPad */
.gallery-item,
.gallery-nav,
.lightbox-content,
.order-modal {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

/* Smooth scrolling support */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

/* High DPI support (Retina displays) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .ambient-orb {
    filter: blur(12px);
  }
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 0.35rem;
}

footer a {
  color: #183f6a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1020px) {
  .whats-new-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-container {
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: 1.2rem;
  }

  .book-visuals {
    grid-template-columns: minmax(140px, 185px) minmax(140px, 1fr);
    gap: 0.7rem;
  }

  .book-visuals .book-previews h3 {
    font-size: 1.1rem;
  }

  .book-stack {
    height: 215px;
    max-width: 170px;
  }

  .page-nav.prev-page {
    left: -12px;
  }

  .page-nav.next-page {
    right: -12px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100%, calc(100% - 1rem));
    padding-top: 0.72rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .featured-art {
    max-height: 280px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .book-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .book-visuals {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    justify-items: center;
  }

  .book-visuals .book-previews {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .order-grid-3,
  .order-grid-2,
  .order-grid-country {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .order-field-compact {
    max-width: 100%;
  }

  .book-cover {
    max-width: 300px;
    margin: 0 auto;
  }

  .book-info h2 {
    font-size: 1.3rem;
  }

  .book-stack {
    height: 260px;
    max-width: 220px;
    margin: 0.5rem 0;
  }

  .page-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .page-nav.prev-page {
    left: -14px;
  }

  .page-nav.next-page {
    right: -14px;
  }

  .page-1.peek {
    transform: translateX(4px) rotateY(10deg);
  }

  .page-2.peek {
    transform: translateX(8px) rotateY(15deg);
  }

  .page-3.peek {
    transform: translateX(12px) rotateY(20deg);
  }

  .page-4.peek {
    transform: translateX(16px) rotateY(25deg);
  }
}
