/* NeuralNarrative — Editorial narrative studio */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #1E1210;
  --text-on-dark: #F8F4EE;
  --bg-light: #F8F4EE;
  --text-on-light: #1E1210;
  --bg-accent: #E8D5C4;
  --text-on-accent: #1E1210;
  --bg-slate: #3D3832;
  --text-on-slate: #F8F4EE;
  --brand: #C45C3A;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --accent-rule: 2px solid var(--brand);
  --card-border: 1px solid rgba(196, 92, 58, 0.35);
  --section-pad: clamp(48px, 8vw, 96px);
  --max-width: 1180px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-on-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }

p { margin: 0 0 1em; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

img.img-error {
  min-height: clamp(160px, 28vw, 300px);
  background: linear-gradient(145deg, #3D3832 0%, #C45C3A 100%);
  object-fit: none;
  border: var(--card-border);
}

.media-border { border: var(--card-border); }

.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 18, 16, 0.1) 0%, rgba(30, 18, 16, 0.55) 100%);
  pointer-events: none;
}

.surface-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.surface-light { background: var(--bg-light); color: var(--text-on-light); }
.surface-accent { background: var(--bg-accent); color: var(--text-on-accent); }
.surface-slate { background: var(--bg-slate); color: var(--text-on-slate); }

.surface-dark a, .surface-slate a { color: #F0C9B8; }
.surface-light a, .surface-accent a { color: var(--brand); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.surface-dark .eyebrow,
.surface-slate .eyebrow { color: #F0C9B8; }

.surface-accent .eyebrow { color: var(--brand); }

.section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(196, 92, 58, 0.4);
}

.accent-rule {
  border: none;
  border-top: var(--accent-rule);
  margin: 0 0 2rem;
}

/* Header — always readable */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(30, 18, 16, 0.96);
  border-bottom: 1px solid rgba(196, 92, 58, 0.25);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-on-dark);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--brand);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand);
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0;
  color: var(--text-on-dark);
  opacity: 0.88;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
  color: #F0C9B8;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--text-on-dark);
  color: var(--text-on-dark);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  min-height: 44px;
}

/* Hero — editorial split (not full-screen modal feel) */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: calc(88px + 3rem) clamp(1rem, 4vw, 48px) 3rem;
  background: var(--bg-light);
  color: var(--text-on-light);
  border-bottom: 4px solid var(--brand);
}

.hero-editorial-content { max-width: 34rem; }

.hero-serial {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.12rem;
  color: #4A4038;
  margin-bottom: 1.75rem;
}

.hero-trust {
  font-size: 0.85rem;
  color: #6B5F55;
  margin-top: 1.5rem;
}

.hero-editorial-visual {
  position: relative;
}

.hero-editorial-visual .img-overlay img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: var(--card-border);
  box-shadow: 12px 12px 0 var(--bg-accent);
}

.hero-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border: 1px solid var(--brand);
  padding: 14px 20px;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(30, 18, 16, 0.2);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #F0C9B8;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-accent {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-accent:hover { background: #A84E30; }

a.btn-accent,
.surface-dark a.btn-accent,
.surface-slate a.btn-accent,
.surface-accent a.btn-accent {
  color: #fff;
}

a.btn-accent:hover,
.surface-dark a.btn-accent:hover,
.surface-slate a.btn-accent:hover,
.surface-accent a.btn-accent:hover {
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--text-on-light);
}

.surface-dark .btn-outline-light,
.surface-slate .btn-outline-light {
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.surface-accent .btn-outline-light {
  color: var(--text-on-accent);
  border-color: var(--text-on-accent);
}

section { padding: var(--section-pad) 0; }

.section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.charter-quote {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--brand);
  padding-left: 1.5rem;
  color: inherit;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block {
  padding: 1.25rem 1rem;
  border: 1px solid rgba(196, 92, 58, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

.surface-accent .stat-block {
  border-color: rgba(30, 18, 16, 0.12);
  background: rgba(255, 255, 255, 0.35);
}

.surface-accent .stat-block .stat-num,
.surface-accent .stat-block .stat-label { color: var(--text-on-accent); }

.stat-block .stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: var(--brand);
}

.surface-dark .stat-block .stat-num,
.surface-slate .stat-block .stat-num { color: #F0C9B8; }

.stat-block .stat-label {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Photo arc cards — real images, not icons */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.arc-card {
  border: var(--card-border);
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.arc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 18, 16, 0.12);
}

.arc-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.arc-card .arc-body { padding: 1.5rem 1.75rem 1.75rem; }

.arc-card h3 { margin-bottom: 0.5rem; }

.card-link {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--brand);
}

/* Studio photo ribbon */
.photo-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.photo-ribbon figure { margin: 0; }

.photo-ribbon img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--card-border);
}

.photo-ribbon figcaption {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: #6B5F55;
  line-height: 1.4;
}

.surface-dark .photo-ribbon figcaption { color: rgba(248, 244, 238, 0.75); }

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

.roster-card {
  border: var(--card-border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.roster-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.roster-card .roster-body { padding: 1.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.spec-card {
  border: var(--card-border);
  padding: 32px;
  background: #fff;
}

.comparison-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.comparison-img { border: var(--card-border); }

.faq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}

.faq-item {
  border: var(--card-border);
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.surface-light .faq-item { background: #fff; }
.surface-dark .faq-item { background: rgba(255, 255, 255, 0.05); }
.surface-slate .faq-item { background: rgba(255, 255, 255, 0.06); }

.faq-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: inherit;
}

.surface-dark .faq-item p,
.surface-slate .faq-item p { color: rgba(248, 244, 238, 0.92); }

.cta-band {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.page-hero {
  padding-top: calc(88px + var(--section-pad));
  padding-bottom: var(--section-pad);
}

.page-hero-compact {
  padding-top: calc(88px + 48px);
  padding-bottom: 48px;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.editorial-columns {
  columns: 2;
  column-gap: 2.5rem;
}

.editorial-columns p { break-inside: avoid; }

.portrait-rail { position: sticky; top: 100px; }
.portrait-rail img { border: var(--card-border); margin-bottom: 1rem; }
.portrait-rail figcaption { font-size: 0.9rem; color: #5C5248; }

.about-split-section {
  padding-top: 88px;
  padding-bottom: 0;
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 480px;
}

.about-hero-img {
  min-height: 400px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.about-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--brand);
}

.about-spec-cell {
  padding: 2rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.about-spec-cell h3 {
  font-size: 1.1rem;
  color: #F0C9B8;
}

.about-spec-cell p { color: var(--text-on-dark); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-img { border: var(--card-border); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-on-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #C4B8AE;
  background: #fff;
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-on-light);
}

.consent-label input { width: auto; margin-top: 0.25rem; }

.form-success {
  padding: 1rem 1.25rem;
  border: 1px solid var(--brand);
  background: rgba(196, 92, 58, 0.1);
  margin-bottom: 1.5rem;
  color: var(--text-on-light);
}

.programme-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: var(--accent-rule);
}

.programme-detail:last-child { border-bottom: none; }
.programme-detail:nth-child(even) { direction: rtl; }
.programme-detail:nth-child(even) > * { direction: ltr; }

.programme-price {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.95rem;
  margin: 0.75rem 0;
}

.surface-dark .programme-price,
.surface-slate .programme-price { color: #F0C9B8; }

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-item {
  border: var(--card-border);
  padding: 32px;
  background: #fff;
}

.service-price {
  font-weight: 700;
  color: var(--brand);
  margin-top: 0.75rem;
}

.legal-prose { max-width: 800px; }
.legal-prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal-prose ul, .legal-prose ol { margin: 0 0 1em; padding-left: 1.5rem; }
.legal-meta { font-size: 0.9rem; color: #6B5F55; margin-bottom: 2rem; }

.disclaimer {
  font-size: 0.85rem;
  color: rgba(248, 244, 238, 0.8);
  line-height: 1.6;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(248, 244, 238, 0.15);
  margin-top: 2rem;
}

.surface-light .disclaimer {
  color: #5C5248;
  border-top-color: rgba(30, 18, 16, 0.12);
}

.surface-accent .disclaimer {
  color: var(--text-on-light);
  border-top-color: rgba(30, 18, 16, 0.12);
}

.site-footer { padding: var(--section-pad) 0 2rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-slogan {
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  opacity: 0.92;
}

.footer-copy { font-size: 0.85rem; opacity: 0.75; }

.footer-nav h3,
.footer-contact h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.4rem; }

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-on-dark);
  opacity: 0.85;
}

.footer-nav a:hover { opacity: 1; color: #F0C9B8; }

.footer-contact {
  font-size: 0.9rem;
  line-height: 1.7;
}

.hosting-note {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 1rem;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

/* Content always visible — no hidden reveal */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 1023px) {
  .hero-editorial,
  .comparison-panel,
  .about-split,
  .contact-layout,
  .programme-detail,
  .editorial-layout,
  .roster-grid,
  .arc-grid,
  .photo-ribbon {
    grid-template-columns: 1fr;
  }

  .photo-ribbon { grid-template-columns: repeat(2, 1fr); }
  .programme-detail:nth-child(even) { direction: ltr; }
  .editorial-columns { columns: 1; }
  .portrait-rail { position: static; }
  .stats-strip { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { position: static; margin-top: 1rem; display: inline-block; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 0.75rem 0; min-height: 44px; }
  .faq-two-col,
  .footer-grid,
  .about-spec-grid { grid-template-columns: 1fr; }
  .header-inner { position: relative; }
}

/* Editorial studio accents — distinct from technical console sites */
.masthead-strip {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--brand);
}

.masthead-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
}

.masthead-strip cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F0C9B8;
}

.arc-card,
.spec-card,
.service-item { border-radius: var(--radius); }
.btn { border-radius: var(--radius); }
