:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #292d33;
  --bg-surface-hover: #32373f;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-secondary: #0d9488;
  --border-subtle: rgba(229, 231, 235, 0.12);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.35);
  --glow-accent: 0 8px 24px -6px rgba(20, 184, 166, 0.25);
}

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

html, body {
  background-color: #14161a;
  color: var(--text-primary);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.8;
  font-size: 17px;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

.canvas-frame {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  margin: 28px;
  min-height: calc(100vh - 56px);
  position: relative;
}

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

a:hover, a:focus-visible {
  color: #2dd4bf;
  text-decoration: underline;
}

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

/* Header & Navigation */
.site-header {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  padding: 1.25rem 2rem;
}

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

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

.brand-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-primary);
  display: inline-block;
  position: relative;
}

.brand-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: var(--accent-primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  max-width: 820px;
}

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

.nav-group a {
  color: var(--text-primary);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

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

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 2rem;
}

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

.mobile-nav-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.mobile-nav-list a {
  color: var(--text-primary);
  display: block;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

/* Hero Section */
.hero-viewport {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: contrast(1.05) brightness(0.75);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 31, 36, 0.65) 0%, rgba(28, 31, 36, 0.88) 65%, rgba(28, 31, 36, 0.98) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.3;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.4rem;
}

.lead-copy {
  font-size: 1.15rem;
  color: var(--text-primary);
  opacity: 0.92;
  max-width: 64ch;
  margin: 0 auto 2rem;
}

.btn-pill {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #111317;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.9rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic), background-color 0.25s ease;
}

.btn-pill:hover, .btn-pill:focus-visible {
  background-color: #2dd4bf;
  color: #090b0e;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--glow-accent);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  color: var(--accent-primary);
}

/* Layout & Reading Column */
.page-main {
  padding: 4.5rem 1.5rem;
}

.reading-column {
  max-width: 68ch;
  margin: 0 auto 4.5rem;
}

.wide-breakout {
  max-width: 1120px;
  margin: 3.5rem auto;
}

.mid-breakout {
  max-width: 920px;
  margin: 3rem auto;
}

.pull-quote {
  background-color: var(--bg-surface);
  padding: 2rem 2.25rem;
  margin: 2.5rem -1.5rem;
  box-shadow: var(--shadow-elevation);
  border-left: 3px solid var(--accent-primary);
}

.pull-quote p {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pull-quote cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: var(--bg-surface);
  border: none;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic), background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: var(--bg-surface-hover);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  text-decoration: none;
}

.card-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #141619;
}

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

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card-link-label {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Annotated Detail Spreads */
.detail-spread {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  margin: 3rem auto;
}

.detail-spread-media {
  min-height: 360px;
  position: relative;
}

.detail-spread-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-spread-notes {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.annotation-list {
  list-style: none;
  margin-top: 1rem;
}

.annotation-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
}

.annotation-list strong {
  color: var(--accent-primary);
  margin-right: 0.4rem;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 2.5rem 0;
  background: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
}

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

th, td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
}

th {
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.18);
}

/* FAQ Disclosure */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-surface);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-elevation);
}

.faq-item summary {
  padding: 1.35rem 1.75rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.4rem;
  font-weight: 400;
}

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

.faq-answer {
  padding: 0 1.75rem 1.5rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.1rem;
}

/* Contact Tool */
.contact-panel {
  background: var(--bg-surface);
  padding: 2.5rem;
  box-shadow: var(--shadow-elevation);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

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

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.draft-preview {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem;
  background: var(--bg-canvas);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .detail-spread {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .canvas-frame {
    margin: 10px;
    min-height: calc(100vh - 20px);
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .pull-quote {
    margin: 2rem 0;
    padding: 1.5rem;
  }
  .site-header {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .canvas-frame {
    margin: 4px;
  }
  .page-main {
    padding: 3rem 1rem;
  }
  .contact-panel {
    padding: 1.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}}
