/* ===================================================================
   TOKENS
   =================================================================== */
:root {
  --bg:        #f3f3f1;
  --bg-alt:    #ffffff;
  --bg-tint:   #ecece9;
  --ink:       #15161a;
  --ink-2:     #4a4d52;
  --ink-3:     #84878c;
  --line:      #e0e0db;
  --line-2:    #d2d2cd;
  --dark:      #121317;
  --dark-2:    #0c0d10;
  --dark-line: rgba(255,255,255,0.10);
  --red:       #eb1620;
  --red-dark:  #c5121a;
  --steel:     #6b6e73;

  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1280px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --gut: clamp(2.5rem, 7vw, 7rem);
  --nav-h: 72px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ===================================================================
   RESET / BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
section { scroll-margin-top: calc(var(--nav-h) + 44px); }

::selection { background: var(--red); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-tint); }
::-webkit-scrollbar-thumb { background: var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ===================================================================
   LAYOUT HELPERS
   =================================================================== */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Section eyebrow / kicker */
.kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.kicker .idx { color: var(--red); font-weight: 600; }

/* Section heading */
.h-sec {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .98;
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  color: var(--ink);
  max-width: 16ch;
}
.lead {
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  min-height: 48px;
  border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost-dark { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-dark:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn-ghost-light { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light:hover { background: var(--ink); color: #fff; }

/* ===================================================================
   LOGO
   =================================================================== */
.logo { height: 30px; width: auto; color: var(--ink); display: block; }
.logo--light { color: #fff; }

/* ===================================================================
   UTILITY BAR + HEADER
   =================================================================== */
.topbar {
  background: var(--dark-2);
  color: rgba(255,255,255,.62);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 36px; padding-block: .35rem;
}
.topbar .tb-list { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar .tb-list span { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.topbar .dot { width: 6px; height: 6px; background: var(--red); display: inline-block; }
.topbar .tb-right { color: rgba(255,255,255,.45); }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,243,241,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
header.site.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.08); background: rgba(243,243,241,.95); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 1.5rem;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav-links a {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: .5rem 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: inline-flex; }
.nav-cta .btn { padding: .7rem 1.2rem; min-height: 44px; }

/* Hamburger */
.burger {
  display: none; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: var(--bg);
  display: none; flex-direction: column; padding: 2rem var(--pad);
  gap: .25rem; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.7rem; font-weight: 500; letter-spacing: .01em;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 1rem;
}
.mobile-menu a .mi { font-family: var(--font-mono); font-size: .8rem; color: var(--red); }
.mobile-menu .btn { margin-top: 1.5rem; justify-content: center; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  min-height: clamp(560px, 90vh, 940px);
  display: flex; align-items: stretch;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
  opacity: .34;
}
.hero__grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,13,16,.96) 0%, rgba(12,13,16,.82) 42%, rgba(12,13,16,.45) 100%),
    linear-gradient(0deg, rgba(12,13,16,.95) 0%, rgba(12,13,16,0) 40%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.045) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(255,255,255,.045) 79px 80px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.15));
}
.hero .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; width: 100%; padding-block: clamp(3rem, 8vh, 6rem); }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.66);
  display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem;
}
.hero__eyebrow .bar { width: 34px; height: 2px; background: var(--red); }
.hero__logo { display: block; width: clamp(248px, 40vw, 480px); height: auto; color: #fff; margin-bottom: clamp(1.6rem, 3.2vw, 2.4rem); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  line-height: .9; letter-spacing: -.01em;
  font-size: clamp(2.4rem, 6.8vw, 5.6rem);
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--red); }
.hero__sub {
  margin-top: 1.5rem; max-width: 52ch;
  color: rgba(255,255,255,.74); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.7;
}
.hero__cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__meta {
  margin-top: clamp(1.6rem, 3.4vh, 2.6rem);
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.hero__meta .sep { width: 1px; height: 14px; background: rgba(255,255,255,.25); }

/* vertical EST label */
.hero__est {
  position: absolute; right: clamp(.5rem, 2vw, 2rem); top: 50%;
  transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .5em;
  text-transform: uppercase; color: rgba(255,255,255,.3); z-index: 2;
}

/* Hero stat strip */
.hero__stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--dark-line);
  background: rgba(12,13,16,.55);
  backdrop-filter: blur(2px);
}
.hero__stats .grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat {
  padding: clamp(1.4rem, 3vw, 2.2rem) var(--pad);
  border-left: 1px solid var(--dark-line);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat .num .pl { color: var(--red); }
.stat .lbl {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: .55rem;
}
.stat--live { background: rgba(235,22,32,.07); }
.stat--live .num { color: var(--red); }
.stat--live .lbl { color: rgba(255,255,255,.66); }
.stat--live .live {
  position: relative; display: inline-block; width: 7px; height: 7px;
  background: var(--red); margin-right: .5rem; vertical-align: middle;
}
.stat--live .live::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}

/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee {
  background: var(--red); color: #fff; overflow: hidden;
  border-block: 1px solid var(--red-dark);
  --speed: 32s;
}
.marquee__track {
  display: flex; width: max-content; gap: 0;
  animation: scroll var(--speed) linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: .04em;
  padding: .9rem clamp(1.2rem, 3vw, 2.2rem);
  display: inline-flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem);
  white-space: nowrap;
}
.marquee__track span::after { content: "/"; color: rgba(255,255,255,.5); font-weight: 400; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===================================================================
   ABOUT
   =================================================================== */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about p + p { margin-top: 1.1rem; }
.about p { color: var(--ink-2); }
.about__sign {
  margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.about__sign .rule { flex: 0 0 40px; height: 2px; background: var(--red); }
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  filter: grayscale(.15) contrast(1.03);
}
.about__stamp {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--red); color: #fff; padding: 1rem 1.3rem;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  line-height: 1; letter-spacing: .02em;
}
.about__stamp .big { font-size: 1.8rem; display: block; }
.about__stamp .small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; opacity: .85; margin-top: .35rem; display: block; }
.about__corner { position: absolute; top: -10px; right: -10px; width: 56px; height: 56px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }

/* ===================================================================
   SERVICES
   =================================================================== */
.sec-head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head .lead { margin-top: 1.2rem; }
.services { background: var(--bg-alt); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.svc {
  position: relative; padding: clamp(1.8rem, 2.6vw, 2.6rem);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  transition: background .3s var(--ease);
  overflow: hidden;
}
.svc-grid { margin: 0; }
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--red); transition: width .35s var(--ease);
}
.svc:hover { background: var(--bg); }
.svc:hover::before { width: 100%; }
.svc__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.4rem; }
.svc__icon { width: 40px; height: 40px; color: var(--ink); }
.svc__icon svg { width: 40px; height: 40px; stroke: currentColor; }
.svc:hover .svc__icon { color: var(--red); }
.svc__no { font-family: var(--font-mono); font-size: .8rem; color: var(--line-2); font-weight: 600; }
.svc h3 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.32rem; letter-spacing: .01em; line-height: 1.1; margin-bottom: .7rem;
}
.svc p { font-size: .94rem; color: var(--ink-2); line-height: 1.65; }

/* ===================================================================
   PROCESS
   =================================================================== */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.proc {
  position: relative; padding: 2rem clamp(1.2rem, 2vw, 1.8rem) 2rem 0;
  border-top: 2px solid var(--ink);
}
.proc::before {
  content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0;
  background: var(--red); transition: width .5s var(--ease);
}
.proc.in::before { width: 46px; }
.proc__no {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--ink);
  margin-bottom: 1rem; font-variant-numeric: tabular-nums;
}
.proc__no .d { color: var(--red); }
.proc h3 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .02em; margin-bottom: .6rem; line-height: 1.15;
}
.proc p { font-size: .9rem; color: var(--ink-2); line-height: 1.6; max-width: 30ch; }

/* ===================================================================
   REFERENCES / PROJECTS
   =================================================================== */
.refs { background: var(--dark); color: #fff; }
.refs .kicker { color: rgba(255,255,255,.55); }
.refs .h-sec { color: #fff; }
.refs .lead { color: rgba(255,255,255,.6); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.4rem); }
.proj {
  position: relative; overflow: hidden; background: var(--dark-2);
  display: block; aspect-ratio: 16/13;
}
.proj img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25) contrast(1.04);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.proj:hover img { transform: scale(1.07); filter: grayscale(0) contrast(1.05); }
.proj__tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--dark-2); color: #fff;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  padding: .5rem .8rem; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line);
}
.proj__tag b { color: var(--red); font-weight: 600; }
.proj__veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(12,13,16,.92) 0%, rgba(12,13,16,.15) 55%, rgba(12,13,16,0) 100%);
  transition: background .35s var(--ease);
}
.proj:hover .proj__veil { background: linear-gradient(0deg, rgba(12,13,16,.92) 0%, rgba(235,22,32,.35) 70%, rgba(235,22,32,.1) 100%); }
.proj__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.3rem; }
.proj__info .yr { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: var(--red); display:block; margin-bottom:.3rem; }
.proj__info h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.3rem; line-height: 1; letter-spacing: .01em; }
.proj__info .meta { font-family: var(--font-mono); font-size: .72rem; color: rgba(255,255,255,.6); margin-top: .45rem; letter-spacing: .04em; }

/* References — long-term contract engagements */
.ref-hist { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.ref-hist__head {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.ref-hist__head::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.rh { display: grid; grid-template-columns: 132px 1fr; gap: clamp(1rem, 3vw, 2.2rem); padding: 1.3rem 0; border-top: 1px solid var(--dark-line); align-items: baseline; }
.rh:last-child { border-bottom: 1px solid var(--dark-line); }
.rh__yr { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em; color: var(--red); }
.rh__body h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.18rem; letter-spacing: .01em; line-height: 1.1; color: #fff; }
.rh__body p { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: .4rem; line-height: 1.6; max-width: 62ch; }
@media (max-width: 560px) { .rh { grid-template-columns: 1fr; gap: .3rem; } }

/* ===================================================================
   PARTNERS
   =================================================================== */
.partners { background: var(--bg-alt); border-block: 1px solid var(--line); }
.ptn-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ptn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 120px; padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.ptn:hover { background: var(--bg); }
.ptn__logo {
  max-height: 46px; max-width: 82%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.ptn:hover .ptn__logo { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
.ptn__name {
  display: none;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .03em; color: var(--ink-3);
  transition: color .25s var(--ease);
}
.ptn:hover .ptn__name { color: var(--red); }
.ptn--noimg .ptn__logo { display: none; }
.ptn--noimg .ptn__name { display: block; }

/* ===================================================================
   CONTACT
   =================================================================== */
.contact { background: var(--dark); color: #fff; }
.contact .kicker { color: rgba(255,255,255,.55); }
.contact .h-sec { color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2.h-sec { margin-bottom: 2.4rem; }
.ci { display: flex; gap: 1.1rem; padding-block: 1.2rem; border-top: 1px solid var(--dark-line); }
.ci:last-of-type { border-bottom: 1px solid var(--dark-line); }
.ci__icon { flex: 0 0 22px; color: var(--red); margin-top: 2px; }
.ci__icon svg { width: 22px; height: 22px; }
.ci h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .45rem; }
.ci p { color: rgba(255,255,255,.85); line-height: 1.65; font-size: .96rem; }
.ci p span { color: rgba(255,255,255,.55); }
.ci a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.28); transition: color .2s var(--ease), border-color .2s var(--ease); }
.ci a:hover, .ci a:focus-visible { color: var(--red); border-color: var(--red); }
.ci__tel { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; padding-block: .2rem; }
.ci__tel a { font-family: var(--font-mono); letter-spacing: .02em; }
.contact__cta { margin-top: 2rem; }
.map { width: 100%; height: 100%; min-height: 420px; border: 1px solid var(--dark-line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) contrast(1.05) invert(.92) hue-rotate(180deg); }

/* ===================================================================
   FOOTER
   =================================================================== */
footer.site { background: var(--dark-2); color: rgba(255,255,255,.55); border-top: 1px solid var(--dark-line); }
footer.site .wrap { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--dark-line); }
.foot-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.foot-nav a { color: rgba(255,255,255,.6); transition: color .2s; }
.foot-nav a:hover { color: var(--red); }
.foot-legal { padding-top: 2rem; font-family: var(--font-mono); font-size: .72rem; line-height: 1.9; letter-spacing: .03em; color: rgba(255,255,255,.42); }
.foot-legal .copy { margin-top: 1rem; color: rgba(255,255,255,.32); }

/* ===================================================================
   FEATURED SERVICE
   =================================================================== */
.svc-feature {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.svc-feature::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 130px; background: var(--red); }
.svc-feature .tag {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1rem;
}
.svc-feature .tag::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.svc-feature h3 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: .98; letter-spacing: .01em;
}
.svc-feature p { color: rgba(255,255,255,.74); font-size: 1rem; line-height: 1.7; max-width: 48ch; }
.svc-feature .fnote {
  margin-top: 1.4rem; display: flex; gap: 1.4rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.svc-feature .fnote span { display: inline-flex; align-items: center; gap: .5rem; }
.svc-feature .fnote i { width: 5px; height: 5px; background: var(--red); display: inline-block; }
.svc-feature .flink { margin-top: 1.7rem; }

/* ===================================================================
   FEATURED PROJECT
   =================================================================== */
.proj-feature {
  position: relative; display: grid; grid-template-columns: 0.82fr 1.18fr;
  background: var(--dark); color: #fff; overflow: hidden;
  min-height: 470px; margin-bottom: clamp(1rem, 1.6vw, 1.4rem);
}
.proj-feature .pf-text {
  position: relative; z-index: 2;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.proj-feature .pf-text::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 130px; background: var(--red); }
.proj-feature .pf-media { position: relative; overflow: hidden; }
.proj-feature .pf-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.12) contrast(1.04); transition: transform .8s var(--ease), filter .5s var(--ease); }
.proj-feature:hover .pf-media img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
.proj-feature .pf-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--dark) 0%, rgba(18,19,23,0) 14%); }
.pf-tag { display: inline-block; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; padding: .5rem .85rem; margin-bottom: 1.5rem; }
.pf-kick { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .8rem; }
.proj-feature h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: .95; color: #fff; letter-spacing: -.005em; }
.proj-feature .pf-text p { color: rgba(255,255,255,.74); margin-top: 1rem; font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 1.65; max-width: 44ch; }
.pf-meta { margin-top: 1.6rem; display: flex; gap: 1.2rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.pf-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.pf-meta i { width: 5px; height: 5px; background: var(--red); display: inline-block; }

/* ===================================================================
   LIVE INDICATOR · VIEW-ALL · PROJEKTI U TIJEKU
   =================================================================== */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; background: var(--red); flex: 0 0 auto; }
.live-dot::after { content: ""; position: absolute; inset: 0; background: var(--red); animation: livePulse 1.8s ease-out infinite; }
.kicker--live::before { display: none; }

.refs-all { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--dark-line); display: flex; justify-content: center; }

.wip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.4rem); }
.wip { display: flex; flex-direction: column; background: var(--bg-alt); border: 1px solid var(--line); transition: border-color .3s var(--ease); }
.wip:hover { border-color: var(--red); }
.wip__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.wip__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.03); transition: transform .6s var(--ease); }
.wip:hover .wip__media img { transform: scale(1.05); }
.wip__badge { position: absolute; top: 0; left: 0; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; background: var(--dark); color: #fff; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; }
.wip__body { display: flex; flex-direction: column; gap: .7rem; flex: 1; padding: clamp(1.2rem, 2vw, 1.6rem); }
.wip__body h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.18rem; line-height: 1.08; letter-spacing: .01em; }
.wip__meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.wip__prog { margin-top: auto; }
.wip__prog-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .45rem; }
.wip__pct { color: var(--red); font-weight: 600; }
.wip__bar { height: 4px; background: var(--line-2); position: relative; overflow: hidden; }
.wip__bar span { position: absolute; inset: 0 auto 0 0; background: var(--red); }
.wip__foot { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ===================================================================
   REVEAL ANIMATION
   =================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .wip-grid { grid-template-columns: repeat(2, 1fr); }
  .ptn-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; margin-right: -10px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 460px; }
  .svc-feature { grid-template-columns: 1fr; gap: 1.6rem; }
  .proj-feature { grid-template-columns: 1fr; min-height: 0; }
  .proj-feature .pf-media { order: -1; aspect-ratio: 16 / 9; }
  .proj-feature .pf-media::before { background: linear-gradient(0deg, var(--dark) 0%, rgba(18,19,23,0) 16%); }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
  .stat--live { grid-column: 1 / -1; }
  .hero__est { display: none; }
}
@media (max-width: 560px) {
  .topbar .tb-right { display: none; }
  .hero__logo { width: min(84vw, 360px); margin-bottom: clamp(1.8rem, 6vw, 2.4rem); }
  .svc-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .wip-grid { grid-template-columns: 1fr; }
  .ptn-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: 1fr; }
  .hero__stats .grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ===================================================================
   REFERENCE LIST (searchable)
   =================================================================== */
.reflist { background: var(--bg-alt); border-top: 1px solid var(--line); }
.reflist__search {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem); flex-wrap: wrap;
}
.reflist__input-wrap {
  position: relative; flex: 1; min-width: 0; max-width: 520px;
}
.reflist__search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-3); pointer-events: none;
}
.reflist__input {
  width: 100%; padding: .9rem 1rem .9rem 2.8rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .25s var(--ease);
}
.reflist__input::placeholder { color: var(--ink-3); }
.reflist__input:focus { outline: none; border-color: var(--red); }
.reflist__count {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.reflist__table { border-top: 1px solid var(--line); }
.reflist__row {
  display: grid; grid-template-columns: 120px 1fr; gap: clamp(.8rem, 2vw, 1.6rem);
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background .15s var(--ease);
}
.reflist__row:hover { background: var(--bg); }
.reflist__row--active { background: rgba(235,22,32,.03); }
.reflist__row--active:hover { background: rgba(235,22,32,.06); }
.reflist__row.hidden { display: none; }
.reflist__year {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .03em;
  color: var(--red); white-space: nowrap;
}
.reflist__desc {
  font-size: .92rem; color: var(--ink-2); line-height: 1.55;
}
.reflist__live {
  display: inline-flex; align-items: center; margin-right: .4rem; vertical-align: middle;
}
.reflist__empty {
  padding: 3rem 0; text-align: center;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em;
  color: var(--ink-3);
}
@media (max-width: 560px) {
  .reflist__search { flex-direction: column; align-items: stretch; }
  .reflist__input-wrap { max-width: none; }
  .reflist__count { text-align: right; }
  .reflist__row { grid-template-columns: 1fr; gap: .2rem; }
  .reflist__year { font-size: .7rem; }
  .reflist__desc { font-size: .88rem; }
}

/* ===================================================================
   PROJECT DETAIL PAGE
   =================================================================== */
.proj-bread {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.6rem;
}
.proj-bread a { color: rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.15); }
.proj-bread a:hover { color: var(--red); border-color: var(--red); }
.proj-bread span { color: rgba(255,255,255,.8); }

.proj-hero {
  background: var(--dark); color: #fff;
  padding-block: var(--gut);
}

.proj-content { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.proj-content h2 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.6rem; letter-spacing: .01em; line-height: 1.05;
  color: var(--ink); margin-top: 2.4rem; margin-bottom: 1rem;
  padding-top: 1.4rem; border-top: 2px solid var(--red);
}
.proj-content h3 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 1.2rem; color: var(--ink); margin-top: 1.8rem; margin-bottom: .6rem;
}
.proj-content ul { padding-left: 1.2rem; list-style: none; }
.proj-content ul li { position: relative; padding-left: 1rem; margin-bottom: .5rem; }
.proj-content ul li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: 5px; height: 5px; background: var(--red);
}
.proj-content p + p { margin-top: 1rem; }
.proj-content strong { color: var(--ink); font-weight: 600; }

/* Gallery grid */
.gallery { background: var(--dark); padding: var(--gut) 0; }
.gallery__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.5rem, 1vw, .8rem);
}
.gallery__item { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.2) contrast(1.04);
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); filter: grayscale(0); }
.gallery__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(12,13,16,.85) 0%, transparent 100%);
  padding: 1rem; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .06em; color: rgba(255,255,255,.7);
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.gallery__item:hover .gallery__caption { transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(12,13,16,.96); display: none;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; color: #fff; background: none; border: none;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2rem; padding: 1rem; background: none; border: none; cursor: pointer;
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em;
  color: rgba(255,255,255,.55);
}

/* Project archive page */
.archive-hero {
  background: var(--dark); color: #fff;
  padding-top: var(--gut);
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.archive-hero .h-sec { color: #fff; }

@media (max-width: 860px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; }
}
