/* Hallmark · macrostructure: Photographic · tone: atmospheric-austere · anchor hue: surgical-teal
 * theme: Midnight · paper: dark · display: classical-serif · accent: cool-teal
 * genre: atmospheric · nav: N5 Floating pill · footer: Ft5 Statement
 */

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, oklch(28% 0.05 195 / 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, oklch(24% 0.04 160 / 0.28), transparent 50%),
    linear-gradient(180deg, var(--color-paper), oklch(10% 0.02 250));
  line-height: 1.7;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
}

h1 {
  font-size: var(--text-display);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-xl);
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

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

/* N5 Floating pill nav */
.nav-float {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(calc(100% - 1.25rem), 68rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  border: 1px solid oklch(74% 0.11 195 / 0.22);
  border-radius: var(--radius-pill);
  background: var(--color-glass);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px oklch(0% 0 0 / 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-ink);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid oklch(74% 0.11 195 / 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 0.68rem;
  color: var(--color-ink-muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-ink);
  background: oklch(100% 0 0 / 0.06);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--color-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
}

.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--color-rule);
  background: oklch(14% 0.02 250 / 0.96);
}

.nav-panel.open {
  display: grid;
  gap: 0.25rem;
}

.nav-panel a {
  color: var(--color-ink);
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
}

.nav-panel a:hover {
  background: oklch(100% 0 0 / 0.05);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle,
  .nav-panel {
    display: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  color: oklch(12% 0.02 250);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: var(--shadow-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, oklch(100% 0 0 / 0.35) 48%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 2.8s var(--ease-in-out) infinite;
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px oklch(74% 0.11 195 / 0.5), 0 16px 48px oklch(74% 0.11 195 / 0.22);
}

.btn-ghost {
  color: var(--color-ink);
  background: oklch(100% 0 0 / 0.04);
  border-color: oklch(100% 0 0 / 0.14);
}

.btn-ghost:hover {
  background: oklch(100% 0 0 / 0.08);
  border-color: oklch(74% 0.11 195 / 0.4);
}

@keyframes sheen {
  0%,
  35% {
    transform: translateX(-120%);
  }
  65%,
  100% {
    transform: translateX(120%);
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(8% 0.02 250 / 0.88) 0%, oklch(8% 0.02 250 / 0.55) 42%, oklch(8% 0.02 250 / 0.35) 100%),
    linear-gradient(180deg, oklch(8% 0.02 250 / 0.35) 0%, oklch(8% 0.02 250 / 0.2) 40%, oklch(8% 0.02 250 / 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
  padding: 7.5rem 0 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid oklch(74% 0.11 195 / 0.35);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  background: oklch(14% 0.02 250 / 0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  text-shadow: 0 8px 40px oklch(0% 0 0 / 0.45);
}

.hero h1 em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.42em;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-ink-muted);
  letter-spacing: 0.04em;
}

.hero-sub {
  max-width: 36rem;
  margin: 0 0 1.35rem;
  color: oklch(88% 0.01 95);
  font-size: var(--text-lg);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
}

.metric {
  padding: 0.45rem 0.8rem;
  border: 1px solid oklch(100% 0 0 / 0.12);
  border-radius: var(--radius-sm);
  background: oklch(100% 0 0 / 0.04);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.metric b {
  color: var(--color-ink);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: var(--space-3xl) 0;
}

.section-head {
  margin-bottom: var(--space-xl);
  max-width: 42rem;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--color-ink-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.info-card {
  padding: 1rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
}

.info-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.info-card strong {
  font-size: var(--text-sm);
  font-weight: 600;
}

.story-block {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.story-block p {
  color: var(--color-ink-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.feature-card {
  padding: 1.25rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--color-paper-2), var(--color-paper));
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card .icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid oklch(74% 0.11 195 / 0.35);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.feature-card p {
  margin: 0.55rem 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-rule);
  cursor: zoom-in;
  background: var(--color-paper-2);
  min-width: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-med) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.download-band {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
  border: 1px solid oklch(74% 0.11 195 / 0.28);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 20% 30%, oklch(40% 0.08 195 / 0.25), transparent 45%),
    var(--color-paper-2);
  text-align: center;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.timeline-item time {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.timeline-item p {
  margin: 0.4rem 0 0;
  color: var(--color-ink-muted);
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.fit-grid,
.review-grid,
.card-grid-2,
.card-grid-3 {
  display: grid;
  gap: 0.85rem;
}

.fit-grid,
.review-grid,
.card-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fit-grid,
  .review-grid,
  .card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.soft-card {
  padding: 1.2rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
}

.soft-card p {
  margin: 0.55rem 0 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.soft-card .source {
  margin-top: 0.85rem;
  color: var(--color-accent);
  font-size: var(--text-xs);
}

.faq-list details {
  border-bottom: 1px solid var(--color-rule);
  padding: 0.85rem 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

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

.faq-list summary::after {
  content: "+";
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--color-ink-muted);
}

.final-cta {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.final-cta p {
  max-width: 34rem;
  margin: 0.85rem auto 1.5rem;
  color: var(--color-ink-muted);
}

.final-note {
  margin-top: 1rem;
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
}

.site-footer {
  border-top: 1px solid var(--color-rule);
  padding: 2.5rem 0 3rem;
  background: oklch(10% 0.02 250);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

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

.site-footer p,
.site-footer a {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.site-footer a {
  text-decoration: none;
}

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

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}

.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-rule);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
}

.page-hero {
  padding: 7.5rem 0 2.5rem;
}

.page-hero h1 {
  margin: 0.5rem 0;
  font-size: var(--text-display-s);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  border: 1px solid var(--color-rule);
  background: transparent;
  color: var(--color-ink-muted);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--color-ink);
  border-color: oklch(74% 0.11 195 / 0.45);
  background: oklch(74% 0.11 195 / 0.12);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: oklch(0% 0 0 / 0.88);
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid oklch(100% 0 0 / 0.2);
  background: oklch(20% 0.02 250 / 0.8);
  color: var(--color-ink);
  border-radius: 999px;
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: oklch(0% 0 0 / 0.72);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(100%, 42rem);
  max-height: 85vh;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 0.85rem;
  border: 1px solid var(--color-rule);
  background: var(--color-paper-2);
}

.modal-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: var(--text-sm);
}

.modal-panel th,
.modal-panel td {
  border: 1px solid var(--color-rule);
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.guide-toc a {
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.article-body {
  max-width: 46rem;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-body p,
.article-body li {
  color: var(--color-ink-muted);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: var(--text-sm);
}

.article-body th,
.article-body td {
  border: 1px solid var(--color-rule);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.article-body th {
  background: var(--color-paper-2);
  color: var(--color-ink);
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary::after,
  .fade-up,
  .gallery-item img,
  .feature-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .fade-up {
    opacity: 1;
  }
}
