/* ===========================================================
   ATG Framework Page. The Clarity Walk(TM)
   File: atg_framework.css
   Location: Assets folder
   Last updated: April 29, 2026
   =========================================================== */

/* ---------- Font import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- CSS variables (brand) ---------- */
.atg-framework {
  --c-ice-blue: #DCF2F7;
  --c-clarity-teal: #4A9AB0;
  --c-deep-navy-plum: #33254C;
  --c-bloom-rose: #CB295C;
  --c-bloom-amber: #EF9834;

  --c-white: #FFFFFF;
  --c-cream: #FAF7F2;
  --c-charcoal: #2C2C2C;
  --c-slate: #4A5568;
  --c-ice-mist: #EEF7F9;
  --c-teal-wash: #DBEDF2;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --maxw: 1180px;
  --maxw-narrow: 880px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 6px rgba(51, 37, 76, 0.06);
  --shadow-md: 0 8px 24px rgba(51, 37, 76, 0.08);
  --shadow-lg: 0 18px 48px rgba(51, 37, 76, 0.12);
}

/* ---------- Reset within the section ---------- */
.atg-framework,
.atg-framework * {
  box-sizing: border-box;
}

.atg-framework {
  font-family: var(--font-body);
  color: var(--c-charcoal);
  line-height: 1.65;
  font-size: 17px;
  background: var(--c-white);
  overflow-x: hidden;
}

.atg-framework h1,
.atg-framework h2,
.atg-framework h3,
.atg-framework h4 {
  font-family: var(--font-display);
  color: var(--c-deep-navy-plum);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
}

.atg-framework p {
  margin: 0 0 1.1em;
}

.atg-framework p:last-child {
  margin-bottom: 0;
}

.atg-framework a {
  color: var(--c-clarity-teal);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.atg-framework a:hover {
  color: var(--c-deep-navy-plum);
}

.atg-framework ul {
  margin: 0 0 1.1em;
  padding: 0 0 0 1.2em;
}

.atg-framework li {
  margin-bottom: 0.4em;
}

/* ---------- Container ---------- */
.atg-fw-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.atg-fw-container--narrow {
  max-width: var(--maxw-narrow);
}

/* ---------- Eyebrow ---------- */
.atg-fw-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-clarity-teal);
  margin-bottom: 18px;
  display: inline-block;
}

.atg-fw-eyebrow--on-dark {
  color: var(--c-bloom-amber);
}

/* ===========================================================
   1. HERO
   Cinematic treatment. Layered drifting fog blobs over Deep
   Navy-Plum, weighted typography contrast, floating brand
   petals on the right, curved wave divider at the bottom.
   No image asset required.
   =========================================================== */
.atg-fw-hero {
  position: relative;
  background: var(--c-deep-navy-plum);
  color: var(--c-white);
  padding: 140px 0 160px;
  overflow: hidden;
  isolation: isolate;
}

/* Soft architectural grid texture, kept very low opacity */
.atg-fw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 242, 247, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 242, 247, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  z-index: -2;
  pointer-events: none;
}

/* Fog blob container */
.atg-fw-hero-fog {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atg-fw-hero-fogblob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}

.atg-fw-hero-fogblob--1 {
  width: 720px;
  height: 720px;
  top: -240px;
  left: -180px;
  background: radial-gradient(circle, rgba(74, 154, 176, 0.62) 0%, rgba(74, 154, 176, 0) 70%);
  animation: fogdrift1 38s ease-in-out infinite alternate;
}

.atg-fw-hero-fogblob--2 {
  width: 640px;
  height: 640px;
  bottom: -200px;
  right: -160px;
  background: radial-gradient(circle, rgba(239, 152, 52, 0.42) 0%, rgba(239, 152, 52, 0) 70%);
  animation: fogdrift2 52s ease-in-out infinite alternate;
}

.atg-fw-hero-fogblob--3 {
  width: 540px;
  height: 540px;
  top: 35%;
  left: 38%;
  background: radial-gradient(circle, rgba(203, 41, 92, 0.32) 0%, rgba(203, 41, 92, 0) 70%);
  animation: fogdrift3 64s ease-in-out infinite alternate;
}

@keyframes fogdrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(120px, 60px) scale(1.12); }
}

@keyframes fogdrift2 {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-90px, -50px) scale(0.95); }
}

@keyframes fogdrift3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(70px, -80px) scale(1.18); }
}

/* Vertical accent line on left edge */
.atg-fw-hero-mark {
  position: absolute;
  top: 0;
  left: 32px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--c-bloom-amber) 35%,
    var(--c-clarity-teal) 65%,
    transparent 100%
  );
  opacity: 0.55;
  z-index: 1;
}

.atg-fw-hero-mark::before,
.atg-fw-hero-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
}

.atg-fw-hero-mark::before {
  top: 38%;
  background: var(--c-bloom-amber);
}

.atg-fw-hero-mark::after {
  top: 62%;
  background: var(--c-clarity-teal);
}

/* Floating petal diagnostic on the right */
.atg-fw-hero-petals {
  position: absolute;
  top: 12%;
  right: 5%;
  bottom: 0;
  width: 240px;
  z-index: 1;
  pointer-events: none;
}

.atg-fw-hero-petal-connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atg-fw-hero-petal {
  position: absolute;
  width: 96px;
  height: 96px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  will-change: transform;
}

.atg-fw-hero-petal--teal {
  top: 30px;
  left: 30px;
  background-image: var(--img-petal-teal);
  animation: petalbob 7s ease-in-out infinite;
}

.atg-fw-hero-petal--amber {
  top: 140px;
  left: 110px;
  width: 110px;
  height: 110px;
  background-image: var(--img-petal-amber);
  animation: petalbob 8s ease-in-out infinite;
  animation-delay: -2.5s;
}

.atg-fw-hero-petal--rose {
  top: 280px;
  left: 60px;
  width: 88px;
  height: 88px;
  background-image: var(--img-petal-rose);
  animation: petalbob 9s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes petalbob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}

/* Content sits above all decorative layers */
.atg-fw-hero .atg-fw-container {
  position: relative;
  z-index: 2;
}

.atg-fw-hero h1 {
  color: var(--c-white);
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 780px;
  letter-spacing: -0.025em;
}

.atg-fw-hero .hero-h1-light {
  display: inline-block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.02em;
}

.atg-fw-hero .hero-h1-bold {
  display: inline-block;
  font-weight: 900;
  color: var(--c-white);
}

.atg-fw-hero h1 .accent {
  color: var(--c-bloom-amber);
  position: relative;
}

.atg-fw-hero .hero-h1-sub {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-clarity-teal);
  margin-bottom: 36px;
}

.atg-fw-hero .atg-fw-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 38px;
}

.atg-fw-hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-ice-blue);
  padding-top: 28px;
  border-top: 1px solid rgba(220, 242, 247, 0.18);
  max-width: 640px;
}

/* Wave divider at the bottom of the hero */
.atg-fw-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 2;
  pointer-events: none;
  display: block;
}

/* Reduced motion: stop drifting and bobbing */
@media (prefers-reduced-motion: reduce) {
  .atg-fw-hero-fogblob,
  .atg-fw-hero-petal {
    animation: none;
  }
}

.atg-fw-hero-meta span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--c-bloom-amber);
  margin-right: 12px;
  vertical-align: middle;
}

/* ===========================================================
   2. STICKY ANCHOR NAV
   =========================================================== */
.atg-fw-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-white);
  border-bottom: 1px solid rgba(51, 37, 76, 0.08);
  backdrop-filter: saturate(180%) blur(10px);
}

.atg-fw-nav-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  scrollbar-width: thin;
}

.atg-fw-nav-inner::-webkit-scrollbar {
  height: 4px;
}

.atg-fw-nav-inner::-webkit-scrollbar-thumb {
  background: var(--c-clarity-teal);
  border-radius: 4px;
}

.atg-fw-nav a {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  color: var(--c-slate);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.atg-fw-nav a:hover {
  background: var(--c-ice-mist);
  color: var(--c-deep-navy-plum);
}

.atg-fw-nav a.is-active {
  background: var(--c-deep-navy-plum);
  color: var(--c-white);
}

/* ===========================================================
   Generic section wrapper
   =========================================================== */
.atg-fw-section {
  padding: 110px 0;
}

.atg-fw-section--tight {
  padding: 80px 0;
}

.atg-fw-section--cream {
  background: var(--c-cream);
}

.atg-fw-section--ice {
  background: var(--c-ice-mist);
}

.atg-fw-section--wash {
  background: var(--c-teal-wash);
}

.atg-fw-section--dark {
  background: var(--c-deep-navy-plum);
  color: var(--c-white);
  position: relative;
  isolation: isolate;
}

/* Diagonal stripe pattern + radial highlights, distinct from hero */
.atg-fw-section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 80px,
      rgba(220, 242, 247, 0.025) 80px,
      rgba(220, 242, 247, 0.025) 81px
    ),
    radial-gradient(ellipse 50% 60% at 100% 20%, rgba(239, 152, 52, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 90%, rgba(203, 41, 92, 0.14) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.atg-fw-section--dark h2,
.atg-fw-section--dark h3,
.atg-fw-section--dark h4 {
  color: var(--c-white);
}

.atg-fw-section--dark p {
  color: rgba(255, 255, 255, 0.88);
}

.atg-fw-section h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  margin-bottom: 22px;
  max-width: 780px;
}

.atg-fw-section h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  margin-bottom: 14px;
}

.atg-fw-section .atg-fw-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--c-slate);
  max-width: 760px;
  margin-bottom: 50px;
}

.atg-fw-section--dark .atg-fw-lede {
  color: rgba(255, 255, 255, 0.85);
}

/* ===========================================================
   3. THE PREMISE
   =========================================================== */
.atg-fw-premise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.atg-fw-anchor-card {
  background: var(--c-white);
  border: 1px solid rgba(51, 37, 76, 0.08);
  border-top: 4px solid var(--c-clarity-teal);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atg-fw-anchor-card:nth-child(2) {
  border-top-color: var(--c-bloom-amber);
}

.atg-fw-anchor-card:nth-child(3) {
  border-top-color: var(--c-bloom-rose);
}

.atg-fw-anchor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.atg-fw-anchor-card .atg-fw-anchor-source {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--c-clarity-teal);
  margin-bottom: 10px;
  display: block;
}

.atg-fw-anchor-card:nth-child(2) .atg-fw-anchor-source {
  color: var(--c-bloom-amber);
}

.atg-fw-anchor-card:nth-child(3) .atg-fw-anchor-source {
  color: var(--c-bloom-rose);
}

.atg-fw-anchor-card h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.atg-fw-anchor-card p {
  font-size: 15.5px;
  color: var(--c-slate);
  line-height: 1.6;
}

.atg-fw-premise-close {
  margin-top: 60px;
  padding: 32px 36px;
  background: var(--c-deep-navy-plum);
  color: var(--c-white);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  border-left: 5px solid var(--c-bloom-amber);
}

/* ===========================================================
   4-6. THE THREE FOGS. TABBED INTERFACE
   =========================================================== */
.atg-fw-fog-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 50px 0 0;
  border-bottom: 2px solid rgba(51, 37, 76, 0.08);
}

.atg-fw-fog-tab {
  background: transparent;
  border: 0;
  padding: 22px 16px 26px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--c-slate);
  border-bottom: 4px solid transparent;
  margin-bottom: -2px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}

.atg-fw-fog-tab .atg-fw-fog-tab-petal {
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  transition: opacity 0.25s ease;
  flex-shrink: 0;
}

.atg-fw-fog-tab[data-fog="direction"] .atg-fw-fog-tab-petal {
  background-image: var(--img-petal-teal);
}

.atg-fw-fog-tab[data-fog="decision"] .atg-fw-fog-tab-petal {
  background-image: var(--img-petal-amber);
}

.atg-fw-fog-tab[data-fog="boundary"] .atg-fw-fog-tab-petal {
  background-image: var(--img-petal-rose);
}

.atg-fw-fog-tab:hover {
  color: var(--c-deep-navy-plum);
}

.atg-fw-fog-tab:hover .atg-fw-fog-tab-petal {
  opacity: 1;
}

.atg-fw-fog-tab.is-active[data-fog="direction"] {
  color: var(--c-clarity-teal);
  border-bottom-color: var(--c-clarity-teal);
}

.atg-fw-fog-tab.is-active[data-fog="decision"] {
  color: var(--c-bloom-amber);
  border-bottom-color: var(--c-bloom-amber);
}

.atg-fw-fog-tab.is-active[data-fog="boundary"] {
  color: var(--c-bloom-rose);
  border-bottom-color: var(--c-bloom-rose);
}

.atg-fw-fog-tab.is-active .atg-fw-fog-tab-petal {
  opacity: 1;
}

.atg-fw-fog-tab small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-slate);
  margin-top: 4px;
}

.atg-fw-fog-panels {
  margin-top: 40px;
}

.atg-fw-fog-panel {
  display: none;
  animation: fadeUp 0.4s ease both;
}

.atg-fw-fog-panel.is-active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.atg-fw-fog-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
}

.atg-fw-fog-block h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-clarity-teal);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-ice-mist);
}

[data-active-fog="decision"] .atg-fw-fog-block h4 {
  color: var(--c-bloom-amber);
}

[data-active-fog="boundary"] .atg-fw-fog-block h4 {
  color: var(--c-bloom-rose);
}

.atg-fw-fog-block p {
  font-size: 16px;
  color: var(--c-charcoal);
  line-height: 1.7;
}

.atg-fw-fog-block ul {
  list-style: none;
  padding: 0;
}

.atg-fw-fog-block ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.55;
}

.atg-fw-fog-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--c-clarity-teal);
  border-radius: 50%;
}

[data-active-fog="decision"] .atg-fw-fog-block ul li::before {
  background: var(--c-bloom-amber);
}

[data-active-fog="boundary"] .atg-fw-fog-block ul li::before {
  background: var(--c-bloom-rose);
}

.atg-fw-fog-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.atg-fw-fog-stat {
  background: var(--c-ice-mist);
  padding: 22px 22px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--c-clarity-teal);
}

[data-active-fog="decision"] .atg-fw-fog-stat {
  border-left-color: var(--c-bloom-amber);
  background: #FFF5E8;
}

[data-active-fog="boundary"] .atg-fw-fog-stat {
  border-left-color: var(--c-bloom-rose);
  background: #FBE7EE;
}

.atg-fw-fog-stat .stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1;
  color: var(--c-deep-navy-plum);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.atg-fw-fog-stat .stat-text {
  font-size: 14.5px;
  color: var(--c-slate);
  line-height: 1.45;
}

.atg-fw-fog-equity {
  margin-top: 36px;
  padding: 26px 30px;
  background: var(--c-deep-navy-plum);
  color: var(--c-white);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--c-bloom-rose);
}

.atg-fw-fog-equity h4 {
  color: var(--c-bloom-rose);
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.atg-fw-fog-equity p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  margin: 0;
}

/* ===========================================================
   7. THE THREE CLARITIES. MAPPING
   =========================================================== */
.atg-fw-clarities-map {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 24px 0;
  align-items: center;
  margin-top: 60px;
}

.atg-fw-clarity-row {
  display: contents;
}

.atg-fw-fog-label,
.atg-fw-clarity-label {
  padding: 28px 28px;
  border-radius: var(--radius-md);
  background: var(--c-white);
  border: 1px solid rgba(51, 37, 76, 0.08);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.atg-fw-fog-label {
  border-left: 5px solid var(--c-clarity-teal);
}

/* Default clarity card: pair 1 = Priority Clarity = teal background */
.atg-fw-clarity-label {
  background: var(--c-clarity-teal);
  color: var(--c-white);
  border: 0;
  border-left: 5px solid var(--c-deep-navy-plum);
}

/* Pair 2 = Decision Clarity = amber background */
.atg-fw-clarity-row[data-pair="2"] .atg-fw-fog-label {
  border-left-color: var(--c-bloom-amber);
}

.atg-fw-clarity-row[data-pair="2"] .atg-fw-clarity-label {
  background: var(--c-bloom-amber);
  border-left-color: var(--c-deep-navy-plum);
}

/* Pair 3 = Boundary Clarity = rose background */
.atg-fw-clarity-row[data-pair="3"] .atg-fw-fog-label {
  border-left-color: var(--c-bloom-rose);
}

.atg-fw-clarity-row[data-pair="3"] .atg-fw-clarity-label {
  background: var(--c-bloom-rose);
  border-left-color: var(--c-deep-navy-plum);
}

.atg-fw-fog-label .label-eyebrow,
.atg-fw-clarity-label .label-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-clarity-teal);
  margin-bottom: 8px;
  display: block;
}

/* Fog label eyebrows match each fog color */
.atg-fw-clarity-row[data-pair="2"] .atg-fw-fog-label .label-eyebrow {
  color: var(--c-bloom-amber);
}

.atg-fw-clarity-row[data-pair="3"] .atg-fw-fog-label .label-eyebrow {
  color: var(--c-bloom-rose);
}

/* Clarity label eyebrows are deep navy-plum on the colored backgrounds, for contrast against the bright color */
.atg-fw-clarity-label .label-eyebrow {
  color: var(--c-deep-navy-plum);
  opacity: 0.85;
}

.atg-fw-fog-label h4,
.atg-fw-clarity-label h4 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
}

.atg-fw-clarity-label h4 {
  color: var(--c-white);
}

.atg-fw-fog-label p,
.atg-fw-clarity-label p {
  font-size: 14.5px;
  color: var(--c-slate);
  line-height: 1.5;
  margin: 0;
}

.atg-fw-clarity-label p {
  color: rgba(255, 255, 255, 0.92);
}

/* Amber background needs darker text for contrast (white on amber fails WCAG AA) */
.atg-fw-clarity-row[data-pair="2"] .atg-fw-clarity-label h4 {
  color: var(--c-deep-navy-plum);
}

.atg-fw-clarity-row[data-pair="2"] .atg-fw-clarity-label p {
  color: rgba(51, 37, 76, 0.88);
}

.atg-fw-clarity-row[data-pair="2"] .atg-fw-clarity-label .label-eyebrow {
  color: var(--c-deep-navy-plum);
  opacity: 1;
}

.atg-fw-clarity-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.atg-fw-clarity-arrow svg {
  width: 70px;
  height: 26px;
  opacity: 0.6;
}

/*
  Specificity bumped to override .atg-framework p { margin: 0 0 1.1em }
  shorthand which was wiping out our margin-top.
*/
.atg-framework p.atg-fw-clarities-close {
  display: block;
  max-width: none;
  width: 100%;
  margin: 60px 0 0 0;
  text-align: center;
  font-size: 17px;
  color: var(--c-slate);
  line-height: 1.6;
  font-style: italic;
  padding: 0 20px;
}

/* Reduce bottom padding on the clarities section so the closing line sits closer to the next section */
.atg-fw-section#clarities {
  padding-bottom: 30px;
}

/* ===========================================================
   8. PERFORMATIVE COLLABORATION
   =========================================================== */
.atg-fw-perf-callout {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  margin-top: 50px;
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid rgba(51, 37, 76, 0.06);
}

.atg-fw-perf-callout::before {
  content: """;
  position: absolute;
  top: -42px;
  left: 50px;
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 1;
  color: var(--c-bloom-rose);
  opacity: 0.18;
}

.atg-fw-perf-callout h3 {
  font-size: 28px;
  margin-bottom: 18px;
}

.atg-fw-perf-callout .atg-fw-perf-def {
  font-style: italic;
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.55;
  color: var(--c-deep-navy-plum);
  margin-bottom: 28px;
  padding-left: 24px;
  border-left: 4px solid var(--c-bloom-rose);
}

.atg-fw-perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(51, 37, 76, 0.08);
}

.atg-fw-perf-grid h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-clarity-teal);
  margin-bottom: 10px;
}

.atg-fw-perf-grid p {
  font-size: 15.5px;
  color: var(--c-slate);
  line-height: 1.6;
}

/* ===========================================================
   9. POSITION AGAINST EXISTING MODELS
   =========================================================== */
.atg-fw-models-table-wrap {
  margin-top: 50px;
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(51, 37, 76, 0.06);
}

.atg-fw-models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.atg-fw-models-table thead {
  background: var(--c-deep-navy-plum);
}

.atg-fw-models-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-white);
  text-align: left;
  padding: 18px 20px;
  vertical-align: top;
}

.atg-fw-models-table th:first-child {
  color: var(--c-bloom-amber);
}

.atg-fw-models-table tbody tr {
  border-bottom: 1px solid rgba(51, 37, 76, 0.07);
  transition: background 0.2s ease;
}

.atg-fw-models-table tbody tr:nth-child(even) {
  background: var(--c-cream);
}

.atg-fw-models-table tbody tr:hover {
  background: var(--c-ice-mist);
}

.atg-fw-models-table td {
  padding: 22px 20px;
  vertical-align: top;
  line-height: 1.55;
  color: var(--c-charcoal);
}

.atg-fw-models-table td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-deep-navy-plum);
  width: 18%;
}

.atg-fw-models-table td:first-child small {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--c-slate);
  margin-top: 4px;
  letter-spacing: 0;
  text-transform: none;
}

.atg-fw-models-close {
  margin-top: 36px;
  padding: 26px 30px;
  background: var(--c-ice-mist);
  border-radius: var(--radius-md);
  font-style: italic;
  font-size: 16.5px;
  color: var(--c-deep-navy-plum);
  line-height: 1.6;
  border-left: 5px solid var(--c-clarity-teal);
}

/* ===========================================================
   10. RESEARCH FOUNDATION + WHITE PAPER
   =========================================================== */
.atg-fw-research-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 30px;
}

.atg-fw-research-summary p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.atg-fw-research-summary ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.atg-fw-research-summary ul li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.atg-fw-research-summary ul li strong {
  color: var(--c-bloom-amber);
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}

.atg-fw-paper-card {
  background: var(--c-white);
  color: var(--c-charcoal);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.atg-fw-paper-card .paper-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-bloom-rose);
  margin-bottom: 12px;
  display: block;
}

/*
  H3 inside the white card needs to override the parent dark section's
  color rule. Use high specificity to win the cascade.
*/
.atg-framework .atg-fw-section--dark .atg-fw-paper-card h3 {
  color: var(--c-deep-navy-plum);
  font-size: 22px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.atg-fw-paper-card p {
  font-size: 15px;
  color: var(--c-slate);
  line-height: 1.6;
}

.atg-fw-paper-card .paper-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(51, 37, 76, 0.08);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-clarity-teal);
}

/* References list */
.atg-fw-refs {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.atg-fw-refs h3 {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 26px;
  color: var(--c-bloom-amber);
}

.atg-fw-refs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: refnum;
  column-count: 2;
  column-gap: 32px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.atg-fw-refs ol li {
  counter-increment: refnum;
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.atg-fw-refs ol li::before {
  content: counter(refnum);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--c-bloom-amber);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
}

/* Citation superscript styling */
.atg-fw-cite {
  display: inline-block;
  vertical-align: super;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--c-clarity-teal);
  background: var(--c-ice-mist);
  border-radius: 50%;
  width: 19px;
  height: 19px;
  line-height: 19px;
  text-align: center;
  margin: 0 1px 0 2px;
  cursor: help;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  top: -3px;
}

.atg-fw-cite:hover {
  background: var(--c-clarity-teal);
  color: var(--c-white);
}

[data-active-fog="decision"] .atg-fw-cite {
  color: var(--c-bloom-amber);
  background: #FFF5E8;
}

[data-active-fog="decision"] .atg-fw-cite:hover {
  background: var(--c-bloom-amber);
  color: var(--c-white);
}

[data-active-fog="boundary"] .atg-fw-cite {
  color: var(--c-bloom-rose);
  background: #FBE7EE;
}

[data-active-fog="boundary"] .atg-fw-cite:hover {
  background: var(--c-bloom-rose);
  color: var(--c-white);
}

/* Citation tooltip: works on hover (desktop) AND tap (mobile via .is-open) */
.atg-fw-cite[data-tooltip] {
  position: relative;
}

.atg-fw-cite[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-deep-navy-plum);
  color: var(--c-white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  z-index: 100;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.atg-fw-cite[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--c-deep-navy-plum);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Show on desktop hover */
@media (hover: hover) and (pointer: fine) {
  .atg-fw-cite[data-tooltip]:hover::after,
  .atg-fw-cite[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
  }
}

/* Show when toggled open (works on all devices, especially touch) */
.atg-fw-cite[data-tooltip].is-open::after,
.atg-fw-cite[data-tooltip].is-open::before {
  opacity: 1;
  visibility: visible;
}

/* Edge clamping: when tooltip is near right edge, anchor right instead of centered */
.atg-fw-cite[data-tooltip].is-edge-right::after {
  left: auto;
  right: 0;
  transform: translateX(0);
}

.atg-fw-cite[data-tooltip].is-edge-right::before {
  left: auto;
  right: 4px;
  transform: translateX(0);
}

.atg-fw-cite[data-tooltip].is-edge-left::after {
  left: 0;
  right: auto;
  transform: translateX(0);
}

.atg-fw-cite[data-tooltip].is-edge-left::before {
  left: 4px;
  right: auto;
  transform: translateX(0);
}

/* Mobile: tooltip below the citation instead of above (more reliable space) */
@media (max-width: 560px) {
  .atg-fw-cite[data-tooltip]::after {
    bottom: auto;
    top: calc(100% + 10px);
    font-size: 13px;
  }

  .atg-fw-cite[data-tooltip]::before {
    bottom: auto;
    top: calc(100% + 4px);
    border-top-color: transparent;
    border-bottom-color: var(--c-deep-navy-plum);
  }
}

/* ===========================================================
   11. FINAL CTA
   =========================================================== */
.atg-fw-final {
  background: var(--c-deep-navy-plum);
  position: relative;
  isolation: isolate;
  padding: 130px 0 140px;
  text-align: center;
  color: var(--c-white);
  overflow: hidden;
}

.atg-fw-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(203, 41, 92, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(74, 154, 176, 0.20) 0%, transparent 55%);
  z-index: -1;
}

.atg-fw-final h2 {
  color: var(--c-white);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  margin-bottom: 22px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.atg-fw-final h2 .accent {
  color: var(--c-bloom-amber);
}

.atg-fw-final .atg-fw-lede {
  color: rgba(255, 255, 255, 0.88);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 50px;
}

.atg-fw-final-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.atg-fw-final-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 38px 32px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.atg-fw-final-card:hover {
  border-color: var(--c-bloom-amber);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.atg-fw-final-card .card-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-bloom-amber);
  margin-bottom: 12px;
  display: block;
}

.atg-fw-final-card h3 {
  color: var(--c-white);
  font-size: 24px;
  margin-bottom: 14px;
}

.atg-fw-final-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 26px;
  flex: 1;
}

.atg-fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  text-decoration: none;
}

/*
  Button rules use !important and high-specificity selectors to override
  the parent Thinkific theme's global anchor color, which wins on the
  cascade and turns button text the link color (teal) without it.
*/
.atg-framework a.atg-fw-btn--primary,
.atg-framework a.atg-fw-btn--primary:visited {
  background: var(--c-bloom-amber);
  color: var(--c-white) !important;
  text-decoration: none;
}

.atg-framework a.atg-fw-btn--primary:hover,
.atg-framework a.atg-fw-btn--primary:focus {
  background: var(--c-white);
  color: var(--c-deep-navy-plum) !important;
}

.atg-framework a.atg-fw-btn--ghost,
.atg-framework a.atg-fw-btn--ghost:visited {
  background: var(--c-white);
  color: var(--c-deep-navy-plum) !important;
  border: 2px solid var(--c-white);
  text-decoration: none;
}

.atg-framework a.atg-fw-btn--ghost:hover,
.atg-framework a.atg-fw-btn--ghost:focus {
  background: transparent;
  color: var(--c-white) !important;
  border-color: var(--c-white);
}

/* ===========================================================
   ANIMATIONS. Reveal on scroll
   =========================================================== */
.atg-fw-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 960px) {
  .atg-fw-section {
    padding: 80px 0;
  }

  .atg-fw-hero {
    padding: 100px 0 120px;
  }

  .atg-fw-hero-petals {
    width: 180px;
    right: 2%;
    opacity: 0.55;
  }

  .atg-fw-hero-petal {
    width: 72px;
    height: 72px;
  }

  .atg-fw-hero-petal--teal {
    top: 24px;
    left: 24px;
  }

  .atg-fw-hero-petal--amber {
    width: 84px;
    height: 84px;
    top: 110px;
    left: 84px;
  }

  .atg-fw-hero-petal--rose {
    width: 66px;
    height: 66px;
    top: 220px;
    left: 50px;
  }

  .atg-fw-hero-fogblob {
    filter: blur(80px);
  }

  .atg-fw-hero-fogblob--1 {
    width: 480px;
    height: 480px;
  }

  .atg-fw-hero-fogblob--2 {
    width: 440px;
    height: 440px;
  }

  .atg-fw-hero-fogblob--3 {
    width: 380px;
    height: 380px;
  }

  .atg-fw-hero-wave {
    height: 60px;
  }

  .atg-fw-premise-grid {
    grid-template-columns: 1fr;
  }

  .atg-fw-fog-tabs {
    grid-template-columns: 1fr;
  }

  .atg-fw-fog-tab {
    border-bottom: 0;
    border-left: 4px solid transparent;
    padding: 16px 18px;
    margin-bottom: 0;
  }

  .atg-fw-fog-tab.is-active[data-fog="direction"] {
    border-bottom-color: transparent;
    border-left-color: var(--c-clarity-teal);
    background: var(--c-ice-mist);
  }

  .atg-fw-fog-tab.is-active[data-fog="decision"] {
    border-bottom-color: transparent;
    border-left-color: var(--c-bloom-amber);
    background: #FFF5E8;
  }

  .atg-fw-fog-tab.is-active[data-fog="boundary"] {
    border-bottom-color: transparent;
    border-left-color: var(--c-bloom-rose);
    background: #FBE7EE;
  }

  .atg-fw-fog-panel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .atg-fw-fog-stat-row {
    grid-template-columns: 1fr;
  }

  .atg-fw-clarities-map {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .atg-fw-clarity-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .atg-fw-perf-callout {
    padding: 44px 28px;
  }

  .atg-fw-perf-grid {
    grid-template-columns: 1fr;
  }

  .atg-fw-models-table-wrap {
    overflow-x: auto;
  }

  .atg-fw-models-table {
    min-width: 720px;
  }

  .atg-fw-research-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .atg-fw-refs ol {
    column-count: 1;
  }

  .atg-fw-final-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .atg-fw-container {
    padding: 0 20px;
  }

  .atg-fw-hero {
    padding: 80px 0 100px;
  }

  .atg-fw-hero-petals {
    display: none;
  }

  .atg-fw-hero-fogblob--3 {
    display: none;
  }

  .atg-fw-hero-wave {
    height: 45px;
  }

  .atg-fw-hero-meta {
    flex-direction: column;
    gap: 12px;
  }

  .atg-fw-perf-callout::before {
    font-size: 130px;
    top: -28px;
    left: 24px;
  }
}
