:root {
  color-scheme: light;
  --page: #f5f7fa;
  --panel: #fff;
  --tint: #eaf2fb;
  --ink: #17283c;
  --muted: #4a6278;
  --blue: #1565c0;
  --soft: #e3effb;
  --line: #d5e2ef;
  --shadow: 0 8px 26px rgba(18, 55, 95, .07);
  --hero: linear-gradient(116deg, #082e64 0%, #0d47a1 46%, #1565b5 77%, #3087c9);
  --nav: #0a356e;
  --gold: #ffbd61;
  font: 100%/1.6 Inter, "Segoe UI", Arial, sans-serif;
  scroll-padding-top: 6rem;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0a1929;
  --panel: #132f4c;
  --tint: #0e2339;
  --ink: #e3f2fd;
  --muted: #b3cce1;
  --blue: #77bdff;
  --soft: #1d4061;
  --line: #2a4967;
  --shadow: 0 10px 30px rgba(0, 0, 0, .18);
  --hero: linear-gradient(116deg, #071524, #0c213b 44%, #123c68 78%, #175387);
  --nav: #081a2c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, h4, p, dl, dd, blockquote, ul { margin: 0; }
h1, h2, h3, h4 { line-height: 1.16; }
h1, #about h2, .contact h2 { font-family: "Playfair Display", Georgia, serif; }
h2 { font-size: clamp(2rem, 3.1vw, 3rem); letter-spacing: -.035em; }
em { font-style: normal; color: var(--blue); }
.wrap { width: min(76rem, calc(100% - clamp(2.25rem, 10vw, 9rem))); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 10; background: var(--panel); padding: .5rem 1rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { position: sticky; top: 0; z-index: 5; background: var(--nav); color: white; border-bottom: 1px solid #ffffff26; }
.masthead.scrolled { background: var(--panel); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.nav-row, .brand, nav, .actions, .button, .nav-contact, .menu, .theme, .values, .values li { display: flex; align-items: center; }
.nav-row { min-height: 4.6rem; gap: 1.2rem; }
.brand { gap: .75rem; margin-right: auto; text-decoration: none; }
.brand img { border-radius: .6rem; background: white; }
.brand span { display: grid; gap: .15rem; font-size: .72rem; line-height: 1.2; }
.brand strong { font-size: 1.13rem; letter-spacing: .12em; }
nav { gap: clamp(.6rem, 2.25vw, 2.25rem); }
nav a, .nav-contact, .button { font-size: .91rem; font-weight: 650; text-decoration: none; }
nav a { padding-block: .6rem; }
nav a:hover { text-decoration: underline; }
.menu, .theme { justify-content: center; background: transparent; border: 1px solid currentColor; border-radius: .65rem; min-height: 2.65rem; }
.menu { gap: .35rem; padding-inline: .65rem; }
.theme { width: 2.65rem; }
.theme .sun, [data-theme="dark"] .theme .moon { display: none; }
[data-theme="dark"] .theme .sun { display: inline; }
.nav-contact { gap: .65rem; padding: .5rem .95rem; border-radius: .65rem; background: white; color: #0d477f; }
.scrolled .nav-contact { background: var(--soft); color: var(--blue); }
.masthead:not(.scrolled) :focus-visible, .hero :focus-visible, .contact :focus-visible { outline-color: var(--gold); }
.hero, .contact { background: var(--hero); color: white; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 83% 60%, #65bcfc33, transparent 57%),
              repeating-radial-gradient(ellipse at 96% 120%, transparent 0 52px, #d5f0ff0c 53px 54px, transparent 55px 97px);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3.5rem, 5.7vw, 6rem); }
.overline { display: flex; align-items: center; gap: .8rem; margin-bottom: .85rem; font-size: .74rem; font-weight: 750; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; }
.hero .overline, .contact .overline { color: #e1edff; }
.gold-line { width: 2.15rem; height: 2px; background: var(--gold); }
h1 { font-size: clamp(2.3rem, 4.55vw, 4.15rem); line-height: 1.07; letter-spacing: -.045em; }
.hero em, .contact em { color: var(--gold); }
.lead { max-width: 31rem; color: #e4efff; font-size: clamp(1rem, 1.3vw, 1.2rem); margin-top: 1.4rem; }
.actions { flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.button { justify-content: center; gap: .68rem; padding: .8rem 1.3rem; min-height: 2.8rem; width: fit-content; border-radius: .65rem; border: 1px solid transparent; }
.primary { background: white; color: #12539c; box-shadow: 0 6px 22px #001c4933; }
.primary:hover { background: #e5f1ff; }
.ghost { color: white; border-color: #ffffff90; background: #ffffff09; }
.ghost:hover { background: #ffffff20; }
.visual { position: relative; margin: .8rem .55rem 1rem; }
.visual::before { content: ""; position: absolute; inset: -.65rem -.65rem .85rem .85rem; border: 1px solid #ffcf828f; border-radius: 1.25rem; pointer-events: none; }
.photo { position: relative; border: 1px solid #ffffff70; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 22px 55px #031b4360; background: #244259; }
.photo img { width: 100%; aspect-ratio: 1.26; height: auto; object-fit: cover; object-position: 50% 40%; }
.photo::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(transparent, #0b2144a3); pointer-events: none; }
.values { position: absolute; left: 1rem; right: 1rem; bottom: -.8rem; list-style: none; justify-content: center; gap: .45rem; padding: 0; }
.values li { gap: .4rem; padding: .43rem .8rem; border: 1px solid #ffffff47; border-radius: .6rem; background: #102e51ee; box-shadow: 0 5px 15px #00163042; color: white; font-weight: 650; font-size: .85rem; }
.values li:nth-child(1) .icon { color: #76e4be; }
.values li:nth-child(2) .icon { color: #ffbf65; }
.values li:nth-child(3) .icon { color: #f8a8ce; }
.stat-bar { border-top: 1px solid #ffffff45; padding-block: 1.45rem 1.8rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats div { display: flex; flex-direction: column-reverse; align-items: start; border-left: 1px solid #ffffff45; padding-left: clamp(1rem, 3.2vw, 3.3rem); }
.stats div:first-child { padding-left: 0; border: 0; }
.stats dd { font-size: clamp(1.7rem, 2.7vw, 2.6rem); font-weight: 750; line-height: 1.12; letter-spacing: -.04em; }
.stats dt { margin-top: .22rem; color: #e0ecfc; font-size: .84rem; }
.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.ai-section {
  background: linear-gradient(115deg, var(--page), var(--tint));
  border-bottom: 1px solid var(--line);
}
.ai-layout { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.ai-story h2 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.4rem, 3.9vw, 3.9rem); }
.ai-story h2 em { display: block; }
.ai-story > p:not(.overline) { max-width: 33rem; color: var(--muted); margin-top: 1rem; }
.ai-story .ai-intro { font-size: 1.1rem; }
.ai-explorer {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0; padding: .35rem .35rem 0; min-width: 0; border: 1px solid var(--line);
  border-radius: 1rem; overflow: hidden; background: var(--panel); box-shadow: var(--shadow);
}
.ai-accessible, .ai-choice {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.ai-explorer label {
  display: flex; justify-content: center; align-items: center; gap: .45rem; padding: .7rem .25rem;
  min-height: 3rem; text-align: center; border-radius: .65rem; color: var(--muted);
  font-size: .83rem; line-height: 1.25; font-weight: 650; cursor: pointer;
}
.ai-explorer label:hover, .ai-choice:checked + label { background: var(--soft); color: var(--blue); }
.ai-choice:checked + label { box-shadow: inset 0 -2px var(--blue); }
.ai-choice:focus-visible + label { outline: 2px solid var(--blue); outline-offset: -3px; }
.ai-panels { grid-column: 1 / -1; margin: .35rem -.35rem 0; }
.ai-panel { display: none; }
#activity-find:checked ~ .ai-panels #ai-find,
#activity-review:checked ~ .ai-panels #ai-review,
#activity-talk:checked ~ .ai-panels #ai-talk { display: block; }
.ai-panel picture, .ai-panel img { display: block; width: 100%; height: auto; background: #102d4c; }
.ai-panel-copy { padding: clamp(1.2rem, 2.3vw, 2rem); }
.ai-panel-copy h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.ai-panel-copy p { color: var(--muted); margin-top: .5rem; }
@media (prefers-reduced-motion: no-preference) {
  .ai-panel-copy { animation: enter .3s ease-out; }
}
@media (max-width: 60rem) {
  .ai-explorer label { flex-direction: column; gap: .3rem; }
}
.band { background: var(--tint); }
.section-title { text-align: center; margin: 0 auto 2.3rem; max-width: 51rem; }
.section-title .overline { justify-content: center; }
.section-title .overline::before, .section-title .overline::after { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: .55; }
.summary { color: var(--muted); max-width: 42rem; margin: .7rem auto 0; }
.founding, blockquote, .card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.founding { padding: clamp(1.25rem, 3vw, 2.6rem); display: grid; grid-template-columns: 2.4fr 1fr; gap: 2rem; align-items: center; }
.story p, .card p, .offices ul { color: var(--muted); }
.story p + p { margin-top: .7rem; }
.credentials { border-left: 1px solid var(--line); display: grid; justify-items: center; gap: .6rem; padding-inline: .6rem; }
.credentials img { border-radius: .5rem; }
.credentials span { display: flex; align-items: center; gap: .3rem; color: var(--blue); font-weight: 650; font-size: .8rem; }
blockquote { margin-top: 1.2rem; padding: 1.6rem max(1.5rem, 7%); text-align: center; font: italic 1.35rem/1.5 Georgia, serif; background: var(--soft); }
cite { display: block; color: var(--blue); font: 700 .85rem/1.7 Inter,"Segoe UI",sans-serif; margin-bottom: .3rem; }
.subheading { text-align: center; font-size: clamp(1.45rem, 2.3vw, 2rem); margin: 2.75rem 0 1.5rem; }
.grid { display: grid; gap: 1.15rem; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { --tone: var(--blue); padding: clamp(1.2rem, 2vw, 1.9rem); }
.tile-icon { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: 1rem; background: var(--soft); background: color-mix(in srgb, var(--tone) 12%, var(--panel)); color: var(--tone); border-radius: .8rem; font-size: 1.28rem; }
.card h3, .card h4 { margin-bottom: .65rem; font-size: 1.14rem; }
.card p, .offices ul { font-size: .95rem; }
.models .card:nth-child(2), .advantage .card:first-child { --tone: #237e5d; }
.models .card:nth-child(3), .advantage .card:nth-child(2) { --tone: #a75a0d; }
.advantage .card:nth-child(3) { --tone: #b94070; }
[data-theme="dark"] :is(.models .card:nth-child(2), .advantage .card:first-child) { --tone: #78dfb7; }
[data-theme="dark"] :is(.models .card:nth-child(3), .advantage .card:nth-child(2)) { --tone: #ffba65; }
[data-theme="dark"] .advantage .card:nth-child(3) { --tone: #ffa6cf; }
.advantage .card, .services .card { text-align: center; }
.advantage .card { display: flex; flex-direction: column; align-items: center; border-top: 3px solid var(--tone); }
.advantage .card > p { flex: 1; }
.metric { width: 100%; border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: .9rem; }
.metric strong, .metric span { display: block; }
.metric strong { color: var(--tone); font-size: 1.8rem; line-height: 1.2; }
.metric span { color: var(--muted); font-size: .8rem; }
.clients-image { width: min(100%, 53rem); height: auto; margin: auto; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; list-style: none; padding: 0; }
.domains li { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); font-size: .9rem; font-weight: 600; }
.domains li::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--blue); }
.offices ul { list-style: none; padding: 0; }
.contact-grid { padding-block: clamp(3rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact .button { margin-top: 1.4rem; }
address { font-style: normal; }
address div { display: grid; grid-template-columns: 4rem 1fr; gap: .6rem; border-bottom: 1px solid #ffffff42; padding-block: .8rem; }
address a { overflow-wrap: anywhere; }
footer { color: #d1dfef; background: #0d1b2a; }
footer > div { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; font-size: .9rem; }
@keyframes enter { from { opacity: .15; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.045); } to { transform: scale(1); } }
@keyframes float-in { from { opacity: .15; transform: translateY(12px); } 68% { transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > * { animation: enter .6s cubic-bezier(.2,.7,.2,1) backwards; }
  .hero-copy h1 { animation-delay: 60ms; }
  .lead { animation-delay: 115ms; }
  .actions { animation-delay: 170ms; }
  .photo img { animation: settle 1.2s ease-out; }
  .values li { animation: float-in .8s .28s ease-out backwards; }
  .values li:nth-child(2) { animation-delay: .4s; }
  .values li:nth-child(3) { animation-delay: .52s; }
  .button, .card { transition: translate .22s ease-out, box-shadow .22s ease-out; }
  .masthead { transition: background-color .2s, color .2s; }
  @media (hover: hover) {
    .card:hover { translate: 0 -4px; box-shadow: 0 14px 30px #10355822; }
    .button:hover { translate: 0 -2px; }
  }
}
@media (max-width: 60rem) {
  .four, .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-row { gap: .7rem; }
  nav { gap: .85rem; }
}
@media (max-width: 48rem) {
  .ai-layout { grid-template-columns: minmax(0, 1fr); }
  .nav-row { flex-wrap: wrap; gap: .45rem; min-height: 4rem; padding-block: .45rem; }
  .brand { gap: .45rem; }
  .brand span { font-size: .67rem; }
  .brand img { width: 38px; height: 38px; }
  .menu { font-size: .83rem; }
  .nav-contact { display: none; }
  nav { order: 1; flex-basis: 100%; flex-wrap: wrap; }
  .enhanced nav:not(.open) { display: none; }
  .enhanced nav.open { display: grid; gap: .1rem; padding-bottom: .5rem; }
  .nav-row:has(nav.open) { max-height: 85vh; overflow-y: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem; }
  h1 { font-size: clamp(2rem, 9.4vw, 3.8rem); }
  .photo img { aspect-ratio: 1.75; object-position: center 35%; }
  .values li { font-size: .75rem; padding: .4rem .6rem; }
  .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (min-width: 48.001rem) { .menu, .mobile-contact { display: none; } }
@media (max-width: 36rem) {
  .actions .button { gap: .4rem; padding-inline: .85rem; }
  .three, .four, .founding { grid-template-columns: 1fr; }
  .values { gap: .28rem; left: 0; right: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .stats div:nth-child(3) { border: 0; padding-left: 0; }
  .credentials { border-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
  .domains li { padding: .7rem; }
  .visual { margin-inline: .25rem .65rem; }
}
