/* =====================================================================
   ConcreteGC — Shared Stylesheet
   Black / White with #23D393 accent · Fraunces (display) + Inter (body)
   ===================================================================== */

:root {
  --bg: #000000;
  --bg-2: #0A0A0A;
  --bg-3: #111111;
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.16);
  --text: #FFFFFF;
  --muted: rgba(255,255,255,0.62);
  --muted-2: rgba(255,255,255,0.42);
  --accent: #23D393;
  --accent-soft: rgba(35,211,147,0.12);
  --radius: 999px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #000; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Topbar + Nav use full-bleed padding that matches the hero-text left edge.
   This keeps the menu logo aligned with the H1 across all screen sizes. */
.topbar > .container,
.nav > .container {
  max-width: none;
  padding: 0 80px;
}
@media (max-width: 1200px) {
  .topbar > .container, .nav > .container { padding: 0 48px; }
}
@media (max-width: 900px) {
  .topbar > .container, .nav > .container { padding: 0 24px; }
}

/* ============ TOP BAR ============ */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  /* Pinned to viewport — always visible while scrolling */
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 40px;
}
.topbar a:hover { color: var(--text); }
.topbar .left, .topbar .right { display: flex; align-items: center; gap: 24px; }
.topbar .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }
.topbar .sep { color: var(--muted-2); }
@media (max-width: 720px) {
  .topbar .left .hide-sm, .topbar .right .hide-sm { display: none; }
  .topbar-inner { height: 36px; }
}

/* ============ NAV ============ */
.nav {
  /* Pinned to viewport, sits below the 40px topbar — always visible while scrolling */
  position: fixed; top: 40px; left: 0; right: 0; z-index: 50;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
/* On smaller screens the topbar collapses to 36px tall — slot the nav under it */
@media (max-width: 720px) { .nav { top: 36px; } }
/* Push body content below the fixed bars on every page that uses topbar + nav.
   Uses :has() so we don't affect /quote (chat copilot) or /admin which have their
   own bars. The homepage opts out (.has-hero-shell) so the hero gradient bleeds
   through the translucent menu. */
body:has(> .topbar):has(> .nav) { padding-top: 116px; }
@media (max-width: 720px) { body:has(> .topbar):has(> .nav) { padding-top: 112px; } }
body.has-hero-shell { padding-top: 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
/* ============ LOGO ============ */
/*
 * Drop-in image-based logo. Save the brand wordmark to /assets/logo.png
 * (or /assets/logo.svg). The site reads it everywhere from .logo > img.
 * If the file is missing, the styled .logo-text fallback renders.
 */
.logo {
  display: inline-flex; align-items: center;
  height: 38px; line-height: 1;
  text-decoration: none;
}
.logo img {
  height: 100%; width: auto; display: block; max-width: 260px;
  /* Brighten the wordmark — pushes the silver toward white */
  filter: brightness(1.18) contrast(1.10) saturate(0.92);
}
.logo-text {
  display: none;
  font-family: 'Black Ops One', 'Manrope', system-ui, sans-serif;
  font-size: 22px; color: #fff; letter-spacing: 0.04em;
  line-height: 1; white-space: nowrap;
}
.logo-text .gc { color: var(--accent); margin-left: 6px; }
.logo--lg { height: 56px; }
.logo--lg .logo-text { font-size: 32px; }

/* Footer logo can be larger */
.footer-brand .logo { height: 48px; margin-bottom: 16px; }
.footer-brand .logo-text { font-size: 26px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #001810;
  box-shadow: 0 0 0 0 rgba(35,211,147,0.0);
}
.btn-primary:hover {
  background: #2EE6A4;
  box-shadow: 0 12px 32px -10px rgba(35,211,147,0.55);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.30);
}
.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

.pulse { position: relative; }
.pulse::before {
  content:''; position: absolute; inset: -2px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 0 rgba(35,211,147,0.55);
  animation: pulse 2.6s infinite;
  pointer-events: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(35,211,147,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(35,211,147,0); }
  100% { box-shadow: 0 0 0 0 rgba(35,211,147,0); }
}

/* ============ TYPE ============ */
/* Every heading uses Manrope with -0.06em (-6%) letter spacing for a unified
   architectural feel. H1 is uppercase; H2/H3/H4 stay mixed-case but tight. */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.0;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(40px, 6vw, 88px); font-weight: 700; line-height: 0.95; }
h2 { font-size: clamp(32px, 4.5vw, 60px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.10; }
h4 { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.15; }
p { margin: 0; }

/* Page-hero H1 alignment helper */
.page-hero h1, .hero-text h1 { line-height: 0.95; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
  padding: 6px 14px; border-radius: var(--radius);
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.section { padding: 120px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-divider { border-top: 1px solid var(--line); }

/* ============ PAGE HERO (sub-pages) ============ */
.page-hero {
  position: relative;
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.85) 100%);
}
.page-hero h1 { max-width: 1000px; margin-top: 24px; }
.page-hero p { max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.7; margin-top: 22px; }
.page-hero .ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.breadcrumb { font-size: 12px; color: var(--muted-2); letter-spacing: 0.06em; margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ============ DARK-GREEN TEXTURED GRADIENT SYSTEM ============ */
/*
 * Apply with `class="bg-textured-dark"`. Layered look:
 *   1. Pure black base
 *   2. Soft green ellipse blobs at 3 anchor points
 *   3. Subtle SVG noise grain
 *   4. Dark transparent overlay so the green shows through but darkened
 * Content goes inside; it sits above the overlay because of z-index.
 */
.bg-textured-dark {
  position: relative;
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 80% 70% at 15% 18%, rgba(35,211,147,0.65) 0%, rgba(35,211,147,0.30) 25%, transparent 65%),
    radial-gradient(ellipse 75% 65% at 88% 78%, rgba(35,211,147,0.55) 0%, rgba(35,211,147,0.25) 25%, transparent 65%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(35,211,147,0.40) 0%, rgba(35,211,147,0.15) 30%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 70% 25%, rgba(35,211,147,0.30) 0%, transparent 60%);
  isolation: isolate;
  overflow: hidden;
}
.bg-textured-dark::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.10;
  mix-blend-mode: overlay;
}
.bg-textured-dark::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* The dark overlay — DARK but NOT crushing. The green still reads through.  */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.40) 60%, rgba(0,0,0,0.55) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 0%, rgba(0,0,0,0.30) 100%);
}
.bg-textured-dark > * { position: relative; z-index: 1; }

/* Lighter variation for sections that need green accent without going full hero */
.bg-textured-soft {
  position: relative;
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(35,211,147,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 50%, rgba(35,211,147,0.10) 0%, transparent 60%);
  isolation: isolate; overflow: hidden;
}
.bg-textured-soft::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.04; mix-blend-mode: overlay;
}
.bg-textured-soft::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.75));
}
.bg-textured-soft > * { position: relative; z-index: 1; }

/* Mid-strength variant — visible green wash on whole-section backgrounds
   (used on Services + Recent Jobs on the homepage). Stronger than -soft, not as
   aggressive as -dark; readable text, obvious green presence. */
.bg-textured-section {
  position: relative;
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 70% 60% at 15% 30%, rgba(35,211,147,0.45) 0%, rgba(35,211,147,0.18) 25%, transparent 65%),
    radial-gradient(ellipse 65% 55% at 85% 70%, rgba(35,211,147,0.40) 0%, rgba(35,211,147,0.15) 25%, transparent 65%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(35,211,147,0.25) 0%, transparent 65%);
  isolation: isolate; overflow: hidden;
}
.bg-textured-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.07; mix-blend-mode: overlay;
}
.bg-textured-section::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.55) 100%);
}
.bg-textured-section > * { position: relative; z-index: 1; }

/* ============ HERO SHELL — wraps the homepage hero with the green gradient ============ */
.hero-shell {
  position: relative;
  /* Hero sits below the fixed menu but the gradient bleeds up under it
     because the menu is translucent (rgba 0.55 + 18px backdrop-blur). */
}

/* ============ HERO (homepage) — 50/50 SPLIT ============ */
.hero {
  position: relative;
  /* A touch taller than the viewport so the eyebrow + H1 can sit centered
     well below the sticky menu (116px) and never get clipped by it. */
  height: calc(100vh + 80px);
  min-height: 820px;
  max-height: calc(100vh + 80px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
}

.hero-text {
  /* applies bg-textured-dark via the HTML class — these properties just shape the box */
  display: flex; flex-direction: column;
  justify-content: center;
  /* top padding > 116px sticky-menu height so the eyebrow never gets clipped */
  padding: 140px 80px 80px;
  height: 100%;
  overflow: hidden;
}
@media (max-width: 1200px) { .hero-text { padding: 132px 48px 72px; } }
@media (max-width: 900px) {
  .hero-text { padding: 120px 24px 64px; height: auto; min-height: auto; overflow: visible; }
}

.hero-text .eyebrow { align-self: flex-start; margin-bottom: 28px; }
.hero-text h1 { max-width: 540px; }
.hero-text .sub { color: rgba(255,255,255,0.78); font-size: 16.5px; line-height: 1.65; max-width: 460px; margin-top: 28px; }
.hero-text .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-text .call-line {
  display: flex; align-items: center; gap: 10px;
  margin-top: 28px; font-size: 13.5px; color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-text .call-line .ico { color: var(--accent); flex-shrink: 0; }
.hero-text .call-line strong {
  color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--accent); padding-bottom: 1px;
}
.hero-text .meta-row {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero-text .meta-item .v {
  font-family: var(--display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.04em; line-height: 1;
}
.hero-text .meta-item .v .ac { color: var(--accent); }
.hero-text .meta-item .l { font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
/* Wider label for the licensing stat — wraps cleanly on two lines */
.hero-text .meta-item-wide .l { max-width: 180px; line-height: 1.35; }

/* Right side — vertical ROLLING BANNER (down → up).
   Locks to the hero viewport height so it never overflows. Shows ~3 of the 5
   images at any moment. The hero-shell's gradient shows through the padding
   and through the gaps between images. */
.hero-rolling {
  position: relative;
  overflow: hidden;
  height: 100%;                                  /* fills the hero grid cell exactly */
  max-height: calc(100vh + 80px);                /* matches the new hero height */
  padding: 140px 36px 80px 18px;                 /* top padding clears the sticky menu */
  /* Fade top and bottom so the loop seam stays invisible */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 90%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 90%, transparent 100%);
}
@media (max-width: 1100px) { .hero-rolling { padding: 24px 28px 24px 14px; } }
@media (max-width: 900px) {
  .hero-rolling { height: 64vh; min-height: 480px; max-height: none; padding: 18px; }
}

.rolling-track {
  display: flex; flex-direction: column;
  width: 100%;
  animation: roll-up 28s linear infinite;
  will-change: transform;
}
.rolling-track .ri {
  width: 100%;
  /* 3 visible: image height ≈ 1/3 of the hero height, clamped so it stays sensible
     on tiny and huge screens. Margin-bottom (instead of flex gap) is on every image
     INCLUDING the last so 50% of total track height = exactly one full set. */
  height: clamp(180px, calc((100vh - 60px) / 3), 340px);
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a0a0a;
  margin-bottom: 20px;
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.55);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .rolling-track .ri { height: clamp(140px, calc(64vh / 3 - 24px), 260px); margin-bottom: 16px; }
}

/* Track holds two identical sets of 5 (every image carries margin-bottom:20px),
   so total height = 10·(h + 20). Translating -50% = -5·(h + 20), which is the
   exact start of the duplicate set — so the loop is pixel-perfect seamless. */
@keyframes roll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.hero-rolling:hover .rolling-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .rolling-track { animation: none; }
}

/* ============ TRUST STRIP ============ */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 12px; }
.trust-item { padding: 24px 16px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .num { font-family: var(--serif); font-size: 32px; line-height: 1; }
.trust-item .num .accent { color: var(--accent); }
.trust-item .lbl { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; margin-top: 6px; }
@media (max-width: 720px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; }
.about-grid p { color: var(--muted); font-size: 16px; line-height: 1.7; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }

/* 3-column variant for the homepage Services section — 3 tiles per row, bigger cards */
.services-grid-4 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1100px) { .services-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid-4 { grid-template-columns: 1fr; } }
/* Larger card aspect since each card is bigger */
.services-grid-4 .service-card { aspect-ratio: 5 / 4; }
.services-grid-4 .service-card .body h3 { font-size: 26px; }
.services-grid-4 .service-card .body p { font-size: 14px; max-width: 420px; }

/* 3-column variant for the "Other things we do" related-services grid on each
   service detail page (always 3 cards = the other 3 services). */
.services-grid-related { grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .services-grid-related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid-related { grid-template-columns: 1fr; } }
.services-grid-related .service-card { aspect-ratio: 4/3; }
.services-grid-related .service-card .body h3 { font-size: 22px; }
.services-grid-related .service-card .body p { font-size: 13px; }
.service-card {
  position: relative; overflow: hidden; border-radius: 4px;
  border: 1px solid var(--line); background: var(--bg-2);
  aspect-ratio: 4 / 3;
  transition: border-color .25s ease, transform .25s ease;
  cursor: pointer; display: block;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-card .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s ease; }
.service-card:hover .img { transform: scale(1.04); }
.service-card .grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.85) 100%),
    radial-gradient(60% 80% at 80% 110%, rgba(35,211,147,0.20) 0%, transparent 60%);
}
.service-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.04; mix-blend-mode: overlay;
}
.service-card .pill, .service-card .body { z-index: 2; }
.service-card .grad { z-index: 1; }
.service-card .img { z-index: 0; }
.service-card .body { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.service-card .body h3 { font-family: var(--serif); font-size: 28px; }
.service-card .body p { color: rgba(255,255,255,0.78); font-size: 14px; margin-top: 6px; max-width: 360px; }
.service-card .arrow {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.30);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.service-card:hover .arrow { background: var(--accent); border-color: var(--accent); color: #001810; }
.service-card .pill { position: absolute; top: 24px; left: 28px; background: rgba(255,255,255,0.95); color: #000; padding: 6px 12px; border-radius: var(--radius); font-size: 11px; font-weight: 500; }

/* ============ AI DEMO ============ */
.ai-demo {
  background: linear-gradient(180deg, #060606 0%, #0F0F0F 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }
.ai-text p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-top: 18px; }
.ai-features { margin-top: 28px; display: grid; gap: 14px; }
.ai-feat { display: flex; gap: 14px; align-items: flex-start; }
.ai-feat .check { color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.ai-feat .t { color: var(--text); font-weight: 500; font-size: 15px; }
.ai-feat .s { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.ai-frame { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); user-select: none; }
.ai-frame .before, .ai-frame .after { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ai-frame .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ai-frame .divider { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); left: var(--split, 50%); transform: translateX(-1px); }
.ai-frame .handle {
  position: absolute; left: var(--split, 50%); top: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #001810;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(35,211,147,0.5);
}
.ai-frame .label-pill { position: absolute; top: 16px; padding: 5px 10px; border-radius: var(--radius); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; }
.ai-frame .label-before { left: 16px; background: rgba(0,0,0,0.65); color: #fff; backdrop-filter: blur(4px); }
.ai-frame .label-after  { right: 16px; background: var(--accent); color: #001810; }

/* ============ PORTFOLIO ============ */
.portfolio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .portfolio-grid { grid-template-columns: 1fr; } }

/* 3-column variant for the homepage Recent Jobs section (3 real projects) */
.portfolio-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .portfolio-grid-3 { grid-template-columns: 1fr; } }
.portfolio-grid-3 .portfolio-card { aspect-ratio: 4/5; }
.portfolio-grid-3 .portfolio-card .title { font-size: 20px; }
.portfolio-card { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 3/4; border: 1px solid var(--line); display: block; }
.portfolio-card .img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s ease; }
.portfolio-card:hover .img { transform: scale(1.05); }
.portfolio-card .grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.85) 100%); }
.portfolio-card .meta { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.portfolio-card .pill { display: inline-block; background: rgba(255,255,255,0.95); color: #000; padding: 4px 10px; border-radius: var(--radius); font-size: 10.5px; font-weight: 500; }
.portfolio-card .title { color: #fff; font-family: var(--serif); font-size: 18px; margin-top: 10px; }

/* ============ STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); padding: 36px 28px; border-radius: 4px; background: var(--bg-2); }
.step .num { font-family: var(--serif); font-size: 14px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ============ TESTIMONIAL ============ */
.testi { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .testi { grid-template-columns: 1fr; } }
.testi-photo { aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; background-size: cover; background-position: center; border: 1px solid var(--line-2); }
.testi-quote { font-family: var(--serif); font-size: 28px; line-height: 1.35; color: var(--text); font-weight: 400; }
.testi-quote::before { content: '"'; color: var(--accent); margin-right: 6px; }
.testi-quote::after { content: '"'; color: var(--accent); margin-left: 4px; }
.testi-name { margin-top: 28px; font-weight: 500; }
.testi-role { color: var(--muted); font-size: 13px; }
.testi-controls { margin-top: 28px; display: flex; align-items: center; gap: 12px; }
.testi-dot { width: 28px; height: 2px; background: var(--line-2); border: 0; padding: 0; transition: background .2s ease; }
.testi-dot.active { background: var(--accent); }

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  text-align: center; padding: 120px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 70% 80% at 25% 30%, rgba(35,211,147,0.55) 0%, rgba(35,211,147,0.20) 25%, transparent 65%),
    radial-gradient(ellipse 70% 80% at 75% 70%, rgba(35,211,147,0.50) 0%, rgba(35,211,147,0.18) 25%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(35,211,147,0.30) 0%, transparent 60%);
  isolation: isolate; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.10; mix-blend-mode: overlay;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.55));
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 900px; margin: 0 auto; }
.cta-band p { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.cta-band .btns { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ CONTACT CARDS ============ */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .contacts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .contacts { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); padding: 28px; border-radius: 4px; background: var(--bg-2); transition: border-color .2s ease; }
.contact-card:hover { border-color: var(--accent); }
.contact-card .icon { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 24px; }
.contact-card h4 { font-family: var(--serif); font-size: 20px; }
.contact-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 8px; }
.contact-card a { color: var(--text); display: inline-block; margin-top: 14px; font-size: 13px; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

/* ============ APPLICATIONS GRID (service detail pages) ============ */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .apps-grid { grid-template-columns: 1fr; } }
.app-card { padding: 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); transition: border-color .2s ease; }
.app-card:hover { border-color: var(--accent); }
.app-card h4 { font-family: var(--serif); font-size: 20px; }
.app-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 8px; }
.app-card .icon { color: var(--accent); margin-bottom: 18px; }

/* ============ PROCESS LIST (service detail pages) ============ */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } }
.process-item { display: flex; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.process-item .n { font-family: var(--serif); font-size: 28px; color: var(--accent); flex-shrink: 0; min-width: 56px; line-height: 1; }
.process-item h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.process-item p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ============ CHIPS (pattern/material tags) ============ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 13px; color: var(--text); background: rgba(255,255,255,0.03); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ============ PRICING CALLOUT ============ */
.price-box { padding: 36px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); }
.price-box .label { font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 10px; }
.price-box .price { font-family: var(--serif); font-size: 44px; line-height: 1; }
.price-box .price .accent { color: var(--accent); }
.price-box p { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ============ FAQ ============ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--serif); font-size: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 28px; transition: transform .2s ease; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin-top: 14px; line-height: 1.7; max-width: 880px; }

/* ============ FOOTER ============ */
.footer { background: #050505; border-top: 1px solid var(--line); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; color: var(--muted-2); font-weight: 500; margin: 0 0 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.78); font-size: 14px; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 320px; margin-top: 16px; }
.footer-licenses { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; }
.footer-licenses .badge { font-size: 11px; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted-2); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============ FLOATING CTA ============ */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: var(--accent); color: #001810;
  border-radius: var(--radius); padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 18px 40px -10px rgba(35,211,147,0.5);
  cursor: pointer; border: 0;
  transition: transform .2s ease;
}
.float-cta:hover { transform: translateY(-2px); }
.float-cta .x { opacity: 0.55; margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(0,0,0,0.25); }

/* ============ AI FLOW PAGE (/quote) ============ */
.ai-page { min-height: 100vh; padding: 56px 0 120px; background: var(--bg); }
.ai-page-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.ai-page-head h1 { font-size: clamp(36px, 4.5vw, 56px); margin-top: 16px; }
.ai-page-head p { color: var(--muted); margin-top: 18px; line-height: 1.7; }
.ai-stepper { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 32px 0 56px; flex-wrap: wrap; }
.ai-stepper .step-pill { padding: 6px 14px; border-radius: var(--radius); font-size: 12px; color: var(--muted); border: 1px solid var(--line); }
.ai-stepper .step-pill.active { background: var(--accent); color: #001810; border-color: var(--accent); }
.ai-stepper .arrow { color: var(--muted-2); }
.ai-stage { max-width: 880px; margin: 0 auto; padding: 48px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
@media (max-width: 700px) { .ai-stage { padding: 28px; } }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
.choice-tile { padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,0.02); cursor: pointer; transition: all .2s ease; text-align: left; color: var(--text); }
.choice-tile:hover, .choice-tile.selected { border-color: var(--accent); background: var(--accent-soft); }
.choice-tile .icon { color: var(--accent); margin-bottom: 12px; }
.choice-tile h4 { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.choice-tile p { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.upload-zone { border: 1.5px dashed var(--line-2); border-radius: 4px; padding: 56px 24px; text-align: center; transition: border-color .2s ease, background .2s ease; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone .ico { color: var(--accent); margin-bottom: 14px; }
.upload-zone h4 { font-family: var(--serif); font-size: 22px; }
.upload-zone p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.upload-note { font-size: 12px; color: var(--muted-2); text-align: center; margin-top: 16px; }
.style-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .style-row { grid-template-columns: repeat(2, 1fr); } }
.style-tile { aspect-ratio: 1; border-radius: 4px; overflow: hidden; position: relative; cursor: pointer; border: 2px solid transparent; transition: border-color .2s ease; }
.style-tile.selected { border-color: var(--accent); }
.style-tile .img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.style-tile .name { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-weight: 500; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }

.intake-form { display: grid; gap: 18px; max-width: 540px; margin: 0 auto; }
.intake-form label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: block; letter-spacing: 0.02em; }
.intake-form input, .intake-form textarea, .intake-form select {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2);
  color: var(--text); padding: 14px 16px; border-radius: 4px; font-family: var(--sans); font-size: 14px;
  outline: none; transition: border-color .2s ease, background .2s ease;
}
.intake-form input:focus, .intake-form textarea:focus, .intake-form select:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }
.intake-form textarea { min-height: 100px; resize: vertical; }
.intake-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .intake-form .row { grid-template-columns: 1fr; } }

.ai-actions { margin-top: 32px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.back-link { color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--accent); }

/* small reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .pulse::before, .service-card .img { transition: none; animation: none; }
}

/* ============ AI DESIGNER · Pattern presets (shared by /ai-designer and /admin) ============ */
.pat-slate { background: linear-gradient(135deg, #6a7178 0%, #4f565d 50%, #3a4047 100%); }
.pat-cobble { background:
  radial-gradient(circle at 30% 30%, #888 0 6px, transparent 7px),
  radial-gradient(circle at 70% 60%, #777 0 7px, transparent 8px),
  radial-gradient(circle at 30% 80%, #666 0 5px, transparent 6px),
  radial-gradient(circle at 80% 25%, #999 0 5px, transparent 6px),
  linear-gradient(135deg, #555, #3a3a3a); }
.pat-herring { background: repeating-linear-gradient(45deg, #b08968 0 6px, #8c6a4e 6px 12px); }
.pat-ashlar { background:
  repeating-linear-gradient(0deg, #9a9a9a 0 10px, #7a7a7a 10px 12px),
  repeating-linear-gradient(90deg, transparent 0 18px, rgba(0,0,0,0.2) 18px 20px); }
.pat-wood { background: repeating-linear-gradient(90deg, #6b4a2b 0 12px, #553a22 12px 14px); }
.pat-random { background:
  conic-gradient(from 0deg at 30% 30%, #888, #6a6a6a, #888),
  conic-gradient(from 45deg at 70% 70%, #777, #555, #777),
  linear-gradient(135deg, #666, #444); }
.pat-polished { background:
  radial-gradient(circle at 50% 30%, rgba(255,255,255,0.4), transparent 50%),
  linear-gradient(135deg, #d8d8d8 0%, #a8a8a8 100%); }
.pat-broom { background: repeating-linear-gradient(0deg, #b8b8b8 0 1px, #989898 1px 3px); }
.pat-exposed { background:
  radial-gradient(circle at 20% 30%, #c8c8c8 0 3px, transparent 4px),
  radial-gradient(circle at 70% 60%, #b0b0b0 0 2px, transparent 3px),
  radial-gradient(circle at 40% 80%, #999 0 2px, transparent 3px),
  linear-gradient(135deg, #969696, #707070); }
.pat-stamped-fan { background:
  repeating-conic-gradient(from 0deg at 50% 100%, #777 0deg 8deg, #999 8deg 16deg),
  linear-gradient(135deg, #888, #666); }
.pat-charcoal { background: linear-gradient(135deg, #3a3f44 0%, #1f2326 100%); }
.pat-warmtan { background: linear-gradient(135deg, #c4a47a 0%, #8b6f4d 100%); }
.pat-modern { background: linear-gradient(180deg, #e8e8e8 0%, #c0c0c0 50%, #909090 100%); }
