/* Arbotic additions on top of Alpha: a11y fixes */
#page-wrapper a:focus-visible, #page-wrapper button:focus-visible {
  outline: 3px solid #9A4F16;
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: #1F3A2E;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Footer is light in Alpha; darker text there for contrast (matches axe). */
input[type='submit'].alt, input[type='reset'].alt, input[type='button'].alt, .button.alt,
.copyright li, .copyright li a {
  color: #5a5a5a;
}
input[type='submit'].alt:hover, input[type='reset'].alt:hover, input[type='button'].alt:hover, .button.alt:hover,
.copyright li a:hover {
  color: #333;
}

/* Muted #777 fails 4.5:1 on white boxes; lift all muted text to #5f5f5f. */
.box p, .box li, .box ol, .feature .content p, .box span[style], .box small {
  color: #5f5f5f;
}

/* Brand primary: Alpha's salmon fails 4.5:1 with white text. */
input[type='submit'].primary, input[type='reset'].primary, input[type='button'].primary, .button.primary {
  background-color: #9A4F16;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px #9A4F16;
}
input[type='submit'].primary:hover, input[type='reset'].primary:hover, input[type='button'].primary:hover, .button.primary:hover {
  background-color: #7E3F10;
  box-shadow: inset 0 0 0 2px #7E3F10;
}
/* Feature images must never exceed their column (owner screenshots are 1200px wide). */
.feature .image img, .box .image.featured img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.feature .image {
  max-width: 100%;
  overflow: hidden;
}

/* Intro paragraphs inside #main are #9a9a9a in Alpha: too light on white. */
#main > header p, #main header.major p, #main > header a, #main header.major a {
  color: #5f5f5f;
}

/* Alpha's salmon link colour fails on white; use the brand rust. */
#main p a, #main li a, .box p a, .box li a {
  color: #9A4F16;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Screenshot inside a column box: plain, contained, no featured bleed. */
.box .shot { display: block; width: 100%; height: auto; border: 1px solid #e2e2e2; border-radius: 4px; }
.box .row > .col-7 { align-self: center; }

/* The banner scrim is a positioned layer; lift #main so the overlapping box stays readable. */
body.landing #main { position: relative; z-index: 3; }
/* Banner content must clear the 14em landing overlap; overflow hidden prevents parallax bleed. */
#banner { position: relative; overflow: hidden; }
body.landing #banner { padding-bottom: 22em; }

/* Subpage photo hero banner (e.g. Services) */
body.has-sub-banner #page-wrapper { padding-top: 0; }
#banner.banner--subpage { padding: 9.5em 2em 6.5em; }
#banner.banner--subpage p { max-width: 44rem; margin: 0 auto; }
.banner-scrim--subpage {
  background: linear-gradient(180deg, rgba(15, 26, 21, 0.56) 0%, rgba(15, 26, 21, 0.74) 100%);
}
@media screen and (max-width: 736px) {
  #banner.banner--subpage { padding: 6.5em 1.25em 4.5em; }
  body.has-sub-banner #main { padding: 2em 0 0 0; }
}

/* G1 header brand mark alongside Arbotic GeoAI wordmark. */
#header h1 a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 100%;
  line-height: 1;
}
#header .brand-mark {
  height: clamp(28px, 1.1em, 38px);
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* Home banner background image & scrim */
.banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.banner-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(15, 26, 21, 0.72);
}

/* Responsive video wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 1rem;
  border-radius: 6px;
  overflow: hidden;
  background: #0f1a15;
}
.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-caption {
  font-size: 0.9em;
  color: #5f5f5f;
  text-align: center;
  margin-top: 0.5rem;
}

/* Founder profile box with AMT logo */
.founder-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}
@media screen and (max-width: 736px) {
  .founder-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.founder-avatar-frame {
  width: 104px;
  height: 104px;
  min-width: 104px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.founder-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Dimension-aligned ISA CA & TRAQ logos */
.credential-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.credential-logos img {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
@media screen and (max-width: 480px) {
  .credential-logos {
    gap: 1rem;
    justify-content: center;
  }
  .credential-logos img {
    height: 48px;
    max-width: 140px;
  }
}

/* Visual-aid illustration tiles (matched backgrounds, never upscale) */
.illus-tile {
  background: #f1f0e6;
  border: 1px solid #e4e2d5;
  border-radius: 10px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.illus-tile--cool {
  background: #d7e3e3;
  border-color: #c5d4d4;
}
.illus-tile--light {
  background: #f8faf6;
  border-color: #e4e8e1;
}
.illus-tile--dark {
  background: #1d3f54;
  border-color: #2b546b;
}
.illus-tile picture {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}
.illus-tile img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Tile size presets */
.illus-tile--pain {
  width: 100%;
  max-width: 220px;
  height: 136px;
  margin: 0 auto 1rem;
}
.illus-tile--pain img {
  max-height: 116px;
  width: auto;
}
.illus-tile--card {
  width: 124px;
  height: 84px;
  margin: 0 auto 1.25rem;
}
.illus-tile--card img {
  max-height: 64px;
  max-width: 104px;
  width: auto;
}
.illus-tile--roadmap {
  width: 100%;
  max-width: 280px;
  height: 104px;
  margin: 0 auto 1rem;
}
.illus-tile--roadmap img {
  max-height: 84px;
  width: auto;
}
.illus-tile--sm {
  min-width: 56px;
  width: auto;
  max-width: 84px;
  height: 54px;
  padding: 6px 8px;
  flex-shrink: 0;
}
.illus-tile--sm img {
  max-height: 42px;
  max-width: 68px;
  width: auto;
}
.illus-tile--diagram {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  margin: 0 auto;
}
.illus-tile--diagram img {
  max-height: 220px;
  width: auto;
}

/* 3-column grid for Pain Points, Workflow Roadmap, and Demo Pipeline */
.illus-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.illus-grid-3 > * {
  min-width: 0;
}
.illus-grid-3 h3,
.illus-grid-3 h4 {
  margin-bottom: 0.5rem;
}
.illus-grid-3 p:last-child {
  margin-bottom: 0;
}
.illus-step-num {
  display: inline-block;
  padding: 0.2em 0.7em;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: #1F3A2E;
  color: #ffffff;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Services split layout (text + diagram) */
.service-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}
.service-split > * {
  min-width: 0;
}
.service-split__text p:last-child {
  margin-bottom: 0;
}
.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.heading-with-icon h3,
.heading-with-icon h4 {
  margin: 0;
}

/* Demo dark-slate showcase & pipeline */
.demo-banner-box {
  background: #163344;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 2px 0 0 #e5e5e5;
}
.demo-banner-box picture,
.demo-banner-box img {
  width: 100%;
  height: auto;
  display: block;
}
.demo-pipeline {
  background: #163344;
  color: #f0f7f5;
  border-radius: 6px;
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 0 0 #e5e5e5;
}
.demo-pipeline header.major {
  margin-bottom: 1.75rem;
}
.demo-pipeline h2,
.demo-pipeline h3,
.demo-pipeline h4 {
  color: #ffffff;
}
.demo-pipeline p,
.box.demo-pipeline p {
  color: #dceae6;
}
.demo-pipeline .illus-tile--dark {
  width: 100%;
  max-width: 240px;
  height: 120px;
  margin: 0 auto 1rem;
}
.demo-pipeline .illus-tile--dark img {
  max-height: 100px;
  width: auto;
}
.demo-pipeline-thumb {
  background: #ffffff;
  border: 1px solid #2b546b;
  border-radius: 10px;
  padding: 6px;
  width: 100%;
  max-width: 240px;
  height: 120px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.demo-pipeline-thumb img {
  max-height: 108px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media screen and (max-width: 840px) {
  .illus-grid-3,
  .service-split {
    grid-template-columns: 1fr;
  }
  .demo-pipeline {
    padding: 1.75rem 1.25rem;
  }
}
@media screen and (max-width: 736px) {
  .demo-banner-box,
  .demo-pipeline {
    margin: 1em;
  }
}

/* About page company logo frame */
.about-brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 1px solid #e4decb;
  box-shadow: 0 4px 16px rgba(15, 26, 21, 0.08);
  background: #f2ead8;
}
.about-brand-logo picture,
.about-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scroll progress bar & Apple-style scroll motion */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10002;
  background: linear-gradient(90deg, #9A4F16, #2F7A6D);
  transform-origin: left center;
  transform: scaleX(var(--page-p, 0));
  pointer-events: none;
}

#header:not(.alt) {
  background: rgba(31, 58, 46, 0.9);
  color: #e6eee9;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  #banner .banner-bg-img {
    transform: translate3d(0, calc(var(--hero-p, 0) * 56px), 0) scale(calc(1 + var(--hero-p, 0) * 0.08));
    will-change: transform;
  }
  #banner .banner__inner {
    transform: translate3d(0, calc(var(--hero-p, 0) * -28px), 0);
    opacity: calc(1 - var(--hero-p, 0) * 0.85);
    will-change: transform, opacity;
  }
  [data-reveal].reveal-ready {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.975);
  }
  [data-reveal].reveal-ready.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
      opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      transform 0.78s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  }
  [data-scroll-zoom] {
    transform: scale(calc(0.94 + var(--el-p, 1) * 0.06)) translate3d(0, calc((1 - var(--el-p, 1)) * 22px), 0);
    transition: transform 0.14s linear;
    will-change: transform;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .illus-tile,
  .box .shot {
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .illus-grid-3 > div:hover .illus-tile,
  .box.features .features-row section:hover .illus-tile {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 26, 21, 0.09);
  }
}

/* Tech-company typography upgrade (Plus Jakarta Sans + Inter + Noto Sans HK) */
body,
input,
select,
textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: #36413b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111c17;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
  font-variant-numeric: tabular-nums;
}

h3,
h4 {
  font-weight: 600;
}

strong,
b {
  font-weight: 600;
  color: #111c17;
}

#banner h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1.12;
}

#banner p {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

#header h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#header nav a,
.button,
input[type='submit'],
input[type='reset'],
input[type='button'] {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#header nav a[lang="zh-Hant-HK"] {
  font-family: 'Inter', 'Noto Sans HK', 'PingFang HK', 'Microsoft JhengHei', sans-serif;
  letter-spacing: normal;
}

.box p,
.box li,
.box ol,
#main > header p,
#main header.major p {
  color: #425049;
  font-weight: 400;
  line-height: 1.68;
}

/* Re-assert dark-teal Demo pipeline contrast after light .box p rule */
.demo-pipeline h2,
.demo-pipeline h3,
.demo-pipeline h4 {
  color: #ffffff;
}
.demo-pipeline p,
.box.demo-pipeline p {
  color: #dceae6;
}

#footer .copyright {
  margin: 0;
}

/* Traditional Chinese (Hong Kong) typographic rules (CONTENT-GUIDE.md §6) */
html[lang="zh-Hant-HK"] body,
html[lang="zh-Hant-HK"] input,
html[lang="zh-Hant-HK"] select,
html[lang="zh-Hant-HK"] textarea {
  font-family: 'Inter', 'Noto Sans HK', 'PingFang HK', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  line-height: 1.75;
}

html[lang="zh-Hant-HK"] h1,
html[lang="zh-Hant-HK"] h2,
html[lang="zh-Hant-HK"] h3,
html[lang="zh-Hant-HK"] h4,
html[lang="zh-Hant-HK"] #banner h2,
html[lang="zh-Hant-HK"] #header nav a,
html[lang="zh-Hant-HK"] .button {
  font-family: 'Plus Jakarta Sans', 'Noto Sans HK', 'PingFang HK', 'Microsoft JhengHei', sans-serif;
  letter-spacing: normal;
  line-height: 1.32;
}

html[lang="zh-Hant-HK"] em,
html[lang="zh-Hant-HK"] i,
html[lang="zh-Hant-HK"] p[style*="italic"] {
  font-style: normal !important;
}




