/* ============================================================
   MELIPROJEKT — projekční kancelář
   Vizuální systém: technický / inženýrský (modrotisk + draftsman)
   ============================================================ */

:root {
  /* Barvy */
  --paper:      #F3F1EA;   /* drafting paper */
  --paper-2:    #EAE7DD;   /* mírně tmavší panel */
  --ink:        #15202B;   /* near-black navy ink */
  --ink-2:      #4A5662;   /* muted text */
  --ink-3:      #8A93A0;   /* faint labels */
  --blueprint:  #0B2E4A;   /* deep blueprint blue (dark sections) */
  --blueprint-2:#0E3A5E;
  --accent:     #D8512A;   /* draftsman vermilion */
  --accent-ink: #B53E1C;
  --line:       rgba(21, 32, 43, 0.14);
  --line-soft:  rgba(21, 32, 43, 0.07);
  --bp-line:    rgba(255, 255, 255, 0.13);
  --bp-line-soft: rgba(255, 255, 255, 0.06);
  --white:      #FCFBF8;

  /* Typografie */
  --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --sans:    "Archivo", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Mřížka / rytmus */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --grid: 32px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* jemná modrotisková mřížka přes celý web */
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: -1px -1px;
}

::selection { background: var(--accent); color: var(--white); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Pomocné prvky ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* štítek sekce: [ 02 — PROCES ] */
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.kicker--light { color: #F0B59E; }
.kicker--light::before { background: var(--accent); }

/* nadpisy */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; }
.h-section {
  font-size: clamp(34px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-top: 18px;
}

/* tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: var(--accent); border-color: var(--accent); }
.btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* kótovací čára (dimension line) */
.dim {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.dim::before, .dim::after {
  content: "";
  height: 7px;
  width: 1px;
  background: var(--line);
}
.dim .dim-line { flex: 1; height: 1px; background: var(--line); min-width: 24px; }

/* ============================================================
   HLAVIČKA / NAVIGACE
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(243, 241, 234, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease), background .3s;
}
.site-header.hidden { transform: translateY(-100%); }
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo */
.logo { display: flex; align-items: center; gap: 13px; }
.logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  color: var(--ink-2);
  position: relative;
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--accent);
}
.nav-cta { margin-left: 12px; padding: 11px 20px !important; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(46px, 7.5vw, 104px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero h1 .light { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.55;
}
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero-fact { padding: 22px 22px 22px 0; border-right: 1px solid var(--line); }
.hero-fact:last-child { border-right: none; }
.hero-fact .num { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.hero-fact .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }

/* hero vizuál – placeholder výkres */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--blueprint);
  border: 1px solid var(--ink);
  overflow: hidden;
}
.hero-visual .bp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--bp-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line-soft) 1px, transparent 1px),
    linear-gradient(var(--bp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
}
.hero-visual .ph-label {
  position: absolute; left: 18px; top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.hero-visual .ph-note {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  display: flex; justify-content: space-between;
}
/* title block roh (jako u technického výkresu) */
.hero-visual .titleblock {
  position: absolute; right: 0; bottom: 0;
  border-top: 1px solid var(--bp-line);
  border-left: 1px solid var(--bp-line);
  display: grid; grid-template-columns: auto auto;
}
.hero-visual .titleblock div {
  padding: 9px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  border-right: 1px solid var(--bp-line);
}
.hero-visual .titleblock div:last-child { border-right: none; color: var(--accent); }

/* rohové crosshair značky */
.crosshair { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: rgba(255,255,255,0.4); }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.crosshair.tl { left: 12px; top: 12px; } .crosshair.tr { right: 12px; top: 12px; }
.crosshair.bl { left: 12px; bottom: 12px; } .crosshair.br { right: 12px; bottom: 12px; }

/* drawing centerpiece – minimalistický dům */
.hero-house { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-house svg { width: 70%; height: auto; }

/* ============================================================
   SEKCE obecně
   ============================================================ */
section { position: relative; }
.section { padding-block: clamp(72px, 9vw, 130px); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.6; }

/* tmavá modrotisková sekce */
.section--blueprint {
  background: var(--blueprint);
  color: var(--white);
  background-image:
    linear-gradient(var(--bp-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-line-soft) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
}
.section--blueprint .h-section,
.section--blueprint h2, .section--blueprint h3 { color: var(--white); }
.section--blueprint .section-head .lead { color: rgba(255,255,255,0.72); }
.section--paper2 { background: var(--paper-2); background-blend-mode: multiply; }

/* ---------- SLUŽBY (Naprojektujeme) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 30px 38px;
  background: rgba(252, 251, 248, 0.5);
  transition: background .3s var(--ease);
  position: relative;
}
.service-card:hover { background: var(--white); }
.service-card .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; }
.service-card .icon { margin: 22px 0 20px; width: 52px; height: 52px; }
.service-card .icon svg { width: 100%; height: 100%; stroke: var(--ink); }
.service-card h3 { font-family: var(--display); font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.service-card p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.service-card::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.service-card:hover::after { width: 100%; }

/* ---------- PROCES / FÁZE ---------- */
.phases { margin-top: 8px; }
.phase {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--bp-line);
  position: relative;
}
.phase:first-child { border-top: 1px solid var(--bp-line); }
.phase .p-num {
  font-family: var(--display); font-weight: 800; font-size: 40px;
  color: rgba(255,255,255,0.28);
  transition: color .3s var(--ease);
}
.phase:hover .p-num { color: var(--accent); }
.phase .p-body h3 { font-family: var(--display); font-size: clamp(20px,2.3vw,28px); font-weight: 700; text-transform: uppercase; }
.phase .p-body p { color: rgba(255,255,255,0.65); margin-top: 8px; font-size: 15.5px; max-width: 60ch; }
.phase .p-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); text-transform: uppercase; white-space: nowrap; }

/* ---------- ZAJISTÍME (checklist) ---------- */
.ensure-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.ensure-list { display: grid; gap: 0; }
.ensure-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.ensure-item:first-child { border-top: 1px solid var(--line); }
.ensure-item .tick {
  flex-shrink: 0; width: 26px; height: 26px; border: 1.5px solid var(--accent);
  display: grid; place-items: center; margin-top: 2px;
}
.ensure-item .tick svg { width: 13px; height: 13px; stroke: var(--accent); }
.ensure-item .txt { font-size: 16.5px; }
.ensure-item .txt b { font-weight: 600; }

/* ---------- PORADENSTVÍ ---------- */
.advisory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.advisory-list { display: grid; gap: 2px; }
.advisory-list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--bp-line);
  color: rgba(255,255,255,0.85); font-size: 16px;
}
.advisory-list li .n { font-family: var(--mono); font-size: 12px; color: var(--accent); flex-shrink: 0; }
.advisory-callout {
  background: var(--blueprint-2); border: 1px solid var(--bp-line); padding: 40px;
  position: relative;
}
.advisory-callout .crosshair::before, .advisory-callout .crosshair::after { background: rgba(255,255,255,0.35); }
.advisory-callout p { color: rgba(255,255,255,0.8); font-size: 17px; line-height: 1.6; }
.advisory-callout .big { font-family: var(--display); font-weight: 800; font-size: clamp(26px,3vw,38px); text-transform: uppercase; color: #fff; margin-bottom: 16px; line-height: 1.05; }

/* ---------- REFERENCE ---------- */
.ref-toolbar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ref-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s, transform .3s var(--ease);
}
.ref-card .ref-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.ref-card:hover .ref-img { transform: scale(1.05); }
.ref-card .ref-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(transparent, rgba(11,46,74,0.82));
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  z-index: 2;
}
.ref-card .ref-meta .id { color: #fff; font-weight: 600; }
.ref-card .ref-meta .view { color: #fff; opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.ref-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.ref-card:hover .ref-meta .view { opacity: 1; transform: translateX(0); color: #FFD9CB; }
.ref-card .corner-no {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; color: #fff; letter-spacing: 0.1em;
  background: rgba(11,46,74,0.7); padding: 4px 7px;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,46,74,0.94);
  backdrop-filter: blur(6px);
  display: none; place-items: center;
  padding: 5vh 4vw;
}
.lightbox.open { display: grid; }
.lightbox-inner { width: min(900px, 92vw); }
.lightbox-frame {
  aspect-ratio: 16/10; background: var(--blueprint-2); border: 1px solid var(--bp-line);
  position: relative; display: grid; place-items: center; overflow: hidden;
}
.lightbox-frame .lb-img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: #fff; }
.lightbox-bar .lb-id { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.lightbox-bar .lb-note { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; }
.lb-nav { display: flex; gap: 10px; }
.lb-btn { width: 46px; height: 46px; border: 1px solid var(--bp-line); display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { position: absolute; top: 4vh; right: 4vw; width: 48px; height: 48px; border: 1px solid var(--bp-line); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lb-close:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- CITÁT ---------- */
.quote-sec { padding-block: clamp(80px, 11vw, 150px); }
.quote { max-width: 980px; margin: 0 auto; text-align: center; position: relative; }
.quote .mark { font-family: var(--display); font-weight: 800; font-size: 120px; color: var(--accent); line-height: 0.6; opacity: 0.9; }
.quote blockquote { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3.2vw, 40px); line-height: 1.25; letter-spacing: -0.01em; margin: 18px auto 30px; }
.quote cite { font-style: normal; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- TÝM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member {
  border: 1px solid var(--line); background: var(--white);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .3s, transform .3s var(--ease);
}
.member:hover { border-color: var(--accent); transform: translateY(-3px); }
.member .m-photo {
  width: 100%; aspect-ratio: 1/1; background: var(--paper-2); margin-bottom: 18px;
  border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden;
}
.member .m-photo .initials { font-family: var(--display); font-weight: 800; font-size: 42px; color: var(--ink-3); }
.member .m-photo .ph-tag { position: absolute; bottom: 8px; left: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }
.member .m-role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.member .m-name { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; line-height: 1.05; margin-top: 4px; }
.member .m-contact { margin-top: 14px; display: grid; gap: 5px; font-size: 14px; }
.member .m-contact a { color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; transition: color .2s; }
.member .m-contact a:hover { color: var(--accent); }

/* ---------- KONTAKT / FORMULÁŘ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-row { display: grid; gap: 6px; margin-bottom: 22px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.form-row input, .form-row textarea {
  font-family: var(--sans); font-size: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--bp-line);
  color: #fff; padding: 14px 16px; transition: border-color .2s, background .2s;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.1); }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row.error input, .form-row.error textarea { border-color: var(--accent); }
.form-err { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.04em; min-height: 14px; }
.form-success {
  border: 1px solid var(--accent); background: rgba(216,81,42,0.12); padding: 28px;
  display: none; align-items: center; gap: 16px;
}
.form-success.show { display: flex; }
.form-success svg { width: 28px; height: 28px; stroke: var(--accent); flex-shrink: 0; }

.contact-info .info-block { padding: 22px 0; border-bottom: 1px solid var(--bp-line); }
.contact-info .info-block:first-child { border-top: 1px solid var(--bp-line); }
.contact-info .il { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.contact-info .iv { font-size: 17px; color: #fff; line-height: 1.5; }
.contact-info .iv a:hover { color: var(--accent); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-block: 64px 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-top .logo-name { color: #fff; }
.footer-top .logo svg { filter: none; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 16px; font-weight: 500; }
.footer-col p, .footer-col a { font-size: 14.5px; line-height: 1.7; }
.footer-col a:hover { color: var(--accent); }
.footer-blurb { margin-top: 18px; font-size: 14.5px; line-height: 1.6; max-width: 36ch; color: rgba(255,255,255,0.6); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.4); }

/* footer logo invert */
.site-footer .logo-mark path, .site-footer .logo-mark line, .site-footer .logo-mark circle, .site-footer .logo-mark rect { stroke: #fff; }
.site-footer .logo-sub { color: rgba(255,255,255,0.5); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { position: fixed; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 28px;
    gap: 2px; transform: translateY(-130%); transition: transform .4s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
  .nav a.active::after { display: none; }
  .nav-cta { margin: 14px 0 0 !important; justify-content: center; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 16/12; max-height: 420px; }
  .ensure-wrap, .advisory-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .phase { grid-template-columns: 56px 1fr; }
  .phase .p-num { font-size: 30px; }
  .phase .p-tag { grid-column: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .team-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact { border-right: none; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
}
