/* Atom — main.css
   Brand prefix: atm
   Design: Precision-engineered industrial dark. Japanese manufacturing sensibility.
   Palette: near-black #0A0E14 + amber #E8A020 + slate greys
*/

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Palette */
  --atm-bg-dark:        #0A0E14;
  --atm-bg-dark-alt:    #111820;
  --atm-bg-dark-panel:  #161D28;
  --atm-bg-light:       #F4F6F8;
  --atm-bg-white:       #FFFFFF;

  --atm-amber:          #E8A020;
  --atm-amber-aa:       #B07010;  /* AA on light bg */

  --atm-fg-dark-pri:    #F0F2F5;
  --atm-fg-dark-sec:    #8A9AB0;
  --atm-fg-light-pri:   #0A0E14;
  --atm-fg-light-sec:   #4A5568;

  --atm-border-dark:    rgba(240, 242, 245, 0.08);
  --atm-border-light:   rgba(10, 14, 20, 0.12);

  /* Typography */
  --atm-font-head:      'Space Grotesk', system-ui, sans-serif;
  --atm-font-body:      'Inter', system-ui, sans-serif;
  --atm-font-mono:      'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Spacing */
  --atm-section-pad:    96px;
  --atm-section-pad-m:  64px;
  --atm-max-w:          1200px;
  --atm-gutter:         24px;

  /* Transitions */
  --atm-trans:          0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--atm-font-body);
  font-weight: 400;
  line-height: 1.7;
  background: var(--atm-bg-dark);
  color: var(--atm-fg-dark-pri);
  -webkit-font-smoothing: antialiased;
}

body.atm-page--light-top {
  background: var(--atm-bg-white);
  color: var(--atm-fg-light-pri);
}

/* Explicit bg body.atm-page--dark-top so transparent nav shows dark */
body.atm-page--dark-top {
  background: var(--atm-bg-dark);
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--atm-font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.atm-eyebrow {
  font-family: var(--atm-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Eyebrow colors per container context */
.atm-section--dark .atm-eyebrow,
.atm-section--dark-alt .atm-eyebrow,
.atm-section--dark-panel .atm-eyebrow,
.atm-hero .atm-eyebrow,
.atm-cta-band .atm-eyebrow,
.atm-footer .atm-eyebrow {
  color: var(--atm-amber);
}

.atm-section--light .atm-eyebrow,
.atm-section--white .atm-eyebrow,
.atm-subhero--light .atm-eyebrow {
  color: var(--atm-amber-aa);
}

/* ============================================================
   Layout Containers
   ============================================================ */
.atm-container {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  padding: 0 var(--atm-gutter);
}

/* ============================================================
   Sections
   ============================================================ */
.atm-section--dark {
  background: var(--atm-bg-dark);
  color: var(--atm-fg-dark-pri);
  padding: var(--atm-section-pad) 0;
}

.atm-section--dark-alt {
  background: var(--atm-bg-dark-alt);
  color: var(--atm-fg-dark-pri);
  padding: var(--atm-section-pad) 0;
}

.atm-section--dark-panel {
  background: var(--atm-bg-dark-panel);
  color: var(--atm-fg-dark-pri);
  padding: var(--atm-section-pad) 0;
}

.atm-section--light {
  background: var(--atm-bg-light);
  color: var(--atm-fg-light-pri);
  padding: var(--atm-section-pad) 0;
}

.atm-section--white {
  background: var(--atm-bg-white);
  color: var(--atm-fg-light-pri);
  padding: var(--atm-section-pad) 0;
}

/* Section headings */
.atm-section--dark h2,
.atm-section--dark-alt h2,
.atm-section--dark-panel h2 {
  color: var(--atm-fg-dark-pri);
}

.atm-section--light h2,
.atm-section--white h2 {
  color: var(--atm-fg-light-pri);
}

/* ============================================================
   Navigation
   ============================================================ */
.atm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--atm-gutter);
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--atm-trans), box-shadow var(--atm-trans);
}

/* Dark-top pages: transparent until scrolled */
body.atm-page--dark-top .atm-nav {
  background: transparent;
}

body.atm-page--dark-top .atm-nav.atm-nav--scrolled {
  background: var(--atm-bg-dark);
  box-shadow: 0 1px 0 var(--atm-border-dark);
}

/* Light-top pages: solid always */
body.atm-page--light-top .atm-nav {
  background: var(--atm-bg-dark);
  box-shadow: 0 1px 0 var(--atm-border-dark);
}

.atm-nav__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.atm-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.atm-nav__logo img {
  height: 32px;
  width: auto;
  max-width: 140px;
}

.atm-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.atm-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--atm-fg-dark-sec);
  transition: color var(--atm-trans);
  white-space: nowrap;
}

.atm-nav__link:hover,
.atm-nav__link.atm-nav__link--active {
  color: var(--atm-fg-dark-pri);
}

.atm-nav__cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* Hamburger */
.atm-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px;
  margin-left: auto;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.atm-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--atm-fg-dark-pri);
  transition: transform var(--atm-trans), opacity var(--atm-trans);
}

.atm-nav--mobile-open .atm-nav__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.atm-nav--mobile-open .atm-nav__hamburger span:nth-child(2) {
  opacity: 0;
}
.atm-nav--mobile-open .atm-nav__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.atm-nav__mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--atm-bg-dark);
  border-top: 1px solid var(--atm-border-dark);
  padding: 24px var(--atm-gutter) 32px;
  z-index: 99;
}

.atm-nav--mobile-open .atm-nav__mobile-menu {
  display: block;
}

.atm-nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.atm-nav__mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--atm-fg-dark-pri);
  border-bottom: 1px solid var(--atm-border-dark);
}

/* ============================================================
   Buttons
   ============================================================ */
.atm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--atm-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--atm-trans), color var(--atm-trans), border-color var(--atm-trans), opacity var(--atm-trans);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

/* Primary */
.atm-btn--primary {
  background: var(--atm-amber);
  color: var(--atm-bg-dark);
  border-color: var(--atm-amber);
}

.atm-btn--primary:hover {
  background: #D09018;
  border-color: #D09018;
}

/* Ghost on dark */
.atm-btn--ghost-dark {
  background: transparent;
  color: var(--atm-fg-dark-pri);
  border-color: var(--atm-border-dark);
}

.atm-btn--ghost-dark:hover {
  border-color: rgba(240, 242, 245, 0.3);
  color: #fff;
}

/* Outline on light */
.atm-btn--outline-light {
  background: transparent;
  color: var(--atm-fg-light-pri);
  border-color: var(--atm-border-light);
}

.atm-btn--outline-light:hover {
  border-color: var(--atm-fg-light-sec);
}

/* Secondary on dark (amber outlined) */
.atm-btn--secondary-dark {
  background: transparent;
  color: var(--atm-amber);
  border-color: var(--atm-amber);
}

.atm-btn--secondary-dark:hover {
  background: rgba(232, 160, 32, 0.1);
}

/* Small variant */
.atm-btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* ============================================================
   Hero — Index
   ============================================================ */
.atm-hero {
  position: relative;
  min-height: 100vh;
  background: var(--atm-bg-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.atm-hero__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  padding: 80px var(--atm-gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.atm-hero__content {
  z-index: 2;
}

.atm-hero__eyebrow {
  color: var(--atm-amber);
  margin-bottom: 20px;
}

.atm-hero__headline {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--atm-fg-dark-pri);
  margin-bottom: 24px;
  line-height: 1.15;
}

.atm-hero__subhead {
  font-size: 1.1rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.atm-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.atm-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   Sub-page Hero (lighter weight than index hero)
   ============================================================ */
.atm-subhero--dark {
  background: var(--atm-bg-dark);
  padding: 140px var(--atm-gutter) 80px;
}

.atm-subhero--light {
  background: var(--atm-bg-light);
  padding: 128px var(--atm-gutter) 72px;
}

.atm-subhero__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.atm-subhero__content {
}

.atm-subhero__eyebrow {
  margin-bottom: 16px;
}

.atm-subhero--dark .atm-subhero__eyebrow { color: var(--atm-amber); }
.atm-subhero--light .atm-subhero__eyebrow { color: var(--atm-amber-aa); }

.atm-subhero__headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.atm-subhero--dark .atm-subhero__headline { color: var(--atm-fg-dark-pri); }
.atm-subhero--light .atm-subhero__headline { color: var(--atm-fg-light-pri); }

.atm-subhero__subhead {
  font-size: 1rem;
  line-height: 1.7;
}

.atm-subhero--dark .atm-subhero__subhead { color: var(--atm-fg-dark-sec); }
.atm-subhero--light .atm-subhero__subhead { color: var(--atm-fg-light-sec); }

/* ============================================================
   Stat Strip (labour-context section)
   ============================================================ */
.atm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--atm-border-dark);
}

.atm-stat {
  background: var(--atm-bg-dark-alt);
  padding: 40px 32px;
}

.atm-stat__number {
  font-family: var(--atm-font-mono);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--atm-amber);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.atm-stat__label {
  font-size: 0.9rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.5;
}

.atm-stat__attribution {
  font-family: var(--atm-font-mono);
  font-size: 0.7rem;
  color: rgba(138, 154, 176, 0.6);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ============================================================
   Problem Framing (2-col with nested photo card)
   ============================================================ */
.atm-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.atm-problem-copy h2 {
  color: var(--atm-fg-dark-pri);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 20px;
}

.atm-problem-copy p {
  color: var(--atm-fg-dark-sec);
  line-height: 1.75;
  margin-bottom: 16px;
}

.atm-problem-copy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.atm-problem-copy ul li {
  display: flex;
  gap: 12px;
  color: var(--atm-fg-dark-sec);
  font-size: 0.95rem;
}

.atm-problem-copy ul li::before {
  content: '';
  display: block;
  width: 2px;
  height: 20px;
  background: var(--atm-amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.atm-problem-photo-card {
  background: var(--atm-bg-white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.atm-problem-photo-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.atm-problem-photo-card__caption {
  padding: 20px 24px;
  background: var(--atm-bg-white);
}

.atm-problem-photo-card__caption p {
  color: var(--atm-fg-light-sec);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================================
   Capabilities Cards (3-col)
   ============================================================ */
.atm-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--atm-border-dark);
  margin-top: 48px;
}

.atm-cap-card {
  background: var(--atm-bg-dark);
  padding: 40px 32px;
  text-decoration: none;
  transition: background var(--atm-trans);
  display: block;
}

.atm-cap-card:hover {
  background: var(--atm-bg-dark-panel);
}

.atm-cap-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atm-amber);
  font-size: 1.4rem;
  margin-bottom: 20px;
  border: 1px solid rgba(232, 160, 32, 0.2);
  border-radius: 4px;
}

.atm-cap-card__title {
  font-family: var(--atm-font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--atm-fg-dark-pri);
  margin-bottom: 12px;
}

.atm-cap-card__desc {
  font-size: 0.9rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.6;
  margin-bottom: 24px;
}

.atm-cap-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--atm-amber);
  font-family: var(--atm-font-mono);
  letter-spacing: 0.05em;
}

/* ============================================================
   Applications Teaser (light section, 2-col photo cards)
   ============================================================ */
.atm-apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.atm-app-card {
  border-radius: 4px;
  overflow: hidden;
  background: var(--atm-bg-white);
  border: 1px solid var(--atm-border-light);
  text-decoration: none;
  display: block;
  transition: transform var(--atm-trans), box-shadow var(--atm-trans);
}

.atm-app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(10, 14, 20, 0.12);
}

.atm-app-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.atm-app-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atm-app-card__body {
  padding: 28px;
}

.atm-app-card__eyebrow {
  color: var(--atm-amber-aa);
  margin-bottom: 8px;
}

.atm-app-card__title {
  font-family: var(--atm-font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--atm-fg-light-pri);
  margin-bottom: 12px;
}

.atm-app-card__desc {
  color: var(--atm-fg-light-sec);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   Spec Strip
   ============================================================ */
.atm-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--atm-border-dark);
  margin-top: 48px;
}

.atm-spec {
  background: var(--atm-bg-dark-alt);
  padding: 40px 28px;
}

.atm-spec__key {
  font-family: var(--atm-font-mono);
  font-size: 0.7rem;
  color: var(--atm-fg-dark-sec);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.atm-spec__value {
  font-family: var(--atm-font-mono);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--atm-amber);
  line-height: 1;
  margin-bottom: 8px;
}

.atm-spec__unit {
  font-size: 0.85rem;
  color: var(--atm-fg-dark-sec);
}

/* ============================================================
   Safety Section (3 trust points)
   ============================================================ */
.atm-safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.atm-safety-card {
  background: var(--atm-bg-dark-panel);
  border: 1px solid var(--atm-border-dark);
  padding: 32px;
  border-radius: 4px;
}

.atm-safety-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atm-amber);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.atm-safety-card__title {
  font-family: var(--atm-font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--atm-fg-dark-pri);
  margin-bottom: 12px;
}

.atm-safety-card__text {
  font-size: 0.9rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.65;
}

/* ============================================================
   Team Cards (light section)
   ============================================================ */
.atm-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.atm-team-card {
  background: var(--atm-bg-white);
  border: 1px solid var(--atm-border-light);
  border-radius: 4px;
  overflow: hidden;
}

.atm-team-card__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.atm-team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.atm-team-card__body {
  padding: 24px;
}

.atm-team-card__name {
  font-family: var(--atm-font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--atm-fg-light-pri);
  margin-bottom: 4px;
}

.atm-team-card__role {
  font-size: 0.8rem;
  color: var(--atm-amber-aa);
  font-family: var(--atm-font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.atm-team-card__bio {
  font-size: 0.875rem;
  color: var(--atm-fg-light-sec);
  line-height: 1.6;
}

/* ============================================================
   CTA Band
   ============================================================ */
.atm-cta-band {
  background: var(--atm-bg-dark);
  padding: var(--atm-section-pad) 0;
  position: relative;
  overflow: hidden;
}

.atm-cta-band__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  padding: 0 var(--atm-gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.atm-cta-band__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--atm-fg-dark-pri);
  margin-bottom: 16px;
}

.atm-cta-band__content p {
  color: var(--atm-fg-dark-sec);
  margin-bottom: 32px;
  font-size: 1rem;
}

.atm-cta-band__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ============================================================
   Footer
   ============================================================ */
.atm-footer {
  background: var(--atm-bg-dark-alt);
  border-top: 1px solid var(--atm-border-dark);
  padding: 64px 0 0;
}

.atm-footer__grid {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  padding: 0 var(--atm-gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.atm-footer__brand-logo {
  height: 28px;
  width: auto;
  margin-bottom: 20px;
}

.atm-footer__brand-desc {
  font-size: 0.875rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
}

.atm-footer__contact address {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.9;
}

.atm-footer__contact a {
  color: var(--atm-fg-dark-sec);
  transition: color var(--atm-trans);
}

.atm-footer__contact a:hover {
  color: var(--atm-fg-dark-pri);
}

.atm-footer__col-title {
  font-family: var(--atm-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--atm-fg-dark-sec);
  margin-bottom: 20px;
}

.atm-footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atm-footer__col-link {
  font-size: 0.875rem;
  color: var(--atm-fg-dark-sec);
  transition: color var(--atm-trans);
}

.atm-footer__col-link:hover {
  color: var(--atm-fg-dark-pri);
}

.atm-footer__bar {
  border-top: 1px solid var(--atm-border-dark);
  padding: 20px var(--atm-gutter);
  max-width: var(--atm-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.atm-footer__copyright {
  font-size: 0.8rem;
  color: var(--atm-fg-dark-sec);
}

.atm-footer__legal {
  display: flex;
  gap: 24px;
  align-items: center;
}

.atm-footer__legal a {
  font-size: 0.8rem;
  color: var(--atm-fg-dark-sec);
  transition: color var(--atm-trans);
}

.atm-footer__legal a:hover {
  color: var(--atm-fg-dark-pri);
}

/* ============================================================
   Blog Index
   ============================================================ */
.atm-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.atm-blog-card {
  background: var(--atm-bg-white);
  border: 1px solid var(--atm-border-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform var(--atm-trans), box-shadow var(--atm-trans);
}

.atm-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(10,14,20,0.1);
}

.atm-blog-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.atm-blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.atm-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.atm-blog-card__date {
  font-family: var(--atm-font-mono);
  font-size: 0.75rem;
  color: var(--atm-fg-light-sec);
  letter-spacing: 0.05em;
}

.atm-blog-card__readtime {
  font-family: var(--atm-font-mono);
  font-size: 0.75rem;
  color: var(--atm-fg-light-sec);
}

.atm-blog-card__title {
  font-family: var(--atm-font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--atm-fg-light-pri);
  line-height: 1.35;
  margin-bottom: 12px;
}

.atm-blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--atm-fg-light-sec);
  line-height: 1.65;
  flex: 1;
}

/* ============================================================
   Blog Article
   ============================================================ */
.atm-blog-article-page {
  background: var(--atm-bg-white);
  padding-top: 68px;
}

.atm-blog-article-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--atm-gutter) 40px;
}

.atm-blog-article-header .atm-eyebrow {
  color: var(--atm-amber-aa);
  margin-bottom: 16px;
}

.atm-blog-article-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--atm-fg-light-pri);
  line-height: 1.2;
  margin-bottom: 20px;
}

.atm-blog-article-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.atm-blog-article-header__date,
.atm-blog-article-header__readtime {
  font-family: var(--atm-font-mono);
  font-size: 0.8rem;
  color: var(--atm-fg-light-sec);
}

/* Cover image — article page: natural ratio, not cropped */
.atm-blog-article__cover {
  width: 100%;
  height: auto;
  max-width: 760px;
  margin: 0 auto;
  display: block;
  padding: 0 var(--atm-gutter);
  margin-bottom: 48px;
}

.atm-blog-article__cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Article body */
.atm-article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--atm-gutter) 80px;
}

/* Light-top scoped element selectors — NOT global */
body.atm-page--light-top .atm-article-body h2 {
  font-size: 1.5rem;
  color: var(--atm-fg-light-pri);
  margin: 40px 0 16px;
}

body.atm-page--light-top .atm-article-body h3 {
  font-size: 1.2rem;
  color: var(--atm-fg-light-pri);
  margin: 32px 0 12px;
}

body.atm-page--light-top .atm-article-body p {
  color: var(--atm-fg-light-pri);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

body.atm-page--light-top .atm-article-body ul,
body.atm-page--light-top .atm-article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--atm-fg-light-pri);
  list-style: disc;
}

body.atm-page--light-top .atm-article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

body.atm-page--light-top .atm-article-body a {
  color: var(--atm-amber-aa);
  text-decoration: underline;
}

body.atm-page--light-top .atm-article-body blockquote {
  border-left: 3px solid var(--atm-amber-aa);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--atm-fg-light-sec);
}

/* Blog article nav */
.atm-blog-article-nav {
  border-top: 1px solid var(--atm-border-light);
  max-width: 760px;
  margin: 0 auto;
  padding: 40px var(--atm-gutter) 80px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.atm-blog-article-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--atm-fg-light-sec);
  transition: color var(--atm-trans);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.atm-blog-article-nav__link:hover {
  color: var(--atm-fg-light-pri);
}

/* ============================================================
   Legal Pages
   ============================================================ */
.atm-legal-page {
  padding-top: 68px;
  background: var(--atm-bg-white);
  color: var(--atm-fg-light-pri);
}

.atm-legal-header {
  background: var(--atm-bg-light);
  padding: 64px var(--atm-gutter) 48px;
}

.atm-legal-header__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
}

.atm-legal-header__eyebrow {
  color: var(--atm-amber-aa);
  margin-bottom: 16px;
}

.atm-legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px var(--atm-gutter) 96px;
}

/* legal-content container — light-top only, element selectors scoped */
.atm-legal-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--atm-fg-light-pri);
  margin-bottom: 8px;
}

.atm-legal-content .legal-meta {
  font-size: 0.875rem;
  color: var(--atm-fg-light-sec);
  margin-bottom: 4px;
}

.atm-legal-content .legal-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--atm-border-light);
}

.atm-legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--atm-fg-light-pri);
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--atm-border-light);
}

.atm-legal-content section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.atm-legal-content p {
  color: var(--atm-fg-light-pri);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.atm-legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
  list-style: disc;
}

.atm-legal-content li {
  color: var(--atm-fg-light-pri);
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.atm-legal-content a {
  color: var(--atm-amber-aa);
  text-decoration: underline;
}

.atm-legal-content address {
  font-style: normal;
  line-height: 1.8;
  font-size: 0.9rem;
  color: var(--atm-fg-light-sec);
  background: var(--atm-bg-light);
  padding: 20px 24px;
  border-radius: 4px;
  margin-top: 8px;
}

.atm-legal-content .legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.atm-legal-content .legal-table th,
.atm-legal-content .legal-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--atm-border-light);
  color: var(--atm-fg-light-pri);
}

.atm-legal-content .legal-table th {
  background: var(--atm-bg-light);
  font-weight: 600;
}

/* ============================================================
   Contact Page
   ============================================================ */
.atm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.atm-contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.atm-contact-info__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atm-amber-aa);
  flex-shrink: 0;
  border: 1px solid var(--atm-border-light);
  border-radius: 4px;
  font-size: 1rem;
}

.atm-contact-info__label {
  font-size: 0.75rem;
  color: var(--atm-fg-light-sec);
  font-family: var(--atm-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.atm-contact-info__value {
  font-size: 0.9rem;
  color: var(--atm-fg-light-pri);
  line-height: 1.6;
}

.atm-contact-info__value a {
  color: var(--atm-amber-aa);
  text-decoration: none;
}

.atm-contact-info__value a:hover {
  text-decoration: underline;
}

/* Contact form */
.atm-contact-form {
  background: var(--atm-bg-light);
  border-radius: 4px;
  padding: 40px;
  border: 1px solid var(--atm-border-light);
}

.atm-form-group {
  margin-bottom: 20px;
}

.atm-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--atm-fg-light-pri);
  margin-bottom: 8px;
  font-family: var(--atm-font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.atm-form-input,
.atm-form-textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  background: var(--atm-bg-white);
  border: 1px solid var(--atm-border-light);
  border-radius: 4px;
  font-family: var(--atm-font-body);
  font-size: 0.9rem;
  color: var(--atm-fg-light-pri);
  transition: border-color var(--atm-trans);
  appearance: none;
  -webkit-appearance: none;
}

.atm-form-input:focus,
.atm-form-textarea:focus {
  outline: none;
  border-color: var(--atm-amber-aa);
}

.atm-form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.atm-form-note {
  font-size: 0.8rem;
  color: var(--atm-fg-light-sec);
  margin-top: 16px;
}

/* ============================================================
   Technology Page Cards (alternating)
   ============================================================ */
.atm-tech-cards {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 48px;
  background: var(--atm-border-dark);
}

.atm-tech-card {
  background: var(--atm-bg-dark-alt);
  padding: 56px 0;
}

.atm-tech-card__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  padding: 0 var(--atm-gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.atm-tech-card--reverse .atm-tech-card__inner {
  direction: rtl;
}

.atm-tech-card--reverse .atm-tech-card__inner > * {
  direction: ltr;
}

.atm-tech-card__eyebrow {
  color: var(--atm-amber);
  margin-bottom: 16px;
}

.atm-tech-card__title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--atm-fg-dark-pri);
  margin-bottom: 20px;
}

.atm-tech-card__desc {
  color: var(--atm-fg-dark-sec);
  line-height: 1.75;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.atm-tech-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--atm-amber);
  font-family: var(--atm-font-mono);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.atm-tech-card__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

/* ============================================================
   Application / Safety detail pages
   ============================================================ */
.atm-detail-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 48px;
}

.atm-task-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.atm-task-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--atm-bg-light);
  border-radius: 4px;
  border: 1px solid var(--atm-border-light);
}

.atm-task-item__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atm-amber-aa);
  flex-shrink: 0;
}

.atm-task-item__content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--atm-fg-light-pri);
  margin-bottom: 6px;
}

.atm-task-item__content p {
  font-size: 0.875rem;
  color: var(--atm-fg-light-sec);
  line-height: 1.6;
}

/* Safety icons grid */
.atm-safety-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.atm-safety-feature {
  background: var(--atm-bg-white);
  border: 1px solid var(--atm-border-light);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.atm-safety-feature__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atm-amber-aa);
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--atm-border-light);
  border-radius: 4px;
}

.atm-safety-feature__title {
  font-family: var(--atm-font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--atm-fg-light-pri);
  margin-bottom: 8px;
}

.atm-safety-feature__text {
  font-size: 0.875rem;
  color: var(--atm-fg-light-sec);
  line-height: 1.65;
}

/* ============================================================
   Company / About
   ============================================================ */
.atm-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.atm-about-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--atm-fg-light-pri);
  margin-bottom: 20px;
}

.atm-about-copy p {
  color: var(--atm-fg-light-sec);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* form submit button alias */
.atm-form-submit {
  /* extends .atm-btn.atm-btn--primary — no additional rules needed, class used for JS selector */
}

/* legal-article wrapper */
.legal-article {
  /* wraps legal template content — inherits .atm-legal-content rules via cascade */
}

/* ============================================================
   Cookie Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--atm-bg-dark-alt);
  border-top: 1px solid var(--atm-border-dark);
}

.cookie-banner__inner {
  max-width: var(--atm-max-w);
  margin: 0 auto;
  padding: 16px var(--atm-gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--atm-fg-dark-sec);
  line-height: 1.6;
  min-width: 200px;
}

.cookie-banner__text a {
  color: var(--atm-amber);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--atm-font-body);
  border: none;
  cursor: pointer;
  transition: opacity var(--atm-trans);
}

.cookie-banner__btn--primary {
  background: var(--atm-amber);
  color: var(--atm-bg-dark);
}

.cookie-banner__btn--primary:hover {
  opacity: 0.9;
}

/* ============================================================
   Section header utility
   ============================================================ */
.atm-section-header {
  margin-bottom: 0;
}

.atm-section-header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-top: 12px;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.atm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.8rem;
}

.atm-breadcrumb a {
  color: var(--atm-fg-light-sec);
  text-decoration: none;
  transition: color var(--atm-trans);
}

.atm-breadcrumb a:hover {
  color: var(--atm-fg-light-pri);
}

.atm-breadcrumb__sep {
  color: var(--atm-fg-light-sec);
  opacity: 0.5;
}

.atm-breadcrumb__current {
  color: var(--atm-fg-light-pri);
}

/* Light/dark variants */
.atm-breadcrumb--dark a {
  color: var(--atm-fg-dark-sec);
}

.atm-breadcrumb--dark a:hover {
  color: var(--atm-fg-dark-pri);
}

.atm-breadcrumb--dark .atm-breadcrumb__sep {
  color: var(--atm-fg-dark-sec);
}

.atm-breadcrumb--dark .atm-breadcrumb__current {
  color: var(--atm-fg-dark-pri);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .atm-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .atm-hero__visual {
    display: none;
  }

  .atm-subhero__inner {
    grid-template-columns: 1fr;
  }

  .atm-caps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atm-specs {
    grid-template-columns: 1fr 1fr;
  }

  .atm-safety-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .atm-cta-band__inner {
    grid-template-columns: 1fr;
  }

  .atm-cta-band__visual {
    display: none;
  }

  .atm-tech-card__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .atm-tech-card--reverse .atm-tech-card__inner {
    direction: ltr;
  }

  .atm-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .atm-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .atm-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --atm-section-pad: var(--atm-section-pad-m);
  }

  .atm-nav__links,
  .atm-nav__cta {
    display: none;
  }

  .atm-nav__hamburger {
    display: flex;
    margin-left: auto;
  }

  .atm-stats {
    grid-template-columns: 1fr;
  }

  .atm-problem-grid {
    grid-template-columns: 1fr;
  }

  .atm-caps-grid {
    grid-template-columns: 1fr;
  }

  .atm-apps-grid {
    grid-template-columns: 1fr;
  }

  .atm-specs {
    grid-template-columns: 1fr 1fr;
  }

  .atm-team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atm-blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .atm-safety-features {
    grid-template-columns: 1fr;
  }

  .atm-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .atm-footer__bar {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .atm-specs {
    grid-template-columns: 1fr 1fr;
  }

  .atm-team-grid {
    grid-template-columns: 1fr;
  }

  .atm-blog-grid {
    grid-template-columns: 1fr;
  }

  .atm-hero__actions {
    flex-direction: column;
  }

  .atm-blog-article-nav {
    flex-direction: column;
  }
}
