.automation-day-section .section-heading > div,
.automation-principles-section .section-heading > div {
  max-width: 720px;
}

.automation-day-section .section-heading > p,
.automation-principles-section .section-heading > p {
  max-width: 430px;
}

.automation-day-flow h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 25px;
}

.automation-paths {
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 28%),
    var(--bg);
}

.automation-paths .compact-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  column-gap: min(10vw, 120px);
  align-items: end;
}

.automation-paths .compact-heading .eyebrow {
  grid-column: 1 / -1;
}

.automation-paths .compact-heading h2,
.automation-paths .compact-heading > p:last-child {
  margin-bottom: 0;
}

.automation-brand-systems {
  overflow: hidden;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  background:
    radial-gradient(circle at 88% 6%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 26%),
    var(--surface);
}

.automation-brand-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(4.5rem, 8vw, 7rem);
}

.automation-brand-intro .eyebrow {
  grid-column: 1 / -1;
}

.automation-brand-intro h2,
.automation-brand-intro > p:last-child {
  margin-bottom: 0;
}

.automation-brand-intro h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.7vw, 5.5rem);
  line-height: .94;
}

.automation-brand-intro > p:last-child {
  max-width: 35rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.75;
}

.automation-brand-row + .automation-brand-row {
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

.automation-brand-row-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.automation-brand-row-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: .7rem;
}

.automation-brand-row-heading h3,
.automation-brand-row-heading > p:last-child {
  margin-bottom: 0;
}

.automation-brand-row-heading h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .98;
}

.automation-brand-row-heading > p:last-child {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.7;
}

.automation-brand-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 76%, var(--surface));
}

.automation-brand-marquee::before,
.automation-brand-marquee::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: min(12vw, 11rem);
  content: "";
  pointer-events: none;
}

.automation-brand-marquee::before {
  left: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--card) 76%, var(--surface)), transparent);
}

.automation-brand-marquee::after {
  right: 0;
  background: linear-gradient(270deg, color-mix(in srgb, var(--card) 76%, var(--surface)), transparent);
}

.automation-brand-track {
  display: flex;
  width: max-content;
  animation: automation-brand-marquee 48s linear infinite;
  will-change: transform;
}

.automation-brand-marquee-wireless .automation-brand-track {
  animation-duration: 18s;
}

.automation-brand-marquee:hover .automation-brand-track,
.automation-brand-marquee:focus-within .automation-brand-track {
  animation-play-state: paused;
}

.automation-brand-set {
  display: flex;
  align-items: center;
  gap: clamp(2.8rem, 7vw, 7rem);
  padding: 1.15rem clamp(1.4rem, 4vw, 4.5rem);
}

.automation-brand-set span {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  color: var(--text);
  font: 700 clamp(.82rem, 1.35vw, 1rem)/1.2 var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.automation-brand-set span::after {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

@keyframes automation-brand-marquee {
  to { transform: translateX(-50%); }
}

.automation-path-grid {
  gap: 24px;
}

.automation-path-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  border-radius: 10px;
}

.automation-path-card img {
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.automation-path-card .path-card-copy {
  min-height: 520px;
  padding: clamp(28px, 4vw, 42px);
}

.automation-path-card h3 {
  max-width: 500px;
  margin-bottom: 16px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(29px, 2.8vw, 39px);
  font-weight: 600;
  line-height: 1.06;
}

.automation-path-card .path-card-copy > p:not(.card-kicker) {
  max-width: 580px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.65;
}

.path-benefits {
  width: 100%;
  margin: 0 0 30px;
}

.path-benefits > div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--soft-line);
}

.path-benefits > div:last-child {
  border-bottom: 1px solid var(--soft-line);
}

.path-benefits dt {
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-theme="night"] .path-benefits dt {
  color: var(--gold);
}

.path-benefits dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.path-more-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: auto 0 0 auto;
  padding: 10px 0 7px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

html[data-theme="night"] .path-more-button {
  color: var(--gold);
}

.path-more-button span {
  font-size: 18px;
  transition: transform .2s ease;
}

.path-more-button:hover,
.path-more-button:focus-visible {
  color: var(--text);
}

.path-more-button:hover span {
  transform: translate(3px, -3px);
}

.hybrid-note {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 880px;
  margin: 36px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong) !important;
  text-align: center;
}

.hybrid-note span {
  flex: 0 0 auto;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

html[data-theme="night"] .hybrid-note span {
  color: var(--gold);
}

.automation-principles-section {
  background: var(--surface-strong);
}

.automation-principles-layout {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(420px, 1.1fr);
  gap: min(8vw, 96px);
  align-items: start;
}

.automation-principles-visual {
  position: sticky;
  top: 104px;
  min-height: 680px;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.automation-principles-visual::after {
  position: absolute;
  inset: 40% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(8, 8, 7, .9));
}

.automation-principles-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.automation-principles-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: 34px;
  left: 34px;
  color: #fff;
}

.automation-principles-visual figcaption span {
  display: block;
  margin-bottom: 8px;
  color: #e6aa72;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.automation-principles-visual figcaption strong {
  display: block;
  max-width: 390px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.08;
}

.automation-principles-list {
  border-top: 1px solid var(--line);
}

.automation-principles-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.automation-principles-list article > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.automation-principles-list h3 {
  margin-bottom: 6px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 26px;
}

.automation-principles-list p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.65;
}

.automation-standards-section {
  background: var(--surface);
}

.automation-standards-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr);
  gap: min(10vw, 120px);
  align-items: start;
}

.automation-standards-layout h2 {
  max-width: 560px;
}

.standards-lead {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
}

.automation-standards-list {
  border-top: 1px solid var(--line);
}

.automation-standards-list article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.automation-standards-list article > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.automation-standards-list h3 {
  margin-bottom: 6px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 25px;
}

.automation-standards-list p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.65;
}

.automation-detail-dialog {
  position: fixed;
  inset: 0;
  width: min(1180px, calc(100vw - 48px));
  height: min(860px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.automation-detail-dialog::backdrop {
  background: rgba(8, 8, 8, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.automation-detail-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .85fr) minmax(500px, 1.15fr);
  min-width: 0;
  min-height: 100%;
  height: 100%;
  max-height: none;
}

.automation-detail-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  font: 300 28px/1 "Manrope", sans-serif;
}

.automation-detail-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.automation-detail-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #151513;
}

.automation-detail-visual::after {
  position: absolute;
  inset: 38% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(7, 7, 6, .92));
}

.automation-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.automation-detail-visual p {
  position: absolute;
  z-index: 1;
  right: 32px;
  bottom: 32px;
  left: 32px;
  margin: 0;
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.08;
}

.automation-detail-visual p span {
  display: block;
  margin-bottom: 8px;
  color: #e6aa72;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.automation-detail-content {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(44px, 5vw, 72px);
  scrollbar-color: var(--gold) transparent;
}

.automation-detail-content h2 {
  max-width: 620px;
  margin-bottom: 16px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.02;
}

.automation-detail-lead {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.automation-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 34px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.automation-detail-grid h3 {
  margin-bottom: 14px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
}

.automation-detail-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.automation-detail-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 30px;
  background: var(--line);
  border: 1px solid var(--line);
}

.automation-detail-timeline article {
  padding: 20px;
  background: var(--surface);
}

.automation-detail-timeline span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-theme="night"] .automation-detail-timeline span {
  color: var(--gold);
}

.automation-detail-timeline p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.55;
}

.automation-detail-fit {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.automation-detail-fit strong {
  color: var(--text);
  font-size: 13px;
}

.automation-detail-fit span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

body:has(.automation-detail-dialog[open]) {
  overflow: hidden;
}

@media (max-width: 980px) {
  .automation-paths .compact-heading,
  .automation-brand-intro,
  .automation-brand-row-heading,
  .automation-principles-layout,
  .automation-standards-layout {
    grid-template-columns: 1fr;
  }

  .automation-paths .compact-heading {
    gap: 18px;
  }

  .automation-path-grid {
    grid-template-columns: 1fr;
  }

  .automation-path-card {
    grid-template-columns: minmax(260px, .78fr) minmax(400px, 1.22fr);
    grid-template-rows: 1fr;
  }

  .automation-path-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .automation-path-card .path-card-copy {
    min-height: 0;
  }

  .automation-principles-layout,
  .automation-standards-layout {
    gap: 42px;
  }

  .automation-principles-visual {
    position: relative;
    top: auto;
    min-height: 540px;
  }

  .automation-detail-shell {
    grid-template-columns: minmax(280px, .72fr) minmax(440px, 1.28fr);
  }
}

@media (max-width: 760px) {
  .automation-brand-systems {
    padding-top: 4.4rem;
    padding-bottom: 4.4rem;
  }

  .automation-brand-intro {
    gap: 1.2rem;
    margin-bottom: 3.5rem;
  }

  .automation-brand-intro h2 {
    max-width: 10ch;
  }

  .automation-brand-row-heading {
    gap: .9rem;
    margin-bottom: 1.25rem;
  }

  .automation-brand-row + .automation-brand-row {
    margin-top: 3.75rem;
  }

  .automation-brand-set {
    gap: 2.8rem;
    padding-inline: 1.4rem;
  }

  .automation-brand-track {
    animation-duration: 34s;
  }

  .automation-brand-marquee-wireless .automation-brand-track {
    animation-duration: 15s;
  }

  .automation-path-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .automation-path-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .automation-path-card .path-card-copy {
    min-height: 0;
  }

  .automation-detail-dialog {
    width: min(100% - 20px, 680px);
    height: auto;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }

  .automation-detail-shell {
    display: block;
    min-height: 0;
    max-height: none;
  }

  .automation-detail-visual {
    min-height: 300px;
    height: 36dvh;
    max-height: 380px;
  }

  .automation-detail-content {
    overflow: visible;
    padding: 36px 26px 42px;
  }

  .automation-detail-grid,
  .automation-detail-timeline {
    grid-template-columns: 1fr;
  }

  .automation-detail-grid {
    gap: 24px;
  }

  .automation-detail-fit {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .automation-path-card h3 {
    font-size: 31px;
  }

  .path-benefits > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .hybrid-note {
    display: grid;
    gap: 7px;
    padding: 18px 0;
    text-align: left;
  }

  .automation-principles-visual {
    min-height: 430px;
  }

  .automation-principles-visual figcaption {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .automation-principles-list article,
  .automation-standards-list article {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .automation-detail-dialog {
    width: calc(100% - 12px);
    border-radius: 8px;
  }

  .automation-detail-close {
    top: 12px;
    right: 12px;
    background: rgba(18, 18, 17, .78);
    color: #fff;
  }

  .automation-detail-visual {
    min-height: 250px;
    height: 32dvh;
  }

  .automation-detail-visual p {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .automation-detail-content h2 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .automation-brand-track {
    animation-play-state: paused;
  }

  .path-more-button span {
    transition: none;
  }
}
