:root {
  --bg-canvas: #0d2a33;
  --bg-surface: #173b45;
  --bg-surface-hover: #1f4a56;
  --text-primary: #e0f2f1;
  --text-muted: #9dbbbd;
  --accent-primary: #ff6f59;
  --accent-secondary: #ffa07a;
  --border-subtle: #224d5a;
  --coral-block-bg: #ff6f59;
  --coral-block-text: #0d2a33;
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

html {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--accent-primary);
  text-decoration-color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 0.5rem 1rem;
  font-weight: bold;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Header & Navigation */
.site-header {
  position: static;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 1.5rem;
  z-index: 100;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrapper {
  flex-shrink: 0;
  text-align: left;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
  font-variant: small-caps;
}
.brand span {
  color: var(--accent-primary);
}

.nav-split {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
}

.nav-group {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

.nav-center-spacer {
  flex-grow: 1;
  min-width: 2rem;
}

.nav-group a {
  text-decoration: none;
  font-variant: small-caps;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  padding: 0.25rem 0;
  position: relative;
}

.nav-group a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s ease;
}

.nav-group a:hover::after,
.nav-group a[aria-current="page"]::after {
  width: 100%;
}

.nav-group a[aria-current="page"] {
  color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Main Container */
main {
  flex: 1 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-block {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

/* Buttons */
.btn-pill {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--coral-block-text);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  font-variant: normal;
  text-align: center;
}

.btn-pill:hover, .btn-pill:focus-visible {
  background-color: var(--accent-secondary);
  color: var(--coral-block-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 111, 89, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-primary);
}
.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--coral-block-text);
}

/* Hero Section */
.hero-atlas {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(23, 59, 69, 0.4) 0%, rgba(13, 42, 51, 1) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-text .eyebrow {
  display: inline-block;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-text p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 1.75rem;
}

/* Overlapping Mood Square Photos */
.hero-triptych {
  position: relative;
  width: 100%;
  height: 380px;
}

.triptych-frame {
  position: absolute;
  width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  border: 3px solid var(--bg-surface);
}

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

.triptych-frame:hover img {
  transform: scale(1.05);
}

.frame-1 {
  top: 0;
  left: 10px;
  z-index: 1;
}

.frame-2 {
  top: 70px;
  right: 15px;
  z-index: 2;
}

.frame-3 {
  bottom: 0;
  left: 90px;
  z-index: 3;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background-color: var(--bg-surface);
  padding: 1.75rem;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  min-width: 0;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  background-color: var(--bg-surface-hover);
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.card-tag {
  font-variant: small-caps;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 700;
}

.bento-card h2, .bento-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.card-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-canvas);
  border-radius: 0;
}

.card-img-wrap.square {
  aspect-ratio: 1 / 1;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

/* Full-Width Coral Highlight Strip */
.coral-strip {
  background-color: var(--coral-block-bg);
  color: var(--coral-block-text);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.coral-strip h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0d2a33;
}

.coral-strip p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 68ch;
  color: #173b45;
  margin-bottom: 1.5rem;
}

.coral-strip .btn-pill {
  background: #0d2a33;
  color: #e0f2f1;
}

.coral-strip .btn-pill:hover {
  background: #173b45;
  color: #ffffff;
}

/* Matrix Table Wrapper */
.matrix-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin: 1.5rem 0;
}

.comparison-matrix {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 680px;
}

.comparison-matrix th, .comparison-matrix td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.comparison-matrix th {
  background: rgba(13, 42, 51, 0.7);
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  font-weight: 700;
}

.comparison-matrix tr:hover td {
  background: rgba(31, 74, 86, 0.4);
}

.badge-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 111, 89, 0.15);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  border-left: 2px solid var(--accent-primary);
}

/* Dated Release Feed */
.release-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.release-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem;
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-primary);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.release-row:hover {
  transform: translateX(4px);
  background: var(--bg-surface-hover);
}

.release-date {
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.release-details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.release-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.release-platform {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-style: italic;
}

/* Editorial Long-form Layout */
.editorial-wrap {
  max-width: 72ch;
  margin: 0 auto;
}

.editorial-wrap h2 {
  font-size: 1.75rem;
  margin: 2.25rem 0 1rem;
  color: #ffffff;
}

.editorial-wrap h3 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--accent-secondary);
}

.editorial-wrap p {
  margin-bottom: 1.4rem;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.editorial-wrap ul, .editorial-wrap ol {
  margin: 1rem 0 1.5rem 1.75rem;
  color: var(--text-primary);
}

.editorial-wrap li {
  margin-bottom: 0.5rem;
}

.editorial-aside {
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* FAQ Accordion / Item */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

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

.faq-card h3 {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.faq-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive Message Worksheet / Contact Tool */
.worksheet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin-top: 2rem;
}

.worksheet-card form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-variant: small-caps;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-serif);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: 0;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.worksheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.worksheet-preview {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-canvas);
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  min-height: 100px;
}

.worksheet-feedback {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent-primary);
  min-height: 1.2rem;
}

/* Footer */
.site-footer {
  background: #091e25;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-col h4 {
  color: var(--text-primary);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

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

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 60px;
  right: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  z-index: 1000;
  width: 250px;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-panel li {
  margin-bottom: 1rem;
}

.mobile-nav-panel a {
  text-decoration: none;
  font-size: 1.05rem;
  font-variant: small-caps;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .span-8, .span-6, .span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 820px) {
  .nav-split {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-triptych {
    height: 300px;
    margin: 1rem auto 0;
    max-width: 360px;
  }
  .triptych-frame {
    width: 170px;
    height: 170px;
  }
  .frame-2 {
    right: 0;
    top: 50px;
  }
  .frame-3 {
    left: 70px;
    bottom: 0;
  }
  .span-8, .span-6, .span-4 {
    grid-column: span 12;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .release-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
