/* idealtech.online, 2026 site. Hand-written, no framework. */

/* The page is light. A block with class "dark" (the AI band, the hero
   terminal, the footer) switches the same variables back to the navy set. */
:root {
  --bg: #ffffff;
  --bg-2: #f2f6fc;
  --panel: #ffffff;
  --tile: #f4f8fd;
  --field: #ffffff;
  --line: rgba(22, 52, 100, .13);
  --line-2: rgba(22, 52, 100, .26);
  --ink: #0b1626;
  --soft: #33415a;
  --mut: #54627c;
  --dim: #68758d;
  --blue: #1575cc;
  --blue-hi: #0b57a4;
  --on-blue: #ffffff;
  --live: #23963a;
  --lift: 0 1px 2px rgba(16, 42, 84, .05), 0 16px 36px -24px rgba(16, 42, 84, .3);
  --display: "Antonio", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 6px;
  --gut: clamp(20px, 5vw, 48px);
  color-scheme: light;
}
.dark {
  --bg: #070b14;
  --bg-2: #0b1120;
  --panel: rgba(148, 178, 228, .045);
  --tile: rgba(7, 11, 20, .55);
  --field: rgba(7, 11, 20, .7);
  --line: rgba(148, 178, 228, .14);
  --line-2: rgba(148, 178, 228, .26);
  --ink: #e9eef8;
  --soft: #c3cde0;
  --mut: #94a2ba;
  --dim: #5f6d86;
  --blue: #45a4ea;
  --blue-hi: #8fd2ff;
  --on-blue: #04101c;
  --live: #9be870;
  --lift: none;
  color: var(--ink);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: var(--on-blue); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }

svg use { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shared type ---------- */
.mono-label {
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mut);
}
.mono-label > span { color: var(--blue); margin-right: 1.1em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(155, 232, 112, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(155, 232, 112, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 232, 112, 0); } }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
h3 { font: 600 1.16rem/1.3 var(--sans); letter-spacing: -.005em; }

/* ---------- wordmark ---------- */
.wm {
  font: 700 1.7rem/1 var(--display);
  letter-spacing: .01em;
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
}
.dark .wm { color: #fff; }
.wm b { color: var(--blue); font-size: 1.3em; font-weight: 700; line-height: .8; }
.wm--lg { font-size: 2.4rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.5em;
  background: var(--blue); color: var(--on-blue);
  border: 1px solid var(--blue);
  box-shadow: 0 10px 24px -14px var(--blue);
  border-radius: var(--r);
  font: 500 .8rem/1 var(--mono);
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .2s; }
.btn:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--bg); border-color: var(--ink); }
.btn--sm { padding: .75em 1.1em; font-size: .72rem; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(255, 255, 255, .93); box-shadow: 0 8px 24px -20px rgba(16, 42, 84, .5); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__links a:not(.btn) {
  font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--mut); padding: .6em 0; position: relative; transition: color .2s;
}
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__links a:not(.btn):hover, .nav__links a.is-on { color: var(--ink); }
.nav__links a.is-on::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 104px; isolation: isolate; }
.hero::before { /* shown until (or instead of) the WebGL canvas */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(69, 164, 234, .26), transparent 70%),
    radial-gradient(40% 40% at 15% 85%, rgba(69, 164, 234, .1), transparent 70%),
    linear-gradient(#eef4fc, #f8fbff);
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s; }
.hero__gl.is-on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero__in { flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: 16px 44px; }
.eyebrow { display: flex; align-items: center; gap: .9em; font: 500 .76rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-bottom: 26px; }
h1 { font-size: clamp(2.9rem, 6.5vw, 5.9rem); line-height: .94; }
h1 em { display: block; }
.lede { margin-top: 28px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.term { border: 1px solid var(--line-2); border-radius: 8px; background: linear-gradient(160deg, #0d1a30, #0a1222); box-shadow: 0 34px 70px -34px rgba(13, 40, 84, .75), 0 2px 6px rgba(13, 40, 84, .18); font: 400 .82rem/1.5 var(--mono); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--dim); }
.term__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.term__bar span { margin-left: 8px; font-size: .72rem; letter-spacing: .08em; }
.term__body { padding: 16px 18px 20px; display: grid; gap: 7px; }
.term__body li { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; color: var(--mut); }
.term__body li b { font-weight: 500; color: var(--blue-hi); }
.term__body li b::before { content: "\2713"; color: var(--live); margin-right: .6em; }
.term__body li.cmd { display: block; color: var(--ink); margin-bottom: 6px; }
.term__body li.cmd span { color: var(--blue); margin-right: .5em; }
.term__body li.live { display: flex; align-items: center; gap: .8em; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--live); }
.js .term__body li { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.js .term__body li.is-in { opacity: 1; transform: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding: 22px 22px 30px 0; }
.facts > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts dt { font: 700 1.55rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.facts dd { margin-top: 6px; font-size: .9rem; line-height: 1.45; color: var(--mut); }

/* ---------- clients ---------- */
.clients { border-block: 1px solid var(--line); background: var(--bg-2); }
.clients__in { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); padding-block: 30px; }
.clients .mono-label { flex: none; }
.clients ul { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(18px, 3vw, 44px); align-items: center; }
.clients img { width: 100%; max-height: 46px; object-fit: contain; filter: brightness(0); opacity: .48; transition: opacity .25s; }
.clients li:hover img { opacity: .9; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec--tint { background: var(--bg-2); }
.sec__head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head .mono-label { margin-bottom: 20px; }
.sec__sub { margin-top: 22px; max-width: 42em; color: var(--mut); font-size: 1.08rem; }

.card { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--lift); overflow: hidden; transition: border-color .25s, transform .25s; }
.card::before { /* pointer-follow glow, position set from JS */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(69, 164, 234, .16), transparent 65%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 400 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); padding: .55em .7em; border: 1px solid var(--line); border-radius: 2px; }

/* ---------- services ---------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc__card { padding: 30px 28px 26px; display: flex; flex-direction: column; min-height: 300px; }
.svc__icon { width: 34px; height: 34px; color: var(--blue); margin-bottom: 26px; }
.svc__n { position: absolute; top: 26px; right: 26px; font: 400 .72rem/1 var(--mono); color: var(--dim); letter-spacing: .1em; }
.svc__card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc__card p { color: var(--mut); font-size: .98rem; margin-bottom: 24px; }
.svc__card .tags { margin-top: auto; }
.svc__card--feature { border-color: rgba(21, 117, 204, .45); background: linear-gradient(160deg, #dcecfb, #f7fbff 62%); }
.svc__card--feature .svc__n::before { content: "New \00b7  "; color: var(--live); }

/* ---------- AI ---------- */
.sec--ai { background: radial-gradient(70% 60% at 50% 0%, rgba(69, 164, 234, .2), transparent 70%), linear-gradient(170deg, #0b1630, #0d2244); }
.flow { display: grid; grid-template-columns: 1fr 90px 1.15fr 90px 1fr; align-items: stretch; margin-bottom: clamp(36px, 5vw, 60px); }
.flow__stage { border: 1px solid var(--line); border-radius: var(--r); background: rgba(7, 11, 20, .6); padding: 26px 24px; }
.flow__stage h3 { font: 700 1.7rem/1.1 var(--display); text-transform: uppercase; margin: 8px 0 18px; }
.flow__stage--core { position: relative; border-color: rgba(69, 164, 234, .55); box-shadow: 0 0 60px -12px rgba(69, 164, 234, .45), inset 0 0 40px -20px rgba(69, 164, 234, .5); overflow: hidden; }
.flow__stage--core .tags li { border-color: rgba(69, 164, 234, .4); color: var(--blue-hi); }
.core { position: absolute; right: -34px; top: 50%; width: 150px; height: 150px; margin-top: -75px; }
.core i { position: absolute; inset: 0; border: 1px solid rgba(69, 164, 234, .5); border-radius: 50%; animation: spin 14s linear infinite; border-left-color: transparent; border-bottom-color: transparent; }
.core i:nth-child(2) { inset: 22px; animation-duration: 9s; animation-direction: reverse; border-color: rgba(143, 210, 255, .55); border-right-color: transparent; }
.core i:nth-child(3) { inset: 50px; animation: none; border: 0; background: radial-gradient(circle, var(--blue-hi), var(--blue) 45%, transparent 70%); opacity: .75; filter: blur(2px); }
@keyframes spin { to { transform: rotate(360deg); } }
.flow__link { position: relative; align-self: center; height: 1px; background: var(--line-2); }
.flow__link::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4px solid transparent; border-left: 7px solid var(--blue); }
.flow__link i { position: absolute; top: -2px; left: 0; width: 26px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--blue-hi)); animation: travel 2.2s linear infinite; }
.flow__link:nth-of-type(4) i { animation-delay: 1.1s; }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 26px); opacity: 0; } }

.ai__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ai__item { padding: 28px 24px 8px 0; }
.ai__item + .ai__item { padding-left: 24px; border-left: 1px solid var(--line); }
.ai__n { display: block; font: 700 2.2rem/1 var(--display); color: var(--blue); margin-bottom: 18px; }
.ai__item h3 { margin-bottom: 8px; }
.ai__item p { color: var(--mut); font-size: .96rem; }

/* ---------- stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack__group { padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--lift); }
.stack__group h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font: 700 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.stack__group h3 span { font: 500 .7rem/1 var(--mono); letter-spacing: .1em; color: var(--blue); }
.stack__group ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.tool { --c: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-height: 92px; padding: 16px 4px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--tile); text-align: center; transition: border-color .2s, background .2s, transform .2s; }
.tool svg { width: 30px; height: 30px; flex: none; color: var(--c); transition: transform .25s, filter .25s; }
.tool svg use { fill: currentColor; stroke: none; }
.tool--glyph svg use { fill: none; stroke: currentColor; stroke-width: 1.6; }
.tool span { font: 500 .74rem/1.25 var(--sans); color: var(--soft); }
.tool:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--panel)); transform: translateY(-2px); }
.tool:hover svg { transform: scale(1.1); filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--c) 35%, transparent)); }
.tool:hover span { color: var(--ink); }
.stack__note { margin-top: 16px; font-size: .78rem; color: var(--dim); }

/* ---------- work ---------- */
.sub-h { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; font: 500 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.sub-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pgrid + .sub-h { margin-top: clamp(48px, 6vw, 80px); }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .6em; font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.more svg { width: 1.2em; height: 1.2em; transition: transform .2s; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { font: 500 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .8em 1.1em; border: 1px solid var(--line); border-radius: 2px; background: none; color: var(--mut); cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--ink); border-color: var(--line-2); }
.filters button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pcard { grid-column: span 2; --acc: var(--blue); display: flex; }
.pcard--lg { grid-column: span 3; }
.pcard[hidden] { display: none; }
.pcard__hit { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: var(--lift); transition: border-color .25s, transform .25s, box-shadow .25s; }
a.pcard__hit, button.pcard__hit { cursor: pointer; }
a.pcard__hit:hover, button.pcard__hit:hover { border-color: var(--acc); transform: translateY(-3px); box-shadow: 0 18px 40px -24px var(--acc); }
.pcard__hit:hover .more svg { transform: translateX(4px); }
.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px 20px 20px; }
.pcard__body .mono-label { font-size: .68rem; color: color-mix(in srgb, var(--acc), var(--ink) 42%); } /* accents are picked for the dark banner */
.pcard__desc { color: var(--mut); font-size: .93rem; line-height: 1.55; }
.pcard__body .more { padding-top: 6px; }
.pcard--lg .pcard__body { padding: 22px 26px 24px; }
.pcard--lg .pcard__desc { font-size: .98rem; }

/* The banner is a title card in the manner of a store feature graphic. Sizes
   are in cqw so a banner looks the same at any card width. */
.banner { position: relative; display: block; aspect-ratio: 1024 / 500; overflow: hidden; container-type: inline-size; background: #0a0f1b; border-bottom: 1px solid var(--line); }
.banner__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard__hit:hover .banner__art { transform: scale(1.04); }
.banner--art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 14, .9) 0%, rgba(5, 8, 14, .62) 34%, rgba(5, 8, 14, 0) 68%); }
.banner--shot { background: radial-gradient(90% 130% at 88% 50%, color-mix(in srgb, var(--acc) 34%, #0a0f1b), #0a0f1b 72%); }
.banner__win { position: absolute; left: 50cqw; top: 9cqw; width: 62cqw; border-radius: 1.2cqw; overflow: hidden; background: #10151f; border: 1px solid rgba(255, 255, 255, .16); box-shadow: -3cqw 3cqw 7cqw rgba(0, 0, 0, .6); transform: perspective(110cqw) rotateY(-16deg) rotateX(3deg); transform-origin: left center; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.pcard__hit:hover .banner__win { transform: perspective(110cqw) rotateY(-10deg) rotateX(2deg) translateY(-1cqw); }
.banner__win i { display: block; height: 2.6cqw; background: #1a2130 radial-gradient(circle at 1.8cqw 50%, rgba(255, 255, 255, .28) .5cqw, transparent .56cqw), radial-gradient(circle at 3.6cqw 50%, rgba(255, 255, 255, .28) .5cqw, transparent .56cqw), radial-gradient(circle at 5.4cqw 50%, rgba(255, 255, 255, .28) .5cqw, transparent .56cqw); }
.banner__win img { width: 100%; height: auto; }
.banner__txt { position: absolute; z-index: 2; left: 6cqw; top: 50%; transform: translateY(-50%); width: 47cqw; display: block; }
.banner--shot .banner__txt { width: 42cqw; }
.banner__title { display: block; font: 700 9.4cqw/.94 var(--display); text-transform: uppercase; letter-spacing: -.005em; color: #fff; text-shadow: 0 .3cqw 2.4cqw rgba(0, 0, 0, .65); }
.banner--shot .banner__title { font-size: 8.4cqw; }
.banner__title em { font-style: normal; color: var(--acc); }
.banner__tag { display: flex; align-items: center; gap: 1.6cqw; margin-top: 2.6cqw; font: 500 max(2.3cqw, 9.5px)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .86); text-shadow: 0 .2cqw 1.4cqw rgba(0, 0, 0, .8); }
.banner__tag::before { content: ""; flex: none; width: 5cqw; height: .55cqw; background: var(--acc); }

/* section pictures */
.strip { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; box-shadow: var(--lift); }
.strip img { width: 100%; height: clamp(180px, 24vw, 320px); object-fit: cover; object-position: 50% 46%; }
.sec--ai { overflow: hidden; }
.sec--ai .wrap { position: relative; }
.sec__art { position: absolute; top: 0; right: 0; width: min(62%, 900px); height: auto; opacity: .8; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(#000 55%, transparent); mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(#000 55%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; pointer-events: none; }
.about__img { margin-top: 30px; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about .big { font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.45; color: var(--ink); margin-bottom: 22px; }
.about__main p:not(.big) { color: var(--mut); }
.why { display: grid; }
.why li { display: grid; grid-template-columns: 54px 1fr; column-gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.why li:last-child { border-bottom: 1px solid var(--line); }
.why span { grid-row: span 2; font: 500 .78rem/1.9 var(--mono); color: var(--blue); letter-spacing: .1em; }
.why h3 { margin-bottom: 6px; }
.why p { color: var(--mut); font-size: .96rem; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team__card { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--lift); }
.team__card img { width: 170px; height: 170px; object-fit: cover; border-radius: 2px; filter: grayscale(.35) contrast(1.05); transition: filter .3s; }
.team__card:hover img { filter: none; }
.team__card h3 { font: 700 1.8rem/1.05 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.team__card .mono-label { color: var(--blue); margin-bottom: 12px; }
.team__card p:last-child { color: var(--mut); font-size: .96rem; }

/* ---------- contact ---------- */
.sec--contact { background: radial-gradient(60% 70% at 85% 100%, rgba(69, 164, 234, .22), transparent 70%), var(--bg-2); }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact__list li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list a, .contact__list address { font-size: 1.22rem; line-height: 1.4; }
.contact__list a { width: fit-content; background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 1px no-repeat; transition: background-size .3s, color .2s; }
.contact__list a:hover { color: var(--blue-hi); background-size: 100% 1px; }

.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--lift); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font: 500 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.form input, .form select, .form textarea {
  width: 100%; padding: .85em 1em;
  background-color: var(--field); border: 1px solid var(--line-2); border-radius: 4px;
  font: 400 1rem/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.6em; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(69, 164, 234, .22); }
.form__send { display: flex; flex-wrap: wrap; gap: 10px; }
.form__note { font-size: .86rem; color: var(--dim); }
.form__err { font-size: .92rem; color: #b93815; }

.contact__side { display: grid; gap: 34px; }
.next ol { margin-top: 16px; display: grid; gap: 12px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; counter-increment: n; color: var(--soft); font-size: .98rem; line-height: 1.5; }
.next li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--on-blue); font: 500 .74rem/26px var(--mono); text-align: center; }

/* ---------- call-to-action band ---------- */
.cta { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, #0d5cb0, #1a80d8 55%, #49a8ee); }
.cta::before { /* contour rings, echoing the hero */
  content: ""; position: absolute; right: -8%; top: 50%; width: min(60vw, 760px); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(255, 255, 255, .13) 34px 35px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}
.cta__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-block: clamp(48px, 6.5vw, 84px); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta p { margin-top: 12px; max-width: 34em; color: rgba(255, 255, 255, .9); font-size: 1.08rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--white { background: #fff; color: #0b57a4; border-color: #fff; box-shadow: 0 16px 32px -18px rgba(4, 30, 70, .8); }
.btn--white:hover { background: #e6f1fd; border-color: #e6f1fd; }
.btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.btn--line:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: clamp(48px, 6vw, 80px); }
.step { padding-right: 24px; }
.step__n { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font: 700 2.3rem/1 var(--display); color: var(--blue); }
.step__n::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.step:last-child .step__n::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.step h3 { margin-bottom: 6px; font-size: 1.22rem; }
.step p { color: var(--mut); font-size: .96rem; }
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.offer { display: flex; flex-direction: column; padding: 26px 24px 22px; }
.offer svg { width: 32px; height: 32px; color: var(--blue); margin-bottom: 20px; }
.offer h3 { margin-bottom: 8px; font-size: 1.2rem; }
.offer p { color: var(--mut); font-size: .96rem; }
.offer .offer__fit { margin-top: auto; padding-top: 18px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq .sec__head { margin-bottom: 0; position: sticky; top: 104px; }
.faq .sec__sub a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; cursor: pointer; list-style: none; font: 600 1.12rem/1.35 var(--sans); transition: color .2s; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; font: 400 1.15rem/28px var(--mono); text-align: center; color: var(--blue); transition: transform .25s, background .2s, color .2s; }
.faq__list summary:hover { color: var(--blue); }
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.faq__list details p { padding: 0 52px 24px 0; max-width: 44em; color: var(--mut); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: linear-gradient(170deg, #0b1630, #0d2244); }
.foot__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-block: 56px 44px; }
.foot__in p { margin-top: 12px; color: var(--mut); font-size: .95rem; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav a { color: var(--mut); font-size: .95rem; width: fit-content; transition: color .2s; }
.foot nav a:hover { color: var(--ink); }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 20px; border-top: 1px solid var(--line); font: 400 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* ---------- lightbox ---------- */
.lb { width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--ink); overflow: auto; }
.lb::backdrop { background: rgba(3, 6, 12, .82); backdrop-filter: blur(6px); }
.lb__head { padding: 26px 64px 20px 28px; }
.lb__head h3 { font: 700 2rem/1.1 var(--display); text-transform: uppercase; margin: 8px 0 8px; }
.lb__head #lb-body { color: var(--mut); max-width: 46em; }
.lb__img { display: block; background: #fff; cursor: zoom-in; }
.lb__full { display: inline-flex; align-items: center; gap: .5em; margin-top: 14px; font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.lb__full svg { width: 1.2em; height: 1.2em; }
.lb__full:hover { color: var(--ink); }
.lb__img img { width: 100%; }
.lb__close { position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.lb__close:hover { border-color: var(--ink); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pcard, .pcard--lg { grid-column: span 3; }
  .stack { grid-template-columns: 1fr 1fr; }
  .ai__grid { grid-template-columns: 1fr 1fr; }
  .ai__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .ai__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .team__card { grid-template-columns: 120px 1fr; }
  .team__card img { width: 120px; height: 120px; }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    height: calc(100dvh - 68px); overflow-y: auto;
    padding: 8px var(--gut) 24px; background: var(--bg); border-top: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 1.2em 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 18px; justify-content: center; padding: 1.1em; }
  .nav:has(.is-open) { background: var(--bg); }

  .hero__in { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .clients__in { flex-direction: column; align-items: flex-start; }
  .clients ul { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .svc { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow__link { width: 1px; height: 44px; justify-self: center; }
  .flow__link::after { right: -4px; top: auto; bottom: -1px; border: 4px solid transparent; border-top: 7px solid var(--blue); }
  .flow__link i { top: 0; left: -2px; width: 5px; height: 18px; background: linear-gradient(transparent, var(--blue-hi)); animation-name: travel-y; }
  .about, .contact, .team, .faq { grid-template-columns: 1fr; }
  .faq .sec__head { position: static; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; padding-right: 0; }
  .step__n { grid-row: span 2; align-self: start; margin: 0; font-size: 2rem; }
  .step__n::after { display: none; }
  .offers { grid-template-columns: 1fr 1fr; }
  .sec__art { width: 100%; opacity: .45; }
  .stack { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__in > div { grid-column: 1 / -1; }
}
@keyframes travel-y { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 18px); opacity: 0; } }
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .stack { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .term { display: none; }
  .pcard, .pcard--lg { grid-column: span 6; }
  #work .pcard:not(.pcard--lg) .pcard__desc { display: none; } /* 15 stacked cards: keep them short */
  .svc, .offers { grid-template-columns: 1fr; }
  .svc__card { min-height: 0; }
  .cta__btns { width: 100%; }
  .cta__btns .btn { flex: 1 1 100%; justify-content: center; }
  .faq__list summary { font-size: 1.04rem; padding: 18px 0; }
  .faq__list details p { padding-right: 0; }
  .ai__grid { grid-template-columns: 1fr; }
  .ai__item, .ai__item + .ai__item { padding: 22px 0 6px; border-left: 0; }
  .ai__item + .ai__item { border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; }
  .form__send .btn { flex: 1 1 100%; justify-content: center; }
  .eyebrow { font-size: .68rem; letter-spacing: .1em; }
  .btn { padding: .95em 1.15em; }
  .team__card { grid-template-columns: 88px 1fr; gap: 16px; padding: 16px; }
  .team__card img { width: 88px; height: 88px; }
  .team__card h3 { font-size: 1.45rem; }
  .lb__head { padding: 22px 60px 16px 18px; }
}
@media (max-width: 420px) {
  .facts dt { font-size: 1.25rem; }
  .facts > div { padding: 16px 12px 20px 0; }
  .facts > div + div { padding-left: 12px; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

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