:root {
  /* DESIGN.md tokens */
  --bg-void: #07090c;
  --bg-base: #0c1016;
  --bg-raised: #141a22;
  --bg-overlay: rgba(7, 9, 12, 0.72);
  --text-primary: #e8edf2;
  --text-secondary: #9aa6b2;
  --text-muted: #6b7682;
  --accent: #2ec4b6;
  --accent-soft: #1a8f85;
  --accent-glow: rgba(46, 196, 182, 0.18);
  --border-subtle: rgba(232, 237, 242, 0.08);
  --danger: #d64545;
  --success: #3dba7a;
  --focus-ring: #2ec4b6;

  /* Legacy aliases used by existing rules */
  --bg: var(--bg-void);
  --bg-soft: rgba(20, 26, 34, 0.35);
  --bg-card: var(--bg-raised);
  --border: #1c2430;
  --border-soft: var(--border-subtle);
  --text: var(--text-secondary);
  --text-bright: var(--text-primary);
  --text-dim: #3d4652;
  --cyan: var(--accent);
  --cyan-bright: #5ad4c8;
  --cyan-dark: var(--accent-soft);
  --cyan-btn: var(--accent-soft);
  --cyan-btn-hover: var(--accent);
  --green: var(--success);
  --green-dark: #2a8f5c;
  --max: 80rem;
  --radius: 0.75rem;
  --radius-xl: 1.5rem;
  --radius-3xl: 1.5rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}

h1, h2, h3, .brand-name, .brand {
  font-family: var(--font-display);
  color: var(--text-primary);
}

.desktop-links a,
.mobile-menu a,
.btn-join,
.btn-submit,
nav {
  font-family: var(--font-ui);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: #164e63;
  color: #cffafe;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.flash-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.flash {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-raised);
  color: var(--text-primary);
  border-radius: var(--radius);
}
.crm-shell .lead { color: var(--text-secondary); max-width: 36rem; }
.crm-kpi-list { color: var(--text-secondary); line-height: 1.9; }
.crm-result {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  overflow: auto;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}

.crm-header h1 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}
.crm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.crm-nav a { color: var(--accent); text-decoration: none; }
.crm-nav a:hover { color: var(--text-primary); }
.crm-muted { color: var(--text-muted); font-size: 0.85rem; }

.crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
}
.crm-kpi {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
}
.crm-kpi-link:hover { border-color: var(--accent-soft); }
.crm-kpi-label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.crm-kpi-value {
  margin: 0.4rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  line-height: 1.1;
}
.crm-kpi-meta {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.crm-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.crm-panel-danger { border-color: rgba(214, 69, 69, 0.45); }
.crm-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.crm-panel-head h2,
.crm-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
}
.crm-panel-head a { color: var(--accent); font-size: 0.85rem; }

.crm-table-wrap { overflow-x: auto; }
.crm-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.crm-table th,
.crm-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}
.crm-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.crm-table a { color: var(--accent); }
.crm-table-click tbody tr { cursor: pointer; }
.crm-table-click tbody tr:hover { background: rgba(46, 196, 182, 0.06); }
.crm-empty { color: var(--text-muted); }
.crm-error-preview {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--danger);
  font-size: 0.8rem;
}
.crm-mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.crm-status {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.crm-status-succeeded,
.crm-status-success { color: var(--success); border-color: rgba(61, 186, 122, 0.35); }
.crm-status-failed { color: var(--danger); border-color: rgba(214, 69, 69, 0.35); }
.crm-status-running,
.crm-status-pending,
.crm-status-planned { color: var(--accent); border-color: rgba(46, 196, 182, 0.35); }

.crm-health-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
}
.crm-health-list li {
  display: grid;
  grid-template-columns: 1rem 10rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.crm-health-name { color: var(--text-primary); }
.crm-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text-muted);
  justify-self: center;
}
.crm-dot-green { background: var(--success); }
.crm-dot-red { background: var(--danger); }
.crm-dot-gray { background: var(--text-muted); }

.crm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: end;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.crm-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-muted);
}
.crm-filters select,
.crm-filters input[type="date"] {
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  min-width: 9rem;
}
.crm-pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.crm-pagination a { color: var(--accent); }

.crm-mono {
  margin: 0;
  padding: 1rem;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}
.crm-markdown {
  color: var(--text-secondary);
  line-height: 1.6;
  font-family: var(--font-body);
}
.crm-child-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.crm-child-list li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-ui);
  font-size: 0.875rem;
}
.crm-inline-form { display: inline; margin: 0; }
.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(214, 69, 69, 0.45);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  cursor: pointer;
}
.btn-danger-ghost:hover {
  background: rgba(214, 69, 69, 0.12);
}

.crm-traffic-totals { margin-bottom: 1rem; }
.crm-sparkline-wrap {
  color: var(--accent);
  margin: 0.5rem 0 1.25rem;
}
.crm-sparkline { display: block; max-width: 100%; }
.crm-traffic-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}
.crm-subhead {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}
.crm-ga4-unavailable {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin: 0.25rem 0 1rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-top: 5rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

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

.logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.logo-img:hover {
  opacity: 0.8;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-links {
  display: flex;
  gap: 2rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.desktop-links a:hover,
.footer-links a:hover,
.brand-link:hover {
  color: var(--cyan);
}

.btn-join {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--cyan-btn);
  color: #f8fafc;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-join:hover {
  background: var(--cyan-btn-hover);
}

.btn-join-lg {
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.4);
}

.btn-join-pill {
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--cyan-btn);
  color: #f8fafc;
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.4);
}

.btn-join-pill:hover {
  background: var(--cyan-btn-hover);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-bright);
  cursor: pointer;
  padding: 0;
}

.menu-toggle svg {
  width: 2rem;
  height: 2rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

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

.mobile-menu a {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #cbd5e1;
}

.mobile-menu .btn-join {
  width: 100%;
  text-align: center;
  padding: 0.75rem;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #06b6d4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .brand-name {
    font-size: 2.25rem;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .brand-spacer {
    width: 2.5rem;
  }
}

.social-slot {
  width: 2.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.social-slot a {
  color: #64748b;
}

.social-slot svg {
  width: 1rem;
  height: 1rem;
}

/* Layout helpers */
.stack {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

@media (min-width: 768px) {
  .stack {
    gap: 12rem;
  }
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

@media (min-width: 768px) {
  .stack-md {
    gap: 8rem;
  }
}

.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-split {
    flex-direction: row;
  }
}

.hero-copy {
  flex: 1;
  text-align: center;
  z-index: 30;
}

@media (min-width: 768px) {
  .hero-copy {
    text-align: left;
  }
}

.hero-copy h1 {
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-bright);
  margin: 0 0 2rem;
}

@media (min-width: 768px) {
  .hero-copy h1 {
    font-size: 3rem;
  }
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.025em;
  margin: 0 0 2rem;
}

@media (min-width: 768px) {
  .hero-tagline {
    font-size: 1.25rem;
  }
}

.hero-images {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 350px;
  position: relative;
  margin-top: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero-images {
    height: 450px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

.hero-img-back {
  position: absolute;
  top: 0;
  right: 2rem;
  width: 11rem;
  height: 15rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid #334155;
  opacity: 0.5;
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.hero-img-front {
  position: absolute;
  bottom: 0;
  left: 2rem;
  width: 11rem;
  height: 15rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid #164e63;
  z-index: 20;
  box-shadow: 0 0 30px rgba(8, 145, 178, 0.2);
}

@media (min-width: 768px) {
  .hero-img-back,
  .hero-img-front {
    width: 16rem;
    height: 20rem;
  }

  .hero-img-back {
    opacity: 0.8;
    right: 2.5rem;
  }

  .hero-img-front {
    left: 2.5rem;
  }
}

.section-title-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.025em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.section-title:hover {
  color: var(--cyan);
}

.section-title .arrow {
  color: #0891b2;
  font-size: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.fragment-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 18rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
  transition: border-color 0.2s;
}

.fragment-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
}

.fragment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.5s;
}

.fragment-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.sanctuary {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

@media (min-width: 768px) {
  .sanctuary {
    flex-direction: row;
  }
}

.sanctuary-photo {
  width: 100%;
  height: 20rem;
  position: relative;
}

@media (min-width: 768px) {
  .sanctuary-photo {
    width: 40%;
    height: 450px;
  }
}

.sanctuary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 1s;
}

.sanctuary-photo:hover img {
  opacity: 1;
}

.sanctuary-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617, transparent);
}

@media (min-width: 768px) {
  .sanctuary-photo::after {
    background: linear-gradient(to left, #020617, transparent);
  }
}

.sanctuary-copy {
  width: 100%;
  padding: 2rem;
}

@media (min-width: 768px) {
  .sanctuary-copy {
    width: 60%;
    padding: 4rem;
  }
}

.sanctuary-copy h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .sanctuary-copy h2 {
    font-size: 2.25rem;
  }
}

.sanctuary-copy h2 span {
  color: #06b6d4;
}

.sanctuary-copy p {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .sanctuary-copy p {
    font-size: 1.25rem;
  }
}

.sanctuary-copy p strong {
  color: var(--text-bright);
  font-weight: 600;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  border-bottom: 1px solid #164e63;
  padding-bottom: 0.5rem;
}

.link-more:hover {
  color: #67e8f9;
  border-color: var(--cyan);
}

.post-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.post-card:hover h3 {
  color: var(--cyan);
}

.post-card .thumb {
  overflow: hidden;
  border-radius: 0.75rem;
  height: 14rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.7s;
}

.post-card:hover .thumb img {
  transform: scale(1.1);
}

.post-date {
  font-size: 0.625rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.cta-center {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta-border {
  border-top: 1px solid var(--border-soft);
  padding-top: 5rem;
}

.cta-center h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  margin: 0;
}

/* Page titles */
.page-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.page-hero.left {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 3.75rem;
  }

  .page-hero.left h1 {
    font-size: 3rem;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.25;
  }
}

.page-hero .eyebrow {
  color: #06b6d4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.625rem;
  margin: 0;
}

.page-hero .rule {
  height: 4px;
  width: 6rem;
  background: #164e63;
  margin: 1.5rem auto 0;
  border-radius: 9999px;
}

.page-hero.left .accent {
  color: #06b6d4;
  font-style: italic;
}

/* Fragments grid */
.frag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .frag-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .frag-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.frag-tile {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
  transition: border-color 0.5s;
}

.frag-tile:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.frag-tile .aspect {
  aspect-ratio: 1;
}

.frag-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: all 0.7s;
}

.frag-tile:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* About */
.about-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about-block {
    flex-direction: row;
    gap: 5rem;
  }

  .about-block.reverse {
    flex-direction: row-reverse;
  }
}

.about-media {
  flex: 1;
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

@media (min-width: 768px) {
  .about-media {
    height: 500px;
  }
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.7s;
}

.about-media img.gray {
  filter: grayscale(1);
  opacity: 0.8;
}

.about-media:hover img {
  opacity: 1;
}

.about-copy {
  flex: 1;
}

.about-copy h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  border-left: 4px solid #0891b2;
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .about-copy h2 {
    font-size: 1.875rem;
  }
}

.about-copy p {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.about-copy .quote {
  color: #cbd5e1;
  font-style: italic;
  border-right: 4px solid var(--border);
  padding-right: 1.5rem;
  text-align: right;
}

@media (min-width: 768px) {
  .about-copy .quote {
    border-right: none;
    padding-right: 0;
    text-align: left;
  }
}

.about-copy .cyan-em {
  color: #06b6d4;
  font-style: italic;
}

.about-copy .bright {
  color: var(--text-bright);
  font-weight: 500;
}

/* Blog post */
.article {
  max-width: 56rem;
  margin: 0 auto;
}

.back-link {
  color: #06b6d4;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.back-link:hover {
  color: var(--cyan);
}

.article h1 {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.25;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .article h1 {
    font-size: 3rem;
  }
}

.episode-tag {
  color: #06b6d4;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  border-left: 2px solid #155e75;
  padding-left: 1rem;
  margin-left: 0.5rem;
}

@media (min-width: 768px) {
  .episode-tag {
    font-size: 1.875rem;
  }
}

.article-meta {
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.625rem;
}

.article-hero {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 300px;
  margin: 3rem 0;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

@media (min-width: 768px) {
  .article-hero {
    height: 550px;
  }
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.prose {
  font-size: 1.125rem;
  color: #cbd5e1;
  font-weight: 300;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .prose {
    font-size: 1.25rem;
  }
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .prose h2 {
    font-size: 1.875rem;
  }
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 2.5rem 0 1.5rem;
}

.prose p {
  margin: 0 0 1.5rem;
}

.prose .highlight {
  font-weight: 600;
  color: var(--cyan);
}

.prose .italic {
  font-style: italic;
}

.prose .muted {
  color: var(--text-muted);
}

.prose .continued {
  margin-top: 5rem;
  text-align: center;
}

.prose .continued p {
  font-size: 1.5rem;
  color: #06b6d4;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  letter-spacing: 0.15em;
  font-weight: 300;
}

@media (min-width: 768px) {
  .prose .continued p {
    font-size: 2.25rem;
  }
}

.prose ul.triad {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.prose ul.triad li {
  padding-left: 1rem;
  border-left: 2px solid #155e75;
  margin-bottom: 1.5rem;
}

.prose ul.triad strong {
  color: var(--text-bright);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* Contact */
.contact-quote {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.contact-quote h1 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .contact-quote h1 {
    font-size: 2.25rem;
  }
}

.contact-quote .brand {
  color: #06b6d4;
  font-weight: 700;
  font-style: normal;
}

.wa-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  background: rgba(15, 23, 42, 0.2);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-3xl);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

@media (min-width: 768px) {
  .wa-panel {
    flex-direction: row;
    padding: 4rem;
  }
}

.wa-panel h2 {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
}

@media (min-width: 768px) {
  .wa-panel h2 {
    font-size: 2.25rem;
  }
}

.wa-panel h2 .green {
  color: var(--green);
}

.wa-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  width: 100%;
}

.wa-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}

.wa-link:hover {
  border-color: var(--green);
}

.wa-link span.label {
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.wa-link span.badge {
  background: #16a34a;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wa-link.channel span.badge {
  background: var(--green-dark);
}

.wa-photo {
  flex: 1;
  width: 100%;
  height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .wa-photo {
    height: 400px;
  }
}

.wa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.form-wrap {
  max-width: 48rem;
  margin: 0 auto;
}

.form-wrap .form-head {
  text-align: center;
  margin-bottom: 3rem;
}

.form-wrap .form-head h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.5rem;
}

.form-wrap .form-head p {
  color: #64748b;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.625rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-left: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  color: #e2e8f0;
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #0891b2;
}

.field textarea {
  resize: none;
}

.captcha-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.btn-submit {
  grid-column: 1 / -1;
  padding: 1rem;
  background: #f1f5f9;
  color: #020617;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
  transition: all 0.2s;
}

.btn-submit:hover {
  background: #06b6d4;
  color: white;
}

.btn-submit:disabled {
  opacity: 0.5;
}

.newsletter {
  background: rgba(8, 51, 68, 0.2);
  border: 1px solid rgba(22, 78, 99, 0.3);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .newsletter {
    padding: 4rem;
  }
}

.newsletter h2 {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.newsletter p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.newsletter-row {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .newsletter-row {
    flex-direction: row;
  }
}

.newsletter-row input {
  flex: 1;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  color: #e2e8f0;
  font: inherit;
}

.newsletter-row input:focus {
  outline: none;
  border-color: #06b6d4;
}

.newsletter-row button {
  background: var(--cyan-btn);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  min-width: 140px;
}

.newsletter-row button:hover {
  background: var(--cyan-btn-hover);
}

/* Legal pages */
.legal {
  max-width: 48rem;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-bright);
  margin: 0 0 2rem;
}

.legal p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

/* Footer */
.site-footer {
  padding-top: 5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: -0.025em;
}

.footer-brand span {
  color: #0891b2;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  color: #64748b;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (min-width: 768px) {
  .footer-links {
    font-size: 0.875rem;
  }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.625rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-top: 1px solid rgba(15, 23, 42, 0.5);
  padding-top: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom a:hover {
  color: var(--text-muted);
}

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

.not-found {
  color: white;
  padding: 5rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.15em;
}
