/* ============================================================
   Ebulen Consult — v2.0 design system
   Editorial-technical style from the 2026 LinkedIn pack /
   capability statement: deep navy + warm cream + amber,
   serif display with italic accent words, mono labels,
   pill chips, blueprint grid motifs.
   ============================================================ */

/* ---------- Fonts (all local) ---------- */
@font-face { font-family: 'Playfair Display'; src: url('../../vendor/playfair-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../../vendor/playfair-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../../vendor/playfair-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../../vendor/playfair-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../../vendor/playfair-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../../vendor/figtree-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../../vendor/figtree-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../../vendor/figtree-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../../vendor/figtree-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../../vendor/spacemono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../../vendor/spacemono-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* palette extracted from the 2026-07 capability statement */
  --navy-950: #171f38;
  --navy-900: #1f2a4a;   /* primary deep navy */
  --navy-800: #2c3a61;   /* mid navy panels */
  --navy-700: #22365b;   /* Ebulen logo navy */
  --navy-600: #3a4d7e;

  --cream:   #f5f2ea;    /* page background */
  --cream-2: #e4dfd2;    /* warm stone panel */
  --paper:   #fbfaf6;    /* card surface */

  --amber:   #e8a33d;    /* bright amber — buttons, on-dark accents */
  --orange:  #d08a22;    /* primary ochre accent — em words, labels */
  --amber-pale: #f3e3c8;

  --ink:      #242c42;
  --ink-soft: #5c6478;
  --ink-faint:#8b93a8;
  --line:       rgba(31, 42, 74, 0.18);
  --line-soft:  rgba(31, 42, 74, 0.10);

  --on-dark:       #f5f2ea;
  --on-dark-soft:  rgba(245, 242, 234, 0.74);
  --on-dark-faint: rgba(245, 242, 234, 0.45);
  --line-dark:     rgba(245, 242, 234, 0.16);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Figtree', 'Segoe UI', system-ui, sans-serif;
  --mono:  'Space Mono', 'Consolas', monospace;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px -18px rgba(13, 23, 48, 0.22);
  --shadow-soft: 0 10px 30px -14px rgba(13, 23, 48, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--amber); color: var(--navy-900); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--orange); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--amber); }
p.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }

/* ---------- Utilities ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 118px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 76px) 0; }
.on-dark { background: var(--navy-900); color: var(--on-dark); }
.on-dark p.lead, .on-dark .muted { color: var(--on-dark-soft); }
.on-dark-deep { background: var(--navy-950); }
.on-cream-2 { background: var(--cream-2); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center p.lead { margin-inline: auto; }

/* blueprint grid backdrop (cream sections) */
.blueprint {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
}
.blueprint-fade::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 42%, transparent 30%, var(--cream) 100%);
}
.blueprint-fade > .wrap { position: relative; z-index: 1; }

/* mono kicker label */
.label {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); display: inline-flex; align-items: center; gap: 10px;
}
.on-dark .label { color: var(--on-dark-faint); }
.label .idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 0.68rem; letter-spacing: 0;
}
.sec-head { margin-bottom: clamp(34px, 4.5vw, 58px); }
.sec-head .label { margin-bottom: 16px; }
.sec-head h2 { max-width: 21ch; }
.sec-head.center h2 { margin-inline: auto; }
.sec-head p.lead { margin-top: 16px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--paper);
  white-space: nowrap;
}
.chip.solid { background: var(--amber); border-color: var(--amber); color: var(--navy-900); }
.on-dark .chip { background: transparent; border-color: var(--line-dark); color: var(--on-dark-soft); }
.on-dark .chip.solid { background: var(--amber); border-color: var(--amber); color: var(--navy-900); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: 999px;
  background: var(--amber); color: var(--navy-900);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  box-shadow: 0 8px 22px -10px rgba(208, 138, 34, 0.55);
}
.btn:hover { transform: translateY(-2px); background: #f0b45c; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-outline {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none;
}
.btn-outline:hover { background: var(--paper); border-color: var(--ink-faint); }
.on-dark .btn-outline { color: var(--on-dark); border-color: var(--line-dark); }
.on-dark .btn-outline:hover { background: rgba(246, 241, 230, 0.08); border-color: var(--on-dark-faint); }
.btn-navy { background: var(--navy-800); color: var(--cream); box-shadow: 0 8px 22px -10px rgba(13,23,48,.5); }
.btn-navy:hover { background: var(--navy-700); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 241, 230, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px; height: 76px; max-width: 1280px;
}
.logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  padding: 5px 10px; margin-left: -10px; border-radius: 12px;
  transition: background 0.35s, box-shadow 0.35s;
}
.logo img { height: 42px; width: auto; }
/* dark-hero pages: white plate behind the logo until the header gains its bar */
body.dark-hero .site-header:not(.scrolled) .logo {
  background: rgba(251, 250, 246, 0.96);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4);
}
body.dark-hero .site-header:not(.scrolled) .main-nav a { color: var(--on-dark-soft); }
body.dark-hero .site-header:not(.scrolled) .main-nav a:hover { color: var(--on-dark); background: rgba(245, 242, 234, 0.1); }
body.dark-hero .site-header:not(.scrolled) .main-nav a.active { color: var(--on-dark); }
body.dark-hero .site-header:not(.scrolled) .nav-toggle span { background: var(--on-dark); }
.logo .logo-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.12rem;
  letter-spacing: 0.04em; color: var(--navy-800); line-height: 1.05;
}
.logo .logo-name small {
  display: block; font-family: var(--mono); font-weight: 400; font-size: 0.56rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px;
}
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  font-size: 0.94rem; font-weight: 600; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--navy-800); background: rgba(26, 43, 74, 0.06); }
.main-nav a.active { color: var(--navy-800); }
.main-nav a.active::after {
  content: ''; display: block; height: 2px; margin: 1px 14px 0;
  background: var(--orange); border-radius: 2px;
}
.header-cta { flex-shrink: 0; padding: 10px 20px; font-size: 0.88rem; }
.nav-toggle { display: none; margin-left: auto; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 140px 0 80px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; width: 100%; }
.hero-copy .label { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy p.lead { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-chips { max-width: 520px; }
.hero-canvas-holder { position: relative; height: clamp(380px, 46vw, 560px); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas-cap {
  position: absolute; right: 6px; bottom: 0; text-align: right;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero-rays::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 75%;
  background: repeating-linear-gradient(100deg, rgba(208, 138, 34, 0.10) 0 3px, transparent 3px 84px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 82%);
  pointer-events: none;
}

/* page hero (inner pages) */
.page-hero { padding: 158px 0 64px; position: relative; overflow: hidden; }
.page-hero .label { margin-bottom: 18px; }
.page-hero h1 { max-width: 18ch; margin-bottom: 18px; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.page-hero p.lead { margin-bottom: 26px; }
.page-hero.on-dark { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card .card-idx {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--orange); margin-bottom: 16px;
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }
.card .card-tags { margin-top: auto; padding-top: 18px; }
.card .card-tags .chip { font-size: 0.72rem; padding: 5px 11px; }
.card-link-arrow {
  margin-top: 18px; font-weight: 700; font-size: 0.9rem; color: var(--navy-700);
  display: inline-flex; gap: 8px; align-items: center;
}
.on-dark .card { background: var(--navy-800); border-color: var(--line-dark); }
.on-dark .card p { color: var(--on-dark-soft); }
.on-dark .card h3 { color: var(--on-dark); }

/* icon tile for service cards */
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(208, 138, 34, 0.13); color: var(--orange);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Stats band ---------- */
.stats-band { border-block: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat .stat-num {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3.2rem);
  color: var(--amber); line-height: 1;
}
.stat .stat-num sup { font-size: 0.5em; color: var(--amber); }
.stat .stat-label {
  margin-top: 10px; font-family: var(--mono); font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft);
}

/* ---------- Projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter-btn {
  font-size: 0.86rem; font-weight: 600; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); background: transparent;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--ink-faint); color: var(--ink); }
.filter-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--cream); }

.proj-card { padding: 0; overflow: hidden; }
.proj-card .proj-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-800); }
.proj-card .proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.proj-card:hover .proj-img img { transform: scale(1.045); }
.proj-card .proj-img .chip {
  position: absolute; top: 14px; left: 14px; background: rgba(246, 241, 230, 0.92);
  border-color: transparent; color: var(--navy-800); font-size: 0.72rem; backdrop-filter: blur(4px);
}
.proj-card .proj-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.proj-card .proj-loc {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.proj-card h3 { font-size: 1.22rem; }
.proj-card p { margin-top: 10px; font-size: 0.93rem; }

/* dark-card variant (no photo) */
.proj-card.dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border-color: var(--navy-700); }
.proj-card.dark h3, .proj-card.dark .proj-body h3 { color: var(--on-dark); }
.proj-card.dark p { color: var(--on-dark-soft); }

/* ---------- People ---------- */
.person-card { text-align: left; }
.person-photo {
  aspect-ratio: 1/1.06; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-800); margin-bottom: 20px; position: relative;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo .initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 3.4rem; font-weight: 600; color: var(--amber);
}
.person-card .person-role {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange); margin: 6px 0 12px;
}
.person-card .quals { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 10px; }

/* ---------- Accreditation / partner strips ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 58px); }
.logo-strip img {
  height: 46px; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(0.55); transition: filter 0.3s;
}
.logo-strip img:hover { filter: grayscale(0) opacity(1); }
.logo-strip.tall img { height: 62px; }

/* ---------- Process / numbered steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 26px 22px; border-left: 1.5px solid var(--line); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--orange);
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; font-family: var(--sans); font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- News ---------- */
.news-grid { align-items: stretch; }
.news-card { padding: 0; overflow: hidden; }
.news-card .news-img { aspect-ratio: 1200/1500; background: var(--navy-900); overflow: hidden; }
.news-card .news-img.wide { aspect-ratio: 16/9; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.03); }
.news-card .news-body { padding: 22px 24px 26px; }
.news-card .news-date {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; display: block;
}
.news-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.news-card p { font-size: 0.9rem; color: var(--ink-soft); }
.news-card .news-link { margin-top: 14px; display: inline-flex; gap: 8px; font-weight: 700; font-size: 0.86rem; color: var(--navy-700); align-items: center; }

.linkedin-cta {
  border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 56px);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  color: var(--on-dark); display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between; position: relative; overflow: hidden;
}
.linkedin-cta h2 { max-width: 22ch; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.linkedin-cta p { color: var(--on-dark-soft); margin-top: 10px; max-width: 52ch; }

/* ---------- Testimonials ---------- */
.testi-card { position: relative; padding-top: 52px; }
.testi-card::before {
  content: '\201C'; font-family: var(--serif); font-size: 4.4rem; line-height: 1;
  color: var(--orange); position: absolute; top: 14px; left: 26px;
}
.testi-card blockquote { font-size: 0.96rem; color: var(--ink-soft); }
.testi-card .testi-who {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-weight: 700; font-size: 0.92rem; color: var(--navy-800);
}
.testi-card .testi-who small {
  display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; font-weight: 400;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 6px; }
.contact-item {
  display: flex; gap: 18px; padding: 22px 6px; border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.contact-item .ci-ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: rgba(208, 138, 34, 0.13); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ci-ico svg { width: 21px; height: 21px; }
.contact-item .ci-label {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px;
}
.contact-item a.big, .contact-item .big { font-weight: 700; font-size: 1.06rem; color: var(--navy-800); }
.contact-item a.big:hover { color: var(--orange); }

.quote-panel {
  background: var(--navy-900); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.quote-panel h3 { color: var(--on-dark); margin-bottom: 8px; }
.quote-panel .qp-sub { color: var(--on-dark-soft); font-size: 0.94rem; margin-bottom: 24px; }
.quote-panel .required-mark { color: var(--amber); }
.quote-panel label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; margin: 16px 0 7px; color: var(--on-dark-soft); }
.quote-panel input, .quote-panel select, .quote-panel textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-dark); background: rgba(246, 241, 230, 0.06);
  color: var(--on-dark); font: inherit; font-size: 0.95rem;
}
.quote-panel input:focus, .quote-panel select:focus, .quote-panel textarea:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent;
}
.quote-panel select option { color: var(--ink); background: var(--cream); }
.quote-panel .btn { width: 100%; justify-content: center; margin-top: 24px; }
.quote-panel .btn:disabled, .quote-panel .btn:disabled:hover {
  cursor: wait; opacity: 0.72; transform: none; background: var(--amber); box-shadow: none;
}
.quote-form-status {
  min-height: 1.4em; margin-top: 14px; font-size: 0.86rem; line-height: 1.5;
}
.quote-form-status:not(:empty) { padding: 11px 13px; border: 1px solid transparent; border-radius: 10px; }
.quote-form-status.is-success {
  color: #d9f3e4; background: rgba(54, 151, 98, 0.16); border-color: rgba(151, 222, 181, 0.34);
}
.quote-form-status.is-error {
  color: #ffd8d2; background: rgba(190, 73, 61, 0.16); border-color: rgba(238, 157, 147, 0.34);
}
.quote-form-help { margin-top: 12px; color: var(--on-dark-soft); font-size: 0.78rem; }
.quote-form-help a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; text-align: center; }
.cta-band h2 { max-width: 24ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-soft); font-size: 0.92rem; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: clamp(52px, 7vw, 84px) 0 44px;
}
.footer-main h4 {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 18px;
}
.footer-main ul { display: grid; gap: 10px; }
.footer-main a:hover { color: var(--amber); }
.footer-brand .logo-name { color: var(--on-dark); }
.footer-brand .logo-name small { color: var(--on-dark-faint); }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.footer-tag {
  border-top: 1px solid var(--line-dark); padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-faint);
}

/* ---------- Solar Tool page ---------- */
.st-hero { background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 70%); }
.st-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: rgba(232, 163, 61, 0.16); border: 1px solid rgba(232, 163, 61, 0.4);
  color: var(--amber); font-weight: 700; font-size: 0.8rem;
}
.demo-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark);
  background: var(--navy-950); box-shadow: var(--shadow); position: relative;
}
.demo-frame .demo-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-bottom: 1px solid var(--line-dark); background: rgba(246, 241, 230, 0.04);
}
.demo-frame .demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-dark); }
.demo-frame .demo-bar .dot.a { background: var(--amber); }
.demo-frame .demo-bar span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark-faint); margin-left: 8px;
}
.demo-frame .demo-actions { margin-left: auto; display: flex; gap: 8px; }
.demo-frame .demo-actions button {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-soft);
  transition: all 0.2s;
}
.demo-frame .demo-actions button:hover, .demo-frame .demo-actions button.active {
  border-color: var(--amber); color: var(--amber);
}
#struct-canvas { width: 100%; height: clamp(360px, 48vw, 520px); display: block; touch-action: none; cursor: grab; }
#struct-canvas:active { cursor: grabbing; }
.demo-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-faint); pointer-events: none;
}
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px;
  border-radius: 12px; border: 1px solid var(--line-dark); color: var(--on-dark);
  font-weight: 600; font-size: 0.9rem; transition: all 0.25s;
  background: rgba(246, 241, 230, 0.05);
}
.store-badge:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.store-badge svg { width: 20px; height: 20px; }

/* live demo iframe */
.demo-iframe-holder { position: relative; height: clamp(420px, 56vw, 640px); background: var(--navy-950); }
.demo-iframe-holder iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.demo-iframe-holder .demo-load {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 18px;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(44, 58, 97, 0.55), transparent 70%),
    var(--navy-950);
}
.demo-iframe-holder .demo-load p { color: var(--on-dark-soft); max-width: 46ch; font-size: 0.95rem; }
.qr-row { display: flex; gap: 22px; flex-wrap: wrap; }
.qr-tile {
  background: var(--paper); border-radius: 14px; padding: 14px; text-align: center;
  border: 1px solid var(--line-dark);
}
.qr-tile img { width: 108px; height: 108px; }
.qr-tile span {
  display: block; margin-top: 8px; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}

/* feature rows */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.feat-img.phone {
  max-width: 320px; margin: 0 auto; border-radius: 30px; padding: 10px;
  background: var(--navy-950); border: 1px solid var(--line);
}
.feat-img.phone img { border-radius: 22px; }
.feat-row + .feat-row { margin-top: clamp(56px, 7vw, 88px); }
.feat-row .feat-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.feat-row.rev .feat-img { order: 2; }
.feat-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.feat-row p { color: var(--ink-soft); }
.feat-row ul { margin-top: 16px; display: grid; gap: 10px; }
.feat-row ul li { display: flex; gap: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.feat-row ul li::before { content: '—'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; } .reveal-d4 { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 128px; }
  .hero-canvas-holder { height: clamp(300px, 52vw, 460px); }
  .contact-grid, .feat-row { grid-template-columns: 1fr; }
  .feat-row.rev .feat-img { order: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .main-nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line-soft);
    padding: 14px 22px 22px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform 0.35s var(--ease);
  }
  .nav-open .main-nav { transform: none; }
  .main-nav a { padding: 12px 14px; font-size: 1.02rem; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-header { background: rgba(246, 241, 230, 0.92); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   Business motifs & ambient animation
   Solar-PV + building line-art woven into backgrounds, and
   slow, low-amplitude movement. All motion is gated behind
   prefers-reduced-motion: no-preference.
   ============================================================ */

/* --- solar panel row silhouette (repeat-x strip) --- */
.panel-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  pointer-events: none; opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 56'%3E%3Cg fill='none' stroke='%231F2A4A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M8 33 L60 12'/%3E%3Cpath d='M12 39 L64 18'/%3E%3Cpath d='M8 33 L12 39 M60 12 L64 18'/%3E%3Cpath d='M22 32 L22 54'/%3E%3Cpath d='M50 21 L50 54'/%3E%3Cpath d='M-4 54 L84 54'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: 0 bottom; background-size: 80px 56px;
}
.panel-strip.on-dark-strip {
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 56'%3E%3Cg fill='none' stroke='%23f5f2ea' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M8 33 L60 12'/%3E%3Cpath d='M12 39 L64 18'/%3E%3Cpath d='M8 33 L12 39 M60 12 L64 18'/%3E%3Cpath d='M22 32 L22 54'/%3E%3Cpath d='M50 21 L50 54'/%3E%3Cpath d='M-4 54 L84 54'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- building skyline line-art (repeat-x strip) --- */
.skyline-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  pointer-events: none; opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 64'%3E%3Cg fill='none' stroke='%231F2A4A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M0 62 L260 62'/%3E%3Cpath d='M8 62 V26 H40 V62'/%3E%3Cpath d='M16 34 H32 M16 42 H32 M16 50 H32'/%3E%3Cpath d='M52 62 V40 H84 V62'/%3E%3Cpath d='M60 47 H76 M60 54 H76'/%3E%3Cpath d='M96 62 V12 H124 V62'/%3E%3Cpath d='M110 12 V4'/%3E%3Cpath d='M103 20 H117 M103 29 H117 M103 38 H117 M103 47 H117'/%3E%3Cpath d='M136 62 V34 L156 22 L176 34 V62'/%3E%3Cpath d='M146 40 H166 M146 49 H166'/%3E%3Cpath d='M188 62 V30 H222 V62'/%3E%3Cpath d='M196 38 H214 M196 46 H214 M196 54 H214'/%3E%3Cpath d='M234 62 V46 H254 V62'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: 0 bottom; background-size: 260px 64px;
}
.skyline-strip.on-dark-strip {
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 64'%3E%3Cg fill='none' stroke='%23f5f2ea' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M0 62 L260 62'/%3E%3Cpath d='M8 62 V26 H40 V62'/%3E%3Cpath d='M16 34 H32 M16 42 H32 M16 50 H32'/%3E%3Cpath d='M52 62 V40 H84 V62'/%3E%3Cpath d='M60 47 H76 M60 54 H76'/%3E%3Cpath d='M96 62 V12 H124 V62'/%3E%3Cpath d='M110 12 V4'/%3E%3Cpath d='M103 20 H117 M103 29 H117 M103 38 H117 M103 47 H117'/%3E%3Cpath d='M136 62 V34 L156 22 L176 34 V62'/%3E%3Cpath d='M146 40 H166 M146 49 H166'/%3E%3Cpath d='M188 62 V30 H222 V62'/%3E%3Cpath d='M196 38 H214 M196 46 H214 M196 54 H214'/%3E%3Cpath d='M234 62 V46 H254 V62'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- sun motif (corner ornament) --- */
.sun-motif {
  position: absolute; pointer-events: none; opacity: 0.16;
  width: 190px; height: 190px; right: 6%; top: 110px;
}
.sun-motif svg { width: 100%; height: 100%; }

/* --- ambient glow for dark sections --- */
.glow { overflow: hidden; }
.glow > .wrap { position: relative; z-index: 1; }
.glow::after {
  content: ''; position: absolute; inset: -22%;
  pointer-events: none;
  background:
    radial-gradient(circle 460px at 18% 28%, rgba(232, 163, 61, 0.075), transparent 62%),
    radial-gradient(circle 640px at 84% 72%, rgba(58, 77, 126, 0.35), transparent 66%);
}

/* hosts for absolutely-positioned motifs */
.hero, .page-hero, .stats-band, .cta-band, .section { position: relative; }
.page-hero .wrap, .hero .wrap, .cta-band .wrap { position: relative; z-index: 1; }

/* --- motion (only when the visitor allows it) --- */
@media (prefers-reduced-motion: no-preference) {
  .blueprint { animation: blueprint-pan 48s linear infinite; }
  @keyframes blueprint-pan {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 44px 44px, 44px 44px; }
  }
  .hero-rays::before { animation: rays-sweep 11s ease-in-out infinite alternate; }
  @keyframes rays-sweep {
    from { opacity: 0.55; background-position: 0 0; }
    to   { opacity: 1;    background-position: 110px 0; }
  }
  .glow::after { animation: glow-drift 22s ease-in-out infinite alternate; }
  @keyframes glow-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6%, 4%, 0) scale(1.08); }
  }
}

/* --- LinkedIn live post embeds (news) --- */
.li-embed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.li-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.li-embed iframe { display: block; width: 100%; height: 620px; border: 0; }
.li-embed iframe.training-embed {
  height: auto; aspect-ratio: 16 / 9; background: var(--navy-900);
}
.li-embed .li-embed-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-faint);
}
.li-embed .li-embed-cap a { color: var(--orange); font-weight: 700; white-space: nowrap; }
.li-embed .li-embed-cap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1020px) { .li-embed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .li-embed-grid { grid-template-columns: 1fr; } }

/* ============================================================
   v2.2 — continuous one-line artworks (.line-art)
   Single-stroke contour drawings injected by line-art.js.
   Modes: la-loop (ongoing self-drawing), la-draw-once (draws on
   scroll into view), la-drawn (static, fully drawn).
   ============================================================ */
.line-art { display: block; }
.line-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.line-art path { stroke: var(--navy-900); }
.line-art path.la-accent { stroke: var(--orange); }
.line-art.on-dark-art path { stroke: rgba(245, 242, 234, 0.85); }
.line-art.on-dark-art path.la-accent { stroke: var(--amber); }

/* dash setup: pathLength=1 normalises every path */
.line-art path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ongoing drawing loop: draw → hold → fade → redraw.
   "backwards" fill holds the blank 0% state during each path's
   animation-delay — without it the artwork flashes fully drawn
   on page load before the drawing begins. */
.line-art.la-loop path {
  animation: la-cycle 18s cubic-bezier(0.45, 0.05, 0.35, 0.95) infinite backwards;
}
@keyframes la-cycle {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  4%   { stroke-dashoffset: 1; opacity: 1; }
  62%  { stroke-dashoffset: 0; opacity: 1; }
  88%  { stroke-dashoffset: 0; opacity: 1; }
  96%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}

/* draw once on reveal */
.line-art[data-animate="once"] path { stroke-dashoffset: 1; opacity: 0; }
.line-art.la-draw-once path {
  animation: la-once 3.8s cubic-bezier(0.5, 0.05, 0.3, 0.95) forwards;
}
@keyframes la-once {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  8%   { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.line-art.la-drawn path { stroke-dashoffset: 0 !important; opacity: 1 !important; animation: none !important; }

/* placements */
.hero-art-holder { position: relative; height: clamp(380px, 44vw, 560px); display: flex; align-items: center; }
.hero-art-holder .line-art { width: 100%; height: 100%; }
.page-hero .hero-side-art {
  position: absolute; right: 3%; bottom: 0; width: clamp(260px, 30vw, 420px);
  opacity: 0.55; pointer-events: none;
}
.section-side-art {
  position: absolute; right: 2%; bottom: 24px; width: clamp(220px, 24vw, 360px);
  opacity: 0.35; pointer-events: none;
}
@media (max-width: 1020px) {
  .page-hero .hero-side-art { opacity: 0.22; }
  .section-side-art { display: none; }
}

/* ============================================================
   v2.2 — project detail modal
   ============================================================ */
.proj-card[data-modal] { cursor: pointer; }
.proj-card .proj-more {
  margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 0.86rem;
  color: var(--navy-700); display: inline-flex; gap: 8px; align-items: center;
}
.modal-overlay {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(13, 19, 38, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 4vh 18px; overflow-y: auto;
}
.modal-overlay.open { display: block; }
.modal-panel {
  max-width: 880px; margin: 0 auto; background: var(--cream);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55);
  animation: modal-in 0.35s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.modal-panel .modal-img { position: relative; aspect-ratio: 21/9; background: var(--navy-900); }
.modal-panel .modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(245, 242, 234, 0.92); color: var(--navy-900); font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
}
.modal-close:hover { background: var(--amber); }
.modal-body { padding: clamp(26px, 4vw, 44px); }
.modal-body .proj-loc { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.modal-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.modal-body .chips { margin-bottom: 22px; }
.modal-body h4 {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint); margin: 22px 0 10px;
}
.modal-body p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 12px; }
.modal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 6px; }
.modal-facts .fact { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.modal-facts .fact b { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; font-weight: 700; }
.modal-facts .fact span { font-size: 0.9rem; font-weight: 600; color: var(--navy-800); }
body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
