:root {
  --ap-ink: #14161c;
  --ap-paper: #f6efe3;
  --ap-paper-2: #eee3cd;
  --ap-amber: #e7a23c;
  --ap-amber-bright: #ffbd5c;
  --ap-terracotta: #c15f3c;
  --ap-text-on-dark: #f3efe6;
  --ap-text-on-dark-mute: #a6a29a;
  --ap-text-on-light: #201d19;
  --ap-text-on-light-mute: #6c6558;
}

.ap-8639311a-container {
  font-family: 'Inter', sans-serif;
  background-color: var(--ap-paper);
  color: var(--ap-text-on-light);
  overflow: hidden;
}

.ap-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .ap-wrap { padding: 0 20px; }
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid currentColor;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
}
.ap-btn:hover { transform: translateY(-2px); }

.ap-btn-solid-amber {
  background: var(--ap-amber);
  border-color: var(--ap-amber);
  color: var(--ap-ink);
}
.ap-btn-solid-amber:hover {
  background: var(--ap-amber-bright);
  border-color: var(--ap-amber-bright);
}
.ap-btn-outline-dark { color: var(--ap-text-on-dark); }
.ap-btn-outline-dark:hover { background: var(--ap-text-on-dark); color: var(--ap-ink); }

/* --- HERO --- */
.ap-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--ap-ink);
  color: var(--ap-text-on-dark);
  overflow: hidden;
}
.ap-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243,239,230,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,239,230,.14) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .5;
}
.ap-hero-glow {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(231,162,60,.12), transparent 60%);
  pointer-events: none;
}
.ap-hero-content {
  position: relative;
  padding: 100px 0 60px;
}
.ap-hero-kicker { color: var(--ap-amber); margin-bottom: 20px; }
.ap-hero-title { font-size: clamp(32px, 5vw, 64px); line-height: 1.1; margin-bottom: 24px; }
.ap-hero-title em { font-family: 'Fraunces', serif; font-style: italic; color: var(--ap-amber-bright); }
.ap-hero-sub { max-width: 580px; font-size: 16px; color: var(--ap-text-on-dark-mute); line-height: 1.6; }
.ap-hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.ap-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(243,239,230,.14);
}
.ap-hero-panel {
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255,255,255,0.02);
}
.ap-hero-panel .name { font-size: 20px; font-weight: 600; color: var(--ap-amber-bright); }
.ap-hero-panel .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ap-text-on-dark-mute); margin-left: 8px; }
.ap-hero-panel-label { display: flex; align-items: baseline; margin-bottom: 8px; }
.ap-hero-panel p { font-size: 13px; color: var(--ap-text-on-dark-mute); margin: 0 0 16px 0; }
.ap-hero-panel .go { font-family: 'IBM Plex Mono', monospace; text-decoration: none; color: var(--ap-amber); font-size: 12px; }

@media (max-width: 760px) {
  .ap-hero-split { grid-template-columns: 1fr; }
}

/* --- INTRO STRIP --- */
.ap-intro { background: var(--ap-paper); padding: 80px 0; }
.ap-intro-head h2 { font-size: clamp(24px, 3.5vw, 36px); line-height: 1.2; }
.ap-intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  border-top: 1px solid rgba(32,29,25,.16);
  padding-top: 24px;
}
.ap-stat .num { font-size: 32px; font-weight: 700; color: var(--ap-terracotta); }
.ap-stat .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ap-text-on-light-mute); line-height: 1.4; margin-top: 6px; }

@media (max-width: 760px) {
  .ap-intro-stats { grid-template-columns: 1fr; }
}

/* --- FAMILY SECTIONS --- */
.ap-family { padding: 90px 0; }
.ap-family.on-dark { background: var(--ap-ink); color: var(--ap-text-on-dark); }
.ap-family.on-light { background: var(--ap-paper-2); color: var(--ap-text-on-light); }

.ap-family-head { margin-bottom: 48px; }
.ap-family-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin-bottom: 16px; }
.ap-family-head h2 em { font-family: 'Fraunces', serif; font-style: italic; }
.ap-family-head .desc { font-size: 15px; line-height: 1.6; max-width: 700px; color: inherit; opacity: 0.85; }

/* --- LADDER CARD --- */
.ap-ladder-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 24px;
  background: rgba(255,255,255,.02);
}
.ap-family.on-light .ap-ladder-card {
  border-color: rgba(32,29,25,.12);
  background: rgba(255,255,255,.4);
}
.ap-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.ap-ladder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ap-ladder-item .photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  border-top: 3px solid var(--ap-amber);
}
.ap-ladder-item.is-arch .photo-frame {
  border-radius: 120px 120px 4px 4px;
  border-top: 3px solid var(--ap-terracotta);
}
.ap-ladder-item .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ap-ladder-item:hover .photo-frame img {
  transform: scale(1.05);
}
.ap-ladder-item .name { font-size: 16px; font-weight: 600; margin-top: 12px; }
.ap-ladder-item .dims { font-family: 'IBM Plex Mono', monospace; font-size: 11px; opacity: 0.7; margin-top: 4px; }

/* --- FEATURE GRID --- */
.ap-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.ap-feat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 24px;
  border-radius: 4px;
}
.ap-feat .num { font-size: 28px; font-weight: 700; color: var(--ap-amber); }
.ap-feat .unit { font-size: 12px; margin-left: 4px; font-family: 'IBM Plex Mono', monospace; }
.ap-feat .label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.ap-feat .sub { font-size: 12px; opacity: 0.7; margin-top: 4px; line-height: 1.5; }

@media (max-width: 860px) {
  .ap-feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ap-feat-grid { grid-template-columns: 1fr; }
}

/* --- MORPH DIVIDER --- */
.ap-morph-divider {
  display: flex;
  height: 64px;
  overflow: hidden;
}
.ap-morph-divider .seg {
  flex: 1;
}

/* --- SWATCHES --- */
.ap-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.ap-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.ap-swatch:hover { transform: translateY(-3px); }
.ap-swatch.active { border-color: var(--ap-text-on-light); }
.ap-swatch-name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; margin-top: 12px; color: var(--ap-text-on-light-mute); }

/* --- COMPARE --- */
.ap-compare { background: var(--ap-paper); padding: 80px 0; }
.ap-cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ap-cmp th, .ap-cmp td {
  padding: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  text-align: left;
}
.ap-cmp td.k { font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 11px; opacity: 0.7; }
.ap-cmp thead td { font-size: 16px; font-weight: 700; }
.ap-cmp thead td.atom-h { color: var(--ap-terracotta); }
.ap-cmp thead td.arc-h { color: var(--ap-amber); }

/* --- CONTACT --- */
.ap-contact {
  background: var(--ap-ink);
  color: var(--ap-text-on-dark);
  padding: 80px 0;
  position: relative;
}
.ap-contact-glow {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(231,162,60,0.1), transparent 70%);
}
.ap-contact .ap-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.ap-contact-info {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}
.ap-contact-info .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.ap-contact-info .row .k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; opacity: 0.6; }
.ap-contact-info a { color: inherit; text-decoration: none; }
.ap-contact-info a:hover { color: var(--ap-amber-bright); }

@media (max-width: 760px) {
  .ap-contact .ap-wrap { grid-template-columns: 1fr; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
