/* ==========================================================================
   FADING RAY — Book Cover Design & Illustration Studio
   Unified Dark Atmospheric Stylesheet (Self-Hosted Fonts, Zero Bloat)
   ========================================================================== */

/* --- 1. SELF-HOSTED LOCAL FONTS (.woff2) --- */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cinzel-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cinzel-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cinzel-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jost-v20-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jost-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jost-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jost-v20-latin-700.woff2') format('woff2');
}

/* --- 2. DESIGN TOKENS & VIEWPORT COLOR SCHEME --- */
:root {
  color-scheme: dark;
  accent-color: #c9a56a;

  --bg-void: #07090d;
  --bg-obsidian: #0b0e13;
  --bg-section: #0e131b;
  --bg-card: #121822;
  --bg-card-hover: #171f2c;
  --bg-input: #0d121a;

  --gold: #c9a56a;
  --gold-light: #e2c591;
  --gold-deep: #a88349;
  --gold-border: rgba(201, 165, 106, 0.42);
  --gold-border-subtle: rgba(201, 165, 106, 0.22);
  --gold-glow: rgba(201, 165, 106, 0.12);

  --text-ivory: #f3eee4;
  --text-body: #b8bec8;
  --text-muted: #7f8794;
  --text-dark: #0b0e13;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --danger: #e06c6c;
  --success: #5bbd82;

  --font-logo: 'Cinzel', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 72px;
  --container-max: 1280px;

  --scrollbar-thumb: #2b3444;
  --scrollbar-track: #0b0e13;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

/* --- 3. RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-obsidian);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-obsidian);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(201, 165, 106, 0.28);
  color: var(--text-ivory);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 28px;
}

/* --- 4. TYPOGRAPHY HELPERS --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-ivory);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
}

.gold-accent {
  color: var(--gold-light);
}

/* --- 5. BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.75rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(180deg, #d7b67c 0%, #bd9659 100%);
  color: #0b0e13;
  border: 1px solid #d7b67c;
  font-weight: 600;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #e5c893 0%, #caa366 100%);
  border-color: #e5c893;
  box-shadow: 0 6px 24px rgba(201, 165, 106, 0.25);
}

.btn-outline {
  background: rgba(11, 14, 19, 0.55);
  color: var(--text-ivory);
  border: 1px solid var(--gold-border);
}

.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-subtle {
  background: transparent;
  color: var(--text-ivory);
  border: 1px solid var(--border-medium);
}

.btn-subtle:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold-light);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold-border);
}

.link-arrow:hover {
  color: var(--text-ivory);
  border-bottom-color: var(--text-ivory);
}

/* --- 6. STICKY DARK NAVBAR & DROPDOWN --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(9, 12, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  font-family: var(--font-logo);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-ivory);
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--gold-light);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-body);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item:hover > .nav-link,
.nav-link[aria-expanded="true"] {
  color: var(--text-ivory);
}

.nav-link[aria-current="page"] {
  color: var(--gold-light);
}

.nav-caret {
  font-size: 0.68rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-caret,
.nav-link[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

/* Mega / Portfolio Dropdown */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 560px;
  background: #10151f;
  border: 1px solid var(--gold-border-subtle);
  border-radius: 4px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.72);
  padding: 1.35rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover .dropdown-panel,
.nav-item:focus-within .dropdown-panel,
.nav-item.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-col-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dropdown-links a {
  display: block;
  padding: 0.38rem 0.45rem;
  margin-inline: -0.45rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--text-body);
}

.dropdown-links a:hover,
.dropdown-links a[aria-current="page"] {
  background: rgba(201, 165, 106, 0.1);
  color: var(--gold-light);
}

.header-cta {
  padding: 0.55rem 1.15rem;
  min-height: 40px;
  font-size: 0.84rem;
}

/* Mobile Hamburger & Drawer */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  color: var(--text-ivory);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #0b0e13;
  z-index: 999;
  overflow-y: auto;
  padding: 1.75rem 1.75rem 3rem;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-list > li > a,
.mobile-group-heading {
  display: block;
  padding: 0.65rem 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-ivory);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-group-heading {
  color: var(--gold);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.mobile-sublinks {
  list-style: none;
  margin: 0.35rem 0 0.75rem;
  padding: 0 0 0 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
}

.mobile-sublinks a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--text-body);
}

@media (max-width: 991px) {
  .primary-nav,
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

/* --- 7. HERO SECTION (HOME) --- */
.hero-home {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background-color: var(--bg-void);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #080b10 0%, rgba(8, 11, 16, 0.94) 36%, rgba(8, 11, 16, 0.42) 64%, rgba(8, 11, 16, 0.15) 100%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.45) 0%, transparent 25%, transparent 78%, #0b0e13 100%);
}

.hero-home-inner {
  position: relative;
  z-index: 2;
  padding-block: 5rem 4.5rem;
  max-width: 580px;
}

.hero-home h1 {
  font-size: clamp(2.65rem, 5vw, 4.15rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.35rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 480px;
  margin: 0 0 2.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.hero-genre-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-border);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-genre-bar span {
  color: var(--text-body);
}

@media (max-width: 820px) {
  .hero-home {
    flex-direction: column;
    min-height: auto;
  }
  .hero-backdrop {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .hero-backdrop::after {
    background: linear-gradient(180deg, rgba(8, 11, 16, 0.15) 0%, rgba(11, 14, 19, 0.95) 95%, #0b0e13 100%);
  }
  .hero-home-inner {
    padding-block: 1.5rem 3.5rem;
    max-width: 100%;
  }
}

/* --- 8. SECTION HEADER ROW (MOCKUP EDITORIAL LAYOUT) --- */
.section-block {
  padding-block: 5.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-block.alt-bg {
  background-color: var(--bg-section);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-head-title-wrap {
  display: flex;
  flex-direction: column;
}

.section-head h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.section-head h2::after {
  content: '';
  display: inline-block;
  width: 84px;
  height: 1px;
  background: var(--border-medium);
}

.section-head-desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-body);
  max-width: 440px;
}

@media (max-width: 960px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }
  .section-head h2::after {
    display: none;
  }
}

/* --- 9. BOOK COVERS GRID (6-COLUMN MOCKUP + SUBPAGE GALLERY) --- */
.covers-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.covers-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .covers-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .covers-grid-6,
  .covers-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.cover-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.cover-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.85rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cover-card:hover .cover-frame {
  transform: translateY(-5px);
  border-color: var(--gold-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(201, 165, 106, 0.12);
}

.cover-card:hover .cover-frame img {
  transform: scale(1.03);
}

.cover-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.22rem 0.55rem;
  background: rgba(11, 14, 19, 0.86);
  border: 1px solid var(--gold-border);
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.cover-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-ivory);
  margin-bottom: 0.15rem;
}

.cover-card-meta {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  min-height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--gold-border);
  color: var(--text-ivory);
}

.filter-btn.is-active {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* --- 10. SERVICES CARDS (3-COLUMN MOCKUP + PRODUCTION STRIP) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}

.service-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-card) 100%);
}

.service-card-body {
  padding: 0.5rem 1.65rem 1.85rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  position: relative;
  z-index: 2;
}

.service-icon-ring {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 14, 19, 0.9);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.service-card-body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.service-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-body);
}

/* Print & KDP Killer-Feature Strip */
.production-edge-bar {
  margin-top: 2rem;
  padding: 1.5rem 1.85rem;
  background: linear-gradient(90deg, rgba(201, 165, 106, 0.08) 0%, rgba(18, 24, 34, 0.85) 100%);
  border: 1px solid var(--gold-border-subtle);
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.production-edge-copy h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.production-edge-copy p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-body);
}

.production-specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.production-specs-pills li {
  padding: 0.35rem 0.75rem;
  background: rgba(11, 14, 19, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

/* --- 11. PROCESS TIMELINE (4 STEPS WITH ARROWS) --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
}

.process-step-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.process-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  background: var(--bg-card);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step h3 {
  font-size: 1.38rem;
}

.process-arrow {
  flex: 1;
  height: 1px;
  background: var(--border-medium);
  position: relative;
  margin-left: 0.5rem;
}

.process-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--text-muted);
  border-right: 1px solid var(--text-muted);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .process-arrow {
    display: none;
  }
}

.process-step p {
  margin: 0;
  padding-left: 3.25rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

/* --- 12. ABOUT STUDIO SPLIT BANNER & BOTTOM CTA BANNER --- */
.studio-banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.studio-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.studio-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 14, 19, 0.15) 0%, rgba(11, 14, 19, 0.88) 46%, rgba(11, 14, 19, 0.92) 78%, rgba(11, 14, 19, 0.45) 100%);
}

.studio-banner-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  padding-block: 4.5rem;
}

.studio-banner-content h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  margin-bottom: 1.15rem;
}

.studio-banner-content p {
  margin: 0 0 1.75rem;
  max-width: 520px;
}

.human-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.5rem;
  background: rgba(201, 165, 106, 0.1);
  border: 1px solid var(--gold-border-subtle);
  border-radius: 3px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

@media (max-width: 860px) {
  .studio-banner-grid {
    grid-template-columns: 1fr;
  }
  .studio-banner-spacer {
    display: none;
  }
  .studio-banner-bg::after {
    background: rgba(11, 14, 19, 0.86);
  }
}

/* Bottom CTA Banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0e13 0%, rgba(11, 14, 19, 0.9) 48%, rgba(11, 14, 19, 0.25) 100%);
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  padding-block: 4.5rem;
  max-width: 600px;
}

.cta-banner-inner h2 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  margin-bottom: 0.85rem;
}

.cta-banner-inner p {
  margin: 0 0 1.85rem;
  max-width: 490px;
}

/* --- 13. INNER PAGE HERO & PRICING / PUBLISHING CARDS --- */
.page-hero {
  padding-block: 4.25rem 3.25rem;
  background: radial-gradient(circle at 75% 20%, rgba(201, 165, 106, 0.08), transparent 55%), var(--bg-void);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: 1rem;
  max-width: 820px;
}

.page-hero p {
  margin: 0;
  font-size: 1.05rem;
  max-width: 660px;
  color: var(--text-body);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 165, 106, 0.09) 0%, var(--bg-card) 45%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.pricing-popular-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 0.25rem 0.75rem;
  background: var(--gold);
  color: #0b0e13;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}

.pricing-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.pricing-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pricing-price span {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-body);
}

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ Native Accordion (<details>) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 880px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.15rem 1.5rem;
}

.faq-item[open] {
  border-color: var(--gold-border-subtle);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-ivory);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0.85rem 0 0;
  font-size: 0.94rem;
  color: var(--text-body);
}

/* --- 14. CONTACT & QUOTE FORM (MODERN WEB GUIDANCE COMPLIANT) --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.quote-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2.25rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-field {
  margin-block-end: 1.35rem;
}

.form-field label {
  display: block;
  margin-block-end: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-ivory);
}

.form-field .req {
  color: var(--gold);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem; /* >=16px prevents iOS auto-zoom */
  color: var(--text-ivory);
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (pointer: coarse) {
  .form-field input,
  .form-field select {
    min-height: 52px;
  }
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 165, 106, 0.15);
}

.form-field input:invalid:user-invalid,
.form-field select:invalid:user-invalid,
.form-field textarea:invalid:user-invalid,
.form-field .is-invalid {
  border-color: var(--danger);
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--danger);
}

.field-error:empty {
  display: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 1rem 1.5rem;
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.info-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

a.info-card:hover,
button.info-card:hover {
  border-color: var(--gold-border);
}

button.info-card {
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
}

.info-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}

.info-card-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-card-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text-ivory);
  font-weight: 500;
}

/* --- 15. LIGHT-DISMISS COVER MODAL (<dialog closedby="any">) --- */
dialog.cover-modal {
  max-width: 860px;
  width: calc(100% - 32px);
  background: #10151f;
  color: var(--text-body);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
}

dialog.cover-modal::backdrop {
  background-color: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(5px);
}

.cover-modal-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 2rem;
  position: relative;
}

@media (max-width: 720px) {
  .cover-modal-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.cover-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  color: var(--text-ivory);
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cover-modal-close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.cover-modal-art img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border-medium);
}

.cover-modal-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-modal-details h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.modal-specs {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 0;
  border-block: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.modal-specs strong {
  color: var(--text-ivory);
}

/* --- 16. LEGACY HORIZONTAL PORTFOLIO CAROUSEL (DARK EDITION) --- */
@media all and (min-width: 761px) {
  body.portfolio-page,
  html:has(body.portfolio-page) {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }

  .portfolio-page main {
    height: calc(100vh - var(--header-h));
    overflow: hidden;
  }

  .portfolio-page .site-footer {
    display: none;
  }
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 12px;
}

.fr-carousel-active {
  touch-action: pan-y;
}

.fr-carousel-track {
  display: flex;
  align-items: flex-start;
  cursor: grab;
  will-change: transform;
  padding-inline: 28px;
}

.fr-carousel-track .carousel-cell {
  flex-shrink: 0;
  margin-right: 18px;
  position: relative;
}

.fr-carousel-track .carousel-cell img {
  height: calc(100vh - var(--header-h) - 56px);
  width: auto;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.carousel-intro-card,
.ending-slide-cell {
  width: 440px;
  height: calc(100vh - var(--header-h) - 56px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-intro-card h1,
.ending-slide-cell h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.carousel-intro-card p,
.ending-slide-cell p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin: 0 0 1.25rem;
}

.swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.text-bottom {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.text-bottom strong {
  color: var(--text-ivory);
  font-weight: 500;
}

.portfolio-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.5rem;
}

.portfolio-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-ivory);
}

.portfolio-link-item:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-border);
}

.fr-carousel-prev,
.fr-carousel-next {
  position: absolute;
  top: calc(50% - 20px);
  transform: translateY(-50%);
  z-index: 15;
  background: rgba(11, 14, 19, 0.82);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  width: 46px;
  height: 64px;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.fr-carousel-prev:hover,
.fr-carousel-next:hover {
  background: var(--gold);
  color: #0b0e13;
}

.fr-carousel-prev { left: 16px; }
.fr-carousel-next { right: 16px; }

/* Mobile vertical gallery fallback (<=760px) */
@media all and (max-width: 760px) {
  .carousel {
    padding: 1rem 16px 3rem;
  }
  .fr-carousel-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .carousel-intro-card,
  .ending-slide-cell {
    width: 100%;
    height: auto;
    padding: 2rem 1.5rem;
  }
  .fr-carousel-mobile .carousel-cell img {
    width: 100%;
    height: auto;
    border-radius: 3px;
  }
}

/* --- 17. PROSE / LEGAL / ABOUT / BLOG --- */
.prose-container {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 28px;
}

.prose-container h2 {
  font-size: 1.85rem;
  margin: 2.5rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.prose-container h3 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.5rem;
}

.prose-container p,
.prose-container li {
  color: var(--text-body);
  font-size: 0.98rem;
}

.prose-container a {
  color: var(--gold-light);
  text-decoration: underline;
}

.about-split {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

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

.cred-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.85rem;
  margin-bottom: 1.5rem;
}

.cred-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--gold-light);
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.65rem;
}

/* --- 18. FOOTER --- */
.site-footer {
  background: #07090d;
  padding-block: 3rem 2.25rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font-size: 0.9rem;
}

.social-circle:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.footer-bottom-row {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal-links a:hover {
  color: var(--text-ivory);
}
