:root {
  --bg-canvas: #0b0b0d;
  --bg-surface: #19191e;
  --text-primary: #f4f5f7;
  --text-muted: #c0c4cc;
  --accent-primary: #dc2626;
  --accent-hover: #b91c1c;
  --border-subtle: #262630;
  --crimson-band-bg: #8f1313;
  --crimson-band-text: #ffffff;
  --radius-badge: 9999px;
  --max-w: 1200px;
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-family: var(--font-stack);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-primary);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 700;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header & Navigation */
.header-wrapper {
  max-width: var(--max-w);
  margin: 0.75rem auto;
  padding: 0 1rem;
  width: 100%;
  position: relative;
  z-index: 50;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.25rem;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.brand-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
}

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

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.header-cta {
  background: var(--accent-primary);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.header-cta:hover {
  background: var(--accent-hover);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text-primary);
  border-radius: 4px;
}

.mobile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 1rem;
  left: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 100;
}

.mobile-dropdown.open {
  display: flex;
}

.mobile-dropdown a {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-dropdown a:hover,
.mobile-dropdown a.active {
  color: var(--text-primary);
}

/* Layout Containers */
main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1.25rem;
}

.prose-container {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem;
}

/* Section Types */
.section-dark {
  background: var(--bg-canvas);
}

.section-surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-crimson {
  background: var(--crimson-band-bg);
  color: var(--crimson-band-text);
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.section-crimson h2,
.section-crimson p,
.section-crimson strong {
  color: #ffffff;
}

.section-crimson .badge-round {
  background: #ffffff;
  color: #7f1d1d;
  font-weight: 800;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
}

.lead-text {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Badges & Markers */
.badge-round {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-badge);
  background: rgba(220, 38, 38, 0.15);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.dot-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: inline-block;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.85rem 1.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  min-height: 46px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  position: relative;
  padding-bottom: 2px;
}

.text-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.2s ease;
}

.text-link:hover::after {
  width: 100%;
}

/* Split Section Layout & Media */
.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-grid.reverse .split-content {
  order: 2;
}

.split-grid.reverse .split-media {
  order: 1;
}

.split-media {
  width: 100%;
  background: #121217;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

.split-media img,
.split-media svg {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.split-media:hover img {
  transform: scale(1.02);
}

.image-caption {
  font-size: 0.8rem;
  color: #9da3af;
  padding: 0.65rem 0.95rem;
  background: #141418;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.4;
}

/* Cards Grid & Figure Media */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border-color: #3f3f4e;
}

.card-figure {
  width: 100%;
  height: 190px;
  background: #121217;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.card-figure img,
.card-figure svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.card-item:hover .card-figure img {
  transform: scale(1.04);
}

.card-item h3 {
  margin-bottom: 0.65rem;
}

.card-item p {
  flex: 1;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Specialized Image Class Descriptors */
.hero-landscape-image,
.aurora-feature-image,
.fjord-bathymetric-image,
.secluded-frontier-image,
.aurora-sky-hero-img,
.fjord-landscape-hero-img,
.hidden-landscape-hero-img,
.seasons-cycle-hero-img,
.editorial-base-image {
  background-color: #161820;
}

.pillar-card-image,
.observational-card-image,
.waterway-card-image,
.secluded-card-image,
.seasonal-contrast-img,
.field-prep-image {
  background-color: #161820;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
  min-width: 600px;
}

th, td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: #121217;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

tr:last-child td {
  border-bottom: none;
}

/* Interactive Accordion FAQs */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.15rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle:hover {
  color: var(--accent-primary);
}

.faq-toggle-icon {
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
  display: none;
}

.faq-item.open .faq-content {
  display: block;
}

/* Contact Tool Styles */
.tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: clamp(1.25rem, 3vw, 2rem);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background: #0d0d10;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--accent-primary);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-secondary {
  background: #25252f;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
  min-height: 44px;
}

.btn-secondary:hover {
  background: #333342;
}

.draft-output-area {
  background: #0a0a0c;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  margin-top: 1.25rem;
}

.status-toast {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #34d399;
  min-height: 1.2rem;
}

/* Footer */
.site-footer {
  background: #08080a;
  border-top: 2px solid var(--border-subtle);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #1a1a20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #71717a;
  font-size: 0.825rem;
}

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

.footer-legal-links a {
  color: #71717a;
}

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

/* Responsive Media Queries */
@media (max-width: 900px) {
  .split-grid,
  .split-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-grid.reverse .split-content {
    order: 1;
  }
  .split-grid.reverse .split-media {
    order: 2;
  }
  .split-media img {
    height: 320px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .split-media img {
    height: 260px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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