/* ==========================================================================
   JedRey IT Solutions — site stylesheet
   Design tokens, base, layout, components, page sections, responsive rules.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #0A0A0B;
  --ink-2: #3A3A3E;
  --muted: #5A5A60;
  --muted-2: #6E6E73;
  --muted-3: #767680;
  --line: #E3E3E6;
  --line-2: #EDEDEF;
  --bg: #FFFFFF;
  --bg-soft: #F5F5F7;
  --bg-softer: #FAFAFB;
  --navy: #0A1636;
  --navy-2: #16225C;
  --blue: #1247E8;
  --blue-2: #3B6BF5;
  --blue-3: #7A9BFF;
  --blue-soft: #EDF1FE;
  --blue-soft-2: #E8EDF9;
  --green: #1A9E63;
  --green-ink: #0F6B45;
  --green-soft: #E8F5EE;
  --red-ink: #8C2020;
  --red-soft: #FDF3F3;
  --red-line: #F0C9C9;

  /* Type */
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.6rem + 3.4vw, 4.1rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem);
  --fs-h2: clamp(1.85rem, 1.35rem + 1.9vw, 2.65rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 32px);
  --section: clamp(64px, 6vw + 24px, 108px);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --pill: 980px;
  --shadow-lg: 0 30px 70px -30px rgba(10, 10, 11, 0.28), 0 2px 6px rgba(10, 10, 11, 0.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 66px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #0B2FA8; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 500; transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 900px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--soft { background: var(--bg-softer); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section--dark { background: var(--ink); color: #fff; }
.section--navy { background: var(--navy); color: #fff; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.6fr; }

.stack > * + * { margin-top: var(--stack, 16px); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, 10px); align-items: center; }
.flow > * + * { margin-top: 1em; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 14px;
}
.section--dark .eyebrow, .section--navy .eyebrow { color: var(--blue-3); }
.eyebrow--muted { color: var(--muted-2); letter-spacing: 0.14em; }

.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.045em; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.045em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.04em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.028em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.section--dark .lead, .section--navy .lead { color: rgba(255,255,255,0.68); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .h2 { margin-bottom: 14px; }
.section-head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.section-head--row > div { max-width: 600px; }
.section-head--center { margin-inline: auto; text-align: center; }

.link-arrow { font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: '→'; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Buttons, chips, badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--pill); border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--blue); color: #fff; }
.btn--blue { background: var(--blue-2); color: #fff; }
.btn--blue:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-softer); }
.btn--ghost-light { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; font-size: 12.5px; padding: 5px 12px;
  border-radius: var(--pill); background: var(--bg-soft); color: var(--ink-2); white-space: nowrap;
}
.chip--light { background: #fff; }
.chip--dark { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.85); }

.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--pill); white-space: nowrap;
  background: var(--bg-soft); color: var(--muted-2);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #A8A8AE; }
.badge--live { background: var(--green-soft); color: var(--green-ink); }
.badge--live::before { background: var(--green); }
.badge--info { background: var(--blue-soft); color: var(--blue); }
.badge--info::before { display: none; }
.badge--plain::before { display: none; }

.pill-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-nav a {
  display: inline-flex; align-items: baseline; gap: 8px; border: 1px solid var(--line); border-radius: var(--pill);
  padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pill-nav a:hover { border-color: var(--ink); background: var(--bg-softer); color: var(--ink); }
.pill-nav a span { font-size: 12.5px; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.brand-bar { height: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-2) 55%, var(--ink)); }
.site-header__inner { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.10); }
.nav {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex-shrink: 0;
}
.brand__mark img { width: 34px; height: 34px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__tag { font-size: 11px; font-weight: 400; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }

.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav__links a { color: rgba(255,255,255,0.66); padding: 8px 0; position: relative; transition: color 0.2s ease; }
.nav__links a:hover { color: #fff; }
.nav__links a[aria-current="page"] { color: #fff; font-weight: 500; }
.nav__links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue-2);
}
.nav__cta { margin-left: 6px; }
.nav__links a.nav__cta, .nav__links a.nav__cta[aria-current="page"] { color: var(--ink); padding: 9px 18px; font-weight: 500; }
.nav__links .nav__cta::after { display: none; }
.nav__links a.nav__cta:hover { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.18); border-radius: 12px;
  background: transparent; color: #fff; cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer__top {
  padding: clamp(48px, 6vw, 72px) 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-footer .brand__tag { color: rgba(255,255,255,0.5); }
.site-footer__blurb { margin-top: 18px; max-width: 34ch; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.62); }
.site-footer h3 { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.72); }
.site-footer__bottom {
  padding: 22px 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.site-footer__bottom a { color: rgba(255,255,255,0.6); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.card--link { display: flex; flex-direction: column; color: var(--ink); }
.card--link:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); }
.card--soft { background: var(--bg-soft); border-color: transparent; }
.card--soft:hover { background: #EFEFF3; }
.card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--dark:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.card--dark p { color: rgba(255,255,255,0.66); }
.card__title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.card__text { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 20px; }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-softer);
  padding: clamp(32px, 5vw, 56px);
}

/* --------------------------------------------------------------------------
   Reveal animation (JS adds .is-visible)
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: 90ms; }
[data-reveal="3"] { transition-delay: 180ms; }
[data-reveal="4"] { transition-delay: 270ms; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(115% 85% at 45% 25%, #000 25%, rgba(0,0,0,0.35) 55%, transparent 80%);
  mask-image: radial-gradient(115% 85% at 45% 25%, #000 25%, rgba(0,0,0,0.35) 55%, transparent 80%);
}
.hero__glow { position: absolute; pointer-events: none; border-radius: 50%; }
.hero__glow--1 { top: -180px; left: -140px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(59,107,245,0.30), rgba(59,107,245,0) 66%); }
.hero__glow--2 { bottom: -40px; left: 8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(110,143,247,0.18), rgba(110,143,247,0) 70%); }
.hero__net {
  position: absolute; inset: -6%; pointer-events: none;
  -webkit-mask-image: radial-gradient(100% 80% at 40% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(100% 80% at 40% 40%, #000 20%, transparent 78%);
  transition: transform 0.5s var(--ease);
}
.hero__net svg { width: 100%; height: 100%; }
.hero__net line { stroke: #8FABFF; stroke-width: 1; opacity: 0.22; }
.hero__net circle { fill: #9DB6FF; opacity: 0.35; animation: nodePulse 5s ease-in-out infinite; }
.hero__net circle:nth-child(2n) { animation-duration: 6.2s; animation-delay: 0.8s; }
.hero__net circle:nth-child(3n) { animation-duration: 4.4s; animation-delay: 1.6s; }
@keyframes nodePulse { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.6); } }
.hero__net circle { transform-origin: center; transform-box: fill-box; }

.hero__inner {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 64px); align-items: center;
  padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 84px);
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--pill); font-size: 12.5px; color: rgba(255,255,255,0.8); margin-bottom: 26px; max-width: 100%;
}
.hero__pill strong { background: var(--blue); color: #fff; padding: 2px 8px; border-radius: var(--pill); font-size: 11px; font-weight: 600; flex-shrink: 0; }
.hero__pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero h1 { margin-bottom: 20px; color: #fff; }
.hero .lead { color: rgba(255,255,255,0.7); max-width: 46ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 13.5px; color: rgba(255,255,255,0.6); }
.hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-3); }

.hero__panel { position: relative; }
.hero__panel::before {
  content: ''; position: absolute; inset: -40px -30px -40px -10px; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 30%, rgba(140,175,255,0.22), rgba(140,175,255,0) 70%);
}
.browser {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.browser__bar {
  height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line-2); background: #FBFBFC;
}
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #E0E0E4; }
.browser__bar span { margin-left: 12px; font-size: 11px; color: var(--muted-2); }
.browser img { width: 100%; }

/* --------------------------------------------------------------------------
   Home: stats
   -------------------------------------------------------------------------- */
.stats { padding-block: clamp(28px, 4vw, 44px); }
.stat {
  border-radius: 16px; padding: 28px 20px; text-align: center; border: 1px solid transparent;
}
.stat__num { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--navy); line-height: 1; }
.stat__label { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.stat--1 { background: #E8EDF9; border-color: #D8DFEE; }
.stat--2 { background: #EDEAF6; border-color: #DFDAEC; }
.stat--3 { background: #E7EFEA; border-color: #D9E5DD; }
.stat--4 { background: #F2EDE4; border-color: #E8E0D2; }

/* --------------------------------------------------------------------------
   Home: services bento + phone
   -------------------------------------------------------------------------- */
.services-layout { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 4vw, 48px); align-items: start; }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bento .card { padding: 30px; min-height: 190px; border-radius: var(--radius); }
.bento .card--span { grid-column: span 2; padding: 34px; min-height: 210px; }
.bento .card--span .card__title { font-size: 22px; }
.bento .card--span .card__text { max-width: 44ch; font-size: 15px; }
.bento .card__link { margin-top: auto; padding-top: 20px; font-size: 14px; color: rgba(255,255,255,0.85); }

.phone {
  justify-self: end; width: 280px; padding: 11px; background: var(--ink); border-radius: 38px;
  box-shadow: 0 30px 60px -24px rgba(10,10,11,0.42);
}
.phone__screen { position: relative; width: 100%; aspect-ratio: 9 / 19.5; border-radius: 28px; overflow: hidden; background: #0B0F1A; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* --------------------------------------------------------------------------
   Home: process
   -------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.12); border-radius: 16px; overflow: hidden; }
.process__step { background: var(--ink); padding: 32px 26px 38px; }
.process__num { font-size: 12px; color: var(--blue-3); font-weight: 600; margin-bottom: 18px; }
.process__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 9px; }
.process__text { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.58); }

/* --------------------------------------------------------------------------
   Home: work cards
   -------------------------------------------------------------------------- */
.work-card { padding: 0; overflow: hidden; }
.work-card__media { height: 160px; display: grid; place-items: center; }
.work-card__media img { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; }
.work-card__media--a { background: linear-gradient(135deg, #EEF2FE, #DDE4FB); }
.work-card__media--b { background: linear-gradient(135deg, #EDEFF6, #DCE1F0); }
.work-card__media--c { background: linear-gradient(135deg, var(--navy-2), var(--blue-2)); }
.work-card__body { padding: 22px; }
.work-card__meta { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.work-row { display: flex; flex-direction: row; align-items: center; gap: 24px; padding: 24px 26px; margin-top: 20px; }
.work-row__icon { width: 64px; height: 64px; border-radius: 15px; background: #F0F4FD; display: grid; place-items: center; flex-shrink: 0; }
.work-row__icon img { width: 44px; height: 44px; object-fit: contain; }
.work-row__body { flex: 1; min-width: 0; }
.work-row__note { font-size: 14.5px; color: var(--muted-2); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.testimonial blockquote { margin: 0 0 28px; font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); line-height: 1.45; letter-spacing: -0.02em; font-weight: 500; text-wrap: pretty; max-width: 800px; }
.testimonial__who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft-2); border: 1px solid #D8DFEE; color: var(--blue); font-size: 15px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.testimonial__name { font-size: 15.5px; font-weight: 500; }
.testimonial__where { font-size: 14px; color: var(--muted-3); }

/* --------------------------------------------------------------------------
   FAQ (native details)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--muted-2); line-height: 1; flex-shrink: 0; transition: transform 0.28s var(--ease); font-weight: 300; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 560px; }

/* --------------------------------------------------------------------------
   CTA panel
   -------------------------------------------------------------------------- */
.cta { background: linear-gradient(160deg, #F3F6FE, #E9EEFB); border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 56px); text-align: center; }
.cta .h2 { margin-bottom: 16px; }
.cta .lead { max-width: 520px; margin: 0 auto 32px; }
.cta__proof { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--muted); }
.cta--dark { background: var(--ink); color: #fff; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta--dark .lead { margin: 0; color: rgba(255,255,255,0.62); max-width: 520px; }
.cta--dark .h2 { margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero .h1 { margin-bottom: 20px; }
.page-hero .lead { max-width: 60ch; }
.page-hero__inner { max-width: 760px; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.about-intro { border-top: 1px solid var(--ink); padding-top: 32px; }
.about-intro__addr { font-size: 14px; line-height: 1.5; color: var(--muted-2); }
.about-intro__text { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 660px; text-wrap: pretty; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 36px 24px; border-right: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; }
.facts > div:last-child { border-right: none; padding-right: 0; }
.facts__label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.facts__value { font-size: 18px; line-height: 1.45; font-weight: 500; letter-spacing: -0.02em; }

.principle { display: grid; grid-template-columns: 120px 1fr 1.3fr; gap: 40px; border-top: 1px solid var(--line); padding: 44px 0; align-items: start; }
.principle:first-of-type { border-top-color: var(--ink); }
.principle:last-of-type { border-bottom: 1px solid var(--line); }
.principle__num { font-size: 40px; font-weight: 300; letter-spacing: -0.04em; color: #C8C8CE; line-height: 1; }
.principle__label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); padding-top: 6px; }
.principle h3 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem); font-weight: 500; letter-spacing: -0.032em; line-height: 1.15; }
.principle p { font-size: 17px; line-height: 1.65; color: var(--muted); }

.contact-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 520px; margin-bottom: 40px; }
.contact-strip__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 8px; }
.contact-strip a, .contact-strip div > div:last-child { font-size: 16.5px; color: var(--ink); line-height: 1.5; }
.contact-strip a:hover { color: var(--blue); }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
.service { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(28px, 5vw, 56px); padding: clamp(40px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 1px solid var(--line); }
.service__num { font-size: 12px; color: var(--muted-2); font-weight: 600; margin-bottom: 14px; }
.service h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); letter-spacing: -0.035em; margin-bottom: 12px; }
.service__tagline { font-size: 15.5px; color: var(--muted); }
.service__body { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 600px; margin-bottom: 24px; }
.service__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; max-width: 600px; }
.service__features li { font-size: 14.5px; color: var(--ink-2); padding-left: 16px; border-left: 2px solid var(--line); }
.service__stack { margin-top: 22px; }

/* --------------------------------------------------------------------------
   Portfolio page
   -------------------------------------------------------------------------- */
.group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; scroll-margin-top: 90px; }
.group-head h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); letter-spacing: -0.035em; }
.group-head span { font-size: 14px; color: var(--muted-2); }

.project { padding: 28px; display: flex; flex-direction: column; }
.project__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.project__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.project__head h3 { font-size: 22px; letter-spacing: -0.028em; margin-bottom: 4px; }
.project__kind { font-size: 14.5px; color: var(--muted-2); }
.project__logo { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; flex-shrink: 0; }
.project__logo--contain { object-fit: contain; background: #F5F7FC; }
.project__icon { width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(140deg, var(--navy-2), var(--blue-2)); flex-shrink: 0; display: grid; place-items: center; }
.project__icon--alt { background: linear-gradient(140deg, #2B4FA8, var(--ink)); }
.project__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.project p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.project p.project__summary { color: var(--ink-2); }
.project__body { flex: 1; }
.project__foot { border-top: 1px solid var(--line-2); padding-top: 18px; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-2); }
.project__foot span.k { color: var(--muted-2); }
.project--draft { border-style: dashed; background: #FCFCFD; }

.project--featured { padding: 0; overflow: hidden; }
.project--featured .project__media { background: linear-gradient(135deg, #EEF2FE, #DDE4FB); padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0; }
.project--featured .project__media img { border-radius: 12px 12px 0 0; border: 1px solid var(--line); border-bottom: none; box-shadow: 0 20px 40px -24px rgba(10,10,11,0.3); }
.project--featured .project__content { padding: clamp(24px, 3vw, 32px); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 48px); }
.project__facts { display: flex; flex-direction: column; gap: 18px; }
.project__facts > div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.project__facts .k { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 8px; display: block; }
.project__facts .v { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Careers page
   -------------------------------------------------------------------------- */
.open-app { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; max-width: 900px; padding: 40px; border-radius: 20px; }
.open-app__status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12.5px; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.open-app__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #C8C8CE; }
.role { background: var(--bg-soft); border-radius: 16px; padding: 28px; }
.role__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 9px; }
.role p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-bottom: 16px; }
.role__meta { font-size: 13px; color: var(--muted-2); }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.perks h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.perks p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* --------------------------------------------------------------------------
   Contact page + form
   -------------------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 44px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__num { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.step__title { font-size: 15.5px; font-weight: 500; margin-bottom: 3px; }
.step__text { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.contact-details { display: flex; flex-direction: column; gap: 26px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-details .k { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 7px; }
.contact-details .v, .contact-details a:not(.btn) { font-size: 16.5px; color: var(--ink); line-height: 1.5; }
.contact-details a:not(.btn):hover { color: var(--blue); }
.contact-details .note { font-size: 13.5px; color: var(--muted-2); margin-top: 11px; }

.form { border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; background: #fff; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0; }
.field label .opt { color: var(--muted-3); font-weight: 400; }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--ink);
  background: #fff; font-family: inherit; line-height: 1.4; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: var(--muted-3); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,71,232,0.12); }
.input[aria-invalid="true"] { border-color: #C93A3A; }
textarea.input { resize: vertical; min-height: 130px; line-height: 1.55; }
select.input {
  appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236E6E73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field__error { font-size: 13px; color: var(--red-ink); display: none; }
.field.has-error .field__error { display: block; }
fieldset.field { border: none; margin: 0; padding: 0; gap: 10px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 15px; border-radius: var(--pill); font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; user-select: none;
}
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice span:hover { border-color: var(--ink); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 6px; flex-wrap: wrap; }
.form__foot small { font-size: 13px; color: var(--muted-2); max-width: 300px; line-height: 1.5; }
.form__alert { border: 1px solid var(--red-line); background: var(--red-soft); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; color: var(--red-ink); }
.form__alert a { color: var(--red-ink); text-decoration: underline; }
.form__success { text-align: center; padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 40px); }
.form__success .check { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 22px; margin: 0 auto 20px; }
.form__success h2 { font-size: 24px; margin-bottom: 10px; }
.form__success p { max-width: 380px; margin: 0 auto 26px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 760px; }
  .services-layout { grid-template-columns: 1fr; }
  .phone { justify-self: start; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2) { border-right: none; padding-right: 0; }
  .facts > div:nth-child(3) { padding-left: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .principle { grid-template-columns: 80px 1fr; }
  .principle p { grid-column: 2; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.12); padding: 8px var(--gutter) 18px;
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.5);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__links .nav__cta { margin: 14px 0 0; text-align: center; border-bottom: none; }
  .site-header__inner { position: relative; }
  .split, .split--even, .split--wide-right { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { grid-template-columns: 1fr; }
  .project--featured .project__content { grid-template-columns: 1fr; }
  .cta--dark { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .open-app { grid-template-columns: 1fr; }
  .work-row { flex-wrap: wrap; }
  .work-row__note { width: 100%; padding-left: 88px; }
}

@media (max-width: 640px) {
  .brand__text { font-size: 15px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .card--span { grid-column: auto; }
  .process { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding-inline: 0 !important; border-right: none !important; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: none; }
  .principle { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .principle p { grid-column: auto; }
  .principle__num { font-size: 28px; }
  .service__features { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__foot .btn { width: 100%; }
  .perks { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .phone { width: 240px; }
  .hero__pill span { white-space: normal; }
  .work-row__note { padding-left: 0; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .cta, .skip-link { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
