/* =========================================================
 * ARCHEHIGH Template Components
 * Reusable UI and section templates.
 * Prefix: ah-
 * ========================================================= */

/* Typography */

.ah-eyebrow,
.ah-title-xl,
.ah-title-lg,
.ah-title-md,
.ah-text,
.ah-text-sm,
.ah-card-title,
.ah-card-text,
.ah-btn,
.ah-kit-token strong,
.ah-kit-token span,
.ah-kit-color strong,
.ah-kit-color span {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ah-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--ah-gray-500);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ah-eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: var(--ah-radius-full);
  background: var(--ah-orange);
}

.ah-title-xl {
  margin: 0;
  color: var(--ah-black);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.ah-title-lg {
  margin: 0;
  color: var(--ah-black);
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.ah-title-md {
  margin: 0;
  color: var(--ah-black);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.ah-text {
  margin: 0;
  color: var(--ah-gray-700);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.8;
}

.ah-text-sm {
  margin: 0;
  color: var(--ah-gray-700);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.7;
}

/* Buttons */

.ah-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ah-black);
  border-radius: var(--ah-radius-full);
  background: var(--ah-black);
  color: var(--ah-white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition:
    background 0.25s var(--ah-ease),
    color 0.25s var(--ah-ease),
    transform 0.25s var(--ah-ease);
}

.ah-btn:hover {
  background: var(--ah-orange);
  border-color: var(--ah-orange);
  color: var(--ah-white);
  transform: translateY(-2px);
}

.ah-btn.is-line {
  background: transparent;
  color: var(--ah-black);
}

.ah-btn.is-line:hover {
  background: var(--ah-black);
  border-color: var(--ah-black);
  color: var(--ah-white);
}

.ah-btn,
.ah-btn:visited,
.ah-btn:hover,
.ah-btn:focus,
.ah-btn:active {
  text-decoration: none;
  box-shadow: none;
  outline: none;
}

.ah-kit-hero .ah-btn,
.ah-kit-hero .ah-btn:visited {
  background: var(--ah-white);
  border-color: var(--ah-white);
  color: var(--ah-black);
}

.ah-kit-hero .ah-btn:hover {
  background: var(--ah-orange);
  border-color: var(--ah-orange);
  color: var(--ah-white);
}

.ah-kit-hero .ah-btn.is-line,
.ah-kit-hero .ah-btn.is-line:visited {
  background: var(--ah-gray-900);
  border-color: var(--ah-gray-900);
  color: var(--ah-white);
}

.ah-kit-hero .ah-btn.is-line:hover {
  background: var(--ah-white);
  border-color: var(--ah-white);
  color: var(--ah-black);
}

/* Cards */

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

.ah-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-md);
  background: var(--ah-white);
  transition:
    border-color 0.25s var(--ah-ease),
    transform 0.25s var(--ah-ease),
    box-shadow 0.25s var(--ah-ease);
}

.ah-card > * {
  position: relative;
  z-index: 1;
}

.ah-card:hover {
  border-color: var(--ah-black);
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.08);
}

.ah-card-bg-icon {
  position: absolute;
  z-index: 0;
  top: 18px;
  right: 18px;
  color: var(--ah-gray-200);
  font-size: 112px;
  line-height: 1;
  opacity: 0.9;
  transform: rotate(-8deg);
  pointer-events: none;
  user-select: none;
}

.ah-card .ah-card-bg-icon.material-symbols-outlined {
  font-size: 112px;
  line-height: 1;
}

.ah-card-has-bg-icon .ah-card-num {
  color: var(--ah-black);
}

.ah-card-num {
  display: block;
  margin-bottom: 44px;
  color: var(--ah-gray-500);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ah-card-title {
  margin: 0 0 12px;
  color: var(--ah-black);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.ah-card-text {
  margin: 0;
  color: var(--ah-gray-700);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.7;
}

/* Page Kit */

.ah-kit-page {
  background: var(--ah-white);
  color: var(--ah-black);
}

.ah-kit-hero {
  padding: 96px 0 72px;
  background: var(--ah-black);
  color: var(--ah-white);
}

.ah-kit-hero .ah-eyebrow,
.ah-kit-hero .ah-text {
  color: rgba(255, 255, 255, 0.68);
}

.ah-kit-hero .ah-title-xl,
.ah-kit-hero .ah-title-lg,
.ah-kit-hero .ah-title-md {
  color: var(--ah-white);
}

.ah-kit-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.ah-kit-panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--ah-radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.ah-kit-block {
  padding: 72px 0;
  background: var(--ah-white);
}

.ah-kit-block.is-dark {
  background: var(--ah-black);
  color: var(--ah-white);
}

.ah-kit-block.is-light {
  background: var(--ah-gray-100);
}

.ah-kit-head {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.ah-kit-block.is-dark .ah-title-lg,
.ah-kit-block.is-dark .ah-title-md {
  color: var(--ah-white);
}

.ah-kit-block.is-dark .ah-text {
  color: rgba(255, 255, 255, 0.68);
}

.ah-kit-color-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ah-kit-color {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-md);
}

.ah-kit-color strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ah-kit-color span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
}

.ah-bg-black {
  background: var(--ah-black);
  color: var(--ah-white);
}

.ah-bg-dark {
  background: var(--ah-dark);
  color: var(--ah-white);
}

.ah-bg-gray {
  background: var(--ah-gray-500);
  color: var(--ah-white);
}

.ah-bg-light {
  background: var(--ah-gray-100);
  color: var(--ah-black);
}

.ah-bg-orange {
  background: var(--ah-orange);
  color: var(--ah-white);
}

/* Icons */

.ah-ms,
.material-symbols-outlined {
  display: inline-block;
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* Flow Diagram Template */

.ah-flow {
  background: var(--ah-gray-100);
}

.ah-flow-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: stretch;
}

.ah-flow-section {
  min-width: 0;
}

.ah-flow-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--ah-radius-sm);
  background: var(--ah-black);
  color: var(--ah-white);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-align: center;
}

.ah-flow-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.ah-flow-panel {
  min-height: 540px;
  padding: 32px 24px 28px;
  border: 1px solid var(--ah-black);
  border-radius: var(--ah-radius-md);
  background: var(--ah-white);
}

.ah-flow-panel.is-wide {
  margin-top: 20px;
  padding: 34px 44px 30px;
}

.ah-flow-head {
  margin-bottom: 28px;
  text-align: center;
}

.ah-flow-title {
  margin: 0;
  color: var(--ah-black);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.3;
}

.ah-flow-subtitle {
  margin: 6px 0 0;
  color: var(--ah-gray-500);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.ah-flow-chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.ah-flow-chip-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  max-width: 560px;
  margin: 0 auto;
}

.ah-flow-chip {
  min-height: 96px;
  padding: 18px 18px 16px;
  border: 1px solid var(--ah-gray-200);
  border-radius: var(--ah-radius-md);
  background: var(--ah-gray-100);
  text-align: center;
}

.ah-flow-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: var(--ah-radius-full);
  background: var(--ah-black);
  color: var(--ah-white);
}

.ah-flow-chip-icon .material-symbols-outlined {
  font-size: 18px;
}

.ah-flow-chip strong {
  display: block;
  color: var(--ah-black);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.ah-flow-chip span:not(.ah-flow-chip-icon):not(.material-symbols-outlined) {
  display: block;
  margin-top: 7px;
  color: var(--ah-gray-700);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.55;
}

.ah-flow-connector {
  position: relative;
  width: 100%;
  height: 52px;
  margin: 8px 0;
}

.ah-flow-connector::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1px;
  height: 38px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--ah-gray-300) 18%,
    var(--ah-gray-300) 82%,
    transparent
  );
}

.ah-flow-dot {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: var(--ah-radius-full);
  background: var(--ah-orange);
  box-shadow: 0 0 0 5px var(--ah-orange-soft);
  transform: translate(-50%, 0);
  animation: ah-flow-dot-drop 1.8s var(--ah-ease) infinite;
}

@keyframes ah-flow-dot-drop {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  18%,
  78% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 31px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-flow-dot {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 31px);
  }
}

.ah-flow-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(236px, 100%);
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: var(--ah-radius-sm);
  background: var(--ah-gray-900);
  color: var(--ah-white);
}

.ah-flow-tool.is-wide {
  width: min(292px, 100%);
}

.ah-flow-tool-icon {
  display: inline-flex;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: var(--ah-white);
  color: var(--ah-black);
}

.ah-flow-tool-icon .material-symbols-outlined {
  font-size: 28px;
}

.ah-flow-tool-text {
  min-width: 0;
}

.ah-flow-tool-text small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.ah-flow-tool-text strong {
  display: block;
  margin-top: 3px;
  color: var(--ah-white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.ah-flow-desc {
  margin: 18px 0 0;
  color: var(--ah-gray-900);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.72;
}

.ah-flow-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
}

/* Image Process Card Template */

.ah-process-visual-section {
  background: var(--ah-white);
  isolation: isolate;
}

.ah-process-visual-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/images/main_02.jpg");
  background-repeat: no-repeat;
  background-position: right 8% bottom;
  background-size: min(940px, 68vw) auto;
  opacity: 1;
}

.ah-process-visual-section::after {
  content: none;
}

.ah-process-visual-inner {
  min-height: 640px;
  display: grid;
  align-content: space-between;
  gap: 72px;
}

.ah-process-visual-head {
  max-width: 680px;
}

.ah-process-visual-head .ah-text {
  max-width: 560px;
  margin-top: 24px;
}

.ah-process-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ah-process-card {
  position: relative;
  min-width: 0;
  min-height: 246px;
  padding: 26px;
  border: 1px solid var(--ah-black);
  border-radius: var(--ah-radius-md);
  background: rgba(238, 238, 238, 0.54);
  box-shadow: none;
  backdrop-filter: blur(5px) saturate(130%);
  -webkit-backdrop-filter: blur(5px) saturate(130%);
}

.ah-process-card-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  color: rgba(5, 5, 5, 0.18);
  font-size: 54px;
}

.ah-process-card-step {
  margin: 0 0 44px;
  color: var(--ah-orange);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ah-process-card h3 {
  margin: 0 0 12px;
  color: var(--ah-black);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.ah-process-card p:not(.ah-process-card-step) {
  margin: 0;
  color: var(--ah-gray-700);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.65;
}

/* Text Content Template */

.ah-copy-section {
  background: var(--ah-gray-100);
}

.ah-copy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}

.ah-copy-intro,
.ah-copy-body,
.ah-copy-block {
  min-width: 0;
}

.ah-copy-intro {
  position: sticky;
  top: 72px;
  align-self: start;
}

.ah-copy-lead {
  margin: 28px 0 0;
  color: var(--ah-gray-900);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.56;
}

.ah-copy-body {
  display: grid;
  gap: 24px;
}

.ah-copy-block {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ah-line);
}

.ah-copy-type {
  margin: 0 0 12px;
  color: var(--ah-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.ah-copy-block h3 {
  margin: 0;
  color: var(--ah-black);
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.12;
}

.ah-copy-block p:not(.ah-copy-type) {
  margin: 16px 0 0;
  color: var(--ah-gray-700);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.8;
}

.ah-copy-quote {
  margin: 0;
  padding: 24px 28px;
  border-left: 5px solid var(--ah-orange);
  border-radius: 0 var(--ah-radius-md) var(--ah-radius-md) 0;
  background: var(--ah-white);
}

.ah-copy-quote p {
  margin: 0;
  color: var(--ah-black);
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.35;
}

.ah-copy-summary {
  padding: 24px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-md);
  background: var(--ah-white);
}

.ah-copy-summary strong {
  display: block;
  margin-bottom: 18px;
  color: var(--ah-black);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ah-copy-summary dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.ah-copy-summary dl div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.ah-copy-summary dt,
.ah-copy-summary dd {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.ah-copy-summary dt {
  color: var(--ah-black);
  font-size: 14px;
  font-weight: 900;
}

.ah-copy-summary dd {
  color: var(--ah-gray-700);
  font-size: 14px;
  font-weight: 600;
}

/* Timeline Template */

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

.ah-timeline-section .ah-kit-head {
  margin-bottom: 42px;
}

.ah-timeline-wrap {
  position: relative;
}

.ah-timeline-wrap::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--ah-black) 12%, var(--ah-gray-300) 88%, transparent);
  transform: translateX(-1px);
}

.ah-timeline-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.ah-timeline-item:nth-child(even) .ah-timeline-card {
  grid-column: 3;
}

.ah-timeline-item:nth-child(even) .ah-timeline-marker {
  grid-column: 2;
}

.ah-timeline-card {
  position: relative;
  grid-column: 1;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-md);
  background: var(--ah-gray-100);
}

.ah-timeline-card::after {
  content: "";
  position: absolute;
  top: 26px;
  right: -9px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--ah-line);
  border-right: 1px solid var(--ah-line);
  background: var(--ah-gray-100);
  transform: rotate(45deg);
}

.ah-timeline-item:nth-child(even) .ah-timeline-card::after {
  right: auto;
  left: -9px;
  border: 0;
  border-bottom: 1px solid var(--ah-line);
  border-left: 1px solid var(--ah-line);
}

.ah-timeline-marker {
  z-index: 1;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--ah-black);
  border-radius: 50%;
  background: var(--ah-black);
  color: var(--ah-white);
}

.ah-timeline-marker .material-symbols-outlined {
  font-size: 27px;
  line-height: 1;
}

.ah-timeline-kicker {
  margin: 0 0 10px;
  color: var(--ah-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.ah-timeline-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ah-timeline-head h3 {
  margin: 0;
  color: var(--ah-black);
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.ah-timeline-head time {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: var(--ah-radius-full);
  background: var(--ah-white);
  color: var(--ah-gray-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ah-timeline-card p:not(.ah-timeline-kicker) {
  margin: 0;
  color: var(--ah-gray-700);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.65;
}

.ah-timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ah-timeline-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--ah-line);
  border-radius: var(--ah-radius-full);
  background: var(--ah-white);
  color: var(--ah-black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Responsive Components */

@media (max-width: 1080px) {
  .ah-kit-hero-inner,
  .ah-kit-head,
  .ah-flow-grid,
  .ah-copy-layout {
    grid-template-columns: 1fr;
  }

  .ah-grid-3,
  .ah-kit-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ah-flow-panel {
    min-height: auto;
  }

  .ah-copy-layout {
    gap: 38px;
  }

  .ah-copy-intro {
    position: static;
  }

  .ah-process-card-grid {
    grid-template-columns: 1fr;
  }

  .ah-process-card {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .ah-timeline-wrap::before {
    left: 27px;
  }

  .ah-timeline-list {
    gap: 18px;
  }

  .ah-timeline-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
  }

  .ah-timeline-card,
  .ah-timeline-item:nth-child(even) .ah-timeline-card {
    grid-column: 2;
  }

  .ah-timeline-marker,
  .ah-timeline-item:nth-child(even) .ah-timeline-marker {
    grid-column: 1;
  }

  .ah-timeline-card::after,
  .ah-timeline-item:nth-child(even) .ah-timeline-card::after {
    right: auto;
    left: -9px;
    border: 0;
    border-bottom: 1px solid var(--ah-line);
    border-left: 1px solid var(--ah-line);
  }
}

@media (max-width: 760px) {
  .ah-kit-hero {
    padding: 72px 0 56px;
  }

  .ah-kit-block {
    padding: 56px 0;
  }

  .ah-grid-3,
  .ah-kit-color-grid,
  .ah-flow-panels,
  .ah-flow-chip-grid.is-two,
  .ah-flow-result-grid {
    grid-template-columns: 1fr;
  }

  .ah-card {
    min-height: auto;
  }

  .ah-flow-grid {
    gap: 34px;
  }

  .ah-flow-band {
    font-size: 15px;
  }

  .ah-flow-panel,
  .ah-flow-panel.is-wide {
    padding: 26px 20px 24px;
  }

  .ah-flow-title {
    font-size: 18px;
  }

  .ah-flow-subtitle {
    font-size: 14px;
  }

  .ah-process-visual-inner {
    min-height: auto;
    gap: 44px;
  }

  .ah-process-card {
    padding: 22px;
    border-radius: var(--ah-radius-sm);
  }

  .ah-process-card-step {
    margin-bottom: 34px;
  }

  .ah-process-card-icon {
    top: 18px;
    right: 18px;
    font-size: 46px;
  }

  .ah-copy-lead {
    margin-top: 22px;
  }

  .ah-copy-body {
    gap: 22px;
  }

  .ah-copy-block {
    padding-bottom: 22px;
  }

  .ah-copy-block p:not(.ah-copy-type) {
    font-size: 15px;
  }

  .ah-copy-quote {
    padding: 20px;
    border-left-width: 4px;
    border-radius: 0 var(--ah-radius-sm) var(--ah-radius-sm) 0;
  }

  .ah-copy-summary {
    padding: 20px;
    border-radius: var(--ah-radius-sm);
  }

  .ah-copy-summary dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ah-timeline-section .ah-kit-head {
    margin-bottom: 34px;
  }

  .ah-timeline-wrap::before {
    left: 23px;
  }

  .ah-timeline-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .ah-timeline-marker {
    width: 46px;
    height: 46px;
  }

  .ah-timeline-marker .material-symbols-outlined {
    font-size: 24px;
  }

  .ah-timeline-card {
    padding: 18px;
    border-radius: var(--ah-radius-sm);
  }

  .ah-timeline-head {
    display: grid;
    gap: 10px;
    justify-content: stretch;
  }

  .ah-timeline-head time {
    justify-self: start;
  }
}
