:root {
  --brand-void: #0d1f2d;
  --brand-deep: #132c3e;
  --brand-primary: #193950;
  --brand-hover: #214b69;
  --logo-gold: #e1a730;

  --white: #ffffff;
  --surface-subtle: #f5f8fa;
  --ink: #0f2433;
  --ink-body: #3d5263;
  --ink-muted: #5c7285;
  --on-dark: #ffffff;
  --on-dark-muted: #bfd0de;

  --line: #e2e8ee;
  --line-strong: #cbd6e1;
  --line-dark: rgba(255, 255, 255, 0.14);

  --r-btn: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  --shadow-card: 0 12px 32px -8px rgba(25, 57, 80, 0.07);
  --shadow-hover: 0 20px 42px -10px rgba(25, 57, 80, 0.13);
  --shadow-btn: 0 8px 22px -4px rgba(25, 57, 80, 0.30);

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--white);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: inherit;
  text-wrap: balance;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

button {
  font-family: var(--font-display);
  cursor: pointer;
  border: none;
  background: none;
}

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

.ag-header :focus-visible,
.ag-hero :focus-visible,
.ag-page-hero :focus-visible,
.ag-section-dark :focus-visible,
.ag-footer :focus-visible,
.ag-dba-card.dark-featured :focus-visible,
.ag-toc-card :focus-visible,
.ag-widget-card :focus-visible,
.ag-info-card :focus-visible {
  outline-color: var(--logo-gold);
}

.ag-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ag-container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .ag-container,
  .ag-container-narrow {
    padding: 0 32px;
  }
}

/* Header */
.ag-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 57, 80, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.ag-header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ag-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ag-logo-mark {
  height: 30px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.ag-brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18.5px;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
  display: block;
}

.ag-brand-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
  margin-top: 2px;
}

.ag-logo-hero {
  height: 110px;
  width: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.ag-logo-footer {
  height: 82px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.ag-nav {
  display: none;
  align-items: center;
  gap: 26px;
}

.ag-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-muted);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.ag-nav a:hover,
.ag-nav a.active {
  color: var(--white);
}

.ag-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--logo-gold);
}

.ag-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .ag-header-actions .ag-btn {
    display: none;
  }
}

@media (min-width: 960px) {
  .ag-nav {
    display: flex;
  }
  .ag-mobile-toggle {
    display: none !important;
  }
}

.ag-mobile-toggle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ag-mobile-drawer {
  display: none;
  background: var(--brand-deep);
  border-bottom: 1px solid var(--line-dark);
  padding: 16px 20px 22px;
}

.ag-mobile-drawer.open {
  display: block;
}

.ag-mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.ag-mobile-drawer-links a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.ag-mobile-drawer-links a:hover,
.ag-mobile-drawer-links a.active {
  background: rgba(255, 255, 255, 0.1);
}

.ag-drawer-cta {
  width: 100%;
}

/* Buttons */
.ag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}

.ag-btn-sm {
  font-size: 13.5px;
  padding: 9px 18px;
}

.ag-btn-white {
  background: var(--white);
  color: var(--brand-primary);
  box-shadow: 0 10px 26px rgba(13, 31, 45, 0.22);
}

.ag-btn-white:hover {
  background: #eff4f8;
  transform: translateY(-1.5px);
}

.ag-btn-brand {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.ag-btn-brand:hover {
  background: var(--brand-hover);
  transform: translateY(-1.5px);
}

.ag-btn-glass {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.ag-btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1.5px);
}

.ag-btn-outline {
  background: var(--white);
  color: var(--brand-primary);
  border: 1.5px solid var(--line-strong);
}

.ag-btn-outline:hover {
  border-color: var(--brand-primary);
  background: var(--surface-subtle);
}

/* Eyebrow & Badges */
.ag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  margin-bottom: 12px;
}

.ag-eyebrow-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--logo-gold);
  margin-bottom: 14px;
}

.ag-tag-white {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.ag-tag-light {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.ag-solid-icon {
  width: 44px;
  height: 44px;
  color: var(--brand-primary);
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* Hero Sections */
.ag-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 860px 440px at 50% 0%, #244f6e 0%, #193950 56%, #112839 100%);
  color: var(--white);
  padding: 64px 0 76px;
}

.ag-page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 740px 360px at 50% 0%, #234d6c 0%, #193950 62%, #112839 100%);
  color: var(--white);
  padding: 52px 0 60px;
  border-bottom: 1px solid var(--line-dark);
}

.ag-hero-center {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.ag-hero-title {
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
  line-height: 1.09;
}

.ag-page-title {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.ag-hero-sub {
  font-size: clamp(1.04rem, 1.6vw, 1.2rem);
  color: var(--on-dark-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.62;
}

.ag-page-sub {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--on-dark-muted);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}

.ag-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Metrics / Company Snapshot Bar */
.ag-metrics-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.ag-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .ag-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
  .ag-metric-item + .ag-metric-item {
    border-left: 1px solid var(--line);
  }
}

.ag-metric-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.ag-metric-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-body);
  margin-top: 6px;
}

/* Sections & Grids */
.ag-section {
  padding: 84px 0;
  background: var(--white);
}

.ag-section-canvas {
  padding: 84px 0;
  background: var(--surface-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ag-section-dark {
  padding: 84px 0;
  background: var(--brand-primary);
  color: var(--white);
}

.ag-section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px;
}

.ag-section-head h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.ag-section-head p {
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  color: var(--ink-body);
  line-height: 1.62;
}

.ag-section-dark .ag-section-head p {
  color: var(--on-dark-muted);
}

.ag-grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  min-width: 0;
}

.ag-grid-4 > * {
  min-width: 0;
}

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

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

.ag-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}

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

/* 4 Solid-Icon Playbook Cards */
.ag-modern-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ag-modern-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.ag-modern-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.ag-modern-card p {
  font-size: 15px;
  color: var(--ink-body);
  line-height: 1.62;
}

/* Brand Portfolio Cards (375px-Safe) */
.ag-dba-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  min-width: 0;
}

.ag-dba-grid > * {
  min-width: 0;
}

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

.ag-dba-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.ag-dba-card.dark-featured {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-hover);
}

.ag-dba-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ag-dba-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
}

.ag-dba-card.dark-featured .ag-dba-kicker {
  color: var(--logo-gold);
}

.ag-dba-intro {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.ag-dba-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.ag-dba-card.dark-featured .ag-dba-thumb {
  border-color: rgba(255, 255, 255, 0.22);
}

.ag-dba-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.ag-dba-desc {
  font-size: 14.5px;
  color: var(--ink-body);
  line-height: 1.58;
}

.ag-dba-card.dark-featured .ag-dba-desc {
  color: var(--on-dark-muted);
}

.ag-dba-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.ag-dba-meta-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}

.ag-dba-card.dark-featured .ag-dba-meta-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.ag-dba-meta-box span.k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.ag-dba-card.dark-featured .ag-dba-meta-box span.k {
  color: var(--on-dark-muted);
}

.ag-dba-meta-box span.v {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 3px;
}

.ag-dba-card.dark-featured .ag-dba-meta-box span.v {
  color: var(--white);
}

.ag-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 480px) {
  .ag-dba-card {
    padding: 26px 20px;
  }
  .ag-dba-intro {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }
  .ag-dba-thumb {
    width: 64px;
    height: 64px;
  }
  .ag-dba-card h3 {
    font-size: 20px;
  }
  .ag-dba-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ag-btn-group .ag-btn {
    width: 100%;
  }
}

/* 4-Column Operations Photo Cards */
.ag-pillar-card {
  position: relative;
  height: 360px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: var(--brand-deep);
}

.ag-pillar-card img.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ag-pillar-card:hover img.bg-photo {
  transform: scale(1.04);
}

.ag-pillar-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 45, 0.08) 0%, rgba(13, 31, 45, 0.68) 54%, rgba(13, 31, 45, 0.96) 100%);
}

.ag-pillar-content {
  position: relative;
  z-index: 2;
}

.ag-pillar-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ag-pillar-content h3 {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.ag-pillar-content p {
  font-size: 13.5px;
  color: var(--on-dark-muted);
  line-height: 1.52;
}

/* Editorial Feature Row & Order Timeline Card */
.ag-feature-row {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.ag-feature-row > * {
  min-width: 0;
}

.ag-feature-row.subtle {
  background: var(--surface-subtle);
}

@media (min-width: 960px) {
  .ag-feature-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding: 46px 50px;
    gap: 46px;
  }
  .ag-feature-copy {
    grid-column: span 6;
  }
  .ag-feature-visual {
    grid-column: span 6;
  }
}

.ag-feature-copy h2,
.ag-feature-copy h3 {
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.ag-feature-copy p {
  font-size: 16px;
  color: var(--ink-body);
  line-height: 1.65;
  margin-bottom: 20px;
}

.ag-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.ag-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ag-bullet-dot {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--brand-primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.ag-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-primary);
}

.ag-link-arrow:hover {
  color: var(--brand-hover);
  gap: 11px;
}

.ag-widget-card {
  background: var(--brand-primary);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--brand-hover);
}

.ag-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 18px;
}

.ag-widget-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--logo-gold);
}

.ag-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ag-timeline-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ag-timeline-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ag-timeline-step {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.ag-timeline-window {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--logo-gold);
}

.ag-timeline-desc {
  font-size: 13.5px;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

.ag-media-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--white);
}

/* FAQ Accordion */
.ag-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

details.ag-faq {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
}

details.ag-faq[open] {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-card);
}

details.ag-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17.5px;
  color: var(--ink);
}

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

details.ag-faq .ag-faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

details.ag-faq[open] .ag-faq-icon {
  background: var(--brand-primary);
  color: var(--white);
  transform: rotate(180deg);
}

details.ag-faq .ag-faq-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-body);
  line-height: 1.68;
}

.ag-inline-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
}

.ag-inline-link-light {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
}

/* Portfolio Table (Responsive Stacked Cards on <768px) */
.ag-table-wrap {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 44px;
}

.ag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.ag-table th,
.ag-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.ag-table tbody tr:last-child td {
  border-bottom: none;
}

.ag-table th {
  background: var(--brand-primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ag-subnote {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

@media (max-width: 767px) {
  .ag-table thead {
    display: none;
  }
  .ag-table,
  .ag-table tbody,
  .ag-table tr,
  .ag-table td {
    display: block;
    width: 100%;
  }
  .ag-table tr {
    padding: 18px 18px 14px;
    border-bottom: 1.5px solid var(--line);
  }
  .ag-table tr:last-child {
    border-bottom: none;
  }
  .ag-table td {
    padding: 7px 0;
    border-bottom: none;
  }
  .ag-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    margin-bottom: 2px;
  }
}

/* Square Product Craft Cards */
.ag-square-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ag-square-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.ag-square-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ag-square-body {
  padding: 24px;
}

.ag-square-body h3 {
  font-size: 19.5px;
  margin-bottom: 8px;
}

.ag-square-body p {
  font-size: 14.5px;
  color: var(--ink-body);
  line-height: 1.6;
}

/* Policies Layout */
.ag-policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  min-width: 0;
}

.ag-policy-layout > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .ag-policy-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 46px;
  }
  .ag-policy-toc {
    position: sticky;
    top: 96px;
  }
}

.ag-toc-card {
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 18px;
  padding: 22px;
}

.ag-toc-heading {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--logo-gold);
  margin-bottom: 10px;
  padding: 0 12px;
}

.ag-toc-card a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.ag-toc-card a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.ag-policy-updated {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.ag-policy-block {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.ag-policy-block:last-child {
  margin-bottom: 0;
}

.ag-policy-block h2 {
  font-size: 24px;
  color: var(--ink);
  margin: 4px 0 16px;
}

.ag-policy-block p {
  font-size: 15.5px;
  color: var(--ink-body);
  margin-bottom: 14px;
  line-height: 1.7;
}

.ag-policy-block p:last-child {
  margin-bottom: 0;
}

code.ag-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--brand-primary);
}

/* Contact Page Layout */
.ag-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  min-width: 0;
}

.ag-contact-grid > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .ag-contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
  }
}

.ag-info-card {
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 22px;
  padding: 34px 28px;
}

.ag-info-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.ag-info-lead {
  font-size: 14.5px;
  color: var(--on-dark-muted);
  margin-bottom: 18px;
}

.ag-info-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.ag-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ag-info-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-dark-muted);
  margin-bottom: 3px;
}

.ag-info-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.55;
}

.ag-info-sub {
  font-size: 13px;
  color: var(--on-dark-muted);
  margin-top: 2px;
}

.ag-direct-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
}

.ag-direct-card h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.ag-direct-lead {
  font-size: 15.5px;
  color: var(--ink-body);
  margin-bottom: 24px;
}

.ag-channel-box {
  background: var(--surface-subtle);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
}

.ag-channel-box:last-of-type {
  margin-bottom: 0;
}

.ag-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ag-channel-box h3 {
  font-size: 18.5px;
  color: var(--ink);
}

.ag-channel-desc {
  font-size: 14.5px;
  color: var(--ink-body);
  margin-bottom: 16px;
}

.ag-email-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.ag-email-addr {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--brand-primary);
  overflow-wrap: anywhere;
}

.ag-email-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ag-copy-trigger {
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.ag-copy-trigger:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.ag-copy-trigger.copied {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--white);
}

.ag-sr-status {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-primary);
  min-height: 20px;
}

/* 404 Page */
.ag-notfound-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface-subtle);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 46px 28px;
}

.ag-notfound-box h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.ag-notfound-box p {
  font-size: 15.5px;
  color: var(--ink-body);
  margin-bottom: 26px;
}

/* Corporate Footer (Unified 4-Column Across All Pages) */
.ag-footer {
  background: var(--brand-void);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-dark);
  padding: 68px 0 42px;
  font-size: 14px;
}

.ag-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 44px;
}

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

@media (min-width: 1024px) {
  .ag-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 42px;
  }
}

.ag-footer-bio {
  max-width: 390px;
  line-height: 1.62;
  margin-bottom: 14px;
}

.ag-footer-meta {
  font-size: 13px;
  line-height: 1.85;
  color: #dbe7f0;
}

.ag-footer-heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 15px;
}

.ag-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ag-footer ul a:hover {
  color: var(--white);
}

.ag-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #93abc0;
}

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

.ag-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

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