/* VEECON — main stylesheet */

:root {
  --red: #e31e24;
  --red-deep: #ae0a0a;
  --red-soft: #f2605f;
  --ink: #1c2024;
  --ink-2: #2a3036;
  --ink-3: #3c434a;
  --sand: #f4efe8;
  --sand-2: #ebe3d8;
  --white: #fff;
  --muted: #5b6168;
  --muted-light: #b9bec3;
  --line: rgba(28, 32, 36, .12);
  --line-light: rgba(255, 255, 255, .16);

  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --sec: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
  --pl: 0s; /* hero animation offset while the intro preloader plays */
}
.preload { --pl: 3s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--f-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
.ico { flex: none; }

/* ---------- type helpers ---------- */
.eyebrow {
  font: 600 13px/1.4 var(--f-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 18px;
}
.eyebrow-light { color: rgba(255, 255, 255, .8); }

.sec-num {
  display: flex; align-items: center; gap: 14px;
  font: 600 13px/1 var(--f-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.sec-num span {
  font-family: var(--f-head); font-weight: 600; font-size: 14px;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 14px;
}
.sec-num span::after { content: ""; width: 44px; height: 2px; background: currentColor; }
.sec-num-light { color: var(--muted-light); }

.h-display { font-size: clamp(32px, 5.2vw, 64px); max-width: 17ch; }
.h-display mark { background: none; color: var(--red); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; }

.br-lg { display: none; }
@media (min-width: 900px) { .br-lg { display: inline; } }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--red);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font: 600 15px/1 var(--f-body);
  color: #fff; background: var(--bg);
  border: 0; border-radius: 0;
  cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red-deep);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 12px 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}
.link-arrow .ico { transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }
.link-arrow-light { color: #fff; }
.link-plain { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.link-plain:hover { color: var(--red-soft); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background .35s, box-shadow .35s, color .35s, transform .4s var(--ease);
}
.header-in { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .35s; }
.brand { position: relative; width: 168px; flex: none; z-index: 2; }
.brand img { width: 100%; height: auto; transition: opacity .3s; }
.brand-dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-solid { background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .header-in { height: 64px; }
.site-header.is-solid .brand-light { opacity: 0; }
.site-header.is-solid .brand-dark { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a { position: relative; display: block; padding: 10px 12px; font-weight: 500; font-size: 15px; }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-num, .nav-foot { display: none; }
.burger { display: none; }

@media (max-width: 960px) {
  .header-cta { display: none; }
  .burger {
    display: grid; place-content: center; gap: 7px;
    width: 46px; height: 46px; margin-left: auto;
    background: none; border: 0; color: inherit; cursor: pointer; z-index: 2;
  }
  .burger span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .nav {
    position: fixed; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 100px var(--gutter) 40px;
    background: var(--ink); color: #fff;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .6s var(--ease);
    visibility: hidden;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line-light); overflow: hidden; }
  .nav a {
    display: flex; align-items: baseline; gap: 16px;
    padding: 16px 0;
    font: 800 clamp(30px, 8vw, 46px)/1.1 var(--f-head); letter-spacing: -.02em;
    transform: translateY(100%); transition: transform .6s var(--ease), color .2s;
  }
  .nav a::after { display: none; }
  .nav a[aria-current], .nav a:hover { color: var(--red-soft); }
  .nav-num { display: inline; font: 600 13px var(--f-body); color: var(--red); letter-spacing: .1em; }
  .nav-foot { display: grid; gap: 6px; margin-top: 36px; color: var(--muted-light); }
  .nav .nav-foot a { display: block; padding: 4px 0; font: 400 15px/1.5 var(--f-body); letter-spacing: 0; transform: none; overflow-wrap: anywhere; }
  .menu-open .nav { clip-path: inset(0); visibility: visible; }
  .menu-open .nav a { transform: none; }
  .menu-open .nav li:nth-child(2) a { transition-delay: .05s; }
  .menu-open .nav li:nth-child(3) a { transition-delay: .1s; }
  .menu-open .nav li:nth-child(4) a { transition-delay: .15s; }
  .menu-open .nav li:nth-child(5) a { transition-delay: .2s; }
  .menu-open .nav li:nth-child(6) a { transition-delay: .25s; }
  .menu-open .site-header { color: #fff; background: transparent; box-shadow: none; transform: none; }
  .menu-open .brand-light { opacity: 1 !important; }
  .menu-open .brand-dark { opacity: 0 !important; }
  .menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu-open { overflow: hidden; }
}

/* ---------- mosaic (from the profile's red square motif) ---------- */
.mosaic { display: grid; pointer-events: none; }
.mosaic i { display: block; aspect-ratio: 1; background: var(--red); }
.js .mosaic i { transform: scale(0); transform-origin: bottom left; transition: transform .7s var(--ease); }
.js .mosaic.in i { transform: scale(1); }
.mosaic.in i:nth-child(2) { transition-delay: .08s; }
.mosaic.in i:nth-child(3) { transition-delay: .16s; }
.mosaic.in i:nth-child(4) { transition-delay: .24s; }
.mosaic.in i:nth-child(5) { transition-delay: .32s; }
.mosaic.in i:nth-child(6) { transition-delay: .4s; }
.mosaic.in i:nth-child(7) { transition-delay: .48s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture { height: 100%; }
.hero-media img { animation: kenburns 22s var(--pl) ease-out both; transform-origin: 60% 60%; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 22, 25, .82) 0%, rgba(20, 22, 25, .45) 55%, rgba(20, 22, 25, .1) 100%),
    linear-gradient(0deg, rgba(20, 22, 25, .85) 0%, rgba(20, 22, 25, 0) 45%);
}
.hero-lines { position: absolute; left: 0; right: 0; top: 14%; width: 100%; height: 34%; z-index: -1; fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; }
.hero-lines path { stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: draw 2.6s calc(var(--pl) + .5s) var(--ease) forwards; }
.hero-lines path:nth-child(2) { animation-delay: calc(var(--pl) + .7s); }
.hero-lines path:nth-child(3) { animation-delay: calc(var(--pl) + .9s); stroke: rgba(227, 30, 36, .6); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.mosaic-hero {
  position: absolute; right: 0; bottom: 58px; z-index: -1;
  width: min(24vw, 300px);
  grid-template-columns: repeat(3, 1fr);
}
.mosaic-hero i:nth-child(1) { grid-column: 3; grid-row: 1; }
.mosaic-hero i:nth-child(2) { grid-column: 2; grid-row: 2; background: var(--red-deep); }
.mosaic-hero i:nth-child(3) { grid-column: 3; grid-row: 2; opacity: .85; }
.mosaic-hero i:nth-child(4) { grid-column: 1; grid-row: 3; opacity: .9; }
.mosaic-hero i:nth-child(5) { grid-column: 2; grid-row: 3; background: var(--ink); }
.mosaic-hero i:nth-child(6) { grid-column: 3; grid-row: 3; background: var(--red-deep); }
.mosaic-hero i:nth-child(7) { display: none; }

.hero-in { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(48px, 9vh, 96px); }
.hero-kicker { opacity: 0; animation: fade .8s calc(var(--pl) + .2s) forwards; }
.hero-title { font-size: clamp(44px, 7vw, 104px); line-height: .98; letter-spacing: -.035em; margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--pl) var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: calc(var(--pl) + .1s); }
.hero-title .line:nth-child(3) > span { animation-delay: calc(var(--pl) + .2s); }
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub { max-width: 52ch; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .82); animation: nudge .8s calc(var(--pl) + .15s) var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; animation: fade .7s calc(var(--pl) + .35s) forwards; }
@keyframes rise { to { transform: none; } }
@keyframes nudge { from { transform: translateY(14px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ticker { border-top: 1px solid var(--line-light); background: rgba(20, 22, 25, .55); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker span {
  padding: 18px 28px; white-space: nowrap;
  font: 600 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
  border-right: 1px solid var(--line-light);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: var(--ink);
  padding: calc(var(--header-h) + clamp(70px, 12vw, 150px)) 0 clamp(56px, 8vw, 96px);
}
.page-hero .hero-media img { animation-duration: 18s; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 22, 25, .9) 0%, rgba(20, 22, 25, .55) 60%, rgba(20, 22, 25, .3) 100%);
}
.page-title { font-size: clamp(40px, 7vw, 92px); letter-spacing: -.035em; line-height: 1; max-width: 14ch; margin-bottom: 22px; }
.page-title em { font-style: normal; color: var(--red); }
.page-sub { max-width: 54ch; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .8); margin: 0; }
.page-hero .sec-num { color: var(--muted-light); }
.page-hero .mosaic { position: absolute; right: 0; bottom: 0; width: min(22vw, 240px); grid-template-columns: repeat(2, 1fr); z-index: -1; }
.page-hero .mosaic i:nth-child(1) { grid-column: 2; }
.page-hero .mosaic i:nth-child(2) { grid-column: 1; grid-row: 2; background: var(--red-deep); }
.page-hero .mosaic i:nth-child(3) { grid-column: 2; grid-row: 2; opacity: .85; }
.page-hero .mosaic i:nth-child(n+4) { display: none; }
.page-hero .sec-num, .page-title, .page-sub { animation: fade .9s var(--pl) var(--ease) both; }
.page-title { animation-delay: calc(var(--pl) + .08s); }
.page-sub { animation-delay: calc(var(--pl) + .18s); }

/* ---------- sections ---------- */
.section { padding-block: var(--sec); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .lede { color: var(--muted-light); }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* intro */
.intro { display: grid; gap: 48px; align-items: center; }
.intro .h-display { font-size: clamp(30px, 4.2vw, 52px); max-width: 20ch; margin-bottom: 28px; }
.intro-figure { position: relative; aspect-ratio: 4 / 3.2; }
.intro-figure picture { height: 100%; }
.figure-bar { position: absolute; top: 0; right: -14px; bottom: 0; width: 14px; background: var(--red); }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.1fr .9fr; gap: 80px; }
}

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(56px, 8vw, 100px);
  background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat;
  background-origin: content-box;
}
.stat { padding: 28px 0 0; }
.stat:nth-child(odd) { padding-right: 16px; }
.stat b { display: block; font: 800 clamp(40px, 5.5vw, 68px)/1 var(--f-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 32px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
  .stat:last-child { border: 0; margin: 0; }
}

/* services grid */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 28px 30px; background: #fff; min-height: 300px;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.svc-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease) .1s; }
.svc-card:hover { color: #fff; }
.svc-card:hover::before { transform: none; }
.svc-card:hover::after { transform: none; }
.svc-n { position: absolute; top: 30px; right: 28px; font: 600 14px var(--f-head); color: var(--muted-light); }
.svc-ico { color: var(--red); margin-bottom: 30px; }
.svc-card h3 { font-size: 22px; margin-bottom: 12px; }
.svc-card p { color: var(--muted); font-size: 15.5px; transition: color .45s; }
.svc-card:hover p { color: var(--muted-light); }
.svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--red); }
.svc-card:hover .svc-more { color: var(--red-soft); }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* feature split */
.feature-in { display: grid; gap: 48px; align-items: center; }
.feature-figure { aspect-ratio: 4 / 5; position: relative; }
.feature-figure picture { height: 100%; }
.feature-figure::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 38%; height: 38%; background: var(--red); z-index: -1; }
.feature { isolation: isolate; }
.feature .h-display { font-size: clamp(30px, 4.2vw, 52px); margin-bottom: 24px; }
.tick-list { display: grid; gap: 14px; margin: 30px 0 38px; }
.tick-list li { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); }
.tick-list .ico { color: var(--red); margin-top: 4px; }
@media (min-width: 900px) { .feature-in { grid-template-columns: .85fr 1fr; gap: 96px; } }

/* vision / mission / values */
.vm { display: grid; gap: 48px; margin-bottom: clamp(56px, 8vw, 96px); }
.vm blockquote { margin: 0; font: 600 clamp(22px, 2.6vw, 32px)/1.3 var(--f-head); letter-spacing: -.015em; }
@media (min-width: 900px) { .vm { grid-template-columns: 1fr 1fr; gap: 80px; } }

.values { display: grid; border-top: 2px solid var(--ink); }
.values li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.val-letter { grid-row: span 2; font: 600 15px/1.6 var(--f-head); color: var(--red); }
.values h3 { font-size: 20px; }
.values p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (min-width: 1000px) {
  .values { grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
  .values li { grid-template-columns: 1fr; border-bottom: 0; border-right: 1px solid var(--line); padding: 28px 24px 32px; }
  .values li:first-child { padding-left: 0; }
  .values li:last-child { border-right: 0; }
  .val-letter { grid-row: auto; margin-bottom: 24px; }
  .values h3 { margin-bottom: 10px; }
}

/* namibia band */
.band { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.band-media { position: absolute; inset: -10% 0; z-index: -1; }
.band-media picture { height: 100%; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 22, 25, .85) 0%, rgba(20, 22, 25, .35) 55%, rgba(20, 22, 25, .05) 100%); }
.band-in { min-height: clamp(340px, 52vw, 620px); display: flex; align-items: flex-end; padding-block: clamp(40px, 6vw, 80px); }
.band-text { font: 800 clamp(32px, 5.6vw, 76px)/1 var(--f-head); letter-spacing: -.035em; margin: 0; }
.band-text span { color: rgba(255, 255, 255, .72); }

/* projects */
.proj-grid { display: grid; gap: 28px; }
.proj-card { background: var(--sand); }
.proj-media { aspect-ratio: 16 / 10; overflow: hidden; }
.proj-media picture { height: 100%; }
.proj-media img { transition: transform 1.2s var(--ease); }
.proj-card:hover .proj-media img { transform: scale(1.05); }
.proj-body { padding: 26px 28px 30px; }
.proj-meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.proj-meta span { background: var(--red); color: #fff; font: 600 12px/1 var(--f-body); padding: 6px 9px; letter-spacing: .06em; }
.proj-card h3 { font-size: 22px; margin-bottom: 12px; }
.proj-loc { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15px; }
.proj-loc .ico { color: var(--red); }
.proj-scope { color: var(--muted); font-size: 15.5px; }
@media (min-width: 800px) { .proj-grid { grid-template-columns: 1fr 1fr; } }

/* cta band */
.cta-band { position: relative; background: var(--red); color: #fff; overflow: hidden; isolation: isolate; }
.cta-in { padding-block: clamp(72px, 10vw, 130px); }
.cta-band .eyebrow { color: rgba(255, 255, 255, .8); }
.cta-title { font-size: clamp(40px, 7vw, 96px); letter-spacing: -.035em; margin-bottom: 36px; }
.cta-title em { font-style: normal; color: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.cta-band .btn { --bg: var(--ink); background: var(--ink); }
.cta-band .btn::before { background: #000; }
.mosaic-cta { position: absolute; right: 0; top: 0; width: min(34vw, 380px); grid-template-columns: repeat(3, 1fr); z-index: -1; }
.mosaic-cta i { background: var(--red-deep); }
.mosaic-cta i:nth-child(1) { grid-column: 3; }
.mosaic-cta i:nth-child(2) { grid-column: 2; grid-row: 1; background: #c9151b; }
.mosaic-cta i:nth-child(3) { grid-column: 3; grid-row: 2; background: var(--ink); }
.mosaic-cta i:nth-child(4) { grid-column: 2; grid-row: 2; }
.mosaic-cta i:nth-child(5) { grid-column: 3; grid-row: 3; background: var(--red-soft); }
.mosaic-cta i:nth-child(6) { display: none; }
@media (max-width: 640px) {
  .mosaic-cta { opacity: .55; }
  .mosaic-hero { top: 96px; bottom: auto; width: 24vw; opacity: .9; }
  .svc-card { min-height: 0; padding: 28px 22px 24px; }
  .svc-ico { margin-bottom: 18px; }
  .svc-more { margin-top: 8px; }
}

/* footer */
.site-footer { background: var(--ink); color: var(--muted-light); font-size: 15px; }
.footer-grid { display: grid; gap: 40px; padding-block: 72px 48px; }
.footer-brand img { width: 220px; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; }
.footer-brand .footer-slogan { font: 800 20px/1.25 var(--f-head); letter-spacing: -.01em; color: #fff; margin-bottom: 12px; }
.footer-h { font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-list { display: grid; gap: 10px; }
.footer-list a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .ico { color: var(--red); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line-light); font-size: 13px; }
.to-top:hover { color: #fff; }
.credit { display: inline-flex; align-items: center; gap: 6px; }
.credit a { color: #fff; border-bottom: 1px solid var(--red); }
.credit a:hover { color: var(--red-soft); }
.heart { color: #fff; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; } }

/* ---------- services page ---------- */
.svc-nav { position: sticky; top: 64px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.svc-nav ul { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a { display: block; white-space: nowrap; padding: 18px 18px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.svc-nav a:hover, .svc-nav a.is-active { color: var(--ink); border-color: var(--red); }
.svc-nav li:first-child a { padding-left: 0; }

.svc-detail { scroll-margin-top: 118px; padding-block: clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.svc-detail:nth-child(even) { background: var(--sand); }
.svc-detail-in { display: grid; gap: 40px; }
.svc-detail-head .ico { color: var(--red); margin-bottom: 22px; }
.svc-detail h2 { font-size: clamp(30px, 4.2vw, 52px); margin-bottom: 18px; }
.svc-detail-fig { aspect-ratio: 16 / 11; margin-top: 32px; }
.svc-detail-fig picture { height: 100%; }
.svc-groups { display: grid; gap: 34px; align-content: start; }
.svc-group h3 { font: 600 13px/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--red-deep); margin-bottom: 12px; }
.svc-group li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); }
.svc-group li::before { content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 10px; background: var(--red); }
@media (min-width: 900px) {
  .svc-detail-in { grid-template-columns: 1fr 1fr; gap: 96px; }
  .svc-detail-head { position: sticky; top: 150px; align-self: start; }
}

/* ---------- about page ---------- */
.about-split { display: grid; gap: 48px; align-items: start; }
.about-split .h-display { font-size: clamp(30px, 4.2vw, 52px); max-width: 18ch; margin-bottom: 26px; }
.about-fig { position: relative; aspect-ratio: 4 / 5; }
.about-fig picture { height: 100%; }
.about-fig .figure-bar { right: auto; left: -14px; }
@media (min-width: 900px) { .about-split { grid-template-columns: 1fr 1fr; gap: 96px; } }

.steps { display: grid; counter-reset: step; border-top: 1px solid var(--line-light); }
.steps li { counter-increment: step; padding: 30px 0; border-bottom: 1px solid var(--line-light); display: grid; grid-template-columns: 64px 1fr; gap: 6px 20px; }
.steps li::before { content: "0" counter(step); grid-row: span 2; font: 600 15px/1.5 var(--f-head); color: var(--red); }
.steps h3 { font-size: 22px; }
.steps p { margin: 0; color: var(--muted-light); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { grid-template-columns: 1fr; border-bottom: 0; border-right: 1px solid var(--line-light); padding: 34px 28px 10px 0; margin-right: 28px; }
  .steps li:last-child { border: 0; margin: 0; }
  .steps li::before { grid-row: auto; margin-bottom: 40px; }
}

/* ---------- team page ---------- */
.leaders { display: grid; gap: 28px; }
.leader { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 32px; background: var(--sand); position: relative; overflow: hidden; }
.leader-mono { width: 96px; height: 96px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 30px var(--f-head); letter-spacing: -.02em; position: relative; }
.leader-mono::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 30px; height: 30px; background: var(--red); }
.leader h3 { font-size: 26px; margin-bottom: 4px; }
.leader-role { font-weight: 600; color: var(--red-deep); margin-bottom: 2px; }
.leader-sub { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 500; padding: 6px 10px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 520px) { .leader { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .leaders { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) {
  .leaders { grid-template-columns: repeat(3, 1fr); }
  .leader { grid-template-columns: 1fr; gap: 28px; align-content: start; }
}

.org { display: grid; justify-items: center; gap: 0; text-align: center; }
.org-node { position: relative; padding: 16px 22px; background: #fff; color: var(--ink); min-width: 220px; border-left: 4px solid var(--red); text-align: left; }
.org-node b { display: block; font: 800 16px/1.3 var(--f-head); }
.org-node small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.org-node.top { background: var(--red); color: #fff; border-left-color: var(--ink); }
.org-node.top small { color: rgba(255, 255, 255, .85); }
.org-v { width: 2px; height: 36px; background: var(--line-light); }
.org-row { display: grid; gap: 28px; width: 100%; justify-items: center; }
.org-col { display: grid; gap: 12px; width: min(100%, 320px); }
.org-col .org-node:not(.lead) { margin-left: 22px; border-left-color: var(--muted-light); }
.org-node.top { min-width: min(100%, 320px); }
.org-top { display: grid; gap: 12px; justify-items: center; width: 100%; }
@media (min-width: 700px) { .org-top { grid-template-columns: auto auto; justify-content: center; gap: 24px; } }
@media (min-width: 900px) {
  .org-row { grid-template-columns: repeat(3, 1fr); align-items: start; position: relative; padding-top: 36px; }
  .org-row::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 2px; background: var(--line-light); }
  .org-col { position: relative; }
  .org-col::before { content: ""; position: absolute; top: -36px; left: 50%; width: 2px; height: 36px; background: var(--line-light); }
}

/* ---------- projects page ---------- */
.proj-list { display: grid; gap: clamp(48px, 7vw, 96px); }
.proj-row { display: grid; gap: 32px; align-items: center; }
.proj-row .proj-media { aspect-ratio: 16 / 10; }
.proj-row h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 16px; }
.proj-facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.proj-facts dt { color: var(--muted); }
.proj-facts dd { margin: 0; font-weight: 500; }
@media (min-width: 900px) {
  .proj-row { grid-template-columns: 1.15fr 1fr; gap: 80px; }
  .proj-row:nth-child(even) .proj-media { order: 2; }
}
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.sectors li { background: var(--ink); padding: 28px 22px; font: 600 17px/1.3 var(--f-head); }
.sectors .ico { color: var(--red); margin-bottom: 18px; }
.sectors li:last-child { grid-column: span 2; }
@media (min-width: 900px) { .sectors { grid-template-columns: repeat(5, 1fr); } .sectors li:last-child { grid-column: auto; } }

/* ---------- contact page ---------- */
.contact-grid { display: grid; gap: 48px; }
.contact-cards { display: grid; gap: 1px; background: var(--line); align-content: start; border: 1px solid var(--line); }
.c-card { display: flex; gap: 18px; padding: 26px 24px; background: #fff; transition: background .3s; }
a.c-card:hover { background: var(--sand); }
.c-card .ico { color: var(--red); margin-top: 2px; }
.c-card small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.c-card span { font-weight: 600; word-break: break-word; }
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; font: 400 16px/1.4 var(--f-body); color: var(--ink);
  background: #fff; border: 1px solid #cfd3d7; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231c2024' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.field .err { display: block; color: var(--red-deep); font-size: 13px; margin-top: 6px; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 18px 20px; margin-bottom: 8px; font-weight: 500; border-left: 4px solid; }
.flash-ok { background: #edf7ef; border-color: #2e8b47; color: #1d5a2e; }
.flash-err { background: #fdeeee; border-color: var(--red); color: var(--red-deep); }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }

/* 404 */
.nf { min-height: 100svh; display: flex; align-items: center; }
.nf-code { font: 800 clamp(120px, 26vw, 300px)/.85 var(--f-head); letter-spacing: -.06em; color: var(--red); margin-bottom: 20px; }

/* ---------- intro preloader (every page load, ~3.4s) ---------- */
.preloader { display: none; }
.preload .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200;
  background: #fff;
  animation: pl-out .75s 2.65s cubic-bezier(.7, 0, .2, 1) forwards;
}
.preload .preloader::after { /* red edge that leads the curtain up */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red);
}
.pl-in { width: min(78vw, 560px); display: grid; justify-items: center; gap: 26px; }
.pl-logo { width: 100%; height: auto; overflow: visible; }
.pl-draw {
  stroke-width: 7; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  fill-opacity: 0;
  animation: pl-stroke 1s var(--ease) forwards, pl-fill .45s ease-out forwards;
}
.pl-v1 { animation-delay: 0s, .8s; animation-duration: .95s, .5s; }
.pl-v2 { animation-delay: .25s, 1s; animation-duration: .95s, .5s; }
.pl-bar { animation-delay: .5s, 1.3s; animation-duration: .7s, .45s; }
.pl-word { animation-delay: .4s, 1.4s; animation-duration: 1.4s, .5s; }
.pl-dot { animation-delay: 1s, 1.45s; animation-duration: .6s, .4s; }
.pl-sub { opacity: 0; transform: translateY(14px); animation: pl-sub .6s 1.6s var(--ease) forwards; }
.pl-slogan {
  margin: 0; font: 600 clamp(13px, 1.6vw, 16px)/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .5em;
}
.pl-slogan span { display: inline-block; opacity: 0; transform: translateY(10px); animation: pl-sub .55s 1.85s var(--ease) forwards; }
.pl-slogan span:last-child { color: var(--red-deep); animation-delay: 2.05s; }
.pl-progress { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.pl-progress::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; animation: pl-bar 2.55s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes pl-stroke { to { stroke-dashoffset: 0; } }
@keyframes pl-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes pl-sub { to { opacity: 1; transform: none; } }
@keyframes pl-bar { to { transform: scaleX(1); } }
@keyframes pl-out { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .preload .preloader { display: none; }
}
