/* ==========================================================================
   Abdulrahman Algethami: site stylesheet, v2
   Direction: night-shift operations room. A deep navy canvas lit by the
   ultramarine of the logo, a drafting grid that fades into the dark, and
   warm sand for the figures worth remembering. The portrait sits in an arch
   with its achievements orbiting it; projects are shown inside browser
   windows on their own brand colors.
   Every class is prefixed "aa-" so it never collides with Elementor or the
   Hello theme. The build step scopes every rule under ".aa".
   ========================================================================== */

:root {
  --aa-bg: #070A18;            /* page */
  --aa-bg-2: #0A0F23;          /* alternate band */
  --aa-surface: #0F1530;       /* cards */
  --aa-surface-2: #151C3D;     /* raised */
  --aa-border: #222A55;
  --aa-border-soft: rgba(140, 152, 255, 0.16);
  --aa-text: #EEF0FA;
  --aa-muted: #A3AACB;
  --aa-dim: #737BA6;
  --aa-accent: #7884FF;        /* links, lines, icons on dark */
  --aa-accent-strong: #4F5DFF; /* button fill (white text) */
  --aa-accent-soft: rgba(120, 132, 255, 0.14);
  --aa-glow: rgba(79, 93, 255, 0.30);
  --aa-sand: #E9D5B0;          /* figures and highlights */
  --aa-studio: #8A8A8A;        /* portrait backdrop */

  --aa-font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --aa-wide: 125%;
  --aa-semi: 87.5%;
  --aa-t-xs: 0.8125rem;
  --aa-t-sm: 0.9375rem;
  --aa-t-md: 1.0625rem;
  --aa-t-lg: 1.25rem;
  --aa-t-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --aa-t-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --aa-t-3xl: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  --aa-t-display: clamp(2.6rem, 1rem + 4.6vw, 5rem);

  --aa-max: 1200px;
  --aa-header: 72px;
  --aa-section: clamp(72px, 8vw, 112px);
  --aa-r-sm: 10px;
  --aa-r: 18px;
  --aa-r-lg: 26px;
  --aa-ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

body { background: var(--aa-bg); color: var(--aa-text); }
body::after {
  /* faint film grain for depth */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------------------------------------------------------- */
.aa, .aa *, .aa *::before, .aa *::after { box-sizing: border-box; }
.aa {
  font-family: var(--aa-font);
  font-size: var(--aa-t-md);
  line-height: 1.6;
  color: var(--aa-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.aa img { display: block; max-width: 100%; height: auto; }
.aa p { margin: 0; }
.aa ul, .aa ol, .aa dl, .aa dd, .aa figure { margin: 0; padding: 0; }
.aa ul, .aa ol { list-style: none; }
.aa h1, .aa h2, .aa h3, .aa h4 { margin: 0; padding: 0; font: inherit; color: inherit; text-transform: none; text-wrap: balance; }
.aa a { color: inherit; }
.aa a:focus-visible, .aa button:focus-visible, .aa summary:focus-visible { outline: 2px solid var(--aa-accent); outline-offset: 3px; border-radius: 6px; }
.aa .aa-icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout -------------------------------------------------------- */
.aa .aa-band {
  position: relative;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.aa .aa-wrap { position: relative; max-width: var(--aa-max); margin-inline: auto; padding-inline: clamp(0px, 3vw - 8px, 24px); }
.aa .aa-section { padding-block: var(--aa-section); }
.aa .aa-section + .aa-section { padding-top: 0; }
.aa .aa-section.aa-flush { padding-top: 0; }
.aa .aa-alt { background: var(--aa-bg-2); border-block: 1px solid var(--aa-border); }
.aa .aa-section.aa-alt { padding-top: var(--aa-section); }
.aa .aa-alt + .aa-section { padding-top: var(--aa-section); }
.aa .aa-stack { display: grid; gap: 20px; }
.aa .aa-stack--tight { gap: 8px; }

/* ---------- Type ---------------------------------------------------------- */
.aa .aa-display { font-size: var(--aa-t-display); font-stretch: var(--aa-wide); font-weight: 800; line-height: .96; letter-spacing: -0.03em; }
.aa .aa-h1 { font-size: var(--aa-t-3xl); font-stretch: var(--aa-wide); font-weight: 780; line-height: 1.02; letter-spacing: -0.025em; }
.aa .aa-h2 { font-size: var(--aa-t-2xl); font-stretch: var(--aa-wide); font-weight: 720; line-height: 1.08; letter-spacing: -0.02em; }
.aa .aa-h3 { font-size: var(--aa-t-xl); font-stretch: 110%; font-weight: 680; line-height: 1.2; letter-spacing: -0.01em; }
.aa .aa-lead { font-size: var(--aa-t-lg); line-height: 1.55; max-width: 60ch; color: var(--aa-muted); }
.aa .aa-body { max-width: 66ch; display: grid; gap: 1em; color: var(--aa-muted); }
.aa .aa-body strong { color: var(--aa-text); font-weight: 600; }
.aa .aa-body .aa-actions { margin-top: 12px; }
.aa .aa-muted { color: var(--aa-muted); }
.aa .aa-label { font-size: var(--aa-t-sm); font-stretch: var(--aa-semi); font-weight: 600; letter-spacing: .01em; color: var(--aa-dim); }
.aa .aa-num { font-variant-numeric: tabular-nums; }
.aa .aa-link { color: var(--aa-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s; }
.aa .aa-link:hover { color: var(--aa-text); }
.aa .aa-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  justify-self: start;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--aa-border-soft);
  border-radius: 999px;
  background: rgba(15, 21, 48, .6);
  font-size: var(--aa-t-sm); font-weight: 600; color: var(--aa-text);
}
.aa .aa-kicker::before { content: ""; width: 8px; height: 8px; background: var(--aa-accent); transform: rotate(45deg); border-radius: 1px; box-shadow: 0 0 12px var(--aa-accent); }

/* ---------- Buttons ------------------------------------------------------- */
.aa .aa-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--aa-border);
  border-radius: 999px;
  background: rgba(15, 21, 48, .55);
  color: var(--aa-text);
  font: 600 var(--aa-t-sm)/1.2 var(--aa-font);
  font-stretch: 108%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--aa-ease), box-shadow .3s;
}
.aa .aa-btn:hover { border-color: var(--aa-accent); background: var(--aa-surface-2); transform: translateY(-2px); }
.aa .aa-btn:active { transform: translateY(0) scale(.97); }
.aa .aa-btn--primary {
  background: linear-gradient(180deg, #6371FF, var(--aa-accent-strong));
  border-color: #6A77FF;
  color: #FFFFFF;
  box-shadow: 0 10px 30px -10px var(--aa-glow), inset 0 1px 0 rgba(255,255,255,.25);
}
.aa .aa-btn--primary:hover { background: linear-gradient(180deg, #7380FF, #5A68FF); border-color: #8C97FF; box-shadow: 0 16px 40px -12px rgba(79,93,255,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.aa .aa-btn--small { min-height: 40px; padding: 8px 16px; }
.aa .aa-btn .aa-icon { width: 1.1em; height: 1.1em; }
.aa .aa-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.aa .aa-round {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--aa-border);
  color: var(--aa-text);
  transition: transform .4s var(--aa-ease), background-color .3s, border-color .3s, color .3s;
}

/* ---------- Header -------------------------------------------------------- */
.aa .aa-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(7, 10, 24, .5);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.aa .aa-header.is-scrolled { background: rgba(7, 10, 24, .82); border-bottom-color: var(--aa-border); }
.aa .aa-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--aa-header); }
.aa .aa-brand { display: inline-flex; align-items: center; gap: 12px; font-size: .9375rem; font-stretch: var(--aa-wide); font-weight: 760; text-decoration: none; white-space: nowrap; }
.aa .aa-brand__mark {
  display: block; flex: none;
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: #0B0F33;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 6px 18px -6px var(--aa-glow);
}
.aa .aa-nav { display: flex; align-items: center; gap: 20px; }
.aa .aa-nav__list { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--aa-border); border-radius: 999px; background: rgba(15, 21, 48, .5); }
.aa .aa-nav__link { display: block; padding: 7px 14px; border-radius: 999px; font-size: var(--aa-t-sm); font-weight: 500; text-decoration: none; color: var(--aa-muted); transition: color .2s, background-color .2s; }
.aa .aa-nav__link:hover { color: var(--aa-text); background: var(--aa-accent-soft); }
.aa .aa-nav__link[aria-current="page"] { color: var(--aa-text); background: var(--aa-surface-2); box-shadow: inset 0 0 0 1px var(--aa-border); }
.aa .aa-menu { display: none; }
.aa .aa-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 600 var(--aa-t-sm)/1 var(--aa-font); padding: 11px 16px; border: 1px solid var(--aa-border); border-radius: 999px; background: rgba(15,21,48,.6); }
.aa .aa-menu > summary::-webkit-details-marker { display: none; }
.aa .aa-menu[open] > summary { background: var(--aa-text); color: var(--aa-bg); }
.aa .aa-menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(7, 10, 24, .96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--aa-border);
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
}
.aa .aa-menu__panel .aa-nav__link { padding: 14px 4px; border-radius: 0; font-size: var(--aa-t-lg); color: var(--aa-text); border-bottom: 1px solid var(--aa-border); background: none; box-shadow: none; }
.aa .aa-menu__panel .aa-nav__link[aria-current="page"] { color: var(--aa-accent); }
.aa .aa-menu__panel .aa-btn { margin-top: 20px; width: 100%; }
@media (max-width: 939px) { .aa .aa-nav { display: none; } .aa .aa-menu { display: block; } }
@media (max-width: 420px) { .aa .aa-brand { font-size: .8125rem; gap: 10px; } .aa .aa-brand__mark { width: 32px; height: 32px; } }

/* ---------- Glow backgrounds ---------------------------------------------- */
.aa .aa-glowbg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.aa .aa-glowbg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(140,152,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(140,152,255,.075) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 62% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 62% 35%, #000 25%, transparent 75%);
}
.aa .aa-glowbg::after {
  content: ""; position: absolute; right: -10%; top: -25%;
  width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(79,93,255,.32), rgba(79,93,255,0) 62%);
}
.aa .aa-spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(460px circle at var(--mx, 70%) var(--my, 30%), rgba(120,132,255,.14), transparent 60%); }

/* ---------- Home hero ----------------------------------------------------- */
.aa .aa-hero { position: relative; overflow: hidden; padding-top: calc(var(--aa-header) + env(safe-area-inset-top, 0px)); }
.aa .aa-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; min-height: min(760px, 92vh); padding-block: 48px 80px; }
.aa .aa-hero__text { display: grid; gap: 28px; min-width: 0; }
.aa .aa-hero__lead { font-size: var(--aa-t-lg); line-height: 1.55; max-width: 44ch; color: var(--aa-muted); }
.aa .aa-word { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em .16em; margin-block: -.06em -.16em; }
.aa .aa-word > span { display: inline-block; }
.aa .aa-word--grad > span { background: linear-gradient(100deg, #FFFFFF 10%, #C9CEFF 55%, #8C97FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aa .aa-hero__visual { position: relative; justify-self: center; width: min(100%, 430px); }
.aa .aa-hero__visual::before {
  content: ""; position: absolute; inset: 10% -12% -6% -12%;
  background: radial-gradient(closest-side, rgba(79,93,255,.55), rgba(79,93,255,0));
}
.aa .aa-hero__visual::after {
  content: ""; position: absolute; inset: 22px -18px -18px 22px;
  border: 1px solid rgba(140,152,255,.45);
  border-radius: 999px 999px 30px 30px;
  pointer-events: none;
}
.aa .aa-portrait { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 30px 30px; overflow: hidden; background: var(--aa-studio); box-shadow: 0 40px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08); }
.aa .aa-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.aa .aa-badges { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.aa .aa-badge {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--aa-border-soft);
  border-radius: 16px;
  background: rgba(13, 18, 42, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
  white-space: nowrap;
  pointer-events: auto;
}
.aa .aa-badge__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--aa-accent-soft); color: var(--aa-accent); }
.aa .aa-badge__icon--sand { background: rgba(233, 213, 176, .14); color: var(--aa-sand); }
.aa .aa-badge__text strong { display: block; font-size: var(--aa-t-sm); font-weight: 700; line-height: 1.2; }
.aa .aa-badge__text span { display: block; font-size: var(--aa-t-xs); color: var(--aa-muted); line-height: 1.3; }
.aa .aa-badge--1 { left: -14%; top: 52%; }
.aa .aa-badge--2 { right: -12%; top: 66%; }
.aa .aa-badge--3 { left: -8%; bottom: 7%; }
@media (min-width: 940px) and (max-width: 1259px) { .aa .aa-badge--2 { right: -2%; } }
@media (max-width: 939px) {
  .aa .aa-hero__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 64px; gap: 56px; }
  .aa .aa-hero__visual { width: min(70%, 360px); }
  .aa .aa-badge--1 { left: -22%; } .aa .aa-badge--2 { right: -24%; } .aa .aa-badge--3 { left: -16%; }
}
@media (max-width: 519px) {
  .aa .aa-hero__visual { width: 68%; }
  .aa .aa-badge { padding: 6px 10px 6px 6px; gap: 7px; border-radius: 12px; }
  .aa .aa-badge__icon { width: 26px; height: 26px; border-radius: 8px; }
  .aa .aa-badge__icon .aa-icon { width: 15px; height: 15px; }
  .aa .aa-badge__text strong { font-size: .75rem; }
  .aa .aa-badge__text span { font-size: .625rem; }
  .aa .aa-badge--1 { left: -20%; top: 50%; } .aa .aa-badge--2 { right: -20%; top: 66%; } .aa .aa-badge--3 { left: -16%; bottom: 3%; }
}
@media (max-width: 359px) { .aa .aa-badge--2 { right: -24%; top: 68%; } .aa .aa-badge--3 { left: -20%; } }

/* Marquee */
.aa .aa-marquee { position: relative; border-block: 1px solid var(--aa-border); background: rgba(10, 15, 35, .7); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.aa .aa-marquee__track { display: flex; width: max-content; }
.aa .aa-marquee__list { display: flex; }
.aa .aa-marquee__list li { display: flex; align-items: center; gap: 16px; padding: 20px 16px; font-size: var(--aa-t-lg); font-stretch: 115%; font-weight: 600; color: var(--aa-muted); white-space: nowrap; }
.aa .aa-marquee__list li::after { content: ""; width: 8px; height: 8px; margin-left: 16px; background: var(--aa-accent); transform: rotate(45deg); border-radius: 1px; opacity: .8; }

/* ---------- Section heads ------------------------------------------------- */
.aa .aa-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
.aa .aa-head__text { display: grid; gap: 14px; }
.aa .aa-head .aa-lead { max-width: 52ch; }

/* ---------- Glow cards (shared) ------------------------------------------- */
.aa .aa-glow-card { position: relative; isolation: isolate; }
.aa .aa-glow-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(120,132,255,.16), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.aa .aa-glow-card:hover::before { opacity: 1; }
.aa .aa-card-base { background: linear-gradient(180deg, rgba(21,28,61,.75), rgba(15,21,48,.75)); border: 1px solid var(--aa-border); border-radius: var(--aa-r); transition: border-color .3s, transform .4s var(--aa-ease); }
.aa .aa-card-base:hover { border-color: rgba(140,152,255,.38); }

/* ---------- Process flow -------------------------------------------------- */
.aa .aa-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; position: relative; counter-reset: aa-step; }
.aa .aa-flow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aa .aa-flow::before, .aa .aa-flow::after { content: ""; position: absolute; left: 11px; right: 11px; top: 11px; height: 2px; background: var(--aa-border); }
.aa .aa-flow::after { background: linear-gradient(90deg, var(--aa-accent), #B3BAFF); box-shadow: 0 0 14px var(--aa-accent); transform-origin: left center; animation: aa-draw 1.2s var(--aa-ease) .3s both; }
.aa .aa-flow__step { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr; gap: 22px; counter-increment: aa-step; }
.aa .aa-flow__node { width: 24px; height: 24px; border-radius: 50%; background: var(--aa-bg); border: 2px solid var(--aa-accent); box-shadow: 0 0 0 6px var(--aa-bg); }
.aa .aa-alt .aa-flow__node { box-shadow: 0 0 0 6px var(--aa-bg-2); }
.aa .aa-flow__step:nth-child(1) .aa-flow__node { animation: aa-fill .3s ease .3s both; }
.aa .aa-flow__step:nth-child(2) .aa-flow__node { animation: aa-fill .3s ease .65s both; }
.aa .aa-flow__step:nth-child(3) .aa-flow__node { animation: aa-fill .3s ease 1s both; }
.aa .aa-flow__step:nth-child(4) .aa-flow__node { animation: aa-fill .3s ease 1.35s both; }
.aa .aa-flow__card { position: relative; overflow: hidden; padding: 28px 24px 26px; display: grid; gap: 10px; align-content: start; }
.aa .aa-flow__card::after {
  content: counter(aa-step, decimal-leading-zero);
  position: absolute; right: 14px; top: 4px; z-index: -1;
  font-size: 5rem; font-stretch: var(--aa-wide); font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(140,152,255,.22);
}
.aa .aa-flow__title { font-size: var(--aa-t-xl); font-stretch: var(--aa-wide); font-weight: 720; line-height: 1.15; }
.aa .aa-flow__text { color: var(--aa-muted); max-width: 30ch; }
.aa .aa-flow__card:hover { transform: translateY(-4px); }
@keyframes aa-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes aa-draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes aa-fill { from { background: var(--aa-bg); } to { background: var(--aa-accent); } }
@media (max-width: 939px) {
  .aa .aa-flow, .aa .aa-flow--3 { grid-template-columns: 1fr; gap: 16px; padding-left: 44px; }
  .aa .aa-flow::before, .aa .aa-flow::after { left: 11px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: var(--aa-border); }
  .aa .aa-flow::after { background: linear-gradient(180deg, var(--aa-accent), #B3BAFF); transform-origin: center top; animation-name: aa-draw-y; }
  .aa .aa-flow__node { position: absolute; left: -44px; top: 28px; }
}

/* ---------- Bento highlights ---------------------------------------------- */
.aa .aa-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.aa .aa-tile { position: relative; overflow: hidden; padding: 26px; display: grid; align-content: space-between; gap: 18px; min-width: 0; }
.aa .aa-tile__top { display: grid; gap: 14px; align-content: start; }
.aa .aa-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--aa-accent-soft); color: var(--aa-accent); }
.aa .aa-tile__icon--sand { background: rgba(233, 213, 176, .12); color: var(--aa-sand); }
.aa .aa-tile__title { font-size: var(--aa-t-lg); font-weight: 680; line-height: 1.3; }
.aa .aa-tile__note { font-size: var(--aa-t-sm); color: var(--aa-muted); }
.aa .aa-tile__big { font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem); font-stretch: var(--aa-wide); font-weight: 800; line-height: .95; letter-spacing: -0.03em; color: var(--aa-sand); font-variant-numeric: tabular-nums; }
.aa .aa-tile--feature {
  grid-column: span 2; grid-row: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; align-content: stretch;
  background: radial-gradient(520px circle at 85% 15%, rgba(79,93,255,.28), transparent 60%), linear-gradient(180deg, rgba(21,28,61,.9), rgba(15,21,48,.9));
}
.aa .aa-tile--feature .aa-tile__top { align-self: stretch; align-content: space-between; gap: 22px; }
.aa .aa-tile--wide { grid-column: span 2; }
.aa .aa-progress { position: relative; height: 8px; border-radius: 999px; background: var(--aa-border); overflow: hidden; }
.aa .aa-progress span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, var(--aa-accent), #C6CBFF); animation: aa-indeterminate 2.2s var(--aa-ease) infinite; }
@keyframes aa-indeterminate { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.aa .aa-bento--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
.aa .aa-bento--2 .aa-tile--feature { grid-column: 1 / -1; grid-row: auto; }
.aa .aa-bento--2 .aa-tile--wide { grid-column: 1 / -1; }
@media (max-width: 999px) {
  .aa .aa-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aa .aa-tile--feature { grid-template-columns: 1fr; grid-row: auto; }
}
@media (max-width: 599px) {
  .aa .aa-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .aa .aa-tile--feature, .aa .aa-tile--wide { grid-column: auto; }
}

.aa .aa-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.aa .aa-tags li { font-size: var(--aa-t-xs); font-weight: 600; font-stretch: var(--aa-semi); padding: 5px 11px; border-radius: 999px; background: var(--aa-accent-soft); border: 1px solid var(--aa-border-soft); color: var(--aa-text); }
.aa .aa-figure { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.aa .aa-figure__num { font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); font-stretch: var(--aa-wide); font-weight: 800; line-height: .9; letter-spacing: -0.03em; color: var(--aa-sand); font-variant-numeric: tabular-nums; }
.aa .aa-figure__text { color: var(--aa-muted); max-width: 18ch; line-height: 1.35; }

/* SamaLinks schematic */
.aa .aa-schematic { width: 100%; max-width: 400px; justify-self: center; }
.aa .aa-schematic svg { display: block; width: 100%; height: auto; overflow: visible; }
.aa .aa-schematic .s-ink { stroke: #DDE1FA; fill: none; stroke-width: 1.5; }
.aa .aa-schematic .s-fill { fill: #121939; }
.aa .aa-schematic .s-cone { fill: var(--aa-accent); fill-opacity: .1; stroke: var(--aa-accent); stroke-width: 1; stroke-dasharray: 4 4; }
.aa .aa-schematic .s-dot { fill: var(--aa-dim); }
.aa .aa-schematic .s-hit { fill: var(--aa-sand); }
.aa .aa-schematic .s-box { stroke: var(--aa-sand); fill: none; stroke-width: 1.4; }
.aa .aa-schematic .s-dash { stroke: #B3BAFF; stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; fill: none; }
.aa .aa-schematic .s-lead { stroke: var(--aa-dim); stroke-width: 1; fill: none; }
.aa .aa-schematic text { fill: var(--aa-muted); font: 500 11px var(--aa-font); }

/* ---------- Project cards (logo on brand stage) -------------------------- */
.aa .aa-shows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.aa .aa-show { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--aa-r-lg); }
.aa .aa-show__stage {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid; place-items: center; align-content: center; gap: 18px;
  background: var(--stage);
  border: 1px solid rgba(255,255,255,.08); border-bottom: 0;
  border-radius: var(--aa-r-lg) var(--aa-r-lg) 0 0;
}
.aa .aa-rings, .aa .aa-show__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 46%, rgba(255,255,255,.09) 0 1px, transparent 1px 58px);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 10%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 46%, #000 10%, transparent 68%);
}
.aa .aa-show__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 50% 0%, rgba(255,255,255,.14), transparent 70%); }
.aa .aa-logo {
  position: relative; z-index: 1;
  display: block; width: var(--logo, 128px); aspect-ratio: 1;
  border-radius: 27%; overflow: hidden; background: #000;
  box-shadow: 0 26px 50px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.16), 0 0 60px -10px var(--glow, rgba(79,93,255,.5));
  transition: transform .6s var(--aa-ease);
}
.aa .aa-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); }
.aa .aa-logo--light { background: #fff; }
.aa .aa-titlemark { display: flex; align-items: center; gap: 14px; --logo: 52px; }
.aa .aa-titlemark .aa-logo { flex: none; border-radius: 15px; box-shadow: 0 12px 26px -12px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.2); }
.aa .aa-domain { position: relative; z-index: 1; padding: 5px 14px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); font-size: var(--aa-t-xs); font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.85); }
.aa .aa-show:hover .aa-logo { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
.aa .aa-show__body { display: grid; gap: 18px; align-content: space-between; padding: 24px 26px 26px; background: var(--aa-surface); border: 1px solid var(--aa-border); border-top: 0; border-radius: 0 0 var(--aa-r-lg) var(--aa-r-lg); }
.aa .aa-show__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.aa .aa-show__text { display: grid; gap: 8px; min-width: 0; }
.aa .aa-show__meta { font-size: var(--aa-t-sm); color: var(--proj, var(--aa-dim)); font-weight: 600; }
.aa .aa-show__title { font-size: var(--aa-t-xl); font-stretch: var(--aa-wide); font-weight: 740; line-height: 1.1; }
.aa .aa-show__link { text-decoration: none; }
.aa .aa-show__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--aa-r-lg); }
.aa .aa-show__link:focus-visible { outline: none; }
.aa .aa-show__link:focus-visible::after { outline: 2px solid var(--aa-accent); outline-offset: 3px; }
.aa .aa-show__desc { color: var(--aa-muted); }
.aa .aa-show__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; }
.aa .aa-show:hover .aa-round { transform: rotate(-45deg); background: var(--aa-text); color: var(--aa-bg); border-color: var(--aa-text); }
@media (max-width: 799px) { .aa .aa-shows { grid-template-columns: 1fr; } }

/* Project color stages */
.aa-p-aal { --stage: radial-gradient(90% 80% at 80% 0%, rgba(212,160,74,.55), transparent 60%), linear-gradient(160deg, #47331A, #1A1209); --proj: #E2B66B; --glow: rgba(226,182,107,.45); }
.aa-p-sft { --stage: radial-gradient(90% 80% at 15% 0%, rgba(30,211,122,.45), transparent 60%), linear-gradient(160deg, #0C2A1F, #050E0B); --proj: #36DE8E; --glow: rgba(54,222,142,.4); }
.aa-p-techup { --stage: radial-gradient(90% 80% at 80% 0%, rgba(176,156,255,.6), transparent 60%), linear-gradient(160deg, #3A2F78, #17132F); --proj: #C3B4FF; --glow: rgba(195,180,255,.5); --zoom: 1.08; }
.aa-p-senwan { --stage: radial-gradient(90% 80% at 20% 0%, rgba(240,145,79,.5), transparent 60%), linear-gradient(160deg, #2F4436, #121A15); --proj: #F3A36B; --glow: rgba(243,163,107,.45); }

/* ---------- Timeline ------------------------------------------------------ */
.aa .aa-timeline { position: relative; display: grid; gap: 14px; padding-left: 40px; }
.aa .aa-timeline::before { content: ""; position: absolute; left: 11px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--aa-accent), rgba(120,132,255,.15)); }
.aa .aa-tl { position: relative; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 8px 28px; padding: 22px 26px; }
.aa .aa-tl::after { content: ""; position: absolute; left: -36px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--aa-bg); border: 2px solid var(--aa-accent); box-shadow: 0 0 0 5px var(--aa-bg); }
.aa .aa-tl:first-child::after { background: var(--aa-accent); box-shadow: 0 0 0 5px var(--aa-bg), 0 0 16px var(--aa-accent); }
.aa .aa-tl__when { font-size: var(--aa-t-sm); color: var(--aa-sand); font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 2px; }
.aa .aa-tl__what { display: grid; gap: 6px; min-width: 0; }
.aa .aa-tl__title { font-size: var(--aa-t-lg); font-weight: 680; line-height: 1.3; }
.aa .aa-tl__org { color: var(--aa-muted); }
.aa .aa-tl__list { display: grid; gap: 8px; margin-top: 8px; color: var(--aa-muted); max-width: 68ch; }
.aa .aa-tl__list li, .aa .aa-checks li { position: relative; padding-left: 26px; }
.aa .aa-tl__list li::before, .aa .aa-checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--aa-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237884FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.aa .aa-checks { display: grid; gap: 10px; color: var(--aa-muted); }
@media (max-width: 699px) { .aa .aa-tl { grid-template-columns: 1fr; padding: 20px; } .aa .aa-timeline { padding-left: 32px; } .aa .aa-tl::after { left: -28px; } .aa .aa-timeline::before { left: 7px; } }

/* ---------- Page heads ---------------------------------------------------- */
.aa .aa-pagehead-band { position: relative; overflow: hidden; padding-top: calc(var(--aa-header) + env(safe-area-inset-top, 0px)); }
.aa .aa-pagehead { position: relative; display: grid; gap: 22px; padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px); }
.aa .aa-pagehead .aa-h1 { max-width: 18ch; }
.aa .aa-ghost {
  position: absolute; right: -1vw; bottom: -.1em; z-index: 0;
  font-size: clamp(5rem, 2rem + 14vw, 17rem); font-stretch: var(--aa-wide); font-weight: 800; line-height: .8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(140,152,255,.16);
  white-space: nowrap; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 92%); mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}
.aa .aa-pagehead > :not(.aa-ghost) { position: relative; z-index: 1; }
.aa .aa-crumb { display: flex; align-items: center; gap: 8px; font-size: var(--aa-t-sm); color: var(--aa-dim); }
.aa .aa-crumb a { color: var(--aa-muted); text-decoration: none; }
.aa .aa-crumb a:hover { color: var(--aa-text); }
.aa .aa-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.aa .aa-chip { display: grid; gap: 2px; padding: 10px 16px; border: 1px solid var(--aa-border); border-radius: 14px; background: rgba(15,21,48,.6); min-width: 0; }
.aa .aa-chip dt { font-size: var(--aa-t-xs); color: var(--aa-dim); }
.aa .aa-chip dd { font-size: var(--aa-t-sm); font-weight: 650; overflow-wrap: anywhere; }
.aa .aa-chip a { color: var(--proj, var(--aa-accent)); }

/* ---------- Generic card grids ------------------------------------------- */
.aa .aa-grid { display: grid; gap: 16px; }
.aa .aa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aa .aa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aa .aa-card { padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.aa .aa-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.aa .aa-card__title { font-size: var(--aa-t-lg); font-weight: 680; line-height: 1.3; }
.aa .aa-card__meta { font-size: var(--aa-t-sm); color: var(--aa-sand); font-weight: 600; }
.aa .aa-card__text { color: var(--aa-muted); }
.aa .aa-card:hover { transform: translateY(-3px); }
@media (max-width: 899px) { .aa .aa-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .aa .aa-grid--2, .aa .aa-grid--3 { grid-template-columns: 1fr; } }

.aa .aa-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--aa-t-xs); font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(233,213,176,.12); color: var(--aa-sand); }

/* Record page sections */
.aa .aa-record { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 28px 48px; padding-block: 56px; border-top: 1px solid var(--aa-border); }
.aa .aa-record:first-child { border-top: 0; padding-top: 0; }
.aa .aa-record__side { display: grid; gap: 10px; align-content: start; position: sticky; top: calc(var(--aa-header) + 24px); align-self: start; }
.aa .aa-record__name { font-size: var(--aa-t-xl); font-stretch: var(--aa-wide); font-weight: 720; line-height: 1.15; }
.aa .aa-record__count { font-size: var(--aa-t-sm); color: var(--aa-dim); }
@media (max-width: 899px) { .aa .aa-record { grid-template-columns: 1fr; } .aa .aa-record__side { position: static; } }
.aa .aa-skillcloud { display: flex; flex-wrap: wrap; gap: 10px; }
.aa .aa-skillcloud li { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--aa-border); background: rgba(15,21,48,.6); font-weight: 550; transition: border-color .3s, background-color .3s, transform .3s var(--aa-ease); }
.aa .aa-skillcloud li:hover { border-color: var(--aa-accent); background: var(--aa-accent-soft); transform: translateY(-2px); }

/* ---------- About -------------------------------------------------------- */
.aa .aa-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.aa .aa-arch { position: relative; width: min(100%, 400px); justify-self: center; }
.aa .aa-arch::before { content: ""; position: absolute; inset: 10% -14% -6% -14%; background: radial-gradient(closest-side, rgba(79,93,255,.45), rgba(79,93,255,0)); }
.aa .aa-arch::after { content: ""; position: absolute; inset: 20px -16px -16px 20px; border: 1px solid rgba(140,152,255,.45); border-radius: 999px 999px 28px 28px; pointer-events: none; }
.aa .aa-arch img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 999px 999px 28px 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.aa .aa-arch .aa-badge { z-index: 2; left: -14%; bottom: 10%; }
@media (max-width: 899px) { .aa .aa-split { grid-template-columns: 1fr; } .aa .aa-arch { width: min(76%, 360px); } }

/* ---------- Case study ---------------------------------------------------- */
.aa .aa-case-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.aa .aa-case-head .aa-pagehead { position: static; }
.aa .aa-brandstage {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center;
  display: grid; place-items: center; align-content: center; gap: 22px;
  border-radius: 32px; background: var(--stage);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
  --logo: clamp(140px, 40%, 200px);
}
.aa .aa-brandstage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 50% 45%, rgba(255,255,255,.09) 0 1px, transparent 1px 64px); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 72%); mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 72%); }
.aa .aa-brandstage::after { content: ""; position: absolute; left: 50%; top: 45%; z-index: -1; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); opacity: 0; }
.aa .aa-case-head .aa-actions { margin-top: 6px; }
@media (max-width: 939px) { .aa .aa-case-head { grid-template-columns: 1fr; } .aa .aa-brandstage { max-width: 380px; } .aa .aa-case-head .aa-pagehead { padding-bottom: 8px; } }

/* Project picker */
.aa .aa-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aa .aa-pick {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px 16px 16px;
  border-radius: var(--aa-r);
  background: linear-gradient(180deg, rgba(21,28,61,.75), rgba(15,21,48,.75));
  border: 1px solid var(--aa-border);
  text-decoration: none;
  transition: border-color .3s, transform .4s var(--aa-ease);
  --logo: 56px;
}
.aa .aa-pick::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--stage); opacity: 0; transition: opacity .4s; }
.aa .aa-pick > * { position: relative; z-index: 1; }
.aa .aa-pick .aa-logo { border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.14); }
.aa .aa-pick__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.aa .aa-pick__text strong { font-size: var(--aa-t-lg); font-stretch: 112%; font-weight: 720; line-height: 1.2; }
.aa .aa-pick__text span { font-size: var(--aa-t-sm); color: var(--aa-muted); }
.aa .aa-pick .aa-round { width: 40px; height: 40px; }
.aa .aa-pick:hover { border-color: rgba(255,255,255,.22); transform: translateY(-3px); }
.aa .aa-pick:hover::before { opacity: .9; }
.aa .aa-pick:hover .aa-round { transform: rotate(-45deg); background: #fff; color: #0A0D22; border-color: #fff; }
.aa .aa-pick:hover .aa-pick__text span { color: rgba(255,255,255,.8); }
@media (max-width: 899px) { .aa .aa-picker { grid-template-columns: 1fr; } }

/* ---------- Services ------------------------------------------------------ */
.aa .aa-service { padding: 30px; display: grid; gap: 18px; align-content: start; }
.aa .aa-service__name { font-size: var(--aa-t-xl); font-stretch: 112%; font-weight: 720; line-height: 1.2; }
.aa .aa-service__for { font-size: var(--aa-t-sm); color: var(--aa-sand); font-weight: 600; }
.aa .aa-service__gets { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--aa-border); }
.aa .aa-service__gets dt { font-size: var(--aa-t-sm); color: var(--aa-dim); }
.aa .aa-service__gets dd { display: grid; gap: 8px; color: var(--aa-text); }
.aa .aa-service__gets dd span { position: relative; padding-left: 26px; }
.aa .aa-service__gets dd span::before { content: ""; position: absolute; left: 0; top: .4em; width: 15px; height: 15px; border-radius: 50%; background: var(--aa-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237884FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* ---------- Contact ------------------------------------------------------- */
.aa .aa-channels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.aa .aa-channel { grid-column: span 2; padding: 26px; display: grid; gap: 18px; align-content: space-between; min-width: 0; }
.aa .aa-channel--lg { grid-column: span 3; }
.aa .aa-channel__name { display: flex; align-items: center; gap: 10px; color: var(--aa-muted); font-size: var(--aa-t-sm); }
.aa .aa-channel__name .aa-tile__icon { width: 40px; height: 40px; border-radius: 12px; }
.aa .aa-channel__value { font-size: var(--aa-t-xl); font-stretch: 108%; font-weight: 680; overflow-wrap: anywhere; min-width: 0; }
.aa .aa-channel--lg .aa-channel__value { font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem); }
.aa .aa-channel__value[id] { user-select: all; }
.aa .aa-channel__value a { text-decoration: none; }
.aa .aa-copy[data-copied="true"] { background: var(--aa-text); color: var(--aa-bg); border-color: var(--aa-text); }
@media (max-width: 899px) { .aa .aa-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aa .aa-channel { grid-column: span 1; } .aa .aa-channel--lg { grid-column: 1 / -1; } }
@media (max-width: 599px) { .aa .aa-channels { grid-template-columns: 1fr; } .aa .aa-channel, .aa .aa-channel--lg { grid-column: auto; } .aa .aa-channel--lg .aa-channel__value { font-size: 1.25rem; font-stretch: 100%; } }

/* ---------- Footer -------------------------------------------------------- */
.aa .aa-footer { position: relative; overflow: hidden; background: var(--aa-bg-2); border-top: 1px solid var(--aa-border); }
.aa .aa-footer::before { content: ""; position: absolute; left: -10%; top: -40%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(79,93,255,.28), transparent); pointer-events: none; }
.aa .aa-footer__cta { position: relative; display: grid; gap: 28px; padding-block: clamp(72px, 10vw, 140px) 56px; border-bottom: 1px solid var(--aa-border); }
.aa .aa-footer__title { font-size: clamp(3.25rem, 1.5rem + 8vw, 9rem); font-stretch: var(--aa-wide); font-weight: 800; line-height: .9; letter-spacing: -0.04em; }
.aa .aa-footer__cta p { color: var(--aa-muted); max-width: 46ch; font-size: var(--aa-t-lg); }
.aa .aa-footer__mail { justify-self: start; display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.25rem, .9rem + 1.6vw, 2.25rem); font-stretch: 110%; font-weight: 650; text-decoration: none; background: linear-gradient(var(--aa-accent), var(--aa-accent)) left bottom / 0 2px no-repeat; padding-bottom: 6px; transition: background-size .5s var(--aa-ease); overflow-wrap: anywhere; min-width: 0; }
.aa .aa-footer__mail:hover { background-size: 100% 2px; }
.aa .aa-footer__links { display: flex; flex-wrap: wrap; gap: 10px; }
.aa .aa-footer__base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 28px; font-size: var(--aa-t-sm); color: var(--aa-dim); }
body:has(main[data-section="contact"]) .aa-footer__cta { display: none; }

/* ---------- Motion -------------------------------------------------------
   Every animation runs from a hidden "from" keyframe to the normal resting
   style, so with motion turned off the page is simply static. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

  .aa .aa-hero .aa-kicker { animation: aa-rise .8s var(--aa-ease) .05s both; }
  .aa .aa-word > span { animation: aa-word 1s cubic-bezier(.2,.75,.15,1) .15s both; }
  .aa .aa-word + .aa-word > span { animation-delay: .27s; }
  .aa .aa-hero__lead { animation: aa-rise .8s var(--aa-ease) .45s both; }
  .aa .aa-hero .aa-actions { animation: aa-rise .8s var(--aa-ease) .57s both; }
  .aa .aa-hero__visual { animation: aa-photo 1.3s var(--aa-ease) .2s both; }
  .aa .aa-badge { animation: aa-pop .7s var(--aa-ease) both, aa-float 6s ease-in-out infinite; }
  .aa .aa-badge--1 { animation-delay: .8s, 1.5s; }
  .aa .aa-badge--2 { animation-delay: .95s, 0s; }
  .aa .aa-badge--3 { animation-delay: 1.1s, 3s; }
  .aa .aa-marquee__track { animation: aa-marquee 46s linear infinite; }
  .aa .aa-marquee:hover .aa-marquee__track { animation-play-state: paused; }
  .aa .aa-glowbg::after { animation: aa-breathe 9s ease-in-out infinite; }

  .aa .aa-pagehead > :not(.aa-ghost) { animation: aa-rise .8s var(--aa-ease) both; }
  .aa .aa-pagehead > :nth-child(2) { animation-delay: .08s; }
  .aa .aa-pagehead > :nth-child(3) { animation-delay: .16s; }
  .aa .aa-pagehead > :nth-child(4) { animation-delay: .24s; }
  .aa .aa-pagehead > :nth-child(5) { animation-delay: .32s; }
  .aa .aa-ghost { animation: aa-ghost 1.6s var(--aa-ease) .1s both; }
  .aa .aa-brandstage { animation: aa-photo 1.2s var(--aa-ease) .2s both; }
  .aa .aa-brandstage .aa-logo { animation: aa-float 6s ease-in-out infinite; }
  .aa .aa-brandstage::after { animation: aa-ping 3.2s cubic-bezier(.2,.6,.3,1) 1s infinite; }

  .aa .aa-schematic .s-balloon { transform-box: view-box; transform-origin: 180px 106px; animation: aa-sway 7s ease-in-out infinite; }
  .aa .aa-schematic .s-dash { animation: aa-dataflow 1s linear infinite; }
  .aa .aa-schematic .s-box { animation: aa-scan 2.8s ease-in-out infinite; }
  .aa .aa-schematic .s-box + .s-box { animation-delay: 1.4s; }
  .aa .aa-schematic .s-cone { animation: aa-beam 5s ease-in-out infinite; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .aa .aa-head, .aa .aa-tile, .aa .aa-show, .aa .aa-tl, .aa .aa-card, .aa .aa-service, .aa .aa-channel, .aa .aa-record, .aa .aa-split > *, .aa .aa-skillcloud li, .aa .aa-footer__cta > *, .aa .aa-pick, .aa .aa-flow__card {
      animation: aa-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .aa .aa-tile:nth-child(2), .aa .aa-show:nth-child(2n), .aa .aa-card:nth-child(2n), .aa .aa-service:nth-child(2n), .aa .aa-picker li:nth-child(2) .aa-pick, .aa .aa-channel:nth-child(2n), .aa .aa-skillcloud li:nth-child(2n) { animation-range: entry 8% entry 68%; }
    .aa .aa-picker li:nth-child(3) .aa-pick { animation-range: entry 16% entry 80%; }
    .aa .aa-tile:nth-child(3), .aa .aa-card:nth-child(3n) { animation-range: entry 16% entry 80%; }
    .aa .aa-tile:nth-child(4), .aa .aa-tile:nth-child(5) { animation-range: entry 14% entry 78%; }


    .aa .aa-flow { view-timeline: --aa-flow block; }
    .aa .aa-flow::after { animation: aa-draw linear both; animation-timeline: --aa-flow; animation-range: cover 10% cover 40%; }
    .aa .aa-flow__step .aa-flow__node { animation: aa-fill linear both; animation-timeline: --aa-flow; }
    .aa .aa-flow__step:nth-child(1) .aa-flow__node { animation-range: cover 10% cover 13%; }
    .aa .aa-flow__step:nth-child(2) .aa-flow__node { animation-range: cover 17% cover 20%; }
    .aa .aa-flow__step:nth-child(3) .aa-flow__node { animation-range: cover 24% cover 27%; }
    .aa .aa-flow__step:nth-child(4) .aa-flow__node { animation-range: cover 31% cover 34%; }
    @media (max-width: 939px) { .aa .aa-flow::after { animation-name: aa-draw-y; } }

    .aa .aa-count { view-timeline: --aa-count block; }
    .aa .aa-count > span { display: none; }
    .aa .aa-count::after { content: counter(aa-n) "%"; counter-reset: aa-n var(--aa-n); animation: aa-count linear both; animation-timeline: --aa-count; animation-range: entry 10% entry 100%; }
    .aa .aa-count-372 { view-timeline: --aa-c372 block; }
    .aa .aa-count-372 > span { display: none; }
    .aa .aa-count-372::after { content: counter(aa-m); counter-reset: aa-m var(--aa-m); animation: aa-count372 linear both; animation-timeline: --aa-c372; animation-range: entry 10% entry 100%; }
  }
}
@property --aa-n { syntax: "<integer>"; inherits: false; initial-value: 40; }
@property --aa-m { syntax: "<integer>"; inherits: false; initial-value: 372; }

@keyframes aa-rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes aa-word { from { transform: translateY(110%); } }
@keyframes aa-photo { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes aa-pop { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes aa-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes aa-marquee { to { transform: translateX(-50%); } }
@keyframes aa-breathe { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes aa-ghost { from { opacity: 0; transform: translateX(6%); } }
@keyframes aa-ping { 0% { opacity: .55; transform: scale(.55); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes aa-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes aa-dataflow { to { stroke-dashoffset: -7; } }
@keyframes aa-scan { 0%, 100% { opacity: .3; } 40%, 60% { opacity: 1; } }
@keyframes aa-beam { 0%, 100% { fill-opacity: .06; } 50% { fill-opacity: .14; } }
@keyframes aa-count { from { --aa-n: 0; } to { --aa-n: 40; } }
@keyframes aa-count372 { from { --aa-m: 0; } to { --aa-m: 372; } }

@media (prefers-reduced-motion: reduce) {
  .aa *, .aa *::before, .aa *::after { animation: none !important; transition: none !important; }
  .aa .aa-flow__node { background: var(--aa-accent); }
}

/* ---------- Standalone site ---------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
