/* Advice Alliance — brand tokens sampled from the company profile */
:root {
  --navy: #012860;      /* brand navy */
  --abyss: #001536;     /* hero / deep sections */
  --steel: #245688;     /* secondary blue */
  --sky: #87b1d3;       /* light accent */
  --ice: #bfddf3;       /* pale accent */
  --paper: #f4f7fb;     /* cool page background */
  --white: #ffffff;
  --ink: #0d1f3a;       /* body text on light */
  --muted: #4c6079;
  --line: rgba(1, 40, 96, .14);

  --f-display: 'Marcellus', 'Noto Kufi Arabic', serif;
  --f-body: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --section: clamp(80px, 12vw, 160px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
:lang(ar) {
  --f-display: 'Noto Kufi Arabic', 'Marcellus', serif;
  --f-body: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
:lang(ar) body { line-height: 1.9; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
.ico, .panel-ico, .seg-icon svg, .rail-btn svg, .to-top svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 8px 14px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9em 1.6em;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--white); border-radius: 999px;
  font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--ice); border-color: var(--ice); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(191, 221, 243, .45); }
.btn-ghost:hover { background: rgba(191, 221, 243, .12); border-color: var(--ice); color: var(--white); }
.btn-sm { padding: .7em 1.2em; font-size: .875rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
}
.site-header.is-solid { background: rgba(0, 21, 54, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(191, 221, 243, .12); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: .925rem; opacity: .82; transition: opacity .2s; }
.nav a:hover, .nav a.is-current { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  background: none; border: 1px solid rgba(191, 221, 243, .35); color: var(--white);
  border-radius: 999px; padding: .45em .9em; font: 600 .8rem/1 var(--f-body); cursor: pointer;
}
.lang:hover { border-color: var(--ice); }
:lang(en) .lang { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.menu-btn { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(1200px 700px at 75% 40%, rgba(36, 86, 136, .55), transparent 60%),
    radial-gradient(800px 600px at 10% 90%, rgba(1, 40, 96, .9), transparent 70%),
    var(--abyss);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
:dir(rtl) .hero { background:
    radial-gradient(1200px 700px at 25% 40%, rgba(36, 86, 136, .55), transparent 60%),
    radial-gradient(800px 600px at 90% 90%, rgba(1, 40, 96, .9), transparent 70%),
    var(--abyss); }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fallback { display: none; position: absolute; width: min(36vw, 420px); inset-inline-end: 8vw; top: 50%; transform: translateY(-50%); opacity: .9; z-index: -1; filter: brightness(1.6); }
.no-webgl .hero-fallback { display: block; }
.hero-inner { padding-block: 140px 120px; }
.hero-kicker { color: var(--sky); font-size: 1rem; margin-bottom: 24px; }
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 7.2vw, 6.25rem);
  line-height: 1.02; letter-spacing: -.01em;
  max-width: 11ch;
}
:lang(ar) .hero-title { font-weight: 600; line-height: 1.3; max-width: 12ch; font-size: clamp(2.4rem, 6vw, 5.2rem); }
.hero-lead { max-width: 46ch; margin-top: 28px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .78); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.scroll-cue {
  position: absolute; bottom: 24px; inset-inline-start: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--sky); font-size: .8rem; text-decoration: none; opacity: .85;
}
:dir(rtl) .scroll-cue { translate: 50% 0; }
.scroll-line { position: relative; width: 1px; height: 44px; background: rgba(191, 221, 243, .2); overflow: hidden; }
.scroll-line span { position: absolute; inset: 0; background: var(--ice); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { translate: 0 -100%; } 60%, 100% { translate: 0 100%; } }

/* Brand wave lines (from the profile's slides) */
.waves {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(70%, 900px); pointer-events: none; z-index: -1;
  background: url("../assets/waves.svg") center / 100% 100% no-repeat; opacity: .32;
  -webkit-mask-image: linear-gradient(to var(--fade, left), transparent, #000 60%);
  mask-image: linear-gradient(to var(--fade, left), transparent, #000 60%);
}
:dir(rtl) .waves { --fade: right; transform: scaleX(-1); }

/* Reveal on scroll */
.reveal-ready [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Sections */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1; color: var(--navy);
}
:lang(ar) .section-title { font-weight: 600; line-height: 1.45; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.body { color: var(--muted); max-width: 62ch; }

.about { padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.statement {
  font-family: var(--f-display); color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.25; margin-bottom: 28px; max-width: 28ch;
}
:lang(ar) .statement { line-height: 1.6; font-weight: 500; }

/* Segments rail */
.segments { padding-block: 0 var(--section); overflow: hidden; }
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.rail-head .section-title { max-width: 22ch; }
.rail-nav { display: flex; gap: 10px; flex-shrink: 0; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--line); color: var(--navy);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn.prev svg { transform: scaleX(-1); }
:dir(rtl) .rail-btn svg { transform: scaleX(-1); }
:dir(rtl) .rail-btn.prev svg { transform: none; }
.rail-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); border-color: var(--navy); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge); scrollbar-width: none; outline-offset: -4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (hover: hover) and (pointer: fine) { .rail { cursor: grab; } }
.rail-track { list-style: none; margin: 0; display: flex; gap: 20px; padding: 36px var(--edge) 12px; width: max-content; }
.seg-card {
  position: relative; scroll-snap-align: start; flex: 0 0 clamp(240px, 24vw, 300px); aspect-ratio: 4 / 4.6;
  border-radius: 22px; padding: 64px 26px 26px; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(120% 80% at 110% 0%, rgba(135, 177, 211, .38), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(36, 86, 136, .9), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--abyss));
  isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.seg-card::before { /* layered arcs */
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: .5;
  background: url("../assets/waves.svg") center / 220% 100% no-repeat; transition: background-position 1.2s var(--ease), opacity .5s;
}
.seg-card:nth-child(2n)::before { background-position: 20% 30%; }
.seg-card:nth-child(3n)::before { background-position: 80% 70%; }
.seg-card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -24px rgba(1, 21, 54, .55); }
.seg-card:hover::before { background-position: 100% 50%; opacity: .8; }
.seg-icon {
  position: absolute; top: -26px; inset-inline-start: 24px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--steel); color: var(--white); box-shadow: 0 0 0 6px var(--paper);
  transition: background .4s var(--ease), transform .5s var(--ease);
}
.seg-icon svg { width: 26px; height: 26px; }
.seg-card:hover .seg-icon { background: var(--sky); color: var(--navy); transform: rotate(-8deg) scale(1.05); }
.seg-card h3 { font-family: var(--f-display); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
:lang(ar) .seg-card h3 { font-weight: 600; line-height: 1.6; }
.rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.rail-dots span { width: 8px; height: 8px; border-radius: 99px; background: rgba(1, 40, 96, .2); transition: width .4s var(--ease), background .4s var(--ease); }
.rail-dots span.on { width: 28px; background: var(--navy); }

/* Services: tabs */
.services { padding-block: var(--section); background: var(--white); }
.services-title { margin-bottom: clamp(40px, 6vw, 72px); }
.svc { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-list { display: flex; flex-direction: column; }
.svc-list button {
  display: flex; align-items: center; gap: 16px;
  text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 20px 0; cursor: pointer; color: rgba(1, 40, 96, .45);
  font-family: var(--f-display); font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.2;
  position: relative; transition: color .3s var(--ease);
}
.svc-list .ico { width: 26px; height: 26px; flex-shrink: 0; transition: transform .4s var(--ease); }
:lang(ar) .svc-list button { font-weight: 500; line-height: 1.5; }
.svc-list button::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--navy); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .5s var(--ease);
}
:dir(rtl) .svc-list button::after { --origin: right; }
.svc-list button[aria-selected="true"] { color: var(--navy); }
.svc-list button[aria-selected="true"]::after { transform: scaleX(1); }
.svc-list button[aria-selected="true"] .ico { transform: scale(1.12); }
.svc-list button:hover { color: var(--navy); }
.svc-panels { position: sticky; top: 120px; }
.svc-panel {
  background: linear-gradient(155deg, var(--navy), var(--abyss));
  color: var(--white); border-radius: 28px; padding: clamp(32px, 5vw, 56px);
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; isolation: isolate;
}
.svc-panel::before {
  content: ''; position: absolute; inset-block-start: -30%; inset-inline-end: -20%;
  width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(135, 177, 211, .35), transparent 65%);
}
.svc-panel::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: url("../assets/waves.svg") center bottom / 160% 70% no-repeat;
}
.panel-ico { width: 44px; height: 44px; color: var(--sky); margin-bottom: auto; stroke-width: 1.3; }
.svc-panel h3 { font-family: var(--f-display); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-block: 48px 20px; }
:lang(ar) .svc-panel h3 { font-weight: 600; }
.svc-panel p { color: rgba(255, 255, 255, .82); max-width: 52ch; font-size: 1.1rem; }

/* Operations: dark band */
.ops { position: relative; padding-block: var(--section); background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate; }
.ops .section-title { color: var(--white); margin-bottom: clamp(40px, 6vw, 72px); max-width: 18ch; }
.ops-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(191, 221, 243, .16); border: 1px solid rgba(191, 221, 243, .16); border-radius: 20px; overflow: hidden; }
.ops-item { position: relative; background: var(--navy); padding: clamp(28px, 4vw, 48px); transition: background .4s var(--ease); }
.ops-item:hover { background: #03316f; }
.ops-item .ico { width: 36px; height: 36px; color: var(--sky); margin-bottom: 26px; stroke-width: 1.4; transition: transform .5s var(--ease); }
.ops-item:hover .ico { transform: translateY(-4px); }
.ops-item h3 { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: 14px; }
:lang(ar) .ops-item h3 { font-weight: 600; }
.ops-item p { color: rgba(255, 255, 255, .74); max-width: 48ch; }

/* AI */
.ai { padding-block: var(--section); }
.ai-title { margin-bottom: clamp(40px, 6vw, 72px); }
.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ai-item {
  position: relative; padding: clamp(28px, 3.6vw, 44px); border-radius: 22px;
  background: var(--white); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.ai-item::before { /* navy fill rising from the bottom on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--navy), var(--abyss));
  clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease);
}
.ai-item:hover::before { clip-path: inset(0 0 0 0); }
.ai-item:hover { border-color: var(--navy); transform: translateY(-4px); }
.ai-item .ico { width: 40px; height: 40px; color: var(--steel); margin-bottom: 24px; stroke-width: 1.4; transition: color .4s; }
.ai-item h3 { font-family: var(--f-display); color: var(--navy); font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: 12px; transition: color .4s; }
:lang(ar) .ai-item h3 { font-weight: 600; }
.ai-item p { color: var(--muted); max-width: 52ch; transition: color .4s; }
.ai-item:hover .ico { color: var(--sky); }
.ai-item:hover h3 { color: var(--white); }
.ai-item:hover p { color: rgba(255, 255, 255, .8); }

/* Vision, mission, values */
.purpose { padding-block: var(--section); background: var(--white); }
.vm-title { margin-bottom: clamp(32px, 5vw, 56px); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); margin-bottom: var(--section); }
.vm > div { border-top: 2px solid var(--navy); padding-top: 28px; }
.vm-label { font-size: 1rem; font-weight: 600; color: var(--steel); margin-bottom: 14px; font-family: var(--f-body); }
.vm-head { font-family: var(--f-display); color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; margin-bottom: 20px; max-width: 24ch; }
:lang(ar) .vm-head { line-height: 1.6; font-weight: 500; }
.values-title { margin-bottom: 40px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.values li {
  position: relative; padding: 28px 24px 32px; border-radius: 120px 120px 18px 18px; /* arch, as in the profile's value cards */
  background: var(--paper); border: 1px solid rgba(1, 40, 96, .1);
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: background .4s var(--ease), transform .4s var(--ease), opacity .9s var(--ease), translate .9s var(--ease);
}
.val-n { position: absolute; top: 34px; inset-inline: 0; text-align: center; font-family: var(--f-display); font-size: 2rem; color: var(--steel); transition: color .4s; }
.values h3 { font-family: var(--f-display); color: var(--navy); font-size: 1.3rem; line-height: 1.25; margin-bottom: 10px; transition: color .4s var(--ease); }
:lang(ar) .values h3 { font-weight: 600; line-height: 1.6; font-size: 1.15rem; }
.values p { color: var(--muted); font-size: .95rem; transition: color .4s var(--ease); }
.values li:hover { background: var(--navy); transform: translateY(-6px); }
.values li:hover h3, .values li:hover .val-n { color: var(--white); }
.values li:hover p { color: var(--ice); }

/* Contact */
.contact { position: relative; padding-block: var(--section); background: var(--abyss); color: var(--white); overflow: hidden; isolation: isolate; }
.contact .waves { opacity: .18; }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); }
.contact-title { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
:lang(ar) .contact-title { font-weight: 600; line-height: 1.45; }
.contact-meta { margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(191, 221, 243, .18); }
.contact-meta div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid rgba(191, 221, 243, .12); }
.contact-meta dt { color: var(--sky); font-size: .9rem; }
.contact-meta dd { margin: 0; }
.contact-meta a { text-decoration: none; }
.contact-meta a:hover { text-decoration: underline; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 4px; font-size: .9rem; color: var(--ice); }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(191, 221, 243, .32); border-radius: 0;
  padding: 10px 0; resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ice); box-shadow: 0 1px 0 var(--ice); }
.form [aria-invalid="true"] { border-bottom-color: #f2a7a7; }
.form .btn { margin-top: 10px; justify-self: start; min-width: 200px; }
.form-status { min-height: 1.5em; font-size: .95rem; color: var(--ice); }

/* Footer */
.footer { background: #000f28; color: rgba(255, 255, 255, .66); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px 32px; }
.footer-logo { height: 28px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col h2 { font-family: var(--f-display); color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
:lang(ar) .footer-col h2 { font-weight: 600; }
.footer-col a, .fc-row { text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--white); }
.copy { grid-column: 1 / -1; font-size: .85rem; padding-top: 24px; margin-top: 16px; border-top: 1px solid rgba(191, 221, 243, .12); }

.to-top {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--steel); color: var(--white); box-shadow: 0 10px 30px -10px rgba(0, 21, 54, .6);
  opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .35s var(--ease), translate .35s var(--ease), background .3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--navy); }

/* Responsive */
@media (max-width: 1080px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 20px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 42px; height: 42px;
    background: none; border: 1px solid rgba(191, 221, 243, .35); border-radius: 50%; cursor: pointer;
  }
  .menu-btn span:not(.sr) { width: 16px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn-sm { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: rgba(0, 21, 54, .97); backdrop-filter: blur(14px);
    padding: 8px var(--gutter) 24px; margin: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(191, 221, 243, .12); font-size: 1.1rem; opacity: 1; }
  .about-grid, .svc, .vm, .contact-grid { grid-template-columns: 1fr; }
  .svc-panels { position: static; }
  .ops-grid, .ai-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .hero { align-items: flex-end; }
  .hero-inner { padding-block: 0 110px; }
  .rail-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .values li { min-height: 220px; }
  .form { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .brand img { height: 24px; }
  .contact-meta div { grid-template-columns: 72px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rail-nav { display: none; }
  .seg-card { flex-basis: 74vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
