:root {
  --ink: #05070a;
  --ink-2: #0b1018;
  --ink-3: #111927;
  --navy: #071321;
  --paper: #f4f7fa;
  --paper-2: #eaf0f5;
  --white: #ffffff;
  /* Text on light backgrounds (all pass WCAG AA on white, --paper and --paper-2) */
  --text: #0b1727;
  --text-body: #334456;
  --text-muted: #536273;
  --text-soft: #5f6d7c;
  /* Text on dark backgrounds (--navy / --ink) */
  --on-dark: #b9c8d6;
  --muted: #aeb9c7;
  --on-dark-soft: #95a6b6;
  --on-dark-faint: #708190;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(8, 21, 38, 0.14);
  --line-light: #dde4eb;
  --control: #7f8d9b;
  --blue: #008fda;
  --blue-2: #00b7ff;
  --blue-deep: #005a98;
  --max: 1240px;
  --gutter: 24px;
  --fs-micro: .72rem;
  --shadow: 0 26px 70px rgba(2, 9, 18, 0.2);
  /* PV.5.10 — anthracite layers for the dark pages: no pure black, a slight tone step between
     sections, off-white / light grey text; cyan (--blue-2) only for thin lines, accents and hover.
     Small text in --an-faint still passes WCAG AA on --an-3. */
  --an-0: #15171a; /* darkest: footer, sticky header, mobile menu */
  --an-1: #1a1c20; /* page base */
  --an-2: #1f2226; /* alternate section */
  --an-3: #262a2f; /* surface: photo frame, panel, control */
  --an-4: #2e3238; /* hover, open menu */
  --an-line: rgba(236, 234, 228, .09);
  --an-line-2: rgba(236, 234, 228, .17);
  --an-text: #ecebe6;
  --an-body: #c6c8ca;
  --an-muted: #9da1a6;
  --an-faint: #8f949a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
/* `hidden` always wins, also on elements styled as flex (buttons, the WhatsApp link). */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: white; color: var(--navy); padding: 12px 18px; border-radius: 4px; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: white; transition: background .25s ease, box-shadow .25s ease; }
.site-header.is-sticky { position: fixed; background: rgba(21, 23, 26, 0.94); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--an-line); }
/* Every page has the same header: logo, main menu and quote button in one 88 px row (78 px on
   phones). There is no address/phone/e-mail bar above it; the page tops below are sized to it. */
.nav-row { height: 88px; display: flex; align-items: center; gap: 44px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: white; }
.brand-logo { width: 214px; height: 54px; object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.primary-nav a { position: relative; color: #d3d5d6; font-size: .84rem; font-weight: 700; letter-spacing: .03em; }
.primary-nav a::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: -9px; background: var(--blue-2); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--an-text); }
.menu-toggle { display: none; }

/* PV.5.10: a solid off-white button (most sit on the dark pages), no gradient or lift; cyan only as a
   thin line on hover. On a light background (the contact form) it is anthracite (contact.css). */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; color: var(--an-0); background: var(--an-text); border: 1px solid var(--an-text); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { color: var(--an-0); background: #fff; border-color: #fff; box-shadow: inset 0 -2px 0 var(--blue-2); }
.button-small { min-height: 44px; padding: 0 20px; }
.button-light { color: var(--an-text); background: transparent; border-color: var(--an-line-2); }
.button-light:hover { color: var(--an-0); background: var(--an-text); border-color: var(--an-text); }
/* The header's quote button: an outline, filled on hover. */
.nav-cta { color: var(--an-text); background: transparent; border-color: var(--an-line-2); }
.nav-cta:hover { color: var(--an-0); background: var(--an-text); border-color: var(--an-text); box-shadow: none; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--an-text); font-weight: 750; font-size: .9rem; }
.text-link span { color: var(--blue-2); font-size: 1.2em; transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.dark-link { color: var(--an-text); }

.hero { position: relative; min-height: 760px; height: min(100svh, 960px); color: var(--an-text); overflow: hidden; background: var(--an-1); }
/* Hero slider (slides in hero-slides.js, the first one also written in index.html; rotated by
   script.js): the photos stack in .hero-slides under the scrim, text and buttons. While rotating
   only the active photo shows and the next one fades in over it; a photo sets its own focus with
   --slide-position (landscape copy) and --slide-position-m (portrait copy, ≤ 820 px). */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--slide-position, 68% 50%); filter: saturate(.92) contrast(1.06); }
.hero-slides.is-rotating .hero-media { opacity: 0; }
.hero-slides.is-rotating .hero-media.is-active { opacity: 1; }
.hero-slides.is-rotating .hero-media.is-entering { z-index: 1; opacity: 1; animation: hero-fade-in 1.2s ease; }
@keyframes hero-fade-in { from { opacity: 0; } }
/* PV.3.1: darker text column on the left, the studio stays readable on the right.
   PV.5.10: the scrim is anthracite, not black. */
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,23,26,.94) 0%, rgba(21,23,26,.84) 30%, rgba(21,23,26,.4) 52%, rgba(21,23,26,.08) 74%, rgba(21,23,26,.3) 100%), linear-gradient(0deg, rgba(21,23,26,.88) 0%, transparent 34%), linear-gradient(180deg, rgba(21,23,26,.7) 0%, transparent 22%); }
/* The grid starts under the header; the text keeps its distance from the menu. */
.hero-grid { position: absolute; inset: 88px 0 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(90deg, #000, transparent 66%); }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; left: -220px; top: 180px; border: 1px solid rgba(0,183,255,.16); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; padding-top: clamp(165px, calc(25vh - 35px), 215px); }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 13px; color: var(--an-body); font-size: .75rem; line-height: 1.2; letter-spacing: .18em; font-weight: 800; text-transform: uppercase; }
.eyebrow span { display: block; width: 42px; height: 1px; background: var(--blue-2); }
.eyebrow.dark { color: var(--an-muted); }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.7rem, 5.1vw, 5.1rem); line-height: 1; letter-spacing: -.05em; font-weight: 750; text-wrap: balance; }
.hero-lede { max-width: 600px; margin: 26px 0 0; color: var(--an-body); font-size: clamp(1rem, 1.15vw, 1.14rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
/* PV.3.1: the caption row is quieter so it does not compete with the CTAs.
   PV.4.3: the link sits next to the caption, clear of the fixed WhatsApp button (bottom right). */
.hero-foot { position: absolute; z-index: 3; bottom: 30px; left: 0; right: 0; display: flex; justify-content: flex-start; align-items: center; gap: 36px; border-top: 1px solid var(--an-line); padding-top: 16px; opacity: .82; }
.hero-foot p { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.hero-foot strong { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-foot p span { color: var(--an-muted); font-size: .74rem; }
.hero-foot > a { color: var(--an-body); font-size: var(--fs-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-foot > a span { color: var(--blue-2); margin-left: 8px; }
/* PV.5.6: slider controls (added by script.js with two or more slides): previous / dots / next /
   pause-play at the right end of the caption row — the content's right edge, but always clear of the
   fixed WhatsApp button (bottom right); on phones at the left. */
.hero-controls-bar { position: absolute; z-index: 4; bottom: 18px; left: var(--gutter); right: max(calc((100% - var(--max)) / 2), 168px); display: flex; justify-content: flex-end; pointer-events: none; }
.hero-controls { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.hero-control { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--an-body); background: rgba(21,23,26,.45); border: 1px solid var(--an-line-2); font: inherit; font-size: .95rem; line-height: 1; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.hero-control:hover { color: var(--an-text); border-color: var(--blue-2); background: rgba(21,23,26,.72); }
.hero-dots { display: flex; align-items: center; gap: 2px; padding: 0 6px; }
.hero-dot { position: relative; width: 28px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; }
.hero-dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: rgba(255,255,255,.34); transition: background .2s ease; }
.hero-dot:hover::before { background: rgba(255,255,255,.72); }
.hero-dot[aria-current="true"]::before { height: 2px; background: var(--blue-2); }
.hero-dot:disabled { opacity: .3; cursor: default; }
.hero-toggle span { position: relative; width: 12px; height: 12px; }
.hero-toggle span::before, .hero-toggle span::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.hero-toggle span::before { left: 1px; }
.hero-toggle span::after { right: 1px; }
.hero-toggle.is-paused span::before { left: 2px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.hero-toggle.is-paused span::after { display: none; }

/* PV.5.10: the home page's sections step through the anthracite tones (no white or navy band). */
.proof-strip { background: var(--an-2); color: var(--an-text); border-top: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); }
.proof-grid { min-height: 154px; display: grid; grid-template-columns: .8fr .8fr .8fr 1.8fr; gap: 0; align-items: stretch; }
.proof-grid > div { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--an-line); }
.proof-grid > div + div { padding-left: 34px; }
.proof-grid strong { color: var(--an-text); font-size: 2rem; font-weight: 400; line-height: 1; }
.proof-grid span { color: var(--an-muted); margin-top: 8px; font-size: .78rem; }
.proof-grid > p { margin: 0; align-self: center; padding-left: 48px; color: var(--an-body); font-size: .95rem; }

.section { padding: 122px 0; }
.section-heading { margin-bottom: 58px; }
.section-heading h2, .product-copy h2, .approach-intro h2, .documents-grid h2, .contact-grid h2 { margin: 0; letter-spacing: -.04em; line-height: 1.08; font-size: clamp(2.25rem, 4.2vw, 4.6rem); text-wrap: balance; }
.split-heading { display: grid; grid-template-columns: 1.5fr .7fr; gap: 80px; align-items: end; }
.split-heading > p { margin: 0 0 8px; color: var(--an-muted); font-size: 1.02rem; }
.solutions-section { color: var(--an-text); background: var(--an-1); }
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--an-line-2); border-left: 1px solid var(--an-line); }
.solution-card { min-height: 390px; padding: 32px 28px 30px; border-right: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); background: transparent; transition: background .25s ease, color .25s ease; }
.solution-card:hover, .solution-card.is-active { color: var(--an-text); background: var(--an-3); }
.solution-number { color: var(--an-faint); font-size: .73rem; letter-spacing: .14em; }
.solution-card:hover .solution-number, .solution-card.is-active .solution-number { color: var(--an-muted); }
.solution-card h3 { margin: 62px 0 14px; font-size: 1.28rem; line-height: 1.2; }
.solution-card p { min-height: 95px; margin: 0; color: var(--an-muted); font-size: .9rem; line-height: 1.7; }
.solution-card:hover p, .solution-card.is-active p { color: var(--an-body); }
.solution-card a { display: inline-flex; gap: 12px; align-items: center; margin-top: 28px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.solution-card a span { color: var(--blue-2); }
.line-icon, .pulse-icon, .node-icon { height: 50px; margin-top: 44px; display: flex; align-items: center; gap: 7px; }
.line-icon i { width: 46px; height: 3px; background: linear-gradient(90deg, var(--blue-deep), var(--blue-2)); box-shadow: 0 0 14px rgba(0,183,255,.55); transform: rotate(-12deg); }
.line-icon.vertical i { width: 3px; height: 48px; transform: rotate(12deg); }
.pulse-icon i { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px rgba(0,183,255,.6); }
.pulse-icon i:nth-child(2), .pulse-icon i:nth-child(3) { width: 20px; height: 20px; }
.node-icon { position: relative; width: 80px; }
.node-icon::before, .node-icon::after { content: ""; position: absolute; background: var(--blue); opacity: .65; }
.node-icon::before { width: 60px; height: 1px; top: 24px; left: 8px; }
.node-icon::after { width: 1px; height: 42px; top: 4px; left: 38px; }
.node-icon i { position: relative; z-index: 1; width: 11px; height: 11px; border: 2px solid var(--blue-2); background: var(--an-1); border-radius: 50%; }
.node-icon i:nth-child(2) { margin-left: 17px; margin-top: -28px; }
.node-icon i:nth-child(3) { margin-left: -12px; margin-top: 30px; }
.node-icon i:nth-child(4) { margin-left: 13px; }

.product-callout { background: var(--an-2); color: var(--an-text); overflow: hidden; border-top: 1px solid var(--an-line); border-bottom: 1px solid var(--an-line); }
.product-panel { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: center; }
.product-panel::before { content: ""; position: absolute; width: 650px; height: 650px; right: -230px; top: 50%; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(0,183,255,.12); }
.product-copy { position: relative; z-index: 1; }
.product-copy h2 { max-width: 750px; }
.product-copy > p:not(.eyebrow) { max-width: 640px; color: var(--an-body); margin: 26px 0 34px; }
.spec-stack { position: relative; z-index: 1; border-top: 1px solid var(--an-line-2); }
.spec-stack div { min-height: 82px; display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: center; border-bottom: 1px solid var(--an-line-2); }
.spec-stack span { color: var(--an-muted); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; }
.spec-stack strong { font-size: .95rem; }

.projects-section { color: var(--an-text); background: var(--an-1); }
/* PV.3.1: heading on its own line, a full-width ruled filter bar, then an even 7/5 editorial grid */
.projects-heading { margin-bottom: 48px; }
.project-filters { display: flex; gap: 0 36px; flex-wrap: nowrap; margin-top: 44px; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--an-line-2); }
.project-filters::-webkit-scrollbar { display: none; }
.project-filters button { position: relative; flex: 0 0 auto; border: 0; background: transparent; color: var(--an-muted); padding: 16px 0 17px; cursor: pointer; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: color .2s ease; }
.project-filters button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--blue-2); transition: right .25s ease; }
.project-filters button:hover { color: var(--an-text); }
.project-filters button.is-active { color: var(--an-text); }
.project-filters button.is-active::after { right: 0; }
/* Filter bars scroll sideways, so their focus ring is drawn inside the button. */
.project-filters button:focus-visible, .archive-filters button:focus-visible, .category-index a:focus-visible { outline: 3px solid var(--blue-2); outline-offset: -3px; }
/* PV.5.10 project cards (home and Projeler): a thin info line above the photo — place on the left,
   year on the right, only what the record has (nothing is invented; an empty line keeps just its
   rule) — then the photo as the main element, a small category line and the large project name.
   No box, heavy border or shadow; on hover a slow zoom and a thin cyan line under the photo. */
.card-topline { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; height: 30px; margin: 0 0 12px; padding: 0 0 9px; overflow: hidden; border-bottom: 1px solid var(--an-line-2); color: var(--an-muted); font-size: .68rem; font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.card-topline:empty { height: auto; padding: 0; }
.card-topline span:last-child { font-variant-numeric: tabular-nums; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 60px 28px; }
.project-card { grid-column: span 4; transition: opacity .2s ease, transform .2s ease; }
.project-card-wide { grid-column: span 7; }
.project-card-narrow { grid-column: span 5; }
.project-card.is-hidden { display: none; }
.project-media { position: relative; height: clamp(250px, 27vw, 380px); overflow: hidden; background: var(--an-3); }
.project-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-2); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.project-card:hover img { transform: scale(1.035); }
.project-card:hover .project-media::after, .project-card a:focus-visible .project-media::after { transform: scaleX(1); }
.project-meta { display: grid; gap: 7px; padding: 16px 0 0; }
.project-meta span { display: flex; align-items: center; gap: 10px; color: var(--an-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.project-meta span::before { content: ""; width: 14px; height: 1px; background: var(--blue-2); }
.project-meta strong { color: var(--an-text); font-size: 1.42rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.project-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin: 0; padding: 34px 32px; color: var(--an-body); background: var(--an-2); border-left: 2px solid var(--blue-2); }
.project-empty[hidden] { display: none; }
.section-action { margin-top: 48px; display: flex; justify-content: flex-end; }

.archive-page { background: var(--paper-2); }
.archive-header { background: rgba(21, 23, 26, .94); }
.archive-hero { position: relative; overflow: hidden; padding: 195px 0 54px; color: var(--an-text); background: linear-gradient(160deg, var(--an-2), var(--an-0) 72%); }
.archive-hero::after { content: ""; position: absolute; inset: 122px 0 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent, #000 34%, transparent); }
.archive-orbit { position: absolute; z-index: 1; border: 1px solid rgba(0,183,255,.18); border-radius: 50%; pointer-events: none; }
.archive-orbit-one { width: 620px; height: 620px; right: -220px; top: 52px; }
.archive-orbit-two { width: 360px; height: 360px; right: -90px; top: 182px; }
.archive-hero-grid, .archive-summary { position: relative; z-index: 2; }
.archive-hero-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 90px; align-items: end; }
.archive-hero h1 { max-width: 920px; margin: 0; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.archive-hero-grid > p { margin: 0 0 10px; color: var(--an-body); font-size: 1.02rem; line-height: 1.8; }
.archive-summary { display: grid; grid-template-columns: repeat(3, 1fr); width: min(calc(100% - 2 * var(--gutter)), 760px); margin: 84px auto 0 max(var(--gutter), calc((100% - var(--max)) / 2)); border-top: 1px solid var(--an-line-2); }
.archive-summary div { padding: 22px 30px 0 0; }
.archive-summary strong { display: block; color: var(--an-text); font-size: 1.9rem; font-weight: 400; line-height: 1; }
.archive-summary span { display: block; margin-top: 8px; color: var(--an-muted); font-size: .76rem; }
.archive-section { padding: 110px 0 130px; background: var(--paper); }
.archive-toolbar { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 60px; align-items: end; }
.archive-toolbar h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; letter-spacing: -.05em; }
.archive-search { display: block; }
.archive-search span { display: block; margin-bottom: 9px; color: var(--text-soft); font-size: var(--fs-micro); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.archive-search input { width: 100%; min-height: 54px; border: 1px solid var(--control); background: white; padding: 0 17px; color: var(--navy); outline: none; }
.archive-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,143,218,.25); }
/* PV.3 — category filter bar: ruled tabs with counts, horizontal scroll on small screens */
.archive-filters { display: flex; gap: 0 24px; margin: 42px 0 24px; border-bottom: 1px solid var(--line-light); overflow-x: auto; scrollbar-width: none; }
.archive-filters::-webkit-scrollbar { display: none; }
.archive-filters button { position: relative; flex: 0 0 auto; display: inline-flex; gap: 7px; align-items: baseline; border: 0; background: transparent; color: var(--text-soft); padding: 16px 0 15px; cursor: pointer; white-space: nowrap; }
.archive-filters button b { font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.archive-filters button span { color: var(--text-soft); font-size: .68rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.archive-filters button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--navy); transition: right .25s ease; }
.archive-filters button:hover { color: var(--navy); }
.archive-filters button.is-active { color: var(--navy); }
.archive-filters button.is-active span { color: var(--blue-deep); }
.archive-filters button.is-active::after { right: 0; }

.category-index { margin-top: 72px; border-top: 1px solid var(--an-line-2); }
.category-index-title { margin: 0; padding: 22px 0 10px; color: var(--an-faint); font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.category-index ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
.category-index li { border-bottom: 1px solid var(--an-line); }
.category-index a { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 12px; padding: 20px 0; color: var(--an-text); }
.category-index a span { color: var(--an-faint); font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.category-index a strong { font-size: 1rem; font-weight: 600; transition: color .2s ease; }
.category-index a em { color: var(--an-muted); font-style: normal; font-size: .74rem; white-space: nowrap; }
.category-index a em::after { content: " →"; color: var(--blue-2); }
.category-index a:hover strong { color: var(--blue-2); }
.archive-result { margin: 0 0 26px; color: var(--text-soft); font-size: .82rem; }
.reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.reference-card { min-width: 0; animation: reference-in .46s ease both; animation-delay: var(--delay); }
.reference-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #08111c; }
.reference-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.reference-card:hover .reference-media img { transform: scale(1.04); filter: saturate(1.12); }
.reference-link:hover h3 { color: var(--blue-deep); }
.reference-index { position: absolute; right: 12px; top: 12px; min-width: 35px; padding: 6px 7px; color: white; background: rgba(5,8,13,.72); backdrop-filter: blur(8px); font-size: .67rem; font-weight: 800; text-align: center; }
.reference-placeholder { height: 100%; display: grid; place-items: center; color: white; background: radial-gradient(circle at 65% 26%, rgba(0,183,255,.28), transparent 30%), linear-gradient(135deg, var(--navy), #10263b); }
.reference-placeholder::before, .reference-placeholder::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.reference-placeholder::before { width: 250px; height: 250px; left: -80px; bottom: -150px; }
.reference-placeholder::after { width: 170px; height: 170px; right: -70px; top: -90px; }
.reference-placeholder span { position: relative; z-index: 1; font-size: 2rem; font-weight: 850; letter-spacing: .08em; }
.reference-copy { padding: 15px 2px 0; }
.reference-copy > span { color: var(--text-soft); font-size: var(--fs-micro); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reference-copy h3 { margin: 5px 0 3px; font-size: 1.05rem; line-height: 1.3; transition: color .2s ease; }
.reference-copy p { margin: 0; color: var(--text-soft); font-size: .75rem; }
.archive-more { display: flex; justify-content: center; margin-top: 58px; }
.archive-more [hidden] { display: none; }
@keyframes reference-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.approach-section { background: var(--an-2); color: var(--an-text); border-top: 1px solid var(--an-line); }
.approach-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; }
.approach-intro { position: sticky; top: 160px; align-self: start; }
.approach-intro p:last-child { color: var(--an-body); max-width: 530px; margin-top: 28px; }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--an-line-2); }
.process-list li { min-height: 126px; display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--an-line-2); }
.process-list > li > span { color: var(--blue-2); font-size: .78rem; letter-spacing: .12em; }
.process-list strong { font-size: 1.1rem; }
.process-list p { margin: 6px 0 0; color: var(--an-muted); font-size: .88rem; }

.documents-section { color: var(--an-text); background: var(--an-1); }
.documents-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: start; }
.document-links { border-top: 1px solid var(--an-line-2); }
.document-links a { min-height: 112px; display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; border-bottom: 1px solid var(--an-line-2); transition: padding .2s ease, color .2s ease; }
.document-links a:hover { padding-left: 10px; color: var(--blue-2); }
.document-links span { color: var(--an-muted); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .1em; }
.document-links strong { font-size: 1rem; }
.document-links b { color: var(--blue-2); font-size: 1.25rem; }

/* PV.5.10: the contact band on every page is a raised anthracite layer with a thin cyan rule (no
   bright gradient). */
.contact-section { position: relative; padding: 112px 0; color: var(--an-text); background: var(--an-3); }
.contact-section::before { content: ""; position: absolute; left: 0; top: 0; width: min(320px, 40vw); height: 1px; background: var(--blue-2); }
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; }
.contact-grid h2 { max-width: 850px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-actions .button { margin-bottom: 12px; }
.contact-actions > a:not(.button) { padding: 2px 0; color: var(--an-body); font-size: .9rem; }
.contact-actions > a:not(.button):hover { color: var(--an-text); text-decoration: underline; text-decoration-color: var(--blue-2); text-underline-offset: 4px; }

/* Bottom padding keeps the last footer row clear of the fixed WhatsApp button. */
.site-footer { color: var(--an-text); background: var(--an-0); padding: 80px 0 96px; border-top: 1px solid var(--an-line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .55fr; gap: 80px; padding-bottom: 62px; }
.footer-grid > div > span { display: block; margin-bottom: 12px; color: var(--an-faint); text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-micro); }
.footer-grid p { margin: 18px 0 0; color: var(--an-muted); font-size: .86rem; max-width: 380px; }
.footer-grid > div > a:not(.brand) { display: block; color: var(--an-body); font-size: .86rem; margin: 8px 0; }
.footer-grid > div > a:not(.brand):hover { color: var(--blue-2); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--an-line); color: var(--an-faint); font-size: .7rem; }
.whatsapp-link { position: fixed; z-index: 70; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; color: white; background: #0e9f60; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: .75rem; }
.whatsapp-link span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); font-weight: 900; font-size: .65rem; }

/* PV.3.1: once the filter bars can overflow, they scroll sideways and fade out on the right as a hint. */
@media (max-width: 1300px) {
  .project-filters, .archive-filters { padding-right: 36px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
}

@media (max-width: 1050px) {
  .primary-nav { gap: 16px; }
  .nav-row { gap: 22px; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .product-panel, .approach-grid, .documents-grid { gap: 58px; }
  .project-card, .project-card-wide, .project-card-narrow { grid-column: span 6; }
  .project-filters { gap: 0 28px; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-grid > p { grid-column: 1 / -1; padding: 28px 0; border-top: 1px solid var(--an-line); }
  .archive-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .archive-hero-grid > p { max-width: 680px; }
  .reference-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .nav-row { height: 78px; }
  .menu-toggle { margin-left: auto; width: 44px; height: 44px; display: grid; align-content: center; gap: 5px; background: transparent; border: 1px solid var(--an-line-2); color: var(--an-text); padding: 10px; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--an-text); }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-cta { display: none; }
  .primary-nav { position: fixed; inset: 78px 0 0; display: none; flex-direction: column; align-items: flex-start; gap: 0; background: rgba(21,23,26,.98); padding: 38px 24px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { width: 100%; padding: 17px 0; border-bottom: 1px solid var(--an-line); font-size: 1.1rem; }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current="page"] { color: var(--blue-2); }
  .hero { min-height: 760px; }
  .hero-grid { top: 122px; } /* tablets and phones keep their earlier layout */
  .hero-content { padding-top: 172px; }
  .hero h1 { max-width: 600px; }
  .hero-foot { bottom: 22px; }
  .hero-foot > a { display: none; }
  .hero-controls-bar { bottom: 11px; }
  .hero-media { object-position: var(--slide-position-m, 50% 50%); } /* the portrait copy is shown here */
  .section { padding: 88px 0; }
  .product-panel, .approach-grid, .documents-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .approach-intro { position: static; }
  .projects-heading { margin-bottom: 36px; }
  .project-filters, .archive-filters { gap: 0 24px; margin-top: 32px; scroll-snap-type: x proximity; }
  .project-filters button, .archive-filters button { scroll-snap-align: start; }
  .project-filters button { font-size: .76rem; }
  .category-index ul { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .footer-brand { grid-column: 1 / -1; }
  .archive-hero { padding-top: 172px; }
  .archive-toolbar { grid-template-columns: 1fr; gap: 32px; }
  .archive-summary { margin-left: auto; margin-right: auto; }
}

@media (max-width: 560px) {
  .hero { min-height: 680px; }
  .hero-content { padding-top: 136px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-controls-bar { bottom: 20px; right: auto; justify-content: flex-start; }
  .hero-scrim { background: linear-gradient(180deg, rgba(21,23,26,.82) 0%, rgba(21,23,26,.74) 58%, rgba(21,23,26,.3) 80%, rgba(21,23,26,.85) 100%); }
  .hero .eyebrow { gap: 10px; font-size: .66rem; letter-spacing: .12em; }
  .hero .eyebrow span { width: 28px; }
  .hero-lede { font-size: .94rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-foot { display: none; }
  .category-index { margin-top: 52px; }
  .category-index ul { grid-template-columns: 1fr; }
  .category-index a { padding: 16px 0; }
  .project-grid { row-gap: 44px; }
  .project-media { height: auto; aspect-ratio: 4 / 3; }
  .project-meta { padding-top: 14px; }
  .project-meta strong { font-size: 1.22rem; }
  .project-empty { padding: 26px 22px; }
  .proof-grid { grid-template-columns: 1fr; padding: 10px 0; }
  .proof-grid > div, .proof-grid > div + div { min-height: 88px; padding: 0; border-right: 0; border-bottom: 1px solid var(--an-line); }
  .proof-grid > p { padding: 24px 0; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 340px; }
  .project-card, .project-card-wide, .project-card-narrow { grid-column: 1 / -1; }
  .document-links a { grid-template-columns: 1fr auto; gap: 8px 18px; padding: 18px 0; }
  .document-links span { grid-column: 1 / -1; }
  .contact-actions > a:not(.button) { padding: 8px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  /* Comfortable tap targets for the footer links on phones. */
  .footer-grid > div > a:not(.brand) { margin: 0; padding: 10px 0; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .site-footer { padding-bottom: 84px; }
  .whatsapp-link b { display: none; }
  .whatsapp-link { padding: 7px; }
  .archive-hero { padding: 145px 0 36px; }
  .archive-hero h1 { font-size: 2.8rem; }
  .archive-summary { grid-template-columns: 1fr; margin-top: 52px; }
  .archive-summary div { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .archive-summary span { margin: 0; }
  .archive-section { padding: 78px 0 92px; }
  .reference-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Reference card link (references.html). The project detail page and its lightbox are styled
   in project.css, which only project.html loads. */
.reference-link { display: block; color: inherit; }
