/* ============================================================
   McClone Construction — Shared design system
   ============================================================ */

:root {
  /* Brand */
  --red: #CE0E2D;
  --red-dark: #A30B25;
  --red-darker: #7A0819;
  --ink: #14171C;
  --ink-2: #1F232A;
  --ink-3: #0A0D12;
  --slate: #4A5563;
  --slate-2: #6B7280;
  --slate-3: #9AA0A8;
  --concrete: #E0DDD5;
  --concrete-2: #C8C5BD;
  --concrete-3: #F1EFE9;
  --line: #DCD9D2;
  --line-soft: #ECEAE3;
  --line-dark: rgba(255,255,255,0.12);
  --bg: #FFFFFF;
  --bg-soft: #F5F3EE;
  --bg-tint: #FAF9F5;

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --max: 1440px;
  --pad-x: 40px;
  --pad-x-tight: 32px;
  --topbar-h: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.display { font-family: 'Saira Condensed', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.005em; line-height: 0.94; text-transform: uppercase; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   Scroll progress
   ============================================================ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: transparent; z-index: 200; pointer-events: none; }
.scroll-progress-fill { height: 100%; background: var(--red); width: 0%; }

/* ============================================================
   Pulse dots (used everywhere)
   ============================================================ */
.pulse-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; position: relative; flex-shrink: 0; }
.pulse-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: pulse 2.4s var(--ease-out) infinite; }
.pulse-dot.green { background: #16a34a; }
.pulse-dot.green::before { background: #16a34a; }
.pulse-dot.amber { background: #f59e0b; }
.pulse-dot.amber::before { background: #f59e0b; }
.pulse-dot.white { background: #fff; }
.pulse-dot.white::before { background: #fff; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* ============================================================
   Floating corner navigation (replaces topbar)
   ============================================================ */
.float-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; pointer-events: none; padding: 20px 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; transition: transform 0.4s var(--ease-out); }
.float-nav.hidden { transform: translateY(-110%); }
.float-nav > * { pointer-events: auto; }

.float-logo { display: inline-flex; padding: 12px 16px; background: rgba(255,255,255,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.5); border-radius: 6px; transition: transform 0.4s var(--ease-out), background 0.3s; }
.float-logo:hover { transform: scale(1.03); }
.float-logo img { height: 28px; width: auto; }
.float-nav.on-dark .float-logo { background: rgba(20,23,28,0.6); border-color: rgba(255,255,255,0.12); }

.float-right { display: flex; gap: 10px; align-items: stretch; }
.float-pill { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px; background: rgba(255,255,255,0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); transition: background 0.3s; }
.float-nav.on-dark .float-pill { background: rgba(20,23,28,0.6); border-color: rgba(255,255,255,0.12); color: #fff; }
.float-pill .sep { width: 1px; height: 14px; background: rgba(0,0,0,0.15); }
.float-nav.on-dark .float-pill .sep { background: rgba(255,255,255,0.18); }
.float-pill .live { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.float-nav.on-dark .float-pill .live { color: #fff; }
.float-pill .live strong { font-weight: 600; }

.menu-trigger { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 999px; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: all 0.3s var(--ease-out); position: relative; overflow: hidden; }
.menu-trigger::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: translateY(101%); transition: transform 0.35s var(--ease-out); }
.menu-trigger:hover::before { transform: translateY(0); }
.menu-trigger > * { position: relative; z-index: 1; }
.menu-trigger .bars { display: flex; flex-direction: column; gap: 3px; }
.menu-trigger .bar { width: 16px; height: 1.5px; background: #fff; transition: transform 0.3s; }
.menu-trigger .bar:nth-child(2) { width: 11px; align-self: flex-end; }

/* ============================================================
   Fullscreen menu overlay
   ============================================================ */
.menu-overlay { position: fixed; inset: 0; z-index: 150; pointer-events: none; visibility: hidden; }
.menu-overlay.open { pointer-events: auto; visibility: visible; }
.menu-backdrop { position: absolute; inset: 0; background: var(--ink-3); opacity: 0; transition: opacity 0.5s var(--ease-out); }
.menu-overlay.open .menu-backdrop { opacity: 1; }
.menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 1180px; background: var(--ink); color: #fff; transform: translateX(100%); transition: transform 0.6s var(--ease-snap); display: grid; grid-template-rows: auto 1fr auto; padding: 24px 56px 40px; }
.menu-overlay.open .menu-panel { transform: translateX(0); }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 32px; border-bottom: 1px solid var(--line-dark); }
.menu-head img { height: 32px; }
.menu-close { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; background: rgba(255,255,255,0.08); color: #fff; border-radius: 999px; font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.menu-close:hover { background: rgba(255,255,255,0.16); }
.menu-close svg { transition: transform 0.4s var(--ease-out); }
.menu-close:hover svg { transform: rotate(90deg); }

.menu-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding: 56px 0; align-items: start; min-height: 0; }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-link { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: color 0.3s, padding-left 0.4s var(--ease-out); position: relative; opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), padding-left 0.4s var(--ease-out); }
.menu-overlay.open .menu-link { opacity: 1; transform: translateY(0); }
.menu-overlay.open .menu-link:nth-child(1) { transition-delay: 0.2s; }
.menu-overlay.open .menu-link:nth-child(2) { transition-delay: 0.27s; }
.menu-overlay.open .menu-link:nth-child(3) { transition-delay: 0.34s; }
.menu-overlay.open .menu-link:nth-child(4) { transition-delay: 0.41s; }
.menu-overlay.open .menu-link:nth-child(5) { transition-delay: 0.48s; }
.menu-overlay.open .menu-link:nth-child(6) { transition-delay: 0.55s; }
.menu-overlay.open .menu-link:nth-child(7) { transition-delay: 0.62s; }
.menu-link:hover { padding-left: 24px; }
.menu-link .num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--red); letter-spacing: 0.04em; padding-top: 16px; align-self: start; }
.menu-link .label { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; transition: color 0.3s; }
.menu-link:hover .label { color: var(--red); }
.menu-link .desc { font-size: 13px; color: var(--slate-3); align-self: end; padding-bottom: 4px; max-width: 200px; }

.menu-side { padding-top: 16px; display: flex; flex-direction: column; gap: 24px; opacity: 0; transition: opacity 0.6s var(--ease-out) 0.55s; }
.menu-overlay.open .menu-side { opacity: 1; }
.menu-side-img { aspect-ratio: 4/5; background-size: cover; background-position: center; background-color: var(--ink-2); }
.menu-side-meta { display: flex; flex-direction: column; gap: 8px; }
.menu-side-meta .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; }
.menu-side-meta .title { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: -0.005em; }
.menu-side-meta .sub { font-size: 13px; color: var(--slate-3); }

.menu-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(255,255,255,0.6); }
.menu-foot-left { display: flex; gap: 32px; align-items: center; }
.menu-foot a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.menu-foot a:hover { color: #fff; }

/* ============================================================
   Cursor preview thumbnail
   ============================================================ */
.cursor-preview { position: fixed; width: 220px; height: 280px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out); z-index: 999; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.cursor-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-preview-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.cursor-preview-label { position: absolute; bottom: 10px; left: 10px; right: 10px; padding: 8px 12px; background: rgba(255,255,255,0.97); font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; color: var(--ink); text-transform: uppercase; }

/* ============================================================
   Reveals
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.13s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.21s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.29s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.37s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.45s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

.word-reveal .word { display: inline-block; opacity: 0; transform: translateY(120%); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); will-change: transform, opacity; }
.word-reveal.in .word { opacity: 1; transform: translateY(0); }
.word-reveal.in .word:nth-child(1) { transition-delay: 0.10s; }
.word-reveal.in .word:nth-child(2) { transition-delay: 0.18s; }
.word-reveal.in .word:nth-child(3) { transition-delay: 0.26s; }
.word-reveal.in .word:nth-child(4) { transition-delay: 0.34s; }
.word-reveal.in .word:nth-child(5) { transition-delay: 0.42s; }
.word-reveal.in .word:nth-child(6) { transition-delay: 0.50s; }
.word-reveal.in .word:nth-child(7) { transition-delay: 0.58s; }
.word-reveal.in .word:nth-child(8) { transition-delay: 0.66s; }
.word-reveal.in .word:nth-child(9) { transition-delay: 0.74s; }
.word-reveal.in .word:nth-child(10) { transition-delay: 0.82s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; transition: all 0.3s var(--ease-out); position: relative; overflow: hidden; border: 1px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red::before { content: ''; position: absolute; inset: 0; background: var(--red-dark); transform: translateX(-101%); transition: transform 0.4s var(--ease-out); z-index: 0; }
.btn-red:hover::before { transform: translateX(0); }
.btn-red > * { position: relative; z-index: 1; }
.btn-red svg { transition: transform 0.4s var(--ease-out); }
.btn-red:hover svg { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--red); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ============================================================
   Hero — dark variant (homepage)
   ============================================================ */
.hero-dark { background: var(--ink); color: #fff; padding: 0; overflow: hidden; position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.hero-dark .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; flex: 1; }
.hero-dark .hero-content { padding: calc(var(--topbar-h) + 56px) 64px 64px 40px; max-width: 760px; margin-left: auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; background: rgba(206,14,45,0.15); color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; border-radius: 4px; margin-bottom: 28px; }
.hero-dark h1.display { font-size: clamp(64px, 9.5vw, 144px); color: #fff; margin-bottom: 32px; }
.hero-dark h1.display .red { color: var(--red); }
.hero-dark h1.display .outline { -webkit-text-stroke: 2px #fff; color: transparent; }
.hero-lede { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.7); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.12); }
.hstat { padding: 24px 0; border-right: 1px solid rgba(255,255,255,0.12); padding-right: 16px; }
.hstat:nth-child(2), .hstat:nth-child(3) { padding-left: 16px; }
.hstat:last-child { padding-left: 16px; border-right: none; }
.hstat-num { font-family: 'Saira Condensed', sans-serif; font-size: 38px; font-weight: 700; color: #fff; line-height: 1; }
.hstat-num .red { color: var(--red); }
.hstat-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 6px; }

.hero-visual { position: relative; min-height: 720px; overflow: hidden; }
.hero-visual-img { position: absolute; inset: -10% -5% -10% -5%; background-size: cover; background-position: center; will-change: transform; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,23,28,0.6) 0%, rgba(20,23,28,0) 30%); z-index: 1; }
.hero-visual-card { position: absolute; bottom: 32px; left: 32px; right: 32px; padding: 20px 24px; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: space-between; align-items: center; gap: 24px; z-index: 2; }
.hero-visual-card .label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 4px; display: inline-flex; align-items: center; gap: 8px; }
.hero-visual-card .title { font-family: 'Saira Condensed', sans-serif; font-size: 22px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: -0.005em; }
.hero-visual-card .meta { font-size: 12px; color: var(--slate); margin-top: 4px; }
.hero-visual-card .badge { padding: 6px 12px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   Hero — light variant (inner pages)
   ============================================================ */
.hero-light { padding: calc(var(--topbar-h) + 56px) var(--pad-x) 80px; background: var(--bg-soft); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-light-inner { max-width: var(--max); margin: 0 auto; }
.hero-light-meta { display: flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 28px; }
.hero-light-meta .red { color: var(--red); padding: 2px 10px; background: rgba(206,14,45,0.08); border-radius: 3px; }
.hero-light-meta .sep { width: 24px; height: 1px; background: var(--ink); }
.hero-light h1.display { font-size: clamp(56px, 8.5vw, 128px); color: var(--ink); margin-bottom: 28px; max-width: 1100px; }
.hero-light h1.display .red { color: var(--red); }
.hero-light h1.display .outline { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.hero-light-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: end; padding-top: 32px; border-top: 2px solid var(--ink); }
.hero-light-lede { font-size: 19px; line-height: 1.5; color: var(--slate); max-width: 580px; }
.hero-light-lede strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Marquee (red on top, ink on bottom)
   ============================================================ */
.marquee-stack { background: var(--red); color: #fff; overflow: hidden; border-top: 1px solid var(--red-dark); border-bottom: 1px solid var(--red-dark); }
.marquee { padding: 14px 0; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.18); }
.marquee:last-child { border-bottom: none; background: var(--ink); color: #fff; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: scroll-left 40s linear infinite; }
.marquee-track.reverse { animation: scroll-right 50s linear infinite; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: 'Saira Condensed', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 16px; }
.marquee-item::after { content: '◆'; font-size: 10px; opacity: 0.7; }

/* ============================================================
   Section primitives
   ============================================================ */
.section { padding: 96px var(--pad-x); }
.section-tight { padding: 64px var(--pad-x); }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--ink); color: #fff; }
.section-inner { max-width: var(--max); margin: 0 auto; }

.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; margin-bottom: 56px; align-items: end; }
.section-head.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.section-eyebrow .num { padding: 2px 10px; background: var(--red); color: #fff; font-family: 'Saira Condensed', sans-serif; font-weight: 700; }
.section-dark .section-eyebrow { color: var(--red); }
h2.display { font-size: clamp(44px, 6.5vw, 96px); color: var(--ink); }
h2.display .red { color: var(--red); }
h2.display .outline { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.section-dark h2.display { color: #fff; }
.section-dark h2.display .outline { -webkit-text-stroke: 1.5px #fff; color: transparent; }
.section-sub { font-size: 17px; line-height: 1.5; color: var(--slate); padding-left: 28px; border-left: 3px solid var(--red); }
.section-sub strong { color: var(--ink); font-weight: 600; }
.section-dark .section-sub { color: rgba(255,255,255,0.7); }
.section-dark .section-sub strong { color: #fff; }

/* ============================================================
   Filter bar + chips
   ============================================================ */
.filter-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 0; }
.chip { padding: 12px 20px; background: transparent; border: none; font-family: 'Saira Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); cursor: pointer; transition: color .25s var(--ease-out); position: relative; }
.chip::after { content: ''; position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px; background: transparent; transition: background .25s var(--ease-out), transform .35s var(--ease-out); transform: scaleX(0.4); transform-origin: left; }
.chip:hover { color: var(--ink); }
.chip:hover::after { background: var(--red); transform: scaleX(0.7); }
.chip.active { color: var(--ink); }
.chip.active::after { background: var(--red); transform: scaleX(1); }
.chip .count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--slate-3); margin-left: 6px; font-weight: 500; }
.filter-meta { font-size: 12px; color: var(--slate-2); display: inline-flex; align-items: center; gap: 8px; }
.filter-meta strong { color: var(--ink); font-weight: 600; }
.live-dot { width: 6px; height: 6px; background: #16a34a; border-radius: 50%; box-shadow: 0 0 0 0 rgba(22,163,74,0.7); animation: pulse-green 2s infinite; }
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* ============================================================
   Portfolio mosaic & tiles
   ============================================================ */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; cursor: pointer; background: var(--ink); }
.tile-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.7s var(--ease-out), opacity 0.4s; will-change: transform; }
.tile:hover .tile-img { transform: scale(1.06); opacity: 0.6; }
.tile-frame { position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,0); transition: border-color 0.3s var(--ease-out), inset 0.3s; pointer-events: none; }
.tile:hover .tile-frame { border-color: rgba(255,255,255,0.7); inset: 14px; }
.tile-content { position: absolute; left: 24px; right: 24px; bottom: 24px; color: #fff; z-index: 2; transition: transform 0.5s var(--ease-out); }
.tile:hover .tile-content { transform: translateY(-4px); }
.tile-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,23,28,0.92) 100%); transition: background 0.4s var(--ease-out); }
.tile:hover .tile-overlay { background: linear-gradient(180deg, rgba(206,14,45,0.15) 0%, rgba(20,23,28,0.95) 100%); }
.tile-cat { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--red); color: #fff; font-family: 'Saira Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.tile-title { font-family: 'Saira Condensed', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.005em; text-transform: uppercase; margin-bottom: 6px; }
.tile-meta { font-size: 12px; color: rgba(255,255,255,0.7); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tile-meta .dot { width: 3px; height: 3px; background: rgba(255,255,255,0.5); border-radius: 50%; }
.tile-num { position: absolute; top: 16px; right: 16px; font-family: 'Saira Condensed', sans-serif; font-weight: 700; color: #fff; font-size: 14px; letter-spacing: 0.06em; padding: 4px 10px; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 2; transition: transform 0.4s var(--ease-out); }
.tile:hover .tile-num { transform: rotate(2deg) scale(1.05); }
.tile-arrow { position: absolute; top: 16px; left: 16px; width: 36px; height: 36px; background: var(--red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; opacity: 0; transform: translate(-8px, 8px); transition: all 0.4s var(--ease-out); }
.tile:hover .tile-arrow { opacity: 1; transform: translate(0, 0); }

.span-7 { grid-column: span 7; aspect-ratio: 16/10; }
.span-5 { grid-column: span 5; aspect-ratio: 4/5; }
.span-4 { grid-column: span 4; aspect-ratio: 1/1; }
.span-8 { grid-column: span 8; aspect-ratio: 16/8; }
.span-6 { grid-column: span 6; aspect-ratio: 4/3; }
.span-3 { grid-column: span 3; aspect-ratio: 3/4; }
.span-9 { grid-column: span 9; aspect-ratio: 16/9; }
.span-12 { grid-column: span 12; aspect-ratio: 21/9; }

/* ============================================================
   Services blocks
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.service { padding: 36px 32px 36px 0; border-right: 1px solid var(--line-dark); position: relative; transition: background 0.3s; }
.service:nth-child(2), .service:nth-child(3) { padding-left: 32px; }
.service:last-child { border-right: none; padding-right: 0; }
.service:hover { background: rgba(255,255,255,0.02); }
.service-num { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 64px; color: var(--red); line-height: 1; letter-spacing: -0.02em; margin-bottom: 24px; transition: transform 0.4s var(--ease-out); }
.service:hover .service-num { transform: translateX(8px); }
.service h3 { font-family: 'Saira Condensed', sans-serif; font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.05; color: inherit; margin-bottom: 16px; }
.service-dark h3 { color: #fff; }
.service p { font-size: 14px; line-height: 1.6; margin-bottom: 24px; color: var(--slate); }
.section-dark .service p { color: rgba(255,255,255,0.65); }
.service-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: inherit; padding-bottom: 6px; border-bottom: 1px solid var(--red); transition: gap 0.3s var(--ease-out); }
.service:hover .service-link { gap: 14px; }

/* ============================================================
   Outro headline
   ============================================================ */
.outro { padding: 120px var(--pad-x); background: var(--ink); color: #fff; overflow: hidden; }
.outro-inner { max-width: 1600px; margin: 0 auto; }
.outro h2 { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: clamp(80px, 16vw, 240px); line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; color: #fff; }
.outro h2 .stroke { -webkit-text-stroke: 2px #fff; color: transparent; }
.outro h2 .red { color: var(--red); }
.outro-row { display: flex; align-items: center; gap: 48px; padding-top: 32px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); flex-wrap: wrap; }
.outro-row p { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 540px; line-height: 1.5; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink-3); color: rgba(255,255,255,0.7); padding: 72px var(--pad-x) 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 36px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer h4 { font-family: 'Saira Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; transition: color 0.2s, padding-left 0.2s var(--ease-out); cursor: pointer; }
.footer li:hover { color: #fff; padding-left: 6px; }
.footer-bottom { max-width: var(--max); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }

/* ============================================================
   Generic card grids (for services/about/etc)
   ============================================================ */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.feature-card { background: var(--bg); border: 1px solid var(--line); padding: 32px; transition: all .25s; }
.feature-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.feature-card h3 { font-family: 'Saira Condensed', sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; margin-bottom: 12px; line-height: 1.1; }
.feature-card p { font-size: 14px; color: var(--slate); line-height: 1.6; }

/* Big stat block */
.stat-block { background: var(--ink); color: #fff; padding: 56px 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-cell { padding: 0 32px; border-right: 1px solid var(--line-dark); }
.stat-cell:first-child { padding-left: 0; }
.stat-cell:last-child { border-right: none; padding-right: 0; }
.stat-num { font-family: 'Saira Condensed', sans-serif; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat-num .red { color: var(--red); }
.stat-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 10px; }

/* ============================================================
   Locations
   ============================================================ */
.location-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.location-list { display: flex; flex-direction: column; }
.location-item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; cursor: pointer; transition: padding-left 0.3s var(--ease-out); }
.location-item:hover { padding-left: 12px; }
.location-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--red); padding-top: 4px; }
.location-name { font-family: 'Saira Condensed', sans-serif; font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.05; margin-bottom: 6px; }
.location-addr { font-size: 14px; color: var(--slate); line-height: 1.5; }
.location-addr strong { color: var(--ink); font-weight: 600; }
.location-arrow { font-size: 13px; padding-top: 6px; color: var(--slate-2); transition: transform 0.3s; }
.location-item:hover .location-arrow { transform: translateX(4px); color: var(--red); }
.map-block { background: var(--bg-soft); aspect-ratio: 1/1; position: relative; overflow: hidden; background-image: linear-gradient(135deg, #E0DDD5 0%, #C8C5BD 100%); }
.map-pin { position: absolute; width: 14px; height: 14px; background: var(--red); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(206,14,45,0.7); animation: pulse-pin 2.4s infinite; }
@keyframes pulse-pin {
  0% { box-shadow: 0 0 0 0 rgba(206,14,45,0.7); }
  70% { box-shadow: 0 0 0 14px rgba(206,14,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(206,14,45,0); }
}

/* ============================================================
   Form (contact, careers)
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-2); font-weight: 600; }
.form-input, .form-textarea, .form-select { padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; color: var(--ink); transition: border-color 0.2s; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--ink); }
.form-textarea { resize: vertical; min-height: 120px; font-family: inherit; }

/* ============================================================
   Generic pulse / live indicators
   ============================================================ */
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: rgba(22,163,74,0.1); color: #16a34a; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > *, .word-reveal .word { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .menu-body { grid-template-columns: 1fr; gap: 32px; }
  .menu-side { display: none; }
}
@media (max-width: 1024px) {
  .hero-dark .hero-grid { grid-template-columns: 1fr; }
  .hero-dark .hero-content { padding: calc(var(--topbar-h) + 48px) 32px 56px; max-width: none; }
  .hero-visual { min-height: 480px; }
  .hero-light-row { grid-template-columns: 1fr; gap: 24px; }
  .span-7, .span-5, .span-4, .span-8, .span-6, .span-3, .span-9, .span-12 { grid-column: span 12; }
  .span-7, .span-5, .span-4 { aspect-ratio: 4/3; }
  .services-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .service { padding: 32px 0 !important; border-right: none; border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stat-cell { padding: 0 24px; }
  .stat-cell:nth-child(2) { border-right: none; padding-right: 0; }
  .stat-cell:nth-child(3) { padding-left: 0; }
  .cursor-preview { display: none; }
  .location-grid { grid-template-columns: 1fr; }
  .menu-panel { padding: 24px 32px 32px; }
}
@media (max-width: 700px) {
  :root { --pad-x: 24px; --pad-x-tight: 20px; }
  .float-nav { padding: 14px 16px; }
  .float-pill { padding: 8px 14px; gap: 10px; font-size: 12px; }
  .float-pill .live { display: none; }
  .menu-trigger { padding: 10px 16px; font-size: 12px; }
  .hero-dark .hero-stats { grid-template-columns: 1fr 1fr; }
  .hstat { padding: 20px 0 !important; }
  .filter-bar { flex-direction: column; align-items: flex-start; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-sub { padding-left: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .menu-link .desc { display: none; }
}
