:root {
  --am-content-max: 820px;
  --am-content-space: clamp(76px, 8vw, 112px);
}

.am-page--request,
.am-page--process,
.am-page--faq,
.am-page--about,
.am-page--contact,
.am-page--articles,
.am-page--article {
  background: var(--arctic);
}

.am-page--request main,
.am-page--process main,
.am-page--faq main,
.am-page--about main,
.am-page--contact main,
.am-page--articles main,
.am-page--article main {
  overflow: clip;
}

.am-content-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 150px 0 88px;
  background: var(--noir-deep);
  color: var(--white);
}

.am-content-hero__picture,
.am-content-hero__wash {
  position: absolute;
  inset: 0;
}

.am-content-hero__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  outline-color: rgba(255, 255, 255, 0.08);
}

.am-content-hero__wash {
  z-index: 1;
  background:
    linear-gradient(90deg, transparent 0 36%, rgba(8, 25, 33, 0.68) 59%, rgba(8, 25, 33, 0.98) 82% 100%),
    linear-gradient(180deg, rgba(5, 19, 25, 0.34), transparent 38%, rgba(5, 19, 25, 0.76));
}

.am-content-hero--copy-left .am-content-hero__wash {
  background:
    linear-gradient(270deg, transparent 0 36%, rgba(8, 25, 33, 0.68) 59%, rgba(8, 25, 33, 0.98) 82% 100%),
    linear-gradient(180deg, rgba(5, 19, 25, 0.34), transparent 38%, rgba(5, 19, 25, 0.76));
}

.am-content-hero__content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--container));
  display: flex;
  justify-content: flex-start;
}

.am-content-hero--copy-left .am-content-hero__content {
  justify-content: flex-end;
}

.am-content-hero__copy {
  width: min(54%, 660px);
}

.am-content-hero .am-breadcrumbs {
  margin-bottom: 22px;
}

.am-content-hero__copy > .eyebrow {
  margin-bottom: 16px;
}

.am-content-hero h1 {
  overflow: visible;
  height: auto;
  margin-bottom: 22px;
  font-size: clamp(48px, 4.7vw, 72px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.am-content-hero--courier .am-content-hero__picture {
  top: 94px;
  right: auto;
  bottom: 0;
  left: 0;
  width: min(60%, 1120px);
  overflow: hidden;
}

.am-content-hero--courier .am-content-hero__picture::before,
.am-content-hero--courier .am-content-hero__picture::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.am-content-hero--courier .am-content-hero__picture::before {
  top: 0;
  right: 0;
  left: 0;
  height: 88px;
  background: linear-gradient(180deg, var(--noir-deep), rgba(12, 27, 35, 0));
}

.am-content-hero--courier .am-content-hero__picture::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  background: linear-gradient(90deg, rgba(12, 27, 35, 0), var(--noir-deep));
}

.am-content-hero--courier .am-content-hero__picture img {
  object-fit: cover;
  object-position: 28% top;
}

.am-content-hero--courier .am-content-hero__wash {
  background:
    linear-gradient(90deg, transparent 0 43%, rgba(8, 25, 33, 0.72) 59%, rgba(8, 25, 33, 0.99) 76% 100%),
    linear-gradient(180deg, rgba(5, 19, 25, 0.18), transparent 38%, rgba(5, 19, 25, 0.72));
}

.am-content-hero--courier .am-content-hero__copy {
  width: min(50%, 600px);
}

.am-content-hero__lead {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 19px;
  line-height: 1.8;
}

.am-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.am-section {
  position: relative;
  padding-block: var(--am-content-space);
}

.am-section--white {
  background: var(--white);
}

.am-section--mint {
  background: var(--mint);
}

.am-section--dark {
  background: var(--noir-deep);
  color: var(--white);
}

.am-section--grid {
  background:
    linear-gradient(90deg, rgba(17, 76, 90, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 76, 90, 0.035) 1px, transparent 1px),
    var(--arctic);
  background-size: 76px 76px;
}

.am-section-heading {
  max-width: 820px;
  margin-bottom: 46px;
}

.am-section-heading h2,
.am-split-copy h2,
.am-final-cta h2,
.am-article-body h2 {
  overflow: visible;
  height: auto;
  margin-bottom: 20px;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.22;
}

.am-section-heading > p:not(.eyebrow),
.am-split-copy > p,
.am-prose > p {
  color: var(--am-ink-muted);
  font-size: 19px;
  line-height: 1.85;
}

.am-section--dark .am-section-heading > p:not(.eyebrow),
.am-section--dark .am-split-copy > p {
  color: rgba(255, 255, 255, 0.68);
}

.am-split {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(48px, 7vw, 96px);
}

.am-split-copy p:last-child {
  margin-bottom: 0;
}

.am-media-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: var(--am-radius-outer);
  background: var(--noir);
  box-shadow: var(--am-shadow);
}

.am-media-panel img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  outline-color: rgba(255, 255, 255, 0.08);
}

.am-media-panel::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 25, 33, 0.74));
  content: "";
}

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

.am-info-card {
  min-height: 210px;
  padding: 28px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.am-info-card__index {
  display: block;
  margin-bottom: 28px;
  color: var(--saffron);
  direction: ltr;
  font-size: 13px;
  font-weight: 700;
}

.am-info-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.am-info-card p {
  margin-bottom: 0;
  color: var(--am-ink-muted);
}

.am-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: am-step;
}

.am-step {
  counter-increment: am-step;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 24px;
  padding-block: 34px;
  border-top: 1px solid var(--am-line);
}

.am-step:last-child {
  border-bottom: 1px solid var(--am-line);
}

.am-step::before {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--noir-deep);
  content: counter(am-step, decimal-leading-zero);
  direction: ltr;
  font-size: 13px;
  font-weight: 700;
}

.am-step h2,
.am-step h3 {
  overflow: visible;
  height: auto;
  margin-bottom: 10px;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.3;
}

.am-step p {
  max-width: 760px;
  margin-bottom: 10px;
  color: var(--am-ink-muted);
  font-size: 18px;
}

.am-section--dark .am-step {
  border-color: rgba(255, 255, 255, 0.13);
}

.am-section--dark .am-step p {
  color: rgba(255, 255, 255, 0.65);
}

.am-check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-check-list li {
  position: relative;
  min-height: 50px;
  padding: 11px 52px 11px 0;
  border-bottom: 1px solid var(--am-line);
  font-weight: 700;
}

.am-check-list li::before {
  position: absolute;
  top: 10px;
  right: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--noir-deep);
  content: "✓";
}

.am-request-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(44px, 7vw, 92px);
}

.am-request-form {
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--am-radius-outer);
  background: var(--white);
  box-shadow: var(--am-shadow);
}

.am-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.am-form-field {
  display: grid;
  gap: 8px;
}

.am-form-field--full {
  grid-column: 1 / -1;
}

.am-form-field label {
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
}

.am-form-field input,
.am-form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid rgba(17, 76, 90, 0.2);
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--noir);
  font: inherit;
  outline: 0;
  transition: border-color 170ms var(--ease), box-shadow 170ms var(--ease), background-color 170ms var(--ease);
}

.am-form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.am-form-field input:focus,
.am-form-field textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 200, 1, 0.22);
}

.am-form-field input[dir="ltr"] {
  text-align: right;
  unicode-bidi: isolate;
}

.am-form-note {
  margin: 18px 0 0;
  color: var(--am-ink-muted);
  font-size: 14px;
}

.am-request-form .button {
  width: 100%;
  margin-top: 22px;
}

.am-faq--light details {
  border-color: var(--am-line);
}

.am-faq--light details:last-child {
  border-color: var(--am-line);
}

.am-faq--light summary {
  color: var(--noir);
}

.am-faq--light summary i {
  background: rgba(17, 76, 90, 0.08);
}

.am-faq--light details p {
  color: var(--am-ink-muted);
}

.am-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.am-contact-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--am-radius-outer);
  background: var(--white);
  box-shadow: var(--am-shadow);
}

.am-contact-card h3 {
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 700;
}

.am-contact-card p {
  color: var(--am-ink-muted);
}

.am-contact-number {
  width: fit-content;
  display: inline-flex;
  margin-top: 4px;
  color: var(--teal);
  direction: ltr;
  unicode-bidi: isolate;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

.am-contact-card .am-actions {
  margin-top: auto;
  padding-top: 28px;
}

.am-message-template {
  margin: 26px 0 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-line;
}

.am-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-quick-links a {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  transition: color 170ms var(--ease), transform 170ms var(--ease);
}

.am-quick-links a::after {
  color: var(--saffron);
  content: "←";
}

.am-quick-links a:hover {
  color: var(--teal);
  transform: translateX(-4px);
}

.am-final-cta {
  position: relative;
  overflow: hidden;
  padding-block: 88px;
  background: var(--noir-deep);
  color: var(--white);
}

.am-final-cta::before {
  position: absolute;
  top: 0;
  left: -56px;
  width: min(42vw, 560px);
  height: 24px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  content: "";
}

.am-final-cta__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 56px;
}

.am-final-cta h2 {
  max-width: 800px;
  margin-bottom: 14px;
}

.am-final-cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
}

/* Editorial article system */
.am-editorial-hero {
  position: relative;
  padding: 160px 0 78px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 200, 1, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(17, 76, 90, 0.04) 1px, transparent 1px),
    var(--arctic);
  background-size: auto, 76px 100%, auto;
}

.am-editorial-hero .am-breadcrumbs li {
  color: var(--am-ink-muted);
}

.am-editorial-hero .am-breadcrumbs a:hover {
  color: var(--teal);
}

.am-editorial-hero__inner {
  max-width: 920px;
}

.am-editorial-hero h1 {
  overflow: visible;
  height: auto;
  max-width: 900px;
  margin-bottom: 22px;
  color: var(--noir-deep);
  font-size: clamp(44px, 4.4vw, 68px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.am-editorial-hero__lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--am-ink-muted);
  font-size: 20px;
}

.am-article-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.am-article-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.am-article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--am-shadow);
}

.am-article-card__number {
  margin-bottom: 46px;
  color: var(--saffron);
  direction: ltr;
  font-size: 13px;
  font-weight: 700;
}

.am-article-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.am-article-card p {
  color: var(--am-ink-muted);
}

.am-article-card__link {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--teal);
  font-weight: 700;
}

.am-article-card__link::after {
  color: var(--saffron);
  content: "←";
}

.am-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 72px;
}

.am-article-body {
  max-width: var(--am-content-max);
}

.am-article-body > p,
.am-article-body section > p,
.am-article-body li {
  color: #35515d;
  font-size: 19px;
  line-height: 1.9;
}

.am-article-body > p:first-child {
  color: var(--noir);
  font-size: 22px;
}

.am-article-body section {
  scroll-margin-top: 126px;
  padding-top: 52px;
}

.am-article-body h2 {
  font-size: clamp(32px, 3.7vw, 46px);
}

.am-article-body ul {
  margin: 18px 0 0;
  padding: 0 24px 0 0;
}

.am-article-body li + li {
  margin-top: 7px;
}

.am-article-toc {
  position: sticky;
  top: 124px;
  padding: 22px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.am-article-toc h2 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
}

.am-article-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-article-toc a {
  min-height: 40px;
  display: flex;
  align-items: center;
  color: var(--am-ink-muted);
  font-size: 14px;
  line-height: 1.45;
  transition: color 160ms var(--ease);
}

.am-article-toc a:hover {
  color: var(--teal);
}

.am-article-message {
  padding: 26px;
  border-radius: 20px;
  background: var(--noir-deep);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
  white-space: pre-line;
}

.am-article-related {
  margin-top: 58px;
  padding-top: 32px;
  border-top: 1px solid var(--am-line);
}

.am-article-related h2 {
  font-size: 28px;
}

.am-article-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .am-content-hero__copy { width: min(72%, 680px); }
  .am-split,
  .am-request-layout { grid-template-columns: 1fr; }
  .am-article-index-grid { grid-template-columns: 1fr 1fr; }
  .am-article-layout { grid-template-columns: 1fr; gap: 38px; }
  .am-article-toc { position: static; order: -1; }
  .am-article-toc ol { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1101px) {
  .am-content-hero--courier .am-content-hero__picture img {
    object-fit: contain;
    object-position: left bottom;
  }
}

@media (max-width: 700px) {
  .am-content-hero {
    min-height: auto;
    display: block;
    padding: 0 0 58px;
  }

  .am-content-hero__picture {
    position: relative;
    inset: auto;
    width: 100%;
    height: 390px;
    display: block;
  }

  .am-content-hero__picture img {
    display: block;
    object-position: center;
  }

  .am-content-hero__wash,
  .am-content-hero--copy-left .am-content-hero__wash {
    inset: 0 0 auto;
    height: 390px;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 25, 33, 0.18) 58%, rgba(8, 25, 33, 0.72) 82%, var(--noir-deep) 100%);
  }

  .am-content-hero__content,
  .am-content-hero--copy-left .am-content-hero__content {
    width: min(calc(100% - 28px), var(--container));
    display: block;
    padding-top: 28px;
  }

  .am-content-hero--courier .am-content-hero__picture {
    position: relative;
    inset: auto;
    width: 100%;
    height: 440px;
    background: var(--noir-deep);
  }

  .am-content-hero--courier .am-content-hero__picture img {
    height: calc(100% - 76px);
    margin-top: 76px;
    object-fit: cover;
    object-position: 28% center;
  }

  .am-content-hero--courier .am-content-hero__wash {
    height: 440px;
    background: linear-gradient(180deg, transparent 42%, rgba(8, 25, 33, 0.16) 59%, rgba(8, 25, 33, 0.7) 82%, var(--noir-deep) 100%);
  }

  .am-content-hero--courier .am-content-hero__picture::before {
    top: 76px;
    height: 62px;
  }

  .am-content-hero--courier .am-content-hero__picture::after {
    display: none;
  }

  .am-content-hero__copy {
    width: 100%;
  }

  .am-content-hero .am-breadcrumbs {
    margin-bottom: 10px;
  }

  .am-content-hero__copy > .eyebrow {
    margin-bottom: 12px;
  }

  .am-content-hero h1,
  .am-editorial-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(42px, 12vw, 54px);
    line-height: 1.2;
  }

  .am-content-hero__lead,
  .am-editorial-hero__lead {
    font-size: 17px;
  }

  .am-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .am-section-heading h2,
  .am-split-copy h2,
  .am-final-cta h2,
  .am-article-body h2 {
    font-size: clamp(36px, 10.8vw, 48px);
  }

  .am-info-grid,
  .am-contact-grid,
  .am-form-grid,
  .am-quick-links,
  .am-article-index-grid,
  .am-article-toc ol {
    grid-template-columns: 1fr;
  }

  .am-info-card { min-height: auto; }
  .am-step { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; }
  .am-step::before { width: 44px; height: 44px; border-radius: 13px; }
  .am-step h2,
  .am-step h3 { font-size: 27px; }
  .am-media-panel,
  .am-media-panel img { min-height: 360px; height: 360px; }
  .am-form-field--full { grid-column: auto; }
  .am-contact-card { min-height: 290px; }
  .am-final-cta { padding-block: 76px; }
  .am-final-cta__layout { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .am-editorial-hero { padding: 128px 0 62px; }
  .am-article-card { min-height: 280px; }
  .am-article-body > p,
  .am-article-body section > p,
  .am-article-body li { font-size: 18px; }
  .am-article-body > p:first-child { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .am-article-card,
  .am-quick-links a { transition: none; }
}
