/* Axiom Aerials — refinements layered on the original theme.
   Uses the theme's own palette; nothing here restyles a section wholesale. */

:root {
  --ax-bg: #0a0a0c;
  --ax-surface: #171719;
  --ax-text: #f4f4f4;
  --ax-muted: #a1a1aa;
  --ax-cyan: #00a8ff;
  --ax-cyan-bright: #00d4ff;
  --ax-font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Browser surfaces in the brand palette */
::selection { background: rgb(0 168 255 / .35); color: #fff; }
html { scrollbar-color: #2a2a2e var(--ax-bg); accent-color: var(--ax-cyan); }
input, textarea { caret-color: var(--ax-cyan-bright); }
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--ax-cyan-bright);
  outline-offset: 3px;
}

/* Clips now arrive as <video> where the theme expected GIF <img> */
.axiom-portfolio__thumbnail,
.axiom-services__card-video { display: block; width: 100%; }

/* The theme faded thumbnails out on hover to reveal a preview video.
   The clip itself now moves, so keep it visible and ease in instead. */
.axiom-portfolio__item:hover .axiom-portfolio__thumbnail {
  opacity: 1;
  transform: scale(1.04);
}

/* Hero headline: same italic + bold split as every other heading on the page,
   instead of 900-weight caps with a cyan glow */
.axiom-hero__title {
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  text-transform: none;
  background: none;
  text-shadow: 0 2px 32px rgb(0 0 0 / .45);
}
.axiom-hero__title-italic { font-style: italic; font-weight: 200; color: rgb(255 255 255 / .78); }
.axiom-hero__title-bold { font-weight: 700; color: #fff; }
@media (max-width: 768px) {
  .axiom-hero__title { font-size: clamp(34px, 10vw, 48px); }
}

/* About: text and stats share the 1200px measure used by the team section;
   staggered stat circles become an aligned list on hairlines */
.axiom-about__container {
  max-width: 1200px;
  padding: 0 40px;
  grid-template-columns: minmax(0, 620px) minmax(0, 340px);
  justify-content: space-between;
  align-items: center;
  gap: 64px;
}
.axiom-about__subtitle { font-size: 19px; color: rgb(244 244 244 / .92); margin-bottom: 28px !important; }
.axiom-about__description { margin-bottom: 40px; }
.axiom-about__description p {
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.7;
  color: rgb(244 244 244 / .74);
}
.axiom-about__cta { gap: 10px; }

.axiom-about__stats { display: block; width: 100%; }
.axiom-about__stat,
.axiom-about__stat:first-child,
.axiom-about__stat:nth-child(3) { margin: 0; }
.axiom-about__stat { border-bottom: 1px solid rgb(255 255 255 / .1); }
.axiom-about__stat:first-child { border-top: 1px solid rgb(255 255 255 / .1); }
.axiom-about__stat-circle,
.axiom-about__stat-circle:hover {
  width: auto; height: auto;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0;
  border: 0; border-radius: 0;
  background: none;
  transform: none;
}
.axiom-about__stat-value {
  margin: 0;
  font-size: 56px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.axiom-about__stat-label {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: right;
  color: rgb(244 244 244 / .62);
}

@media (max-width: 1024px) {
  .axiom-about__container { grid-template-columns: 1fr; gap: 56px; }
  .axiom-about__description p { margin-inline: auto; }
  .axiom-about__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / .1); }
  .axiom-about__stat, .axiom-about__stat:first-child { border: 0; }
  .axiom-about__stat + .axiom-about__stat { border-left: 1px solid rgb(255 255 255 / .1); }
  .axiom-about__stat-circle, .axiom-about__stat-circle:hover {
    flex-direction: column; align-items: center; gap: 8px; padding: 24px 8px 0;
  }
  .axiom-about__stat-label { text-align: center; }
}
@media (max-width: 768px) {
  .axiom-about__container { padding: 0 24px; }
  .axiom-about__description p { font-size: 16px; }
  .axiom-about__stat-value { font-size: clamp(28px, 8.5vw, 36px); white-space: nowrap; }
  .axiom-about__stat-label { font-size: 11px; letter-spacing: .06em; }
}

/* Team: large square photo leading each card, replacing the 120px round avatar */
.axiom-team__card { flex-direction: column; gap: 24px; padding: 16px 16px 28px; text-align: left; }
.axiom-team__card-image {
  width: 100%; height: auto; aspect-ratio: 1;
  margin: 0; border-radius: 12px;
}
.axiom-team__card-image picture { display: block; width: 100%; height: 100%; }
.axiom-team__card-content { padding: 0 12px; }
.axiom-team__card-role { margin-bottom: 14px; }
.axiom-team__card-bio { max-width: 52ch; }
@media (min-width: 1024px) {
  .axiom-team__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Headings wrap between words, never inside them, and balance their lines */
.axiom-hero__title, .axiom-hero__tagline,
[class*="__title"], [class*="__main-title"], [class*="__philosophy-statement"] {
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}
@media (max-width: 600px) {
  .axiom-services__title-bold { font-size: clamp(28px, 9.4vw, 44px); }
}

/* Form placeholders at readable contrast (5.3:1 on the input fill) */
.axiom-contact__form ::placeholder,
#contact-form ::placeholder { color: #8e929c; opacity: 1; }

/* Engineering lists now read as sentence-case tags */
.axiom-what-we-do__items-list li { text-transform: none; }

/* Hand-written pages (privacy, 404) in the theme's voice */
.ax-page {
  min-height: 100svh;
  margin: 0;
  background: var(--ax-bg);
  color: var(--ax-text);
  font: 400 17px/1.65 var(--ax-font);
  -webkit-font-smoothing: antialiased;
}
.ax-page a { color: inherit; text-underline-offset: 3px; }
.ax-page__bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 28px 24px;
}
.ax-page__bar img { width: 140px; height: auto; }
.ax-page__bar a:last-child {
  padding: 10px 20px; border-radius: 999px;
  background: var(--ax-text); color: var(--ax-bg);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.ax-page main { max-width: 720px; margin: 0 auto; padding: 72px 24px 120px; }
.ax-page h1 { margin: 0 0 32px; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.ax-page h1 em { font-style: italic; font-weight: 300; color: var(--ax-muted); }
.ax-page h2 { margin: 44px 0 10px; font-size: 22px; letter-spacing: -.01em; }
.ax-page p, .ax-page li { color: #c8c8cf; }
.ax-page p { margin: 0 0 12px; }
.ax-page ul { margin: 0; padding-left: 20px; }
.ax-page .ax-page__note { margin-top: 48px; font-size: 14px; color: var(--ax-muted); }
.ax-page .ax-page__home {
  display: inline-block; margin-top: 8px; padding: 14px 26px; border-radius: 999px;
  border: 1px solid rgb(244 244 244 / .3); text-decoration: none; font-weight: 600;
}
.ax-page .ax-page__home:hover { border-color: var(--ax-text); }

@media (prefers-reduced-motion: reduce) {
  .axiom-portfolio__item:hover .axiom-portfolio__thumbnail { transform: none; }
}
