/* ============================================================
   BROWN GRAPHICS, INC. — Design System v2
   Deep navy · brass gold · blueprint detailing
   ============================================================ */

:root {
  --navy-950: #060d1a;
  --navy-900: #0a1628;
  --navy-850: #0c1a30;
  --navy-800: #10223e;
  --navy-700: #16304f;
  --ink: var(--navy-900);
  --paper: #f4f6f9;
  --paper-2: #e9edf3;
  --white: #ffffff;
  --gold: #c9a461;
  --bronze: #c9a461; /* legacy alias */
  --gold-deep: #a8813c;
  --gold-soft: #e5cfa4;
  --muted: #5a6474;
  --muted-inv: #8fa0b8;
  --line: rgba(10, 22, 40, 0.12);
  --line-inv: rgba(255, 255, 255, 0.12);
  --blue-line: rgba(125, 165, 220, 0.09);
  --shadow-lg: 0 32px 72px -20px rgba(6, 13, 26, 0.45);
  --shadow-sm: 0 10px 28px -10px rgba(6, 13, 26, 0.25);
  --r: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --grid-dark:
    linear-gradient(rgba(125,165,220,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,165,220,0.055) 1px, transparent 1px);
  --grid-light:
    linear-gradient(rgba(10,30,60,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,30,60,0.045) 1px, transparent 1px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--navy-950); }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.h-xl { font-size: clamp(2.6rem, 5.8vw, 4.8rem); }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.h-md { font-size: clamp(1.45rem, 2.4vw, 1.95rem); }

/* Serif italic accent — the "expensive" word */
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.on-dark .eyebrow, .section-dark .eyebrow, .section-dark2 .eyebrow,
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-soft); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.24rem); color: var(--muted); line-height: 1.75; }
.on-dark .lead, .lead.inv { color: var(--muted-inv); }

/* ---------- Layout ---------- */

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1460px, calc(100% - 48px)); margin-inline: auto; }

.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-dark, .section-dark2 {
  background:
    var(--grid-dark) var(--navy-900);
  background-size: 72px 72px, 72px 72px;
  color: var(--white);
  position: relative;
}
.section-dark2 { background-color: var(--navy-850); }
.section-tint {
  background: var(--grid-light) var(--paper-2);
  background-size: 72px 72px, 72px 72px;
}

.sec-head { max-width: 800px; margin-bottom: clamp(44px, 5vw, 72px); }
.sec-head h2 { margin: 20px 0 20px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--navy-900); color: var(--white); }
.btn-solid:hover { color: var(--navy-950); }

.btn-bronze { background: var(--gold); color: var(--navy-950); box-shadow: 0 10px 30px -10px rgba(201,164,97,0.55); }
.btn-bronze::after { background: var(--white); }
.btn-bronze:hover { color: var(--navy-950); }

.btn-ghost { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.35); color: var(--white); backdrop-filter: blur(4px); }
.btn-ghost::after { background: var(--gold); }
.btn-ghost:hover { color: var(--navy-950); border-color: var(--gold); }

.btn-ghost-dark { background: transparent; border-color: rgba(10,22,40,0.3); color: var(--ink); }
.btn-ghost-dark:hover { color: var(--navy-950); border-color: var(--gold); }

.btn .arr { font-family: var(--font-body); font-size: 1rem; transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- Top bar + Nav ---------- */

.topbar {
  background: var(--navy-950);
  color: var(--muted-inv);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  gap: 16px;
}
.topbar a:hover { color: var(--gold-soft); }
.topbar .tb-right { display: flex; gap: 28px; }
.topbar .accent { color: var(--gold); }

.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(244, 246, 249, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 10px 36px -14px rgba(6,13,26,0.22); }
.nav .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand img.brand-mark { height: 54px; }
.brand .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}
.brand .brand-text span { color: var(--gold-deep); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-deep); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--gold-deep); }
.nav .btn { padding: 13px 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--grid-dark) var(--navy-950);
  background-size: 72px 72px, 72px 72px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-inv);
  transition: color 0.25s, padding-left 0.25s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); padding-left: 12px; }
.mobile-close {
  position: absolute;
  top: 28px; right: 28px;
  background: none; border: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.mobile-menu .mm-contact { margin-top: 32px; color: var(--muted-inv); font-size: 0.95rem; }
.mobile-menu .mm-contact a { font-size: 1rem; border: 0; padding: 0; color: var(--gold-soft); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(600px, 92vh, 900px);
  display: flex;
  align-items: center;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}
.hero-media, .hero-media img, .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6,13,26,0.95) 0%, rgba(8,18,36,0.82) 40%, rgba(8,18,36,0.3) 100%),
    linear-gradient(0deg, rgba(6,13,26,0.9) 0%, transparent 30%);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--grid-dark);
  background-size: 72px 72px, 72px 72px;
  mask-image: linear-gradient(90deg, black 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 75%);
  pointer-events: none;
}
.hero-media img { animation: heroZoom 16s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }

.hero::after { /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.05;
  z-index: 3;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 4; padding: 130px 0 150px; }
.hero h1 { margin: 28px 0 26px; max-width: 18ch; text-wrap: balance; }
.hero .lead { max-width: 56ch; color: rgba(230,238,248,0.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

/* hero micro-stats */
.hero-chips { display: flex; flex-wrap: wrap; gap: 0; margin-top: 60px; border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r); width: max-content; max-width: 100%; backdrop-filter: blur(6px); background: rgba(6,13,26,0.35); }
.hero-chip { padding: 18px 30px; border-left: 1px solid rgba(255,255,255,0.14); }
.hero-chip:first-child { border-left: 0; }
.hero-chip .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--gold); line-height: 1.1; }
.hero-chip .l { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-inv); }

/* rotating badge */
.hero-badge {
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  bottom: clamp(28px, 6vw, 80px);
  z-index: 4;
  width: 128px; height: 128px;
}
.hero-badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-badge text { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.32em; fill: rgba(230,238,248,0.85); text-transform: uppercase; }
.hero-badge::after {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.15rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(230,238,248,0.55);
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s infinite var(--ease);
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ticker ---------- */

.marquee {
  overflow: hidden;
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 22px 0;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,164,97,0.75);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 56px;
}
.marquee span::after { content: "◆"; -webkit-text-stroke: 0; color: var(--gold); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page hero (interior) ---------- */

.page-hero {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  padding: clamp(100px, 13vw, 160px) 0 clamp(68px, 8vw, 104px);
  overflow: hidden;
}
.page-hero .bg, .page-hero .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,13,26,0.96) 10%, rgba(8,18,36,0.7) 100%);
}
.page-hero .bg::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background: var(--grid-dark);
  background-size: 72px 72px, 72px 72px;
  mask-image: linear-gradient(90deg, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 80%);
}
.page-hero .container { position: relative; z-index: 3; }
.page-hero h1 { margin: 24px 0 20px; }
.page-hero .lead { max-width: 64ch; color: rgba(230,238,248,0.82); }
.crumb { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-inv); }
.crumb a:hover { color: var(--gold-soft); }
.crumb b { color: var(--gold); font-weight: 600; }

/* ---------- Stats ---------- */

.stats {
  background: var(--grid-dark) var(--navy-900);
  background-size: 72px 72px, 72px 72px;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat {
  padding: clamp(40px, 4.5vw, 64px) 28px;
  text-align: center;
  border-left: 1px solid var(--line-inv);
  position: relative;
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat .num sup { font-size: 0.5em; color: var(--gold); }
.stat .lbl { margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-inv); }

/* ---------- Service cards ---------- */

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--navy-800);
  aspect-ratio: 4 / 4.6;
  display: block;
  box-shadow: var(--shadow-sm);
}
.svc-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s;
}
.svc-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(6,13,26,0.05) 30%, rgba(6,13,26,0.93) 88%);
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 22px; height: 22px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s;
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover img { transform: scale(1.06); }
.svc-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 28px 28px 26px;
  color: var(--white);
}
.svc-body .idx {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.svc-body h3 { font-size: 1.3rem; margin: 10px 0 6px; }
.svc-body p { font-size: 0.9rem; color: rgba(230,238,248,0.75); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.5s; }
.svc-card:hover .svc-body p { max-height: 90px; opacity: 1; }
.svc-body .go {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Risk grid ---------- */

.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.risk-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px 30px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.risk-card::after {
  content: "";
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.35s;
}
.risk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: rgba(201,164,97,0.7); }
.risk-card:hover::after { opacity: 1; }
.risk-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
  line-height: 1;
  display: block;
}
.risk-card h3 { font-size: 1.08rem; margin: 14px 0 10px; }
.risk-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ---------- Values ---------- */

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line-inv); position: relative; z-index: 2; }
.value {
  padding: clamp(34px, 3.8vw, 56px) clamp(24px, 2.6vw, 42px);
  border-right: 1px solid var(--line-inv);
  position: relative;
  background: rgba(6,13,26,0.25);
}
.value .v-num { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-weight: 500; font-size: 1.1rem; }
.value h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); margin: 18px 0 12px; letter-spacing: 0.05em; }
.value p { font-size: 0.92rem; color: var(--muted-inv); }
.value::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.value:hover::before { transform: scaleX(1); }

/* ---------- Split / About teaser ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 100px); align-items: center; }
.split-media { position: relative; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 1px solid rgba(201,164,97,0.75);
  border-radius: var(--r);
  background:
    linear-gradient(rgba(10,30,60,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,30,60,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.split-media .badge {
  position: absolute;
  left: -20px; bottom: 36px;
  z-index: 2;
  background: var(--navy-900);
  color: var(--white);
  padding: 22px 28px;
  border-radius: var(--r);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
}
.split-media .badge .b-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--gold); }
.split-media .badge .b-lbl { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-inv); margin-top: 6px; }
.split-copy h2 { margin: 20px 0 24px; }
.split-copy p { color: var(--muted); margin-bottom: 18px; }
.split-copy .btn { margin-top: 14px; }

/* ---------- Work strip ---------- */

.work-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scrollbar-width: none;
}
.work-strip::-webkit-scrollbar { display: none; }
.work-item {
  flex: 0 0 auto;
  height: clamp(270px, 36vw, 400px);
  border-radius: var(--r);
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.work-item img { height: 100%; width: auto; object-fit: cover; transition: transform 0.8s var(--ease); }
.work-item:hover img { transform: scale(1.05); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--grid-dark) var(--navy-950);
  background-size: 72px 72px, 72px 72px;
  color: var(--white);
  overflow: hidden;
}
.cta-band .glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,97,0.16), transparent 62%);
  top: -300px; right: -160px;
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.04;
  pointer-events: none;
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.cta-inner h2 { max-width: 22ch; margin-top: 18px; }
.cta-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-actions .phone-big {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.cta-actions .phone-big:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-950);
  color: var(--muted-inv);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.92rem;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(60px, 6vw, 90px) 0 48px;
}
.footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--gold-soft); }
.footer .f-brand p { max-width: 40ch; line-height: 1.75; }
.f-contact li { display: flex; gap: 12px; align-items: baseline; }
.f-contact .ico { color: var(--gold); font-size: 0.78rem; }
.f-social { display: flex; gap: 12px; margin-top: 24px; }
.f-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-inv);
  border-radius: var(--r);
  font-size: 0.76rem;
  font-weight: 600;
  transition: 0.3s;
}
.f-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }

.wordmark-giant {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143,160,184,0.28);
  user-select: none;
  padding: 10px 0 0;
  transform: translateY(12%);
}
.wordmark-giant b { color: transparent; -webkit-text-stroke: 1px rgba(201,164,97,0.5); font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

/* ---------- Gallery ---------- */

.masonry { columns: 3; column-gap: 22px; }
.masonry .g-item {
  break-inside: avoid;
  margin-bottom: 22px;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.masonry .g-item img { width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.masonry .g-item::after {
  content: "＋";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--white);
  background: rgba(6,13,26,0.45);
  opacity: 0;
  transition: opacity 0.35s;
}
.masonry .g-item:hover::after { opacity: 1; }
.masonry .g-item:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 9, 18, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lb-btn {
  position: absolute;
  background: none;
  border: 1px solid var(--line-inv);
  color: var(--white);
  font-size: 1.4rem;
  width: 52px; height: 52px;
  border-radius: var(--r);
  cursor: pointer;
  display: grid; place-items: center;
  transition: 0.3s;
}
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- Services page rows ---------- */

.svc-rows { display: grid; gap: clamp(60px, 8vw, 112px); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 92px); align-items: center; }
.svc-row:nth-child(even) .svc-row-media { order: 2; }
.svc-row-media { position: relative; }
.svc-row-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.svc-row-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(201,164,97,0.55);
  border-radius: var(--r);
}
.svc-row:nth-child(even) .svc-row-media::before { inset: 18px 18px -18px -18px; }
.svc-row-copy .idx { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: 0.08em; color: var(--gold-deep); font-size: 1rem; }
.svc-row-copy h2 { margin: 14px 0 16px; }
.svc-row-copy p { color: var(--muted); }
.svc-row-copy ul { list-style: none; margin-top: 22px; display: grid; gap: 11px; }
.svc-row-copy li { display: flex; gap: 12px; align-items: baseline; font-size: 0.96rem; }
.svc-row-copy li::before { content: "◆"; color: var(--gold); font-size: 0.55rem; flex: 0 0 auto; transform: translateY(-2px); }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 2; }
.process-step {
  background: rgba(16,34,62,0.6);
  border: 1px solid var(--line-inv);
  border-radius: var(--r);
  padding: 36px 30px;
  position: relative;
  backdrop-filter: blur(4px);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(201,164,97,0.8); }
.process-step .p-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  line-height: 1;
}
.process-step h3 { font-size: 1.18rem; margin: 20px 0 10px; color: var(--white); }
.process-step p { font-size: 0.9rem; color: var(--muted-inv); }

/* ---------- About page ---------- */

.timeline { position: relative; display: grid; gap: clamp(52px, 6vw, 88px); }
.story-block { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.story-block .year {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-deep);
  line-height: 1;
  position: sticky;
  top: 130px;
}
.story-block h3 { font-size: 1.55rem; margin-bottom: 14px; }
.story-block p { color: var(--muted); margin-bottom: 14px; max-width: 68ch; }

.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  padding: 24px 18px;
  min-height: 108px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.logo-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(201,164,97,0.6); }
.logo-cell img { max-height: 56px; max-width: 82%; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: 0.35s; }
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Insights ---------- */

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16 / 10.5; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { display: flex; gap: 14px; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.post-meta .cat { color: var(--gold-deep); font-weight: 600; }
.post-body h3 { font-size: 1.18rem; line-height: 1.35; }
.post-body p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.post-body .go { font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

/* ---------- Contact ---------- */

.contact-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(44px, 5vw, 84px); align-items: start; }
.contact-info { display: grid; gap: 8px; }
.ci-block { border-top: 1px solid var(--line); padding: 26px 0; }
.ci-block .ci-lbl { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--gold-deep); margin-bottom: 10px; }
.ci-block a:hover { color: var(--gold-deep); }
.ci-block .big { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--r);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--gold); }
.form-card .btn { margin-top: 32px; }
.form-note { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }

.map-frame { margin-top: clamp(52px, 6vw, 84px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); filter: grayscale(0.92) contrast(1.05); }
.map-frame iframe { display: block; width: 100%; height: 460px; border: 0; }

/* ---------- Reveal animations ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(3px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-media img, .hero-badge svg, .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }
}

@media (max-width: 860px) {
  .nav-links, .nav .btn, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .topbar .tb-right { display: none; }
  .split, .svc-row, .contact-wrap { grid-template-columns: 1fr; }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }
  .split-media::before, .svc-row-media::before { display: none; }
  .story-block { grid-template-columns: 1fr; }
  .story-block .year { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-chips { border: 0; background: none; backdrop-filter: none; gap: 26px; }
  .hero-chip { border: 0; padding: 0; }
}

@media (max-width: 620px) {
  .svc-grid, .risk-grid, .posts-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line-inv); }
  .masonry { columns: 1; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}
