/* ==========================================================================
   Dekozino Technologies — main stylesheet
   Hand-rolled, modern CSS (custom properties, grid, clamp).
   No frameworks. Works back to modern evergreen browsers.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — palette derived from the Dekozino logo
      (sky blue #1f9af1 + deep blue #0a4ead, white background)
   -------------------------------------------------------------------------- */
:root {
  --brand: #0a4ead;            /* deep logo blue — buttons, links (AA on white) */
  --brand-hover: #083d87;      /* pressed/hover */
  --brand-deep: #062b5f;       /* darkest blue for gradients */
  --brand-bright: #1f9af1;     /* sky logo blue — decorative accents, gradients */
  --brand-mid: #1474cf;        /* between the two logo blues */
  --brand-soft: #e0f1fd;       /* pale sky tint for chips & icon tiles */
  --brand-tint: #f2f9fe;       /* even paler — form fields */

  --ink: #0a1c40;              /* deep navy (from logo blue + black) */
  --ink-deep: #04122b;         /* darkest navy — footer */
  --text: #25365c;             /* body copy, blue-tinted */
  --muted: #55668f;            /* muted copy, blue-tinted */
  --line: #e2ecf7;             /* hairlines */
  --line-strong: #c9dcf4;      /* hairlines on hover */
  --soft: #f4f8fd;             /* pale section backgrounds */

  --accent-on-dark: #47acf4;   /* sky accent that stays readable on navy */

  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(6, 18, 42, .06), 0 4px 14px -6px rgba(6, 18, 42, .10);
  --shadow-md: 0 12px 30px -12px rgba(6, 18, 42, .26);
  --shadow-lg: 0 30px 60px -24px rgba(6, 18, 42, .40);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
svg { display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* anchored sections keep clear of the sticky header */
section[id], article[id], div[id] { scroll-margin-top: 92px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--brand); color: #fff; padding: .7rem 1.2rem;
  border-radius: var(--radius-sm); font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 7.5vw, 6.5rem); }
.section--soft { background: var(--soft); }
.section--ink {
  background: var(--ink);
  color: #aab6cf;
}
.section--ink h2, .section--ink h3 { color: #fff; }

/* Section heading pattern: kicker eyebrow + title + optional lead */
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--ink .kicker { color: var(--accent-on-dark); }

.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; margin: .95rem 0 .9rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.section--ink .lead { color: #aab6cf; }

/* Body copy is justified across the site for clean, even left & right edges */
p, blockquote { text-align: justify; text-justify: inter-word; }
/* Micro-labels and short UI text stay left-aligned when they wrap */
.hero__kicker, .kicker, .crumbs, .hint, .tl-year, .prj__chip { text-align: left; }

/* Responsive column grids */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.9rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* grid/flex children must be allowed to shrink below their content's
   min-width, otherwise long strings (emails, URLs) cause sideways scroll */
.grid > *, .nav, .foot-bar, .cta__inner, .contact-grid > * { min-width: 0; }
a { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   4. Topbar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #c3cdde;
  font-size: .84rem;
  line-height: 1.2;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 42px;
}
.topbar a { color: #c3cdde; display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; stroke: var(--accent-on-dark); flex: none; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 1.4rem; }
.topbar__note { color: #93a1bb; }
.topbar__note strong { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(10,18,32,.35); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }

.logo { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__img {
  width: auto; height: 46px; flex: none;
  filter: drop-shadow(0 3px 10px rgba(31, 154, 241, .25));
  transition: transform .25s ease;
}
.logo:hover .logo__img { transform: translateY(-1px); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink); }
.logo__sub { font-size: .56rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brand); margin-top: 3px; }

/* logo variants on dark navy surfaces */
.mnav .logo__name, .site-foot .logo__name { color: #fff; }
.mnav .logo__sub, .site-foot .logo__sub { color: var(--accent-on-dark); }
.mnav .logo__img, .site-foot .logo__img { filter: none; }
.mnav .logo__img { height: 56px; }

.nav__list { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem); list-style: none; }
.nav__link {
  position: relative; font-weight: 600; font-size: .95rem; color: var(--text);
  padding: .45rem 0; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--brand); }

.nav__cta { margin-left: .5rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-toggle:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.mnav {
  position: fixed; inset: 0; z-index: 120;
  background: linear-gradient(160deg, #0b1e46 0%, #061530 55%, #0a1c40 100%);
  color: #fff;
  padding: 1.4rem var(--gutter) 2rem;
  display: flex; flex-direction: column;
  transform: translateX(102%); visibility: hidden;
  transition: transform .42s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .42s;
  overflow-y: auto;
}
.mnav::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,154,241,.38), transparent 70%);
  pointer-events: none;
}
body.nav-open .mnav { transform: translateX(0); visibility: visible; transition-delay: 0s; }
body.nav-open { overflow: hidden; }

.mnav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.2rem; position: relative; }
.mnav__close {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center;
}
.mnav__close:hover { background: var(--brand); border-color: var(--brand); }
.mnav__close svg { width: 20px; height: 20px; }

.mnav__list { list-style: none; display: grid; gap: .35rem; position: relative; }
.mnav__link {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 600;
  color: #eef2fb; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s, padding-left .2s;
}
.mnav__link svg { width: 22px; height: 22px; stroke: var(--accent-on-dark); }
.mnav__link:hover { color: #fff; padding-left: .5rem; }
.mnav__link.is-active { color: var(--accent-on-dark); }

.mnav__foot { margin-top: auto; padding-top: 2.2rem; position: relative; }
.mnav__foot a { color: #c3cdde; display: flex; align-items: center; gap: .6rem; font-size: .95rem; padding: .4rem 0; }
.mnav__foot a:hover { color: #fff; }
.mnav__foot svg { width: 17px; height: 17px; stroke: var(--accent-on-dark); }

/* --------------------------------------------------------------------------
   6. Buttons & small components
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: .9rem 1.7rem; border-radius: 10px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(10,78,173,.5); }
.btn--brand:hover { background: var(--brand-hover); color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #123063; color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: #ccd4e2; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-soft); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }
.btn--sm { padding: .62rem 1.15rem; font-size: .88rem; }

/* Icon chip */
.ico {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.ico svg { width: 25px; height: 25px; }
.ico--sm { width: 42px; height: 42px; border-radius: 11px; }
.ico--sm svg { width: 20px; height: 20px; }
.ico--on-ink { background: rgba(71, 172, 244, .16); color: var(--accent-on-dark); }

/* --------------------------------------------------------------------------
   7. Hero (home) with cross-fading slides
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(560px, 88vh);
  display: flex; align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.js .hero-slide { transition: opacity 1.1s ease; }
.js .hero-slide.is-active img { animation: heroZoom 9s ease-out forwards; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 13, 26, .92) 8%, rgba(8, 13, 26, .66) 42%, rgba(8, 13, 26, .28) 78%, rgba(8, 13, 26, .18) 100%);
}

.hero__content { max-width: 680px; padding-block: clamp(5rem, 10vh, 7.5rem); }
.hero__kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  color: #9ad2ff; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero__kicker::before { content: ""; width: 30px; height: 2px; background: #1f9af1; border-radius: 2px; }
.hero h1 {
  color: #fff; font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  letter-spacing: -.025em;
  margin-bottom: 1.2rem;
}
.hero__sub { color: #c9d3e6; font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

/* slide controls */
.hero__controls { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; }
.js-only { display: none; }
.js .js-only { display: flex; }
.hero__btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.hero__btn:hover { background: var(--brand); border-color: var(--brand); }
.hero__btn svg { width: 18px; height: 18px; }
.hero__dots { display: flex; gap: .5rem; margin-left: .4rem; }
.hero__dot {
  width: 26px; height: 4px; border-radius: 4px; border: 0; padding: 0;
  background: rgba(255,255,255,.3); transition: background .25s, width .25s;
}
.hero__dot.is-active { background: #fff; width: 40px; }

/* scroll cue */
.hero__cue {
  position: absolute; right: var(--gutter); bottom: 2.2rem; z-index: 3;
  writing-mode: vertical-rl; color: rgba(255,255,255,.55); font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase;
}
.hero__cue::after { content: ""; display: block; width: 1px; height: 54px; background: linear-gradient(var(--accent-on-dark), transparent); margin-top: .7rem; margin-left: .5rem; }

/* --------------------------------------------------------------------------
   8. About (home + about page)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-media { position: relative; padding-bottom: 3rem; }
.about-media .frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-media .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(10,18,32,.35));
  pointer-events: none;
}
.about-media img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; }
.about-media .frame--sm {
  position: absolute; right: -1rem; bottom: 0; width: 55%;
  border: 7px solid #fff; box-shadow: var(--shadow-md); border-radius: 16px;
}
.about-media .frame--sm img { aspect-ratio: 5 / 4.5; }
.about-badge {
  position: absolute; top: 1.6rem; left: -0.6rem;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 1.05rem 1.35rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .85rem;
}
.about-badge strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #5dbdf9; line-height: 1; }
.about-badge span { font-size: .8rem; color: #c3cdde; line-height: 1.35; display: block; }

.about-body h2 { margin-bottom: 1.4rem; }
.about-body p { margin-bottom: 1.1rem; }

.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem .9rem; margin: 1.5rem 0 1.9rem; }
.checklist li { display: flex; align-items: center; gap: .55rem; font-size: .93rem; font-weight: 500; color: var(--text); }
.checklist svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.svc {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.8rem 1.8rem;
  display: flex; flex-direction: column; gap: .85rem;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc:hover::before { transform: scaleX(1); }
.svc h3 { font-size: 1.14rem; font-weight: 600; }
.svc p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.svc .btn { align-self: flex-start; }

/* number watermark */
.svc__num {
  position: absolute; top: 1.1rem; right: 1.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--brand-soft); transition: color .25s;
}
.svc:hover .svc__num { color: var(--line-strong); }

/* detailed service cards (services page) */
.svc-lg { padding: clamp(1.8rem, 3vw, 2.4rem); gap: 1rem; }
.svc-lg ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.1rem; margin: .4rem 0 .9rem; }
.svc-lg ul li { position: relative; padding-left: 1.5rem; font-size: .93rem; color: var(--text); }
.svc-lg ul li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; border-radius: 3px; background: var(--brand-soft);
  outline: 1.5px solid var(--brand);
}

/* --------------------------------------------------------------------------
   10. Projects
   -------------------------------------------------------------------------- */
.prj {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #051029; isolation: isolate;
}
.prj img {
  width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1), opacity .5s;
}
.prj:hover img { transform: scale(1.07); }
.prj::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(195deg, rgba(9,14,26,0) 38%, rgba(9,14,26,.88) 100%);
  transition: opacity .4s;
}
.prj__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.6rem 1.5rem; }
.prj__chip {
  display: inline-block; background: rgba(10,78,173,.95); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px; margin-bottom: .6rem;
}
.prj h3 { color: #fff; font-size: 1.12rem; font-weight: 600; }
.prj__cat { color: #b9c4da; font-size: .85rem; margin-top: .25rem; }

/* --------------------------------------------------------------------------
   11. Team
   -------------------------------------------------------------------------- */
.team {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.team:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.team__photo { position: relative; overflow: hidden; }
.team__photo img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: top center; transition: transform .8s ease; }
.team:hover .team__photo img { transform: scale(1.05); }
.team__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,18,32,.4));
  opacity: 0; transition: opacity .35s;
}
.team:hover .team__photo::after { opacity: 1; }
.team__body { padding: 1.25rem 1.4rem 1.45rem; }
.team__body h3 { font-size: 1.08rem; font-weight: 600; }
.team__role { display: block; color: var(--brand); font-size: .84rem; font-weight: 600; letter-spacing: .02em; margin-top: .3rem; }

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.tst {
  background: #fff; border-radius: var(--radius-lg); padding: 2.1rem 2rem;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .28s ease, box-shadow .28s ease;
  position: relative;
}
.tst:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tst__mark { color: var(--brand-soft); }
.tst__mark svg { width: 40px; height: 40px; }
.tst blockquote { margin: 0; color: var(--text); font-size: .98rem; flex-grow: 1; }
.tst blockquote p { margin: 0; }
.tst__who { display: flex; align-items: center; gap: .9rem; border-top: 1px solid var(--line); padding-top: 1.15rem; }
.tst__ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  display: grid; place-items: center; letter-spacing: .02em;
}
.tst__who strong { display: block; font-size: .95rem; color: var(--ink); }
.tst__who span { display: block; font-size: .82rem; color: var(--muted); margin-top: .1rem; }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 340px at 12% 110%, rgba(31,154,241,.5), transparent 70%),
    radial-gradient(600px 320px at 92% -20%, rgba(31,154,241,.3), transparent 70%),
    linear-gradient(180deg, #0c2048, #04122b);
  color: #c3cdde;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; margin-bottom: .7rem; }
.cta p { max-width: 52ch; margin: 0; }
.cta__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.cinfo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem; display: flex; gap: 1.05rem; align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.cinfo > div { min-width: 0; }
.cinfo:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.cinfo strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.cinfo a, .cinfo address { font-style: normal; color: var(--ink); font-weight: 600; font-size: .98rem; }
.cinfo a:hover { color: var(--brand); }
.cinfo address { line-height: 1.5; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.contact-aside { display: grid; gap: 1.1rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .45rem; }
.field label em { color: var(--brand); font-style: normal; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--brand-tint); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1.05rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 78, 173, .15);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.field--error input, .field--error textarea { border-color: #d64545; background: #fdf4f4; }
.field--error .hint { color: #c33b3b; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.alert {
  border-radius: 10px; padding: .95rem 1.15rem; font-size: .93rem; margin-bottom: 1.3rem;
  display: flex; gap: .6rem; align-items: flex-start; font-weight: 500;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert--ok { background: #eaf7ef; color: #166534; border: 1px solid #bfe6cd; }
.alert--err { background: #fdf2f2; color: #9f1d1d; border: 1px solid #f2c6c6; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--soft); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.92); }
.map-wrap .map-link {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
  background: #fff; color: var(--ink); font-weight: 600; font-size: .88rem;
  padding: .65rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: .5rem; transition: color .2s, transform .2s;
}
.map-wrap .map-link:hover { color: var(--brand); transform: translateY(-2px); }
.map-wrap .map-link svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   15. Inner page header
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative; overflow: hidden;
  background:
    radial-gradient(560px 300px at 85% -40%, rgba(31,154,241,.45), transparent 70%),
    radial-gradient(480px 300px at -10% 120%, rgba(31,154,241,.28), transparent 70%),
    linear-gradient(180deg, #0c224c, #04122b);
  color: #c3cdde;
  padding-block: clamp(3.6rem, 7vw, 5.4rem);
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 110% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 110% at 50% 0%, #000 20%, transparent 80%);
  pointer-events: none;
}
.pagehead__inner { position: relative; }
.pagehead .kicker { color: var(--accent-on-dark); }
.pagehead h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; margin: .9rem 0 .8rem; letter-spacing: -.02em; }
.pagehead p { max-width: 60ch; margin: 0; }
.crumbs { display: flex; align-items: center; gap: .55rem; font-size: .85rem; margin-top: 1.4rem; }
.crumbs a { color: #93a1bb; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 13px; height: 13px; stroke: #5d6d8c; }
.crumbs span { color: var(--accent-on-dark); font-weight: 600; }

/* --------------------------------------------------------------------------
   16. History timeline (about page)
   -------------------------------------------------------------------------- */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--line-strong));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -1.6rem; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.tl-year {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .06em; color: var(--brand);
  background: var(--brand-soft); border: 1px solid var(--line-strong);
  padding: .28rem .85rem; border-radius: 999px; margin-bottom: .7rem;
}
.tl-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .55rem; }
.tl-item p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-foot { background: #030c21; color: #94a1bb; font-size: .93rem; }
.site-foot a { color: #a9b5cc; }
.site-foot a:hover { color: #fff; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(1.8rem, 4vw, 3rem); padding-block: clamp(3.2rem, 6vw, 4.5rem);
}
.foot-grid h4 {
  color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.foot-brand p { margin-top: 1.1rem; line-height: 1.75; max-width: 34ch; }
.foot-list { list-style: none; display: grid; gap: .6rem; }
.foot-list a { display: inline-flex; align-items: center; gap: .5rem; transition: padding-left .2s, color .2s; }
.foot-list a:hover { color: #fff; padding-left: .3rem; }
.foot-list svg { width: 13px; height: 13px; stroke: #1f9af1; flex: none; }
.foot-contact { list-style: none; display: grid; gap: .95rem; }
.foot-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.foot-contact svg { width: 17px; height: 17px; stroke: #1f9af1; flex: none; margin-top: 3px; }
.foot-contact a { color: #c9d3e6; }
.foot-contact a:hover { color: #fff; }
.foot-contact address { font-style: normal; line-height: 1.6; }

.foot-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.35rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem;
}
.foot-bar a { color: #6f7f9d; }
.foot-bar a:hover { color: #fff; }

/* back to top */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility 0s linear .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.to-top:hover { background: var(--brand-hover); }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   18. 404
   -------------------------------------------------------------------------- */
.error-wrap { text-align: center; max-width: 620px; margin-inline: auto; padding-block: clamp(4rem, 9vw, 7rem); }
.error-code {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5rem, 14vw, 8.5rem); line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--brand), var(--brand-bright) 60%, #9ad2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-wrap h1 { margin: .6rem 0 1rem; }
.error-wrap p { color: var(--muted); max-width: 46ch; margin: 0 auto 2rem; }

/* --------------------------------------------------------------------------
   19. Scroll reveal (progressive enhancement)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* cards that also lift on hover keep a snappy hover transition after revealing */
.js .svc.in, .js .team.in, .js .tst.in, .js .cinfo.in {
  transition: opacity .7s ease, transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  .nav__list, .nav__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; }
  .topbar__note, .topbar__right { display: none; }

  /* no-JS fallback: let the menu scroll horizontally instead of hiding */
  .no-js .nav__list { display: flex; overflow-x: auto; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav__cta { display: inline-flex; }
}

@media (max-width: 680px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__cue { display: none; }
  .about-badge { left: 0; padding: .9rem 1.1rem; }
  .about-badge strong { font-size: 1.5rem; }
  .about-media .frame--sm { right: 0; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .checklist { grid-template-columns: 1fr; }
  .svc-lg ul { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .topbar { display: none; }
}

@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
  .logo__sub { display: none; }
}

/* --------------------------------------------------------------------------
   21. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}